GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: pin decision audit vs retained feedback boundary (#13577) by dezren39 · Pull Request #13660 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

The decision audit record and the retained feedback store are separate stores with separate readers; this makes the boundary a written spec and guards it with tests.

pkgs/mcpx/internal/
├── api/
│   ├── decision_boundary.go       # the spec: readers, retention, field selection
│   └── decision_boundary_test.go  # type-level guard + 1024 bound + export markers
└── daemon/
    └── decision_feedback_boundary_test.go  # HTTP: export excludes markers, history keeps them
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.

Evidence

$ 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.

Merge Danger

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)"
  }
}

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
oc-code-07
mcpx: pin decision audit vs retained feedback boundary (#13577)
65d0399
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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5e5a1bc4-277e-4a79-9739-1eea07426e7c
Commits

Reviewing files that changed from the base of the PR and between 0a6ca03 and 65d0399.

Files selected for processing: 3

  • pkgs/mcpx/internal/api/decision_boundary.go
  • pkgs/mcpx/internal/api/decision_boundary_test.go
  • pkgs/mcpx/internal/daemon/decision_feedback_boundary_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 23, 2026
mcpx: TestScriptViewCommandTimeoutKillsSpawnedWorkers fails in Fleet executor containers #13713
Closed
mcpx: separate decision audit metadata from retained feedback payloads #13577
Closed
@dezren39
dezren39 merged commit b0c6f0d into main Nov 24, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the lane/oc-code-07-13577-decision-boundary branch November 24, 2026 00:15
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mcpx: separate decision audit metadata from retained feedback payloads

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.