Repository navigation
Conversation
…ordered tool inventories (#1565-#1567) Design for three independently mergeable PRs: - PR-1 (#1567): durable per-server tool baseline marker. - PR-2 (#1566): review fingerprint (current_hash) and expected_hashes on security/approve and tools/approve, 409 'out of date', one-section server approval; matches the macOS client in #1572. - PR-3 (#1565): capture sequence stamped by the ListTools leader; ordered, locked inventory apply and gated StateView publish. Related #1565 Related #1566 Related #1567
Deploying mcpproxy-docs with
|
| Latest commit: |
4c4ce94
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fbc8e2a4.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://117-review-bound-approvals.mcpproxy-docs.pages.dev |
Dirty guard covers enable and synthesized approvals; changed-again fault variant is a PR-2 composition test. Related #1565
…while review-dirty, lenient-empty never clears dirty)
…ty refusal on the direct surface, PR-3 declared scope)
…ed before record writes; marker abort is an incomplete capture under FR-018)
…rs only after StateView publish; output-schema backfill refreshes safety hints)
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 38150789964 --repo smart-mcp-proxy/mcpproxy-go
|
…s against approval records; snapshot, stamp and definitions staged until StateView publication is accepted)
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Member
Author
|
Superseded: the Spec 117 design ships inside #1604 (PR-1), merged. |
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.
Summary
Design only (speckit,
specs/117-review-bound-approvals/). It covers three follow-ups to the UX-02 per-server approval lock (#1571):I reproduced two of them live on
main(ee7834e71) with an isolated harness on a high port:approved_by: auto-baseline), andcall_tool_destructivereached the upstream.security/approvewith a staleexpected_hashesreturned 200 and activated it.PR split (each is a separate, self-contained PR; unbound clients keep working)
PR-1 and PR-3 have no dependencies. PR-2 is cut after PR-1 merges, because its empty-review guarantee needs the durable marker.
tool_baseline_decisionsbucket.serverHasBaseline = marker OR approved/changed record. Trusted discovery and every server-approval commit set the marker. It is cleared only with the server's records. Blind-approval copy changes in Web and CLIcurrent_hash(approval-hashed definition plus the 4 safety hints,rv1-opaque).expected_hashesonsecurity/approveandtools/approve(toolsandapprove_all). A mismatch returns 409 "out of date" and writes nothing. A server approval runs as one locked section: validate → mark → integrity baseline + blocks → promote the reviewed pending tools → storage unquarantine. There is no promote-all after the unquarantine. Web and CLI send the bindingListToolsleader stamps a process-global capture seq into an immutable per-flight result. The inventory apply (records, deletes, eviction, index, last-good snapshot) runs in one section under the per-server lock and writes nothing when the capture is older than the applied one. The StateView publish is gated per server. Every ineligibility writer (quarantine and disable: toggle, bulk, PATCH, config reload, restart persist) stores and purges under the lock. Replaced clients are retired outsidemanager.mu. A capture whose record writes fail is uncommitted: the server becomes review-dirty, and every reachability transition (approve, enable, baseline promotion) is refused until a newer full captureKey decisions
current_hash, but it carries the review fingerprint, not the storage hash;{}binds an empty or blind review;tools/listactually runs, not before the call.Open questions (the design proceeds with these defaults)
native/.mcpproxy security approveand the MCPquarantine_securityapprove operations stay unbound for now. Binding them is a follow-up that needs a golden update.Review
I ran a cross-model design review with opencode gpt-6.1-sol. All 10 rounds allowed by the round cap were used, and each one returned FINDINGS. Every finding was verified against the code, and all were accepted and resolved. Each round's resolutions are logged in
research.md.changedrecords.Sol confirmed in rounds 6, 8 and 10 that the wire contract matches #1572.
Not re-reviewed: the round-10 resolutions (the dirty guard now covers enable and synthesized approvals; the changed → changed-again fault variant became a composition test). Under the cap there is no round 11. They are small, but the first implementation PR's review must cover them.
Live reproductions are recorded outside the repo (
docs/qa/0.70.0-ux-2026-10-10/remediation/evidence/s117-design/EVIDENCE.md).🤖 Generated with Claude Code