GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — mcpx: pin decision audit vs retained feedback boundary (#13577) by dezren39 · Pull Request #13660 · developing-today/code Conversation
|
| store | reader | permission | retention |
|---|---|---|---|
| decision record | GET /v1/authz/decisions |
read | in-memory, 1024, never persisted |
| decision record | DELETE /v1/authz/decisions |
admin | clear on demand |
| feedback history | GET /v1/interactions[/{id}] |
read | user-owned SQLite, untouched |
| feedback submit | POST /v1/feedback |
run | fills scores/notes on a named trace |
A Decision carries principal surface + descriptive ID, op, tier, allowed, at — and no field a feedback payload (input, output, tools, scores, notes, query) or credential could be written into. The guard iterates the struct so a future field fails closed.
$ go test ./internal/api -count=1
ok ...internal/api
$ go test ./internal/daemon -run 'TestDecisionAuditExportExcludesRetainedFeedbackMarkers|TestAuthzDecisionReportSurface' -count=1
--- PASS: TestAuthzDecisionReportSurface
--- PASS: TestDecisionAuditExportExcludesRetainedFeedbackMarkers
ok ...internal/daemon
Full internal/api + internal/daemon suites dispatched to Fleet: https://github.com/developing-today-forks/fleet/actions/runs/45251450436
Synthetic markers (SYN-13577-DENIED-…, SYN-13577-SENSITIVE-…) are written only to the feedback store; the shared audit export never contains them, while GET /v1/interactions still returns them.
Door: two-way — additive spec file and tests; no behaviour change, no schema change, no data migration.
Blast Radius: mcpx
Closes #13577
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T19:49:13Z",
"session_id": "ses_e5df65795c2ffecpc71EmkDjuq",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "0a6ca03ccca7125a495ea0366e4f0a67738cd5d2"
},
"auth_subject": "oc-code-03",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The decision record and the feedback store are separate stores with separate readers; this makes the boundary explicit and guards it. - api/decision_boundary.go: the written spec — authorized readers, retention (in-memory, bounded to 1024, never persisted), and field selection (a Decision carries principal/op/permission/allowed/at and nothing a feedback payload could be written into). Exposes DecisionRetentionBound() and the excluded-payload field table. - api/decision_boundary_test.go: type-level guard that iterates the Decision struct (fails for any future field shaping a payload or a secret), the 1024 retention bound, and synthetic-marker export checks. - daemon/decision_feedback_boundary_test.go: at the HTTP layer, markers stored only in the user-owned feedback store never appear in GET /v1/authz/decisions, while GET /v1/interactions still returns them (preservation, not deletion). No live database is touched. Tests: internal/api, and the affected internal/daemon tests.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
mcpx: separate decision audit metadata from retained feedback payloads
There was an error while loading. Please reload this page.