feat(sf): wire the non-fatal Director ReportCard state into the Saturday pipeline#367
Merged
Merged
Conversation
…day pipeline
Inserts a ReportCard Lambda state into the Saturday SF after the substrate
health check (so it reads fresh grades), invoking alpha-engine-evaluator:live to
build s3://alpha-engine-research/evaluator/{date}/report_card.json — the 7-tile
Report Card v2 substrate the Director will consume. NON-FATAL: its own Catch
routes to CheckShellRunNotify, so an advisory grading failure never breaks the
run that produced the real trading artifacts (director-plan §5).
- step_function.json: WaitForWeeklySubstrateHealthCheck.Next CheckShellRunNotify
→ ReportCard; new ReportCard Task (FunctionName alpha-engine-evaluator:live,
Payload {date.$: $.run_date}, 300s, retry, Catch→CheckShellRunNotify).
- iam/alpha-engine-step-functions-role.json: add lambda:InvokeFunction on
arn:...:function:alpha-engine-evaluator* (applied live pre-merge per the
codified-IAM convention; drift-check passes).
- Update the 3 SF-wiring guardrail tests + the payload registry for the new
state (these are the chokepoints that fail-loud on a wiring change).
Applied live this session: IAM grant applied + update-state-machine on
alpha-engine-saturday-pipeline (verified ReportCard present + wired). Full suite
1804→1807 passed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Wires the evaluator's Report Card v2 producer into the Saturday Step Function (the Director arc's chosen cadence). A new
ReportCardLambda state runs after the substrate health check (so it reads fresh grades) and invokesalpha-engine-evaluator:liveto builds3://alpha-engine-research/evaluator/{date}/report_card.json— the 7-tile MetricRecord substrate the Director will consume.Non-fatal by design:
ReportCard's ownCatchroutes toCheckShellRunNotify, so an advisory grading failure never breaks the run that produced the real trading artifacts (director-plan §5).Changes
step_function.json—WaitForWeeklySubstrateHealthCheck.NextCheckShellRunNotify→ReportCard; newReportCardTask (FunctionName: alpha-engine-evaluator:live,Payload: {date.$: $.run_date}, 300s timeout, retry,Catch → CheckShellRunNotify, successNext → CheckShellRunNotify).iam/alpha-engine-step-functions-role.json— addlambda:InvokeFunctiononarn:...:function:alpha-engine-evaluator*.Applied live this session (pre-merge, per the codified-IAM convention)
infrastructure/iam/apply.sh alpha-engine-step-functions-role→ grant applied (verified live).aws stepfunctions update-state-machineonalpha-engine-saturday-pipeline→ verifiedReportCardpresent + wired (WaitForWeeklySubstrateHealthCheck → ReportCard → CheckShellRunNotify).The evaluator Lambda + its own role were provisioned this session (
alpha-engine-evaluatorrepo #19) and already producereport_card.json(canary + a manual seed bothstatus: ok). TheReportCardstate now produces it automatically every Saturday.Full suite 1804 → 1807 passed.
🤖 Generated with Claude Code