Skip to content

docs(web): add UI ADRs and dependency upgrade runbook - #187

Closed
oly-agents[bot] wants to merge 3 commits into
mainfrom
docs/web-adrs-dependency-runbook
Closed

oly-agents[bot] wants to merge 3 commits into
mainfrom
docs/web-adrs-dependency-runbook

Conversation

@oly-agents

@oly-agents oly-agents Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

Add web/docs/adr/ with an index (Nygard format, how to add an ADR) and
three ADRs written from the code and git history:
- 0001 react-ui to pattern-ui migration
- 0002 URL filter state with nuqs
- 0003 pagination and auto-refresh on the list pages

Add web/docs/runbooks/dependency-upgrade.md for Next.js, React,
pattern-ui and CVE-driven upgrades, with the repo's pnpm commands, the
release age gate, the frozen lockfile, CI checks and rollback.

Link the docs from web/README.md, web/AGENTS.md and AGENTS.md, and mark
the react-ui names in .agents/skills/heimdall-ui.md as out of date.

ClickUp: https://app.clickup.com/t/1dfq9k64t04

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>
@argus-pattern

argus-pattern Bot commented Nov 30, 2026

Copy link
Copy Markdown

👀 Reviewing fc8c850.

Comment thread web/docs/runbooks/dependency-upgrade.md Resolved
Comment thread web/docs/runbooks/dependency-upgrade.md Resolved

@argus-pattern argus-pattern Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argus review of fc8c850, docs only. I posted 3 inline findings: 1 Medium, 2 Low.

What I checked:

  • ADRs 0001–0003 against the code and history. I compared them with package.json, pnpm-workspace.yaml, the lockfile, AppRoot.tsx, vitest.config.mts, the useQueryState keys and encodings in Jobs, Commands and Clusters, parseTags/serializeTags, useClientPagination, AutoRefreshProvider/AutoRefreshSelect, fetchJobs, job_dal.go (defaultPageSize = 101, resolveSortColumns) and the limit 101 SQL. I also checked the cited commits and PRs (#1, #8, #27, #56, #109, #149, #159). Apart from the persona reference flagged inline, they are accurate. Where no reason was recorded, the ADRs say so.
  • Runbook commands against pnpm 12.15.0. pnpm audit --fix override|update and pnpm peers check exist. I also checked build.sh, the CI workflow, the Dockerfile (full web/ with node_modules in the runtime image), entrypoint.sh, dev-stack.sh --build, src/proxy.ts, and the nextjs-agent-rules block. In the Next 16.4.3 tarball I checked experimental.agentUpgrade: 'security' and dist/docs.
  • Requirements against the ClickUp scope. The ADR index with format and template, the three ADRs, the runbook covering Next, React, pattern-ui and CVE bumps, and the links from web/README.md, web/AGENTS.md and the root AGENTS.md are all present. There are no application code changes.

The main gap: the React section says the package.json React runs in the client. In fact the App Router bundles its own React, which changes how a React CVE has to be fixed.

@oly-agents

oly-agents Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Escalating 1 section that I cannot resolve: the failed build check (job) on fc8c850.

  • Failure: src/test/integration/clusters.test.tsx > Clusters list page > applies a filter typed in the filter menu, then removes it: AssertionError: expected null to be '7.1.0' (the waitFor at line 56). The other 107 tests passed.
  • Why I think this PR did not cause it: the PR changes only Markdown files (web/docs/, README.md, AGENTS.md, .agents/skills/heimdall-ui.md). It changes no code that the test runs. build passed on main at 8d77a4b.
  • The test is flaky: I ran the test file 5 times on this branch with Node 26.13.1 and pnpm 12.15.0. It failed 4 times and passed 1 time. The full pnpm test run passed (108 of 108). The test waits for the last request to have version=7.1.0 after user.type. The timing of that request is not stable.
  • Why I did not re-run it: oly ci-rerun was refused with ci_rerun_disabled. I did not push an empty commit to re-run CI.
  • What a human must do: re-run the failed build job on this PR. Fix the flaky test in a separate PR, or in this PR if you want that. Fix in this PR?

- Runbook: the App Router runs the React that Next.js bundles, in the
  browser too, so a React CVE is fixed by a Next.js upgrade.
- Runbook: give the in-range React update command first, and --latest
  only for a new major version.
- ADR 0001: name the correct react-ui references in the agent docs.
- Frontend reviewer persona: add an out-of-date note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>
Comment thread web/docs/runbooks/dependency-upgrade.md Resolved

@argus-pattern argus-pattern Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argus follow-up review of 0e4eba2. I reviewed only the new commit since fc8c850, which is "docs(web): correct React bundling and react-ui references". It changes 3 files and is docs only.

Earlier comments

  • ✅ addressed: Runbook misstates which React the App Router runs (Medium). The "Upgrade React" › Next.js bullet now says that the App Router runs the React that Next.js bundles, in the browser too. The CVE step 2 sends React CVEs to a Next.js upgrade.
  • ✅ addressed: ADR names the wrong react-ui references in the agent docs (Low). The ADR 0001 bullet now names the correct references in each file, and frontend-reviewer.md has the same "Out of date" note as heimdall-ui.md.
  • ✅ addressed: Routine React upgrade command can jump a major version (Low). Minor and patch upgrades now use pnpm update without --latest. --latest is only for a major version, after the peer check.

New in this commit
I posted 1 inline finding (Low) on the new CVE step 2 sentence. The bundled React in Next.js has no package version, so pnpm audit and Wiz cannot see it. If you upgrade only Next.js, the lockfile react still triggers the advisory, and the step 5 audit check fails. The fix is to also upgrade react/react-dom in package.json and to add a command that reads the bundled version. I checked this against the next@16.4.3 tarball: dist/compiled/react/package.json is react-builtin with no version, and cjs/react.production.js has 19.3.0-canary-278794d7-20261002.

The rest of the commit is accurate. Both persona and skill files still name @patterninc/react-ui where their notes say they do. The anchors #upgrade-react and #upgrade-nextjs resolve. No application code changed.

The React that Next.js bundles has no package version, so pnpm audit
and Wiz report only react/react-dom from the lockfile. For a React CVE,
upgrade Next.js and also react/react-dom, and check the bundled version
with grep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>

@argus-pattern argus-pattern Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argus follow-up review of 9ac7cac. I reviewed only the new commit since 0e4eba2, which is "docs(web): close React CVE scanner findings in the runbook". It changes 1 file (web/docs/runbooks/dependency-upgrade.md, +2/−2) and is docs only.

Earlier comments

  • ✅ addressed: React CVE step leaves the scanner finding open and cannot be checked (Low). "Urgent CVE fix" › "2. Fix a direct dependency" now says to do two things for a React CVE. First, upgrade Next.js and check the bundled version with the grep command. Second, upgrade react/react-dom in package.json so that pnpm audit and Wiz clear. This matches the step 5 audit check. I resolved the thread.
  • The three findings from the first review (fc8c850) were already ✅ addressed in 0e4eba2. Nothing in this commit reverts them.

New in this commit
No new findings. Here is what I checked:

  • The grep command. I ran it against the next@16.4.3 tarball. grep -o 'version = "[^"]*"' …/compiled/react/cjs/react.production.js prints version = "19.3.0-canary-278794d7-20261002".
  • The "Upgrade React" › Next.js bullet. The new sentences about react-builtin and closing the scanner finding are accurate and consistent with step 2. The new #urgent-cve-fix anchor resolves to ## Urgent CVE fix.
  • Scope. No application code changed.

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