Skip to content

fix(update): honor accepted findings in dashboard tracked updates - #599

Merged
runkids merged 3 commits into
mainfrom
runkids/dashboard-accepted-findings
Oct 21, 2026
Merged

runkids merged 3 commits into
mainfrom
runkids/dashboard-accepted-findings

Conversation

@runkids

@runkids runkids commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)

Linked Issue

Resolves open question 1 of #454, raised again in #454 (comment). The follow-up requests from that comment (accepted-at time, review note, per-finding revoke) are tracked in #598.

Summary

The dashboard ignored audit findings accepted through the CLI. A tracked repo that update --force let through was blocked again on the next dashboard update, and a dashboard Force Retry was never remembered. Dashboard updates of regular skills already honored and recorded acceptances, so only tracked repos differed.

  • update.TrackedRepo now always honors accepted findings and records the ones an override lets through. TrackedRepoOptions.AcceptedFindings (CLI true, dashboard false) is removed, and so is install.AuditGate.HonorAccepted, which no caller set to false anymore.
  • Dashboard agent tracked repos passed an empty source dir, so acceptedKeyPath fell back to the repo's parent. For a nested repo (agents/team/_team) that stored acceptances in agents/team/.metadata.json under _team, while the CLI uses agents/.metadata.json under team/_team. The dashboard now passes the agents source, as the CLI does (this also runs the same tracked-metadata refresh the CLI runs).
  • A failure to record acceptances is appended to the dashboard result message instead of being dropped.
  • Docs: update.md Accepted Findings (English and ja, ko, zh-Hans, zh-Hant) and wiki/cli-development.md.

Tests

  • internal/server: TestUpdateTrackedRepo_ForceAcceptsFindings (was ForceDoesNotAcceptFindings): a dashboard force update records the finding, the same finding no longer blocks, a new finding still blocks and rolls back.
  • internal/server: TestUpdateTrackedRepo_AgentRepoAcceptsFindingsAtAgentsSource: nested agent repo records under the agents source with the CLI's key and is not blocked again. Fails with the old empty source dir.
  • internal/update: TestTrackedRepo_AcceptedFindings reduced to the always-on case.

A follow-up commit reloads the agents store (not the skills store) when an agent repo's metadata refresh changes it, and drops the empty-SourceDir guard that no caller uses anymore.

Run: make check in a devcontainer-image container (pass), python3 scripts/ai-context.py check (ok).
Not run: the dashboard in a browser, Windows, website build.

Not covered

  • The Agents Updates tab sends agent names to /api/update/stream, which resolves names only against the skills source (handler_update_stream.go), so agent updates from that tab do not reach updateAgent. This predates this PR. From the UI, agent tracked repos are reached only through the resource detail page, which does not force, so they honor acceptances; recording through the dashboard needs POST /api/update with kind: agent. Left for a follow-up.
  • No server test for project mode, top-level agent repos, or the batch and stream paths; all of them go through updateTrackedRepo.

Checklist

  • I've read CONTRIBUTING.md
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

The dashboard ignored findings accepted through the CLI, so a tracked repo
that `update --force` let through was blocked again on the next dashboard
update, and every dashboard Force Retry had to be repeated. Regular skill
updates in the dashboard already honored and recorded acceptances, so only
tracked repos differed.

Tracked-repo updates now always honor accepted findings and record the ones
an override lets through, for both callers. The opt-in option and the
AuditGate flag it fed are removed, since no caller turns them off.

Dashboard agent tracked repos passed an empty source dir, so a nested repo
kept acceptances in its group folder under a different key than the CLI.
They now pass the agents source, as the CLI does.
Dashboard agent tracked repos now refresh metadata in the agents source,
but a metadata change reloaded the skills store, leaving the agents store
as it was until the next request. Reload the store that matches the source.

Every caller of update.TrackedRepo now passes a source dir, so the
empty-dir guard and its doc no longer describe a supported mode. The new
agent test reuses the tracked fixture instead of rebuilding it.
@runkids

runkids commented Oct 21, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T15:33:09.196089Z 7b952c0 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit 7b952c0 into main Oct 21, 2026
8 checks passed
@runkids
runkids deleted the runkids/dashboard-accepted-findings branch October 21, 2026 15:28
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 7b952c02a9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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