Skip to content

fix: restore lifecycle final-legend guard and settle workbench Back clicks - #1494

Merged
tt-a1i merged 3 commits into
mainfrom
fix/v3.3.2-main-ci
Nov 25, 2026
Merged

tt-a1i merged 3 commits into
mainfrom
fix/v3.3.2-main-ci

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Problem and value

  • Related issue / agreed discussion, or why this is a purely mechanical documentation correction: main CI failed after the v3.3.2 promotion (release: promote dev and prepare v3.3.2 #1492): https://github.com/tt-a1i/archify/actions/runs/45636199326. The failing jobs are full-regression (4) and browser-regression (1). webm-artifact and test (22) are gates that fail because of those two.
  • Actual problem on the current base, intended outcome, and why it is worth maintaining:
    • Product bug (lifecycle legend): merge commit edc2d8f dropped the entries.length && guard in render-lifecycle.mjs legendCatalog(). When every semantic legend entry is hidden, the diagram still draws a legend containing only the final ring, which test/legend-contract.test.mjs:213 forbids. The fix adds the ring only when a semantic or change entry exists, so change-review diagrams (test/change-marks.test.mjs:369) keep it.
    • Flaky browser test: in test/code-analysis-standalone-browser.test.mjs:145, the reader's grid-template-columns transition moves the Back buttons under the pointer. Under CI load the source Back click lands on the parent and the next Back click misses, so the selection stays COUP-…. Both Back handlers update state synchronously, so this is test timing, not a UI bug. The test now waits for the transition and for the finding pane to return before clicking, and asserts that the overview opens.
  • Before/after evidence entry point: Tests run.

AI assistance and accountability

  • AI use: implementation, investigation, tests, or review assistance
  • Tools and model (if known), and assisted areas: Claude Code (Claude Opus 5.5): lifecycle diagnosis and fix. Codex worker (gpt-6.2-sol): fix review, browser-flake root cause, test change, shard runs.
  • Accountable contributor: @tt-a1i
  • Problem origin: main CI failure after release promotion
  • I reviewed the submitted changes and explanation, understand their impact, and can answer questions about them. Validation results and gaps are recorded below.

Stability impact

  • Impact class and changed behavior/shared callers: Lifecycle legend only. A lifecycle diagram whose semantic entries are all hidden no longer shows a lone "final state" legend; behaviour is otherwise unchanged. The other renderers touched by edc2d8f were checked and none lost a comparable guard. The second change is test-only.
  • Existing behavior preserved / intended compatibility changes / failure behavior: Default legends and change-review legends (final ring plus change entries) are unchanged.

Tests run

Base dd71ddd3a (origin/main), macOS.

  • node --test test/legend-contract.test.mjs test/change-marks.test.mjs: 53 pass / 0 fail. Lifecycle tests: 81 pass / 0 fail.
  • code-analysis-standalone-browser.test.mjs ×10 with Chrome: before the fix 8 pass / 2 reproduce the CI failure; after the fix 10 / 10 pass, plus 5 / 5 on an independent rerun. 4× CPU throttling probe: 6 / 6 pass after the fix.
  • node scripts/run-tests.mjs --shard=4/4: 1,131 pass / 0 fail.
  • pnpm run test:browser --shard=1/4 (full profile): 139 / 139 pass on retry. One run hit a single Explainer keyboard-focus assertion that passed on retry; that test is unrelated to this change but may also be flaky.
  • Gap: Linux CI, and the downstream webm-artifact and test (22) gates, will run on this PR.

🤖 Generated with Claude Code


Devin Review

…licks

- Lifecycle: edc2d8f dropped the entry-count guard, so hiding every
  semantic legend entry still drew a legend holding only the final ring
  (legend-contract "empty legends leave no chrome"). Add the ring only
  when a semantic or change entry exists; change reviews keep it.
- Code Analysis standalone browser test: the reader's grid width
  transition moved the Back buttons under the pointer, so under CI load
  the click landed on the parent and the selection stayed set. Wait for
  the width transition and the finding pane to return before clicking,
  and assert the overview opens. Reproduced 2/10 before, 0/10 after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Reviewed base dd71ddd to HEAD (2 files, +13/−2). Changes:

  • render-lifecycle.mjs: the final-state legend ring renders only when a regular or change-review entry exists. Hidden mode and disabled final entries still suppress it.
  • Browser test: waits for the reader's grid-width transition before and after the Back click, then asserts the overview opens.

Author reports (not re-run here): 53 and 81 node-test passes, 1,131 passes on shard 4/4, and browser-test passes after the timing change. Linux CI and downstream gates are untested. No observed CI result for this head.

Static diff review does not establish browser or visual acceptance.

The lifecycle legend adds a final-state entry only when regular or change-review entries exist and the existing visibility and final-state conditions are met. The standalone browser test waits for reader column transitions during source-to-finding navigation and checks that Back opens the overview.

Estimated code review effort: 2 (Simple) | ~8 minutes

Possibly related PRs

  • tt-a1i/archify#1491: Changes legend behavior in change-marked diagrams, which this PR’s legend condition references.
Merge Risk: Minimal · previous review 550f6

This restores the lifecycle legend behavior when all semantic entries are hidden and stabilizes a flaky browser test. No concrete merge-blocking risk was found.

Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Contribution Scope Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Validation Evidence Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between dd71ddd and 550f6f5.

Files selected for processing: 2

  • archify/renderers/lifecycle/render-lifecycle.mjs
  • test/code-analysis-standalone-browser.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Rebuilt with official Node 22.23.2 (zlib 1.3.1-e00f703); only
archify/renderers/lifecycle/render-lifecycle.mjs changes inside the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
devin-ai-integration[bot]

This comment was marked as resolved.

An explicit legend.entries.final.visible: true now keeps the final-state
key even when no other entry remains; the default still drops a lone
final ring. Adds a legend-contract regression and regenerates archify.zip
(official Node 22.23.2, zlib 1.3.1-e00f703).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tt-a1i
tt-a1i merged commit a0199aa into main Nov 25, 2026
23 checks passed
@github-actions

Copy link
Copy Markdown

Thanks @tt-a1i for contributing to Archify! Your work is now part of the project.

Archify contribution card for tt-a1i

Download your card

View contribution

github-actions Bot added a commit that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant