Skip to content

feat: autonomous weekly strategy agent (Claude Max, CI-gated)#201

Merged
costajohnt merged 2 commits into
mainfrom
feat/autonomous-weekly-agent
Jun 4, 2026
Merged

feat: autonomous weekly strategy agent (Claude Max, CI-gated)#201
costajohnt merged 2 commits into
mainfrom
feat/autonomous-weekly-agent

Conversation

@costajohnt
Copy link
Copy Markdown
Owner

Adds the fully-autonomous weekly agent. The LLM (read-only, Max subscription) proposes at most one evidence-backed change; it is applied and shipped only through the existing guarded deploy_change pipeline (budget, sample-size, safety invariants, pytest, 365-day backtest), then squash-merged after the required CI checks pass.

Modes: --dry-run (propose -> gates -> report -> revert, no git), --selftest (verify the no-touch wall rejects bad edits). The agent's own machinery is added to the no-touch list.

NOT armed yet: the launchd weekly job is still the read-only reviewer; flipping it to this is a follow-up after dry-run review.

scripts/autonomous_review.py: the weekly agent proposes at most one
evidence-backed change (read-only Claude on the Max subscription). The change
is applied and shipped ONLY through the existing guarded deploy_change pipeline
(budget, sample-size, safety invariants, pytest, 365-day backtest Sharpe>=0.3),
then squash-merged after the required CI checks pass.

- The LLM only proposes (read-only JSON); all file mutation and the git/merge
  steps are deterministic and routed through existing guardrails.
- scripts/weekly_autonomous_agent.sh: cron wrapper, Max OAuth, passes --dry-run/--selftest.
- safety.py: add the agent's own machinery (orchestrator, wrapper, runners) to
  the no-touch list, with matching test_safety assertions.

Modes: --dry-run (propose->gates->report->revert, no git); --selftest (verify
the no-touch wall rejects bad edits).
…kill switch, main branches)

Mocks the subprocess boundaries (Claude, git, gh, deploy) so no real calls fire.
Brings scripts/autonomous_review.py to 87% (>= 85% per-file floor).
@costajohnt costajohnt merged commit 3ac640b into main Jun 4, 2026
7 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.

1 participant