Skip to content

apps dashboard review reader

bondiano edited this page Nov 12, 2026 · 1 revision

Review reader

Active contributors: Vassiliy Kuzenkov

Changes, Runs, Findings and Tours show different views of saved reviews: the pull request's history, one immutable result, tracked findings across revisions and one reader's private progress. Keep those identities separate when adding links or interpreting a missing artifact.

Scope: those four directories under web/src/modules/ contain 30 source files, 2 test files, a 6.7% test/source file ratio and 1 unique nonbot author on origin/main. Route pages are excluded from these counts; see the counting method.

Reading path and identities

graph LR
    Changes["/changes: visible pull requests"] --> Change["/changes/:id: history and latest result"]
    Change --> Run["/runs/:id: one saved review"]
    Run --> Finding["/findings/:id: lineage and feedback"]
    Run --> Tour["/runs/:id/tour: private reader session"]
    Finding --> Change
Loading

web/src/pages/changes/index.vue filters by repository and OPEN, DRAFT, MERGED or CLOSED state, with cursor pagination. web/src/modules/Changes/ui/ChangesTable.vue shows the latest run's execution state, coverage, open-finding count, known cost and unknown-cost calls.

web/src/pages/changes/[id].vue composes:

  • The current SCM state and head SHA.
  • ResultSummary for change.latest_run.run_id, including recommendation, coverage, execution outcome and checks.
  • The change's tracked findings, fetched independently from the saved result.
  • Revision history with successor markers, costs, unknown obligations and failure reasons.
  • Publications and events from web/src/modules/Changes/ui/ChangeLog.vue, including publication staleness and last error.

The latest result can be absent while the change and its history remain readable. web/src/modules/Runs/queries.ts converts a result/snapshot 409 into null, and the pages explain that a run may not have committed an artifact or retention may have deleted it.

Run report and disclosures

web/src/pages/runs/[id].vue fetches run status, immutable result, pinned snapshots and model attempts separately. Once it knows the change ID it also requests change metadata and tracked finding summaries. The result determines the report content; tracked summaries supply current lineage state and history links, not replacements for the saved findings.

Report area Meaning Implementation
Headline Confirmed defects/rule violations plus explicit coverage wording web/src/modules/Runs/report.ts, web/src/modules/Runs/ui/RunVerdict.vue
Problems DEFECT and RULE_VIOLATION, ordered by severity then fingerprint web/src/modules/Runs/report.ts
Finding article Anchors, explanation, conditions, consequence, suggested action/change, validation and limitations web/src/modules/Runs/ui/FindingArticle.vue
Checks Obligations, reasons they remain unknown and unreviewed paths web/src/modules/Runs/ui/RunChecks.vue
Improvements and nitpicks Findings outside the problem categories, behind a disclosure web/src/pages/runs/[id].vue
Open/rejected candidates Separate disclosures, not confirmed problems web/src/modules/Runs/ui/CandidateList.vue
Reviewed scope Units, paths and risk hints web/src/modules/Runs/ui/RunScope.vue
Run facts Independent recommendation/coverage/execution, commits, time, usage, profiles, engine and result JSON web/src/modules/Runs/ui/RunFacts.vue
Model calls Purpose, requested/resolved model, profile, ledger state, tokens and charge web/src/modules/Runs/ui/AttemptsTable.vue

web/src/modules/Runs/ui/RunDisclosure.vue uses native details/summary with a count. Important unknowns stay in the visible Checks section rather than disappearing into optional candidate or scope disclosures.

verdict() in web/src/modules/Runs/report.ts deliberately says “None confirmed in what could be checked” for an empty partial result. It uses a warning tone for incomplete coverage, and a bad tone when a problem is high or critical. Complete coverage is only complete for the reviewed scope. web/src/modules/Runs/ui/RunVerdict.vue adds an explicit limit-reached explanation; it does not collapse execution, coverage and recommendation into one green badge.

web/src/modules/Runs/ui/RunChecks.vue puts UNKNOWN obligations first, with required checks first within that group, and shows reason codes plus next evidence needed. A GENERATED_IN_CHANGE exclusion is called out as “Hidden by this change” with a manual-check instruction. Other exclusion reasons and unresolved questions remain visible too. The review engine explains how these records are produced.

The run page says that Sych is advisory and never approves, requests changes or gates merges. For playground runs it also states that the run was unpublished and is outside tracked findings and analytics, in web/src/pages/runs/[id].vue.

Pinned code links and copyable instructions

web/src/modules/Runs/report.ts builds GitHub source links from snapshot commits: HEAD uses the reviewed head and DIFF_BASE uses the diff base. TARGET_TIP deliberately has no link because this view does not provide its commit in CodeLinks; absent snapshots also leave plain location text. web/src/modules/Runs/ui/CodePlace.vue renders that fallback instead of inventing a current-branch URL.

One display caveat: web/src/modules/Runs/ui/RunFacts.vue labels the second sidebar commit “Target”, but web/src/pages/runs/[id].vue currently passes source.diff_base as links.base. That label must not be read as proof that the sidebar shows the trusted policy target tip.

agentPrompt() in web/src/modules/Runs/report.ts builds instructions from the saved finding text, including validation and additional issues at the same lines. Its preamble tells the coding agent to verify against current code and skip findings that no longer apply. web/src/modules/Runs/ui/CopyPrompt.vue uses the clipboard when available and shows selectable text on refusal. This browser convenience is not the backend's handoff artifact.

web/src/modules/Runs/ui/ProseText.vue renders ordinary text and inline backtick code spans without interpreting arbitrary model prose as HTML or full Markdown.

Finding lineage and feedback

web/src/pages/findings/index.vue supports repository, state and severity filters, cursor pagination and filtered CSV export. The UI offers OPEN, RESOLVED, DISMISSED and OBSOLETE states; its export link advertises a maximum of 10,000 newest findings. web/src/modules/Findings/queries.ts also defines change, category and rule filters for composed consumers.

web/src/pages/findings/[id].vue displays the tracked summary, immutable finding details when retained, state-change history and feedback. When retention removed the original result, web/src/modules/Findings/ui/FindingDetail.vue keeps history visible and explains the missing prose.

Triage users can record USEFUL, NOT_USEFUL, FALSE_POSITIVE or WONT_FIX with a nonblank rationale. web/src/modules/Findings/ui/FeedbackForm.vue submits scope finding; FALSE_POSITIVE and WONT_FIX warn that dismissal carries into later revisions. Idempotency follows the normalized submitted body. Feedback broadly invalidates data queries through web/src/modules/Findings/queries.ts.

A maintainer sees a waiver form only if the summary has a rule ID. A model-only finding is settled through feedback rather than pretending it names a waivable rule. The action panel is keyed by finding ID so parameter-only navigation does not transfer one finding's draft into another, in web/src/pages/findings/[id].vue. See waivers for the rule-acceptance workflow.

Reruns and cancellation

web/src/pages/changes/[id].vue shows rerun controls to writers only while the SCM change is OPEN or DRAFT. web/src/modules/Changes/ui/RerunForm.vue lets the caller choose default/deep and whether to publish, with publishing unchecked initially. It submits the current change through /v1/changes/{id}/reruns, retains an action key across retries of unchanged options and navigates to the accepted run when present.

web/src/modules/Changes/queries.ts defines active run states as QUEUED, WAITING_EVIDENCE and RUNNING. web/src/modules/Changes/ui/ChangeRuns.vue exposes cancellation only for these states and only when its parent grants the writer control. The queue view reuses the same cancellation action.

Private tours

web/src/pages/runs/[id]/tour.vue loads the newest tour as the current caller sees it. web/src/modules/Tours/queries.ts treats 404/409 as “This run has no tour” rather than a broken report.

web/src/modules/Tours/ui/TourView.vue shows coverage, session state, staleness, high/critical-finding count and required-unknown count. Steps contain purpose, explanation and code references. While the session is IN_PROGRESS, the reader can reveal a prepared answer, ask a step-specific question, complete the tour or dismiss it.

Questions send kind COMPREHENSION and waiver: null through web/src/modules/Tours/queries.ts; this screen is not a risk-acceptance form. Successful actions invalidate the current tour query. Completed or dismissed sessions stop showing those controls. Progress is private, unpublished and does not approve the change. See tours and handoff for generation and persistence behavior.

Key source files

File Why change it
web/src/pages/changes/[id].vue Change detail composition and repository-specific action gates
web/src/pages/runs/[id].vue Run reader composition and disclosures
web/src/modules/Runs/report.ts Headline semantics, finding classification, code URLs and agent instructions
web/src/modules/Runs/ui/RunChecks.vue Unknowns, evidence-needed text and exclusions
web/src/modules/Changes/queries.ts Change reads, rerun and cancel requests
web/src/modules/Findings/queries.ts Finding reads and feedback contract
web/src/modules/Findings/ui/FeedbackForm.vue Validated rationale and replay-safe submission
web/src/modules/Tours/ui/TourView.vue Reader steps and action controls
web/src/modules/Tours/queries.ts Tour reads and reveal/question/finish mutations
web/src/modules/Runs/__tests__/report.spec.ts Coverage wording, sorting, side-aware links and copy-prompt contracts
web/src/modules/Findings/__tests__/FeedbackForm.spec.ts Submitted feedback and unchanged-content retry key

Modification entry points and limits

  • For report wording or layout, start with web/src/modules/Runs/report.ts and web/src/pages/runs/[id].vue. Preserve partial/unavailable coverage and candidate-vs-finding distinctions; extend the report contracts.
  • For tracked history or feedback, start with web/src/modules/Findings/queries.ts and its detail page, not the immutable result renderer.
  • For a tour action, update the query mutation and web/src/modules/Tours/ui/TourView.vue, keeping reader progress separate from review approval and waivers.
  • The run page currently fetches only the newest findings page for the change and maps it by finding ID. Older result findings can therefore lack “History and feedback” links; the source notes this shortcut in web/src/pages/runs/[id].vue.
  • No periodic run polling is configured. Changes and Tours have no module-local spec files in this revision; the two reader-domain specs do not prove route, OAuth or tour end-to-end coverage. See frontend tests.

Clone this wiki locally