feat(floor): /pharn-regress reuses verified BASE evidence within one delivery run (6.33.0) - #297
Merged
Merged
Conversation
…delivery run (6.33.0) Within one /pharn-loop or /pharn-ship run, a later /pharn-regress skips the base worktree, the install and every base gate when tested code shows the retained BASE evidence agrees with the current BASE requirement (base SHA, the copied gate spec, install decision, timeout, format versions, and root-level HEAD files in scope). The HEAD side always runs; check-regress.mjs and validateStamp are unchanged. Any mismatch runs the base side exactly as before. - regress-base-reuse-core.mjs (pure rule) + regress-base-reuse.mjs (storage): a record in the git dir bound to the run marker's bytes and age, the stamp and its logs; a persisted HIT is re-decided at the verdict; publication goes through the same predicate for the decision's run and requirement. - regression-report.json gains the additive, advisory base_evidence block. - Progress record pharn-stage-regress-progress/2. - Measured: the second invocation of a run makes 0 worktrees, 0 installs and 0 base gate runs (~10.1 s -> ~4.4 s on the fixture). No token saving claimed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merged
4 of 5 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 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
Within one
/pharn-loopor/pharn-shiprun, a later/pharn-regressnow reuses the BASE-side evidence an earlier invocation left. It skips the base worktree, the install and every base gate, but only when tested code shows the evidence agrees with the current BASE requirement. The HEAD side always runs. Any mismatch runs the base side exactly as before.gate-run-core.mjsbaseSpecFrom, now its one owner);pharn/floor/regress-base-reuse-core.mjs(pure) decides reuse; the first check that fails names one of 13 miss reasons (BASE_REUSE_MISSES).pharn/floor/regress-base-reuse.mjshandles storage.<git dir>/pharn-regress-base-reuse.json, out of the write tools' reach. It is bound to the run marker's bytes and age (hashed, never parsed), the stamp's bytes and its logs.check-regress.mjs,validateStamp, every verdict, the stage-exit protocol.regression-report.jsongains the additive, advisorybase_evidenceblock{reused, miss, requirement_sha256, recorded}.pharn-stage-regress-progress/2; a/1record resumed across the upgrade stops withprogress-malformed.Measured (
.dev/features/regress-base-reuse/MEASUREMENT.md, 3 reps)The first invocation is unchanged, and the decision costs ~18 ms. No token saving is claimed.
Tests
npm ci.npm test: 4394 / 4394. Floor GREEN (36 capabilities). Reconcile CLEAN.Pipeline
/pharn-dev-shipartifacts are in.dev/features/regress-base-reuse/(PLAN, GRILL, REGRESSION, VERIFY, REVIEW, SHIP).REVIEW.md, "Disposition".Limitations (named)
continue(follow-upregress-paused-chain-integrity)./pharn-dev-regressis unchanged.SKILLS_VERSION6.32.1 → 6.33.0 (minor).MIN_CLIstays 0.5.0.🤖 Generated with Claude Code