Skip to content

fix(sf): convert L4504 preflight guard from hard-skip to dry-execution#373

Merged
cipher813 merged 1 commit into
mainfrom
fix/director-preflight-dry-mode-v2
Jun 5, 2026
Merged

fix(sf): convert L4504 preflight guard from hard-skip to dry-execution#373
cipher813 merged 1 commit into
mainfrom
fix/director-preflight-dry-mode-v2

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Follow-up to #372 (merged). #372 shipped the hard-skip CheckShellRunSkipDirector Choice gate; this converts it to the chosen dry-execution approach so the Friday preflight exercises the advisory Lambdas' bootstrap/import/IAM paths rather than skipping them (the shell-run keystone deliberately removed all skip-exceptions). Companion handler PR: alpha-engine-evaluator #23.

Interim state is safe: the merged hard-skip also prevents the ledger pollution — this PR is an upgrade (exercises the dry infra), not a bug fix on top of a bug.

Changes

  • Remove the CheckShellRunSkipDirector Choice; restore the direct WaitForWeeklySubstrateHealthCheck → ReportCard edge.
  • Thread "dry_run.$": "$.research_dry" into the ReportCard + Director payloads — the canonical shell-run-dry signal (seeded false in InitializeInput, flipped true in ApplyShellRunDefaults), mirroring the eval-judge / rationale-clustering / replay-concordance / counterfactual advisory Lambdas.

On a preflight both states now run dry (ReportCard: no-write; Director: no-Opus/no-write probe validating the langchain import + SSM key-fetch IAM grant + ledger read) — they are not skipped.

Tests

  • Reverted the 2 tests to the direct → ReportCard edge; replaced the skip test with test_advisory_tail_runs_dry_on_preflight (asserts dry_run.$=$.research_dry on both payloads).
  • Updated the _SATURDAY_PAYLOAD_KEYS registry.
  • 497 SF-structure tests pass.

Deploy note

SF auto-deploys on merge to main (data #371 --definition file:// fix clears the prior ARG_MAX). Land together with evaluator #23 (the SF references the handler dry_run contract).

🤖 Generated with Claude Code

Follow-up to #372 (merged), which shipped the hard-skip CheckShellRunSkipDirector
Choice gate. Per the chosen approach, convert it to keystone-consistent dry-
execution so the Friday preflight still exercises the ReportCard + Director
Lambda bootstrap/import/IAM/transport paths instead of skipping them (the shell-
run keystone deliberately removed all skip-exceptions).

- Remove the CheckShellRunSkipDirector Choice; restore the direct
  WaitForWeeklySubstrateHealthCheck -> ReportCard edge.
- Thread dry_run.$=$.research_dry into the ReportCard + Director payloads (the
  canonical shell-run-dry signal; false on the real Saturday run / true on the
  preflight), mirroring the eval-judge / rationale-clustering / replay-concordance
  / counterfactual advisory Lambdas.

Handlers (companion alpha-engine-evaluator #23): ReportCard dry -> no-write
(still boots/imports/reads/computes); Director dry -> no-Opus / no-write probe
(constructs the real client to validate the langchain import + SSM key-fetch IAM
grant, reads the ledger, stops short of .invoke(), mutates nothing — the shared
non-date-scoped carry-over ledger is never polluted).

Tests updated to expect the dry-execution wiring + test_advisory_tail_runs_dry_on_preflight
+ payload-key registry. 497 SF-structure tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cipher813 cipher813 merged commit fde5bbf into main Jun 5, 2026
1 check passed
@cipher813 cipher813 deleted the fix/director-preflight-dry-mode-v2 branch June 5, 2026 13:43
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