Repository navigation
fix: Template security audits open exact-release details - #4549
Conversation
Remove redundant declared-contents sidebar metadata and reuse shared audit findings without inventing Template scanner coverage. Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
Worked on by: - @Patrick-Erichsen Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com> OpenClaw-Publication: a6da8fe5-77ea-4351-984c-8ddf93d33dac
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Real-browser proof — Template auditsPassing candidate: actual local ClawHub + task-owned local Convex, anonymous browser, dark theme. Desktop 1440×1040; mobile 390×844. No API interception or production backend. Fixture limitation: Music Manager is an explicitly local, simulated fixture. Both the AIG MCP-shaped reports and evidence-judge verdicts are simulated; this proves UI behavior, not live scanner quality. The stored fixture has no archive hash, so “Not recorded” is intentional. After — successful resultBefore — expected limitationBaseline has the redundant block and a non-clickable summary. Exact historical release and stored evidenceMobile
WalkthroughThe recording opens the latest audit, returns to the Template, follows the historical v1.1.0 deep link, expands evidence, and reloads it. Captions are outside the unmodified product pixels; no speed changes or simulated clicks. walkthrough.mp4Validation and source
No merge or manual deployment performed. Raw captures and logs remain local; no proof media or generated reports are committed. |
|
Codex review: needs changes before merge. What this changesThis PR links Template security summaries to release-pinned audit pages using the shared audit UI. Example: Inspect Music Manager release 1.1.0 while its latest release is 1.2.0.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR addresses a real gap on main and has useful browser evidence, but one error-handling defect needs repair before merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherTemplate routes resolve package ownership and fetch an exact release from the registry API, then pass its stored scanner reports and judge verdict to shared audit components. flowchart LR
A[Template summary] --> B[Version pinned audit route]
B --> C[Shared package ownership lookup]
C --> D[Exact release registry API]
D --> E[Stored reports and verdict]
E --> F[Shared security audit page]
Technical reviewBest possible solution: Keep the shared audit implementation and preserve release-fetch errors so only genuinely missing releases render not-found. Do we have a high-confidence way to reproduce the issue? Main's static summary establishes the original navigation gap, and source tracing establishes that a successful package lookup followed by a release HTTP 429 or 500 renders not-found; no target code was executed. Is this the best way to solve the issue? The shared page and shared ownership lookup are the right fix location; a separate Template audit renderer would duplicate existing behavior, but the release fetch must expose errors to the new route. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c3541607d904. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 4:53 PM ET / 21:53 UTC. |
Opt exact-release audits into error propagation while preserving genuine 404 and legacy best-effort reads. Exercise the real API helper over local HTTP failure and recovery fixtures. Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
Worked on by: - @Patrick-Erichsen Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com> OpenClaw-Publication: 4bf89b22-1043-4f06-b4e5-a035c9877d6f





What Problem This Solves
Fixes: Template security summaries cannot open their release audit, while the sidebar repeats declared-contents metadata.
User Impact
Users can open a canonical, version-pinned Template audit, inspect the stored findings and final verdict separately, and return to the Template. The redundant Declared contents block is removed; Current version, install readiness, manifest warnings, and dependency inventory remain intact. No rescan/export permissions are added.
Why This Change Was Made
Reuse the shared security summary, audit page, and finding components instead of a third Template-only audit UI. Detail and audit share the scoped/unscoped ownership lookup; the audit route is non-nested so historical deep links do not load or render the latest detail page. Stored MCP, supplemental/dynamic, and legacy findings retain their raw IDs, severity, evidence, and recorded provenance. Missing/pending/error reports never create clean scanner cards or skill-only checklists.
The public report projection records scanner version but not driver/profile identity. The page describes the current AIG MCP + evidence-only judge pipeline without relabeling every historical release as MCP.
Evidence
Review repair: exact-release audits now opt into error propagation in the existing package API helper. Genuine HTTP 404 remains missing, HTTP 429 retains rate-limit metadata, and server/network failures reach the existing retry UI. Legacy callers keep their null fallback. The new tests serve actual local HTTP failures and subsequent recovery through the real helper/loader; one low-level fetch rejection test checks error identity. No UI/copy changes or new media uploads; the existing browser proof is retained. Error/retry verification for this repair is transport integration testing, not a new browser screenshot.
bun run ci:static: passed (existing dependency advisory warnings).bun run ci:types-build,bun run ci:packages,bunx tsc -p convex/tsconfig.json --noEmit, andgit diff --check: passed.bun run ci:unit -- --maxWorkers=8: not green — 9,639 passed, 7 failed, 6 skipped. The seven failures are in untouched socket-path, scanner-source/Go, shell workflow-fixture, and Codex-selector tests; missing Go and host shell/tool selection remain local limitations. No claim that full coverage passed.http://127.0.0.1:3662, baselinec3541607d9049b8524949304aa9b10432e3118c2at port 3663, task-owned local Convex API/site at 3660/3661. Chromium, desktop 1440×1040 and mobile 390×844, dark theme; summary → exact release → back/reload and historical deep links passed, as did anonymous reads, wrong-owner not-found, one-main rendering, and raw MCP/supplemental finding display. Screenshots and a captioned recording are attached in the proof comment.devTemplateAuditFixtures:seed, unscopedopenclaw-music-managerunderameliomansour; latest 1.2.0 and historical 1.1.0. Scanner reports and judge verdicts are simulated local UI fixtures, not live scanner-quality evidence. No API interception or production backend. The fixture has no stored archive hash, so the audit truthfully shows “Not recorded.” The baseline-only Vite filesystem allowance permits the shared local dependency directory; product UI is unchanged.No merge or deployment is included.
Requested by and co-authored with @Patrick-Erichsen.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by