GeezerVison is showing github.com — mcpx: separate decision audit metadata from retained feedback payloads · Issue #13577 · developing-today/code
mcpx: separate decision audit metadata from retained feedback payloads #13577DescriptionTool feedback can retain arguments and results. Proxy feedback can retain a user query and a capped response. Semantic tool ranking also consumes feedback. A shared per-client decision record needs explicit access, payload and retention boundaries.
Acceptance
Specify authorized readers, retention and field selection for decision events versus optional feedback capture. Use synthetic markers to verify denied or sensitive content never reaches a shared audit export or dashboard. Preserve user-owned history and rating behavior during migration. Do not inspect or rewrite a live feedback database.
Source
Static inspection at 1f9bc15. internal/daemon/server.go · internal/daemon/routes_proxy.go · internal/daemon/registry.go · internal/logstore/feedback.go
Program #13264. Recheck the premise, current queue ownership and open PRs before implementation. Verify through Fleet. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 \n🤖 **Agent note** · triaged — task 21398 (lane oc-code-02)\n\n**Verdict: valid, follow-on small_fix.** Premise rechecked against origin/main:\n- Tool feedback retains arguments/results: `pkgs/mcpx/internal/logstore/feedback.go` `InteractionRecord`/`RecordInteraction` persists `input_text`, scores, notes in SQLite.\n- Proxy feedback retains user query + capped response: `pkgs/mcpx/internal/daemon/routes_proxy.go` `cappedFeedbackBuffer` (`proxyFeedbackCaptureLimit`) with truncation marker.\n- Ranking consumes feedback: `pkgs/mcpx/internal/daemon/registry.go` `SearchSemantic` path + `ToolFeedbackAdjustment`.\n- Shared per-client decision record exists: `GET /v1/authz/decisions` (+ clear) in `pkgs/mcpx/internal/daemon/server.go`.\n\nNo duplicate, no open PR, no hold label; single bot comment only. Acceptance is bounded (authorized readers + retention/field selection for decision events vs optional feedback capture, synthetic-marker test that denied/sensitive content never reaches shared audit export, preserve user history/ratings, no live-DB inspection). Recommend follow-on small_fix with a spec + synthetic-marker test.\n\n**Packet:** queue task 21398 triage; scope triage-only, no implementation performed. dezren39 commented on Nov 23, 2026 🤖 Agent note · triage recheck confirmed — task 21402 (lane oc-code-02)
Rechecked premise against current main (1f9bc15391c); prior triage verdict (task 21398) stands — valid, follow-on small_fix, no implementation performed in this triage task:
- Tool feedback retains args/results:
logstore/feedback.go InteractionRecord/RecordInteraction persists input_text, scores, notes in SQLite.
- Proxy feedback retains user query + capped response:
routes_proxy.go cappedFeedbackBuffer (proxyFeedbackCaptureLimit = 1MiB, truncation marker).
- Ranking consumes feedback:
registry.go SearchSemantic path + ToolFeedbackAdjustment.
- Shared decision record exists:
GET /v1/authz/decisions (+ clear) in server.go:862-863. Sharpening detail: api/authz_report.go DecisionReport is already aggregate-only (counts by operation/principal over a bounded window; documented no-secret-fields) — so the gap is explicit access/retention/field-selection boundaries between decision events and optional feedback capture, plus the synthetic-marker test.
- No open PR references this issue; no duplicate (parent program mcpx program — full-investigation prompt: design completion & build-out for the MCP gateway #13264 only). Single bot comment + prior triage note only; no hold labels.
Recommended follow-on: small_fix with a spec (authorized readers, retention, field selection for decision events vs optional feedback capture) + synthetic-marker test that denied/sensitive content never reaches a shared audit export, preserving user history/ratings, no live-DB inspection.
dezren39 commented on Nov 23, 2026 Progress: boundary implemented in PR #13660 (spec + guard tests; no behaviour change). Verified: go test ./internal/api -count=1 passes; new HTTP boundary test TestDecisionAuditExportExcludesRetainedFeedbackMarkers passes in the Fleet executor (https://github.com/developing-today-forks/fleet/actions/runs/45261398403). The package-level daemon failure (TestScriptViewCommandTimeoutKillsSpawnedWorkers) is pre-existing and unrelated to this PR; tracked in #13713 (task 21512).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|