Skip to content

Record an audit entry when Guided Setup is accepted (#184 slice 2) - #267

Merged
Jumpstile merged 1 commit into
mainfrom
feat/guided-setup-audit-wiring
Nov 17, 2026
Merged

Jumpstile merged 1 commit into
mainfrom
feat/guided-setup-audit-wiring

Conversation

@Jumpstile

Copy link
Copy Markdown
Owner

Part of #184 (slice 2 of 3, Milestone 1). Builds on #266.

  • Acceptance now writes the audit record after publish and enrollment, in its own try/catch. Response gets Audit = RECORDED or NOT_RECORDED. A failed audit never blocks or rolls back acceptance, and the message has no paths, hashes or exception text.
  • Analysis stays read-only: a test shows every file under state\ is byte-identical before and after analysis, with no audit folder created.
  • One new web test covers the issue's scenario (two playlists, three guides, one unbound: 2 exact, 0 review, 0 unmatched, 1 unbound), the record reading back AUDIT_OK with no fixture text or paths, a second acceptance chaining to the first, a blocked audit folder still giving ACCEPTED, and an unacknowledged request creating nothing.
  • Frozen contracts and accepted-state code untouched. No schema or GUI parser pins the acceptance response; the extra field is ignored by the GUI.
  • Tests: all passed, 0 failed (pwsh). Not tested: the single-source (v1) acceptance path through the web handler (follow-up), Windows PowerShell 5.1, GUI tests, the full suite.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NzHAcjThVoUGWWfXrYWsNh

After an explicit acceptance publishes, the acceptance response writes the guided-setup/audit/v1 record in its own try/catch. The response gains Audit = RECORDED or NOT_RECORDED; an audit failure never blocks, rolls back or changes the accepted state, and the message never includes paths, hashes or exception text. Analysis is unchanged and still read-only for accepted state.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NzHAcjThVoUGWWfXrYWsNh
@Jumpstile
Jumpstile merged commit cc55a01 into main Nov 17, 2026
11 checks passed
@Jumpstile
Jumpstile deleted the feat/guided-setup-audit-wiring branch November 17, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant