feat(floor): /pharn-verify reuses equivalent REGRESS/HEAD gate executions within one delivery run (6.34.0) - #298
Merged
Conversation
…ions within one delivery run (6.34.0) Inside one /pharn-loop or /pharn-ship run, /pharn-verify records a gate's result from the completed execution /pharn-regress's HEAD side already made of it, without spawning the gate again, when tested code proves every bound input is equal (the execution identity: command, ordered files, cwd realpath, --timeout-ms, git HEAD, the PHARN-added env var name, the tree fingerprint). Style gates, AC level gates and reconcile are never reused. The source is offered only through a git-dir record regress publishes. Reused entries are ran:false, reason:"reused", with provenance; every miss runs the gate as before. 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.
Summary
Inside one
/pharn-loopor/pharn-shiprun,/pharn-verifynow records a gate's result from the completedexecution
/pharn-regress's HEAD side already made of it — without spawning the gate again — when tested code provesevery bound input is equal. Every other gate runs exactly as before; missing or unusable reuse evidence is never a
failure.
SKILLS_VERSION6.33.0 → 6.34.0 (minor).MIN_CLIstays 0.5.0.pharn/floor/gate-reuse-core.mjs, pure): sha256 over command (shell/argv), ordered files,cwd realpath,
--timeout-ms, git HEAD, the PHARN-added env var name, and the tree fingerprint (algo +fp_before).Recorded on every run as the additive
runs[].identity_sha256.tree, no regular results file. Never reused: AC level gates (
test,test:e2e,e2e), style gates (they readfingerprint-excluded
REGRESSION.md/VERIFY.md),reconcile. In practice:typecheck,type-check,build.pharn/floor/head-reuse-offer.mjs): regress publishes a git-dir offer bound to the HEAD stamp'sbytes and the open run marker, and discards it at its fresh start; a stamp planted under
.pharn/(e.g. a--quickbuild) is never offered.
ran: false,reason: "reused", with areusedblock naming the sourceexecution; logs are copied only after hash verification.
verify-report.jsongains the additive, advisorygate_reuseblock;VERIFY.mdsays "reused, not re-executed". Verdict, AC gate, completeness,check-verify,check-regress,check-loop-freshand drain/budget/resume are unchanged.Measured (
.dev/features/verify-head-gate-reuse/MEASUREMENT.md)Fixture with
test,lint,typecheck,build(1 s gates), 3 runs each:main)Regress unchanged; the offer decision costs ~17 ms. No token saving claimed.
Validation
/pharn-dev-regress:no-regressions(base2cf0e85)./pharn-dev-verify:PASS— test 4455/4455, validate, lint, format:check, lint:md, reconcile all 0.per-component negative controls (unit and runner level, each mutation-checked), crash/resume, ★ HOOK test on the
offer path, ★ WIRING with the committed command lines.
(
GRILL.md,REVIEW.md).For the maintainer (human-only)
LIMITS.md"/pharn-verify re-runs the project's own gates" is now partly stale — not edited (human-only).bounds both the new offer record and the 6.33.0 BASE record. Named, not fixed.
SHIP.md), not human approvals.🤖 Generated with Claude Code