Repository navigation
fix(headless): harden RSI full-run preflight and resume safety - #356
Merged
Merged
Conversation
Contributor
Author
|
Review fixes pushed in
Verification:
|
Contributor
Author
|
Second review fixes pushed in
Verification:
|
Contributor
Author
|
Third review fixes pushed in
Verification:
Note: this continues to keep post-candidate whole-loop resume out of scope; the guard now makes that boundary explicit while preserving baseline/sweep resume. |
Contributor
Author
|
Addressed the latest resume-safety review in 7ccf2be. What changed:
Verification:
After committing, the clean-checkout integration test ran without skips: 24 pass, 0 skip. |
Contributor
Author
|
Keeping external Rationale:
So this PR keeps the current implementation and leaves any future Occam-cut of external subject support as a separate product/runner-scope decision. |
This was referenced Jun 29, 2026
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.
Summary
This PR does not run or claim completion of the RSI R2 full run. It hardens the pre-run/runtime foundation that the failed full-run attempt exposed as missing: explicit runtime profile, manifest/fingerprint identity, baseline/sweep resume safety, and fail-fast boundaries where full whole-loop replay is not implemented.
Why
Refs #311
The attempted full run showed that "starting a full run" is not the same as having reliable evidence for #311 completion. Before spending another full-run budget, the runner needs explicit and auditable runtime settings, stable run identity, and safe resume semantics.
Scope
Changed:
prompt-optimization-manifest.jsonfor prompt optimization runs and pass its fingerprint into WAL resume identity.MAKA_CELL_TIMEOUT_SEC.MAKA_CELL_COMMAND_TIMEOUT_MS..gitinitialized with no HEAD.readFixedPromptWal()for resume preflight so torn WAL tails preserve baseline/sweep resume semantics.prompt_candidate_committed/prompt_candidate_decidedor HEAD past seed) because whole-loop WAL replay is not implemented in this PR.Not included:
Verification
npm run -w @maka/headless typechecknpm run -w @maka/headless buildnode --test packages/headless/dist/__tests__/prompt-optimization-bootstrap.test.js packages/headless/dist/__tests__/prompt-optimization-manifest.test.js packages/headless/dist/__tests__/prompt-optimization-run.test.js packages/headless/dist/__tests__/harbor-adapter.test.jsnode --test packages/headless/dist/__tests__/harbor-cell.test.js packages/headless/dist/__tests__/tools.test.jsnode --check packages/headless/harbor/run-prompt-optimization.mjsgit diff --checkUser-facing impact
Future RSI prompt optimization runs get explicit preflight/runtime identity and safer seed/baseline/sweep resume behavior. If a run has already reached candidate commit/decision state, it now fails fast and asks for a new run id until whole-loop WAL replay is implemented.
Reviewer notes
Please review this as pre-run infrastructure, not as the full-run evidence PR. The failed full-run attempt exposed these gaps; this PR closes the runner safety/setup gaps before we decide whether to run again or split a fresh full-run PR.