Commit a933ed7
feat(spec): declare the audit door and catch the delete request schema up — both meta-door casts retired (#12003)
* feat(spec): declare auditMetaItem on MetadataProtocol and retire the REST audit door's casts
The audit door (GET /meta/:type/:name/audit) had neither request nor response
declared; the door reached the verb through (p as any) twice. Declares
AuditMetaItemRequest/Response mirroring the implementation member for member,
adds the optional interface member, and compiles the door's request literal
against the contract. environmentId stays out per the transport-level ruling;
the honest {events: []} miss shape is recorded in the declared types.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93P8PbH7kVjsAXkqzH1zY
* feat(spec): DeleteMetaItemRequestSchema declares the contract members the reset door sends; reset-door cast retired
The member was declared all along but the request schema carried 2 of the 8
members DELETE /meta/:type/:name sends. Declares organizationId (tenant scope
selecting WHICH row a reset destroys), parentVersion (OCC pin), actor, state
and dropStorage, mirroring the implementation; environmentId stays out per the
transport-level ruling and rides TransportScopedMetaRequest at the door. Both
rest changeset and reset-door literal typing land here.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93P8PbH7kVjsAXkqzH1zY
* chore(spec): regenerate artifacts for the audit/delete door declarations
check:generated proved 4 stale (api-surface, export-origins, docs references,
strictness-ledger counts); --fix regenerated exactly those. The
authorable-surface and json-schema.manifest shard updates are the spec build's
own gen:schema product for the same declarations.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93P8PbH7kVjsAXkqzH1zY
* fix(spec): adr0112-ok opt-out on the audit fixture's item_locked — persisted audit column vocabulary, not an error code
check:error-code-casing read the fixture's code: 'item_locked' as an emission;
it is the sys_metadata_audit code column's own lowercase vocabulary (the D6b
class, precedent at meta-audit-capability-gap.test.ts:162), suppressed with the
corpus's exact reason line.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93P8PbH7kVjsAXkqzH1zY
* fix(spec): Iso857/Iso858 pin the audit schemas' input-infer isomorphism (ADR-0122)
check:spec-parsed-alias flagged AuditMetaItemRequest/Response as author-state
aliases with nothing naming their parsed state. Both trees carry no .default(),
.transform(), .catch() or .pipe(), so input and infer coincide - the Iso pin
route (the Iso137/Iso856 sibling precedent), not an XParsed pair. All three
machine-checked count sentences move 833 -> 835 with the history note.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93P8PbH7kVjsAXkqzH1zY
* chore(spec): regenerate artifacts on the merged tree (discharges the os-regen deferral)
os-regen-merge.sh sequence: merge committed first, then the full gen chain on
the merged source. check:generated --fix regenerated the 4 provably stale
artifacts; the audit-door entries (this PR) and the #12001/#12006 sibling
entries coexist in the regenerated set.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K93P8PbH7kVjsAXkqzH1zY
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 134a506 commit a933ed7
14 files changed
Lines changed: 617 additions & 28 deletions
File tree
- .changeset
- content/docs/references
- api
- docs/audits
- packages
- rest/src
- spec
- api-surface
- authorable-surface
- export-origins
- json-schema.manifest
- src
- api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments