Skip to content

SF: add non-fatal Director state as the final Saturday-SF task (after ReportCard)#370

Merged
cipher813 merged 1 commit into
mainfrom
feat/sf-director-state
Jun 4, 2026
Merged

SF: add non-fatal Director state as the final Saturday-SF task (after ReportCard)#370
cipher813 merged 1 commit into
mainfrom
feat/sf-director-state

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Adds the Director (Layer C, Part II) as the final Saturday-SF task, after a successful ReportCard, weighing the fresh Report Card v2 → an advisory DirectorWeeklyActionPlan.

Wiring

WaitForWeeklySubstrateHealthCheck → ReportCard → Director → CheckShellRunNotify
  • ReportCard SUCCESS Next → Director (feeds it the fresh card).
  • ReportCard Catch → CheckShellRunNotify — skip the Director when there's no card to weigh.
  • Director Next AND its own Catch → CheckShellRunNotify — non-fatal: an advisory failure never breaks the run that produced the real trading artifacts (director-plan §5).
  • Invokes alpha-engine-evaluator-director:live with {date.$: $.run_date}.
  • Flag-gated: the function is a no-op (status=disabled) until DIRECTOR_ENABLED is flipped on after a clean Saturday cycle — so wiring it now is dormant/safe.

IAM

No SF-role change — the existing function:alpha-engine-evaluator* invoke grant already covers alpha-engine-evaluator-director, asserted by test_sf_iam_lambda_grants::test_every_invoked_lambda_has_iam_grant.

Tests

  • test_sf_substrate_check_wiring + test_sf_friday_shell_run_wiring: now assert the ReportCard → Director → notify path (both Director edges land on CheckShellRunNotify).
  • test_sf_payload_uniqueness: payload registry adds "Director": {date.$}.
  • 596 SF tests green.

Pairs with evaluator #22 (the Director Lambda + IAM + deploy). The live Saturday-SF definition update is an operator step.

🤖 Generated with Claude Code

… ReportCard)

The Director (Layer C, Part II) runs as the FINAL Saturday-SF task, after a
SUCCESSFUL ReportCard, weighing the fresh Report Card v2 → an advisory
DirectorWeeklyActionPlan. Wiring:

  WaitForWeeklySubstrateHealthCheck → ReportCard → Director → CheckShellRunNotify

- ReportCard SUCCESS Next → Director (feeds it the fresh card).
- ReportCard Catch → CheckShellRunNotify (skip the Director — no card to weigh).
- Director Next AND its own Catch → CheckShellRunNotify (non-fatal: an advisory
  failure never breaks the run that produced the real trading artifacts).
- Invokes alpha-engine-evaluator-director:live with {date.$: $.run_date}.
  FLAG-GATED: the function is a no-op (status=disabled) until DIRECTOR_ENABLED
  is flipped on after a clean Saturday cycle.

SF-role IAM: no change — the existing alpha-engine-evaluator* invoke grant
already covers alpha-engine-evaluator-director (asserted by
test_sf_iam_lambda_grants::test_every_invoked_lambda_has_iam_grant).

Guardrail tests updated: substrate-check + friday-shell-run wiring now assert
the ReportCard→Director→notify path (both Director edges land on the notify
gate); payload registry adds "Director": {date.$}. 596 SF tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cipher813 cipher813 merged commit 220094c into main Jun 4, 2026
1 check passed
@cipher813 cipher813 deleted the feat/sf-director-state branch June 4, 2026 23:10
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