Uh oh!
There was an error while loading. Please reload this page.
fix(headless): harden RSI prompt optimization runs - #400
Merged
Conversation
6 tasks
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 freeto 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
Harden the headless RSI prompt optimization path based on the kept-prompt 5-round run:
MAKA_PROMPT_INITIAL_SYSTEM_PROMPT_FILEcostCeilingUsdWhy
The local RSI run needed a fixed initial prompt seed and a budget-ceiling resume path to complete cleanly. Its reward-hack caveat also turned out to be a scanner false positive:
llm-inference-batching-schedulerexposes the same canary GUID in normal helper scripts that the task instructions tell the agent to read.Closes: N/A
Scope
Changed:
run-prompt-optimization.mjsnow wires an optional initial prompt seed file into the prompt repo setup.costCeilingUsd.Not included:
Verification
npm run -w @maka/headless build && node --test packages/headless/dist/__tests__/harbor-adapter.test.jsnode --test packages/headless/dist/__tests__/prompt-optimization-run.test.js packages/headless/dist/__tests__/prompt-optimization-loop.test.js packages/headless/dist/__tests__/prompt-acceptance-policy.test.js packages/headless/dist/__tests__/prompt-candidate-loop.test.js packages/headless/dist/__tests__/prompt-optimization-loop-replay-decision.test.js packages/headless/dist/__tests__/prompt-optimization-replay-evidence.test.js packages/headless/dist/__tests__/prompt-structural-smoke.test.jsnpm run -w @maka/headless test(643tests,641pass,2skip)llm-inference-batching-schedulertask now extracts no verifier-only reward-hack pattern for its shared canary GUID.User-facing impact
None for desktop users. This affects headless prompt-optimization/benchmark runs only.
Reviewer notes
This intentionally keeps scanner behavior conservative: canaries repeated in hidden
solution/files still count as verifier-only; only canaries present in model-visible task material are excluded from reward-hack matching.