You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closed as superseded: upstream #1494 independently fixed the empty lifecycle legend and explicit final-key case in commits 550f6f5 and ed1bbcd. Those changes reached dev in #1496 (88f26d2). This PR was not merged; its author retains credit for the separate investigation and proposed patch, while the merged commits are credited to their own authors. The upstream implementation keeps the change-review legend behavior and adds an explicit-final regression.
Latest review follow-up
Head 1179003 also preserves an explicitly visible final-state key when all type keys are hidden. This case failed before the follow-up and passed after it; the three focused cases for an empty ordinary legend, change-review final key, and explicit final visibility all passed. The full 15-test legend suite and golden suite passed at the preceding head. Canonical Node 22 ZIP: 446 entries, SHA-256 acefc1f4e262cf46b04cd90b8ceb8e03cf8290b3a6313552322a323ece60f1e9. New CI is pending.
The contributor personally confirmed current head 1179003f6438b98af4fd672ec9649ff25c534b8e and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.
Problem and value
The lifecycle change-review merge in #1491 makes an ordinary lifecycle diagram show a lone “final state” legend after all its visible legend kinds are disabled. The existing empty-legend contract fails on clean dev 79ae742b5 and in #1452 CI.
Summary
Keep the final-state key when another legend entry is visible or change review is active.
Suppress the key for an otherwise empty ordinary legend; keep explicit final visibility and hidden mode.
Add a regression that change review still explains final states.
Evidence
Before:node --test --test-name-pattern='visibility overrides apply after' test/legend-contract.test.mjs failed against unmodified dev: lifecycle SVG contained an unexpected Legend.
After:node --test test/legend-contract.test.mjs passed 15/15, including the previously failing empty-legend case and the new change-review case. node test/golden.mjs passed.
Canonical Node 22 ZIP rebuilt: 446 entries, SHA-256 595aacf5be407f9a1407b9769e3abeb0fe6522d8a19c2ea227870fc4905dd106. Its unpacked renderer matches the validated source.
AI assistance and accountability
Codex assisted investigation, code, testing and this PR description.
I reviewed the submitted changes and explanation, understand their impact, and can answer questions about them.
Stability impact
This changes the lifecycle legend only when the normal legend would otherwise be empty. Change-review final-state keys and explicit hidden/final overrides remain covered. Revert the renderer and regenerated ZIP to roll back.
Visual evidence
The affected legend is covered by rendered-SVG assertions; no final-artifact personal perceptual review has been performed.
Merge Danger
Door: two-way. Blast radius: lifecycle diagrams.
Personal confirmation: the accountable contributor personally reviewed head 1179003f6438b98af4fd672ec9649ff25c534b8e and its PR explanation.
Summary: The PR (tt-a1i/archify #1493, author outlier27-cell, base dev) meets the Contribution scope criteria. It is a narrow regression fix with a concrete reproduction and a clear rollback pat…
Validation Evidence
Summary: The evidence covers the changed lifecycle legend behavior. The material claims are supported, with minor gaps noted below. Nothing here is a failure condition. Revisions evaluated - B…
Full details: Contribution Scope
Explanation
Summary: The PR (tt-a1i/archify #1493, author outlier27-cell, base dev) meets the Contribution scope criteria. It is a narrow regression fix with a concrete reproduction and a clear rollback path. Policy used: CONTRIBUTING.md, REVIEWING.md, and .github/PULL_REQUEST_TEMPLATE.md. The check requires the PR to explain the user problem, one focused slice, compatibility impact, and failure/rollback behavior. It also requires a linked issue or maintainer decision for new contracts or broad behavior. Narrow fixes may use a concrete reproduction. Evidence from the description and diff: - Problem: The description states the user problem. #1491 makes an ordinary lifecycle diagram show a lone "final state" legend when its other legend kinds are disabled. It cites a failing existing contract on clean dev79ae742 and the #1452 CI run. This is a concrete reproduction. - Focused slice: The code diff is one changed condition in archify/renderers/lifecycle/render-lifecycle.mjs (line ~1020). It adds a test pair in test/legend-contract.test.mjs. The rest is the regenerated archify.zip. Commits 9ac1e71 and 1179003 stay within the lifecycle legend. I found no unrelated source changes. - Compatibility: The "Stability impact" section says the change applies only when the normal legend would otherwise be empty. It states that change-review final keys and explicit final/hidden overrides are preserved. The new tests cover both cases. - Failure/rollback: The PR states "Revert the renderer and regenerated ZIP to roll back." - Base and head: The PR names the comparison base (79ae742) and candidate head (1179003). - New contract: The change restores an existing empty-legend contract. It does not add a new contract or default, so no new linked issue is required. - Template items: AI disclosure, accountable contributor, and the personal confirmation are present. Tests run and stability sections are present. Visual evidence is marked as not perceptually reviewed, which the template allows. Unverified or optional notes (non-blocking): - The explicit impact-class label from the CONTRIBUTING table is missing. The text "Blast radius: lifecycle diagrams" conveys the same scope in equivalent prose. - The ZIP SHA-256 in the original Evidence section (595aacf5…) differs from the follow-up (acefc1f4…). The follow-up says it applies to head 1179003. Stating which SHA belongs to which head would remove ambiguity. - No linked issue exists. Related PRs #1491 and #1452 are cited, and the fix is narrow, so this is acceptable.
Full details: Validation Evidence
Explanation
Summary: The evidence covers the changed lifecycle legend behavior. The material claims are supported, with minor gaps noted below. Nothing here is a failure condition. Revisions evaluated - Base: 79ae742b5 (dev). - Head: 1179003f6438b98af4fd672ec9649ff25c534b8e. - Commits: 9ac1e71f (suppress final key in empty legend), then 1179003f (honor explicit final visibility). - Diff: one renderer line in archify/renderers/lifecycle/render-lifecycle.mjs, two new tests, and a regenerated archify.zip. Observed by me in the repo - The change adds the entries.length || changeReview.active || final.visible === true gate. The final key is hidden only when no other legend kind is visible and change review is inactive. An explicit final.visible: true keeps it. - test/legend-contract.test.mjs has 16 tests at head and 14 at base. The new tests cover change review with hidden type keys and explicit final visibility. - The existing "empty legends leave no chrome" test (around lines 235-251) hides every lifecycle kind except final. It covers the empty-legend regression path. No pre-existing test sets final.visible: true, so the new explicit-visibility test is the only check for that branch. - archify.zip at head has SHA-256 acefc1f4…f1e9 and 446 entries. This matches the follow-up claim. Its render-lifecycle.mjs is byte-identical to the head source. - The golden fixture agent-run.lifecycle.json has no legend config and no change review. The follow-up clause only widens rendering when explicit final visibility is true. So the golden output is unaffected, and the reused golden pass at 9ac1e71f is valid for the follow-up. Author-reported (not reproduced; tests not run in this sandbox) - Before-fix failure of visibility overrides apply after on dev 79ae742b5. - node --test test/legend-contract.test.mjs passed 15/15 at 9ac1e71f. - node test/golden.mjs passed at 9ac1e71f. - The three focused cases passed at 1179003f. - The #1452 CI failure link. - Node 22 ZIP build details. Remaining gaps (non-blocking) 1. The full 16-test legend-contract suite is not reported at head 1179003f. The 15/15 result is from 9ac1e71f. Only the three focused cases are reported at head. The changed branch is covered by its own test, so the consequence is low. Smallest check: pnpm run test:focus test/legend-contract.test.mjs on 1179003f. Owner: contributor, or the pending CI run. 2. The Evidence section still shows the older ZIP hash 595aacf5… without marking it as superseded. The follow-up gives the current hash acefc1f4…, which I verified. Consequence: confusion only. Owner: contributor, to label the superseded hash. 3. Visible behavior has rendered-SVG assertions only. No before/after SVG or screenshot is linked, and no perceptual review was done. The PR discloses this. The change is presence/absence of a legend entry, which static SVG assertions cover. Optional: link a before/after SVG of an all-hidden lifecycle diagram for maintainer review. Owner: contributor. 4. CI for head 1179003f is pending. Pending CI alone is not a gap here, because the other evidence covers the material claims. Evaluated against: CONTRIBUTING.md "Choose evidence by impact" (behavior change, shared legend contract) and the "Link actual validation results" requirement.
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.
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
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.
Disposition
Closed as superseded: upstream #1494 independently fixed the empty lifecycle legend and explicit final-key case in commits 550f6f5 and ed1bbcd. Those changes reached dev in #1496 (88f26d2). This PR was not merged; its author retains credit for the separate investigation and proposed patch, while the merged commits are credited to their own authors. The upstream implementation keeps the change-review legend behavior and adds an explicit-final regression.
Latest review follow-up
Head 1179003 also preserves an explicitly visible final-state key when all type keys are hidden. This case failed before the follow-up and passed after it; the three focused cases for an empty ordinary legend, change-review final key, and explicit final visibility all passed. The full 15-test legend suite and golden suite passed at the preceding head. Canonical Node 22 ZIP: 446 entries, SHA-256 acefc1f4e262cf46b04cd90b8ceb8e03cf8290b3a6313552322a323ece60f1e9. New CI is pending.
The contributor personally confirmed current head
1179003f6438b98af4fd672ec9649ff25c534b8eand its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.Problem and value
The lifecycle change-review merge in #1491 makes an ordinary lifecycle diagram show a lone “final state” legend after all its visible legend kinds are disabled. The existing empty-legend contract fails on clean dev
79ae742b5and in #1452 CI.Summary
Evidence
node --test --test-name-pattern='visibility overrides apply after' test/legend-contract.test.mjsfailed against unmodified dev: lifecycle SVG contained an unexpected Legend.node --test test/legend-contract.test.mjspassed 15/15, including the previously failing empty-legend case and the new change-review case.node test/golden.mjspassed.595aacf5be407f9a1407b9769e3abeb0fe6522d8a19c2ea227870fc4905dd106. Its unpacked renderer matches the validated source.AI assistance and accountability
Stability impact
This changes the lifecycle legend only when the normal legend would otherwise be empty. Change-review final-state keys and explicit hidden/final overrides remain covered. Revert the renderer and regenerated ZIP to roll back.
Visual evidence
The affected legend is covered by rendered-SVG assertions; no final-artifact personal perceptual review has been performed.
Merge Danger
Door: two-way. Blast radius: lifecycle diagrams.
Personal confirmation: the accountable contributor personally reviewed head
1179003f6438b98af4fd672ec9649ff25c534b8eand its PR explanation.