Repository navigation
Bind PR #229's node-numbering transitions - #230
johnsonlee wants to merge 4 commits into
Conversation
PR #229 numbers each build's nodes from 1 (NodeId.numbered) instead of continuing one process-wide counter, so two fixture64 cases answer with other node ids: shape-id-lookup (id 4101 is now in each of the 64 graphs, not only fixture-android-00) and shape-traverse-filtered (the same 200 nodes of the same two graphs, fixture-android-01's ids 360266 lower). Both rules are bound to main 70f908c and #229 head 2d1a62b by product identity, with the query and response digests of run 46091056203 (c428401; 2d1a62b changes only docs/pr-229-*), identical on runs 45833728909 and 46001831978. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7fuhe1cFdhcfmSWfq7cpt
📊 Test Coverage
|
johnsonlee
left a comment
There was a problem hiding this comment.
Independent review confirms the two product identities, query digests and four complete-response digests match the intended directed transitions. Historical retained responses show the expected per-graph ID changes. One committed-validation gap remains.
|
CI now confirms the head identity I had computed locally. #229's benchmark on
That is the pair these two rules are bound to. Its only non-exact cases are Generated by Claude Code |
The rules for #229 were checked against run 46094928338's 73 observations only in a temporary test, and the existing transition tests use synthetic identities, so removing both rules left every test passing (review of #230). pr229_approval embeds the run's observations (in transitions.rs, the policy file product identities exclude, so main's identity does not move) and asserts that the reviewed pair approves exactly the two transitions and 71 exact cases; that #229's previous head, a reversed or a wrong pair approves nothing; that a changed query or response digest of either case, a missing reviewed case or a drifted exact case is rejected; and that removing either rule fails. Three of the five tests fail with the two rules removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7fuhe1cFdhcfmSWfq7cpt
Benchmark reportBase: Workflow and raw evidence · Full report Benchmark correctness and OOM: PASSTiming differences are report-only; correctness, OOM and required coverage decide this gate. GitHub runner timings do not establish performance acceptance. Base: frontend-build-save
native-real64
Full methods, comparability reasons, isolated observations, raw request bodies and logs are retained in the downloadable report/evidence artifacts. UNAVAILABLE never means zero; a zero baseline has no defined percentage change. |
johnsonlee
left a comment
There was a problem hiding this comment.
The committed regression coverage is verified and its thread remains resolved. A new source commit on #229 now invalidates the approval's head identity.
| // product identity is bound here; the same four response digests on runs 45833728909 and 46001831978. | ||
| Rule { | ||
| base_product_identity: "981eeea3494460f75577260a8beb9296aceafa3c64e37ba96f3e055ff1c0ca75", | ||
| head_product_identity: "eba350a9a104a1ea4597428d76b6e1f34c3d30b6909f9bc9225845136546c51c", |
There was a problem hiding this comment.
[P2] Rebind both approvals to the newly reviewed #229 head
#229 advanced to db80380 (UTF-8 CLI output). Its canonical product identity is 5f4a0a23dc8c0247784894ac07c1e23ca51e3dd9c46e96d6db94de2d70eb4a8a, while both rules here still bind eba350a9… (2d1a62b). Independently calling the actual evaluate with the new identity and the retained 73 observations yields approved=false: 71 exact and two rejected cases, both 'No compiled-in transition approves this directed source and case difference'. Thus merging this current policy will not unblock the latest #229 head even if its query responses are unchanged. Review the new head's affected dependency closure and exact observations, update both rule bindings and the committed acceptance fixture/tests, and preserve rejection for unreviewed identities. This reproduces stale identity matching; it does not claim to have rerun the new head's full response workload.
There was a problem hiding this comment.
Agreed, the identity is stale at db80380. The rebind is deliberately deferred.
#229 is not final: the remaining checklist items are being done inside it, starting with the construction peak-RSS and legacy pressure-tail findings in the acceptance matrix. Each of those pushes moves #229's product identity again, so I'll rebind once, after #229's last product commit:
- the head identity in both rules and in the
pr229_approvalconstants; - the fixture's observations and run reference, regenerated from that head's own benchmark run;
- the rejection cases for every earlier identity, including
eba350a9…and5f4a0a23…, kept.
Until then #230 should not be merged; it does not unblock the current head, exactly as you found.
Generated by Claude Code
There was a problem hiding this comment.
Rebound in 3ab49a0, now that #229 has its last product commit (7588730).
- Both rules and the fixture's
HEADare bound to identity6f85545f52178f35a17b3c91ba71f11502924ea3c2c1ff4abcb9096e496a944e, which is what run 46122244274 computed for that head (base981eeea3…, unchanged). - I compared that run's
results/native/semantic-transitions.jsonwith the fixture before touching it: the 73 observations are identical, row for row and in order. Onlyshape-id-lookupandshape-traverse-filtereddiffer between base and head, with the digests already reviewed. So the edit is the identity and the run references, nothing else. - The earlier head identities (
c428401,db80380,2d1a62b) are inanother_identity_pair_approves_nothing, each as a head and as a base, and approve nothing. - This branch's own product identity is still
981eeea3…, equal tomain's, so merging it does not move the base. cargo test -p graphite-benchmark transitions: 12 passed.cargo fmt --checkandcargo clippy --all-targets -D warningsclean.
After this merges, #229's benchmark needs a rerun and no new commit.
Generated by Claude Code
There was a problem hiding this comment.
Independently verified fixed at 3ab49a0 for #229 7588730. Recomputed canonical identities: head 6f85545f…944e; policy branch still equals baseline 981eeea3…ca75. All 73 latest run46122244274 observations match the committed fixture field-for-field. Compiled actual evaluate gives 71 exact + 2 approved; restoring old48 policy rejects both, and independently removing each current rule rejects precisely its case. Full benchmark tests 75 passed/1 existing ignored, restored approval tests 5/5, fmt/clippy passed. Evidence /tmp/pr230-3ab-{identities,fixture-check,actual-evaluate,control-results}.json and corresponding test logs. Resolving this specific stale-binding finding. This is not final #229 acceptance: the policy must land in the trusted target base and its actual gate rerun; model/scope/performance gaps remain tracked in the #229 matrix.
There was a problem hiding this comment.
The binding became stale again after #229 ad68bda. Although that commit changes only a recovery test and documentation, product_identity hashes their committed objects too: independently recomputed identity is 9a1798d11283006ab3f2531040c0ef3c156bf6502ff971305fe5b8a6ba7d7628, not the currently approved 6f85545f…944e. Compiled actual evaluate from #230 3ab49a0 with this identity and the retained 73 observations returns 71 exact / 2 rejected (shape-id-lookup and shape-traverse-filtered); raw /tmp/pr230-ad68-evaluate.json. This is a binding check using retained observations, not a claim that the new live CI workload finished. Please rebind both rules and the fixture/tests to the final reviewed identity after confirming that run's observations; retain rejection of earlier identities. Reopening the existing thread to avoid a duplicate finding.
There was a problem hiding this comment.
Independently verified the new binding at b6be2ac. Latest #229 ad68 run46127991835 has exactly the same 73 full observation objects as758; its reported identity matches independently computed9a1798d1…7628. Actual compiled evaluate on that latest raw file now yields71exact+2approved. Removing each rule rejects precisely its case; committed/restored approval tests5/5, all-targets benchmark clippy and fmt pass, isolated clone clean. Policy product identity remains baseline981eeea3…ca75. Evidence /tmp/pr230-b6-{identity,controls,evaluate}.json and tests/restored/clippy/fmt logs; latest raw/report /tmp/pr229-ad68-ci-{evidence,report}/. Resolving the binding finding again for this exact head. #230 CI is pending; #229 still requires the actual trusted-base gate after policy merge. Overall model/scope/performance gaps remain open.
There was a problem hiding this comment.
New #229 e430f25 deletes evidence/replay files and a CI test invocation. The canonical committed-tree identity changed again to 0f4a0e614e6f9629a7840d78d5cf6389fe9b68b09e7a8d0d3bdeb796ff575e44. Independently compiled b6be2ac evaluate with that identity and retained73 observations again returns71exact/2rejected (/tmp/pr230-e430-evaluate.json). Reopening this same binding thread; b6 is valid for ad68 only. Please bind the final reviewed tree and update fixture/rejection tests after checking its actual observations. The deletion's coverage implications are under separate review; this reply establishes identity mismatch only, not a changed product response.
Where #229 and #230 stand at db80380, how to rebind #230 once #229 is final, and the plan and first findings for each open item of the reviewer's matrix: the construction peak-RSS pair measured here (base 2.63 GiB, head 2.18 GiB, one order, anonymous memory), the legacy-layout pressure tail and its candidate cause, completeness for JS and Apple graphs, the verification path, framework semantics and the node schema. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7fuhe1cFdhcfmSWfq7cpt
#229 took further commits after this approval was bound to 2d1a62b, and every commit moves its product identity. Run 46122244274 on its head 7588730 computed base 981eeea3 and head 6f85545f and the same 73 observations, row for row, as run 46094928338: two cases differ, shape-id-lookup and shape-traverse-filtered, with the response digests already reviewed. Both rules and the fixture's head identity move to 6f85545f. The earlier head identities (c428401, db80380, 2d1a62b) stay in the test that nothing but the reviewed pair is approved. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7fuhe1cFdhcfmSWfq7cpt
#229 took one more commit after 7588730: its recovery race test now waits for a lock a forked child may still hold. Run 46127991835 on ad68bda computed base 981eeea3 and head 9a1798d1 and the same 73 observations, row for row, as runs 46094928338 and 46122244274. Both rules and the fixture's head identity move to 9a1798d1; 7588730's identity joins the earlier heads that approve nothing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7fuhe1cFdhcfmSWfq7cpt
Change
This PR changes only
benchmark/src/transitions.rs. It approves the two directed semantic transitions from #229 that the fixture64 correctness gate (base-head-reviewed-semantics) rejects.#229 numbers each build's nodes from 1 (
NodeId.numbered). Before, every build continued one process-wide counter. Two cases now answer with other node IDs:shape-id-lookupff67961c…0389b155…fixture-android-00held id 4101 under the base's shared counter. Now each of the 64 graphs does. The row forfixture-android-00is unchanged.shape-traverse-filtered8931dd2e…448d1bad…fixture-android-00are unchanged. Every ID infixture-android-01is 360266 lower, which is the ID rangefixture-android-00used up in the base's shared counter.Both rules are bound by product identity:
70f908c, identity981eeea3…ad68bda, identity9a1798d1…The query digests are equal on both sides.
The rules were first bound to #229's head
2d1a62b(identityeba350a9…), then to7588730(6f85545f…). Every commit to #229 moves its identity, sob6be2acrebinds both rules to its current head. The observations did not move: all 73 are the same, row for row, on all three runs.The
pr229_approvaltest module pins these rules against the 73 observations they were reviewed on. The observations sit in the same file becausetransitions.rsis the policy file that product identities exclude; this branch's identity is still981eeea3…, equal tomain's.Verification
ad68bda: CI computed the identity pair these rules are bound to. Of the eight checks inresults/native/suite.json,base-head-reviewed-semanticsis the only one failing, and exactly these 2 of the 73 cases differ.7588730) and 46094928338 (2d1a62b), and the same four response digests on runs 45833728909, 46001831978 and 46091056203.pr229_approvalruns the real observations throughevaluate:c428401,db80380,2d1a62b,7588730), a reversed pair and a wrong pair approve nothing.cargo fmt --check,cargo test -p graphite-benchmark transitions(12 passed) andcargo clippy --all-targets -D warningspass onb6be2ac.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y7fuhe1cFdhcfmSWfq7cpt