Commit a763f6c
committed
fix(rest): correct A_DENIED_SAVE fixture to a real sys_metadata_audit code
`check:error-code-casing` (ADR-0112 D1) flagged `code: 'metadata_locked'` in
the `A_DENIED_SAVE` audit-row fixture at meta-audit-capability-gap.test.ts:162
as a lowercase literal in a code position. It wasn't just a casing miss: the
value isn't a member of the closed `denied` vocabulary documented on
`sys_metadata_audit.code` (sys-metadata-audit.object.ts:134-139) — the system
cannot produce `metadata_locked`. Given the fixture's own
`lockState: 'locked'`, `lockOverridden: false`, the correct member is
`item_locked`.
The column is ADR-0112 D6b — a persisted audit column with its own
intentionally-lowercase vocabulary — so the fix is the per-line `adr0112-ok`
marker (with reason, matching the existing D6b markers in
metadata-protocol/src/protocol.ts), not a whole-file EXEMPT_FILES entry.
The renamed value has one other reference in this file (line 223), via the
same `A_DENIED_SAVE` object identity rather than a separately hardcoded
string, so no other assertion needed updating.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012WKSnqAaoqtW3QX7SSf1Vk1 parent 60691bf commit a763f6c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
0 commit comments