Skip to content

Claude/code review discussion 9w5pnt#2

Merged
50thycal merged 2 commits into
mainfrom
claude/code-review-discussion-9w5pnt
Jul 3, 2026
Merged

Claude/code review discussion 9w5pnt#2
50thycal merged 2 commits into
mainfrom
claude/code-review-discussion-9w5pnt

Conversation

@50thycal

@50thycal 50thycal commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

Changes

  • New pattern or starter (followed templates/pattern-template.md + updated registry.yaml)
  • Doc / example improvement
  • Tool change (loop-audit)
  • Story (includes real failure or surprise + lesson)

Checklist (from CONTRIBUTING)

  • All required sections present for patterns
  • Links work from README, patterns/README, starters/README, docs/index
  • No secrets, tokens, internal company URLs
  • STATE.md* examples use .example suffix
  • Safety-related content references docs/safety.md
  • Ran node tools/loop-audit/dist/cli.js . (or on the starter) and addressed findings

Testing / Dogfood

  • loop-audit passes on affected starters or this repo
  • Manual review of generated state / skill output

Screenshots / Examples (if UI or command output)


This template enforces the high bar this reference is known for.

claude added 2 commits July 3, 2026 12:54
…hesis tracking

Turns the forward loop into a hosted, always-running platform that checks prices
on a schedule, scores every thesis, and persists the record — so you can iterate,
add strategies, and keep tracking until something is truly profitable.

- engine/service.py: stdlib web service + background scheduler. Runs the forward
  check every CHECK_INTERVAL_SECONDS, persists state/log/scoreboard to
  QUANT_DATA_DIR, serves a live status page (/), /scoreboard.json, and /health.
  Statuses per thesis: within_mandate / breached / awaiting_data.
- forward_paper.py: QUANT_DATA_DIR env so the record persists to a Volume (not the
  repo); committed registration acts as a seed; auto_register_pending() write-once
  registers any new thesis on boot.
- Dockerfile + railway.json + DEPLOY-RAILWAY.md: one-click-ish Railway deploy
  (mount a Volume at /data). Pure stdlib, no DB required.

Extensibility: add a thesis to FROZEN_STRATEGIES, redeploy -> the service
auto-registers it (write-once, stamped at the latest data date) and tracks it
alongside the others. Registration stays write-once per name; revising a thesis
means a NEW name with a NEW start date.

Tests 38/38, repo gates pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UcE4n3gQdVXJtD2z3mBrZX
…ilder

The Railway deploy failed with 'Railpack could not determine how to build the app'
because the merged commit predated the Dockerfile and Railpack (Railway's default
builder) found no Python marker. Rather than depend on the Dockerfile being picked
up (fragile: needs the right commit + builder setting + root dir), add the two
signals the default builder needs:
- requirements.txt: pure-stdlib marker (no deps) so Railpack/Nixpacks detects Python
- Procfile: 'web: python -m engine.service' start command

Now it builds natively under Railpack OR the Dockerfile. DEPLOY-RAILWAY.md updated:
set QUANT_DATA_DIR=/data (required for persistence without the Dockerfile ENV) and
mount a Volume there; redeploy latest main if a build predates these files.

Tests 38/38, service boots via the Procfile command, repo gates pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UcE4n3gQdVXJtD2z3mBrZX
@50thycal 50thycal merged commit d6a63b1 into main Jul 3, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants