Skip to content

Write the registered header into the Track M artifact - #478

Merged
MaxGhenis merged 1 commit into
masterfrom
dynamics-ex4-header-fix-20260927
Sep 27, 2026
Merged

MaxGhenis merged 1 commit into
masterfrom
dynamics-ex4-header-fix-20260927

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Fixes a defect the independent review of exercise 4's Registration 17 found before posting. A registered Track M run would have written "header": null into its artifact.

Cause. run_track_m_registered.main builds the artifact as {"header": REGISTERED_HEADER, …, **result, …}. The pipeline's result carries its own header: the dry-run header for invented data, and None for a registered run. Spreading the result overwrote the registered header.

Fix. Restore artifact["header"] = REGISTERED_HEADER after the dictionary is built. This is the review's prescribed fix. The key keeps its first place in the written JSON.

Test. test_main_writes_the_registered_header_over_the_pipelines drives main with stand-in preflight, parameters and computation, and an INVENTED pipeline result that includes "header": None. It asserts that the written artifact's header is REGISTERED_HEADER and is the first key, and that the one-shot flags and the rows are carried. It fails without the fix. The existing header test checked only the constant.

Invariant. Whatever the pipeline returns, the written registered artifact begins with the registered header.

No rule, row, statistic, parameter or guard changes. The M1 specification is unchanged: SHA-256 2e55afc1…, m1-ratified-1, blocked_by: []. The Track M set: 418 passed. Tier manifest: 8,438.

This PR's merge commit will be the commit Registration 17 registers.

🤖 Generated with Claude Code

run_track_m_registered.main built the artifact as {"header": REGISTERED_HEADER, ..., **result, ...}. The pipeline's result carries its own "header": the dry-run header for invented data, None for a registered run. Spreading the result overwrote the registered header, so a registered run would have written "header": null.

The independent review of Registration 17 (2026-09-27) found this. Its fix is applied: the header is restored after the dictionary is built, and the key keeps its first place in the written JSON.

The new regression test drives main with stand-in preflight, parameters and computation, and an INVENTED pipeline result that includes "header": None. It asserts that the written artifact's header is REGISTERED_HEADER and is the first key. It fails without the fix. The existing header test checked only the constant.

No rule, row, statistic, parameter or guard changes. The M1 specification is unchanged: SHA-256 2e55afc1..., m1-ratified-1, blocked_by []. Tier manifest recollected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
social-security-model Ready Ready Preview Sep 27, 2026 10:19am UTC

Request Review

@MaxGhenis
MaxGhenis merged commit 2e4e08b into master Sep 27, 2026
12 checks passed
@MaxGhenis
MaxGhenis deleted the dynamics-ex4-header-fix-20260927 branch September 27, 2026 11:47

This branch was successfully deployed

1 active deployment
Preview — 4e3490cf Deployed Sep 27, 2026 by vercel[bot]
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