Repository navigation
fix(update): honor accepted findings in dashboard tracked updates - #599
Merged
Merged
Conversation
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.
5 of 7 tasks
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.
Owner
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
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 --forcelet 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.TrackedReponow always honors accepted findings and records the ones an override lets through.TrackedRepoOptions.AcceptedFindings(CLItrue, dashboardfalse) is removed, and so isinstall.AuditGate.HonorAccepted, which no caller set tofalseanymore.acceptedKeyPathfell back to the repo's parent. For a nested repo (agents/team/_team) that stored acceptances inagents/team/.metadata.jsonunder_team, while the CLI usesagents/.metadata.jsonunderteam/_team. The dashboard now passes the agents source, as the CLI does (this also runs the same tracked-metadata refresh the CLI runs).update.mdAccepted Findings (English and ja, ko, zh-Hans, zh-Hant) andwiki/cli-development.md.Tests
internal/server:TestUpdateTrackedRepo_ForceAcceptsFindings(wasForceDoesNotAcceptFindings): 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_AcceptedFindingsreduced 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-
SourceDirguard that no caller uses anymore.Run:
make checkin a devcontainer-image container (pass),python3 scripts/ai-context.py check(ok).Not run: the dashboard in a browser, Windows, website build.
Not covered
/api/update/stream, which resolves names only against the skills source (handler_update_stream.go), so agent updates from that tab do not reachupdateAgent. 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 needsPOST /api/updatewithkind: agent. Left for a follow-up.updateTrackedRepo.Checklist
make check) — for code changes