From 0c3ba2cee4c47e70d468767723e64842685ac25e Mon Sep 17 00:00:00 2001 From: emeisazam <255706292+emeisazam@users.noreply.github.com> Date: Thu, 1 Oct 2026 07:40:14 -0500 Subject: [PATCH] Prepare MASA tooling 0.2.2 with current contracts and dependency controls Carry the versioned protocol artifacts and verified tooling with patched Hono. Audit all severities while distinguishing the exact unrelated local importer collision from real registry findings. --- .github/workflows/ci.yml | 2 +- .gitignore | 17 + CHANGELOG.md | 19 + README.md | 2 +- capabilities/0.2.0/reference.json | 6 +- cli/package.json | 4 +- conformance/0.2.0/evidence/agent-host.json | 14 +- conformance/0.2.0/evidence/publisher.json | 14 +- conformance/0.2.0/evidence/reader.json | 14 +- conformance/0.2.0/evidence/transformer.json | 19 +- conformance/0.2.0/evidence/writer.json | 14 +- .../0.2.0/history/tooling-0.2.0/README.md | 1 + .../history/tooling-0.2.0/agent-host.json | 45 + .../history/tooling-0.2.0/publisher.json | 40 + .../0.2.0/history/tooling-0.2.0/reader.json | 60 + .../history/tooling-0.2.0/transformer.json | 55 + .../0.2.0/history/tooling-0.2.0/writer.json | 45 + conformance/run.ts | 13 + docs/processing-integration.md | 50 + docs/project-agnostic-integration.md | 3 + examples/0.2.0/lineage-cases.json | 10773 ++++++++++++++++ mcp/package.json | 4 +- package.json | 22 +- packages/bundle/package.json | 2 +- packages/bundle/src/content.ts | 9 +- packages/bundle/src/directory.ts | 21 +- packages/bundle/src/index.test.ts | 23 + packages/core/package.json | 2 +- .../core/src/generated/protocol-resources.ts | 6 +- packages/core/src/generated/version.ts | 2 +- packages/validator/package.json | 2 +- packages/validator/src/generated/schemas.ts | 126 +- packages/validator/src/index.test.ts | 14 + packages/validator/src/index.ts | 21 +- packages/validator/src/lineage.test.ts | 26 + packages/validator/src/semantics.ts | 31 +- pnpm-lock.yaml | 209 +- rfcs/0003-aperture-and-register.md | 34 + schemas/0.2.0/processing-request.schema.json | 1 + schemas/0.2.0/profile-processing.schema.json | 1 + .../0.2.0/profile-transformation.schema.json | 225 +- scripts/audit-dependencies.mjs | 42 + scripts/audit-dependencies.test.mjs | 28 + scripts/generate-lineage-cases.ts | 77 + scripts/release-version.ts | 2 +- spec/0.2.0/profiles/processing.md | 3 + spec/0.2.0/profiles/transformation.md | 8 + 47 files changed, 11934 insertions(+), 217 deletions(-) create mode 100644 conformance/0.2.0/history/tooling-0.2.0/README.md create mode 100644 conformance/0.2.0/history/tooling-0.2.0/agent-host.json create mode 100644 conformance/0.2.0/history/tooling-0.2.0/publisher.json create mode 100644 conformance/0.2.0/history/tooling-0.2.0/reader.json create mode 100644 conformance/0.2.0/history/tooling-0.2.0/transformer.json create mode 100644 conformance/0.2.0/history/tooling-0.2.0/writer.json create mode 100644 docs/processing-integration.md create mode 100644 examples/0.2.0/lineage-cases.json create mode 100644 packages/validator/src/lineage.test.ts create mode 100644 rfcs/0003-aperture-and-register.md create mode 100644 scripts/audit-dependencies.mjs create mode 100644 scripts/audit-dependencies.test.mjs create mode 100644 scripts/generate-lineage-cases.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 210f0e0..50d512d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Audit high-severity advisories - run: pnpm audit --audit-level high + run: node scripts/audit-dependencies.mjs - name: Run the authoritative repository gate run: pnpm check diff --git a/.gitignore b/.gitignore index fd9984a..4b99164 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,20 @@ coverage/ tmp/ .masa-cache/ +# Private local output; maintained fixtures remain in their source directories +/audits/ +/local-plans/ +/reports/ +/screenshots/ +/receipts/ +/recordings/ +/captures/ +/output/ +/runtime/ +/settings.json +/*.sqlite +/*.sqlite-* +/*.sqlite3 +/*.sqlite3-* +/*.db +/docs/audits/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 8917d33..712e7df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,26 @@ # Changelog +## Unreleased + +- Patch the tooling Hono dependency to 4.13.7 and use a dependency audit that excludes only the exact local workspace importer collision. + All material protocol and reference-tooling changes are recorded here. MASA uses semantic versioning; a tooling patch may advance without changing the normative protocol version when its record contracts remain compatible. +## 0.2.2 - unreleased + +- Update the reviewed fast-uri 3.x dependency to 3.1.8 and regenerate the 0.2.2 tooling identity. MASA protocol 0.2.0 remains unchanged. +- Refresh Vitest 4.1.11 and reviewed js-yaml, Hono and ip-address patches in the lock graph. +- Packed tooling remains a local candidate; no public release is claimed. + +## 0.2.1 - unreleased + +Reference-tooling validation erratum for MASA 0.2.0. Record versions and schema identifiers remain 0.2.0; no conforming record needs re-versioning. Previously accepted fabricated lineage and incomplete completed transformations contradicted the existing written requirements and are now rejected. The 0.1.0 resources and historical evidence are preserved. + +- Bind every descendant relation to the generating receipt's actual parent input, output, effect and completed/partial outcome, in both predicate directions. +- Trigger completed preservation/output requirements by status and operation identity, and check every relevant event. +- Apply causal checks to resolved external event logs using compact closure summaries; standalone external-history validation remains explicitly limited. +- Add a shared adversarial conformance matrix, regenerate canonical artifacts, and qualify newly packed 0.2.1 tooling before consumer adoption. No public tag or release is claimed. + ## 0.2.0 - 2026-08-11 Minor protocol and reference-tooling release. diff --git a/README.md b/README.md index fffed82..0736202 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ See [`docs/project-agnostic-integration.md`](docs/project-agnostic-integration.m ## Local conformance evidence -The reference implementation records separate evidence for the `reader`, `writer`, `transformer`, `agent-host`, and `publisher` classes in [`conformance/0.2.0/evidence`](conformance/0.2.0/evidence). The current local run reports all five classes conformant on Node.js 22.22.3 for macOS arm64 against fixture-manifest digest `456f1fd3c5c9b4905dca5456ef3179ac651282a2885eeb6aac2b5997cc254da4`. The digest is refreshed from the examples, specification, capability catalog, schemas, ontology registries, JSON-LD context, and executable conformance runner whenever evidence is intentionally recorded. +The reference implementation records separate evidence for the `reader`, `writer`, `transformer`, `agent-host`, and `publisher` classes in [`conformance/0.2.0/evidence`](conformance/0.2.0/evidence). The 0.2.2 reference-tooling candidate (protocol 0.2.0) local run reports all five classes conformant on Node.js 22.22.3 for macOS arm64 against fixture-manifest digest `e7d53ca104b4d36cdd8d6604e0884116f71b2900916161657ee913ab8bf5a279`. The digest is refreshed from the examples, specification, capability catalog, schemas, ontology registries, JSON-LD context, and executable conformance runner whenever evidence is intentionally recorded. Run `pnpm check` to regenerate derived code and verify conformance on the current machine. Run `pnpm conformance:evidence` only when intentionally recording a new local evidence snapshot. Conformance is always specific to an implementation version, MASA version, profile, class, platform, and exact fixture set; it is not a universal certification. diff --git a/capabilities/0.2.0/reference.json b/capabilities/0.2.0/reference.json index 00d9663..1fc1dd0 100644 --- a/capabilities/0.2.0/reference.json +++ b/capabilities/0.2.0/reference.json @@ -4,11 +4,11 @@ "masaVersion": "0.2.0", "id": "https://masa.sonicfield.org/capabilities/0.2.0/reference", "implementation": { - "id": "https://masa.sonicfield.org/implementations/typescript-reference/0.2.0", + "id": "https://masa.sonicfield.org/implementations/typescript-reference/0.2.2", "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, - "generatedAt": "2026-08-11T00:00:00.000Z", + "generatedAt": "2026-10-01T02:00:16.890Z", "capabilities": [ { "id": "https://masa.sonicfield.org/capabilities/0.2.0/matter.validate", diff --git a/cli/package.json b/cli/package.json index a7da6b5..fe7efcb 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@sonicfield/masa-cli", - "version": "0.2.0", + "version": "0.2.2", "private": true, "license": "MIT", "description": "Local command-line reference implementation for MASA", @@ -34,7 +34,7 @@ "devDependencies": { "@types/node": "24.13.3", "typescript": "7.0.2", - "vitest": "4.1.10" + "vitest": "4.1.11" }, "engines": { "node": ">=22.20" diff --git a/conformance/0.2.0/evidence/agent-host.json b/conformance/0.2.0/evidence/agent-host.json index 15df7f7..c2dbcb4 100644 --- a/conformance/0.2.0/evidence/agent-host.json +++ b/conformance/0.2.0/evidence/agent-host.json @@ -4,30 +4,30 @@ "extensions": {}, "fixtureManifestDigest": { "algorithm": "sha-256", - "byteLength": 368867, - "digest": "456f1fd3c5c9b4905dca5456ef3179ac651282a2885eeb6aac2b5997cc254da4", + "byteLength": 716691, + "digest": "e7d53ca104b4d36cdd8d6604e0884116f71b2900916161657ee913ab8bf5a279", "status": "verified", - "verifiedAt": "2026-08-12T00:36:14.673Z" + "verifiedAt": "2026-10-01T02:00:19.738Z" }, "id": "urn:uuid:10000000-0000-4000-8000-000000000004", "implementation": { "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, "masaVersion": "0.2.0", "migrationStatus": "not_tested", "platform": { "architecture": "arm64", "os": "darwin", - "runtime": "node v22.22.3" + "runtime": "node v26.8.2" }, "profile": "agent", - "runAt": "2026-08-12T00:36:14.673Z", + "runAt": "2026-10-01T02:00:19.738Z", "status": "conformant", "subject": "@sonicfield/masa workspace", "suite": { "name": "masa-typescript-reference-conformance", - "version": "0.2.0" + "version": "0.2.2" }, "tests": [ { diff --git a/conformance/0.2.0/evidence/publisher.json b/conformance/0.2.0/evidence/publisher.json index ecad2c6..2b24cea 100644 --- a/conformance/0.2.0/evidence/publisher.json +++ b/conformance/0.2.0/evidence/publisher.json @@ -4,30 +4,30 @@ "extensions": {}, "fixtureManifestDigest": { "algorithm": "sha-256", - "byteLength": 368867, - "digest": "456f1fd3c5c9b4905dca5456ef3179ac651282a2885eeb6aac2b5997cc254da4", + "byteLength": 716691, + "digest": "e7d53ca104b4d36cdd8d6604e0884116f71b2900916161657ee913ab8bf5a279", "status": "verified", - "verifiedAt": "2026-08-12T00:36:14.673Z" + "verifiedAt": "2026-10-01T02:00:19.738Z" }, "id": "urn:uuid:10000000-0000-4000-8000-000000000005", "implementation": { "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, "masaVersion": "0.2.0", "migrationStatus": "not_tested", "platform": { "architecture": "arm64", "os": "darwin", - "runtime": "node v22.22.3" + "runtime": "node v26.8.2" }, "profile": "publication", - "runAt": "2026-08-12T00:36:14.673Z", + "runAt": "2026-10-01T02:00:19.738Z", "status": "conformant", "subject": "@sonicfield/masa workspace", "suite": { "name": "masa-typescript-reference-conformance", - "version": "0.2.0" + "version": "0.2.2" }, "tests": [ { diff --git a/conformance/0.2.0/evidence/reader.json b/conformance/0.2.0/evidence/reader.json index 61fb033..277c2e8 100644 --- a/conformance/0.2.0/evidence/reader.json +++ b/conformance/0.2.0/evidence/reader.json @@ -4,30 +4,30 @@ "extensions": {}, "fixtureManifestDigest": { "algorithm": "sha-256", - "byteLength": 368867, - "digest": "456f1fd3c5c9b4905dca5456ef3179ac651282a2885eeb6aac2b5997cc254da4", + "byteLength": 716691, + "digest": "e7d53ca104b4d36cdd8d6604e0884116f71b2900916161657ee913ab8bf5a279", "status": "verified", - "verifiedAt": "2026-08-12T00:36:14.673Z" + "verifiedAt": "2026-10-01T02:00:19.738Z" }, "id": "urn:uuid:10000000-0000-4000-8000-000000000001", "implementation": { "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, "masaVersion": "0.2.0", "migrationStatus": "not_tested", "platform": { "architecture": "arm64", "os": "darwin", - "runtime": "node v22.22.3" + "runtime": "node v26.8.2" }, "profile": "core", - "runAt": "2026-08-12T00:36:14.673Z", + "runAt": "2026-10-01T02:00:19.738Z", "status": "conformant", "subject": "@sonicfield/masa workspace", "suite": { "name": "masa-typescript-reference-conformance", - "version": "0.2.0" + "version": "0.2.2" }, "tests": [ { diff --git a/conformance/0.2.0/evidence/transformer.json b/conformance/0.2.0/evidence/transformer.json index 53a96be..adb3c43 100644 --- a/conformance/0.2.0/evidence/transformer.json +++ b/conformance/0.2.0/evidence/transformer.json @@ -4,30 +4,30 @@ "extensions": {}, "fixtureManifestDigest": { "algorithm": "sha-256", - "byteLength": 368867, - "digest": "456f1fd3c5c9b4905dca5456ef3179ac651282a2885eeb6aac2b5997cc254da4", + "byteLength": 716691, + "digest": "e7d53ca104b4d36cdd8d6604e0884116f71b2900916161657ee913ab8bf5a279", "status": "verified", - "verifiedAt": "2026-08-12T00:36:14.673Z" + "verifiedAt": "2026-10-01T02:00:19.738Z" }, "id": "urn:uuid:10000000-0000-4000-8000-000000000003", "implementation": { "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, "masaVersion": "0.2.0", "migrationStatus": "not_tested", "platform": { "architecture": "arm64", "os": "darwin", - "runtime": "node v22.22.3" + "runtime": "node v26.8.2" }, "profile": "transformation", - "runAt": "2026-08-12T00:36:14.673Z", + "runAt": "2026-10-01T02:00:19.738Z", "status": "conformant", "subject": "@sonicfield/masa workspace", "suite": { "name": "masa-typescript-reference-conformance", - "version": "0.2.0" + "version": "0.2.2" }, "tests": [ { @@ -45,6 +45,11 @@ "id": "transformer.processing-lineage", "status": "conformant" }, + { + "diagnostics": [], + "id": "transformer.causal-preservation-matrix", + "status": "conformant" + }, { "diagnostics": [], "id": "transformer.lineage-and-failure", diff --git a/conformance/0.2.0/evidence/writer.json b/conformance/0.2.0/evidence/writer.json index f29b9c1..54e1aed 100644 --- a/conformance/0.2.0/evidence/writer.json +++ b/conformance/0.2.0/evidence/writer.json @@ -4,30 +4,30 @@ "extensions": {}, "fixtureManifestDigest": { "algorithm": "sha-256", - "byteLength": 368867, - "digest": "456f1fd3c5c9b4905dca5456ef3179ac651282a2885eeb6aac2b5997cc254da4", + "byteLength": 716691, + "digest": "e7d53ca104b4d36cdd8d6604e0884116f71b2900916161657ee913ab8bf5a279", "status": "verified", - "verifiedAt": "2026-08-12T00:36:14.673Z" + "verifiedAt": "2026-10-01T02:00:19.738Z" }, "id": "urn:uuid:10000000-0000-4000-8000-000000000002", "implementation": { "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, "masaVersion": "0.2.0", "migrationStatus": "not_tested", "platform": { "architecture": "arm64", "os": "darwin", - "runtime": "node v22.22.3" + "runtime": "node v26.8.2" }, "profile": "core", - "runAt": "2026-08-12T00:36:14.673Z", + "runAt": "2026-10-01T02:00:19.738Z", "status": "conformant", "subject": "@sonicfield/masa workspace", "suite": { "name": "masa-typescript-reference-conformance", - "version": "0.2.0" + "version": "0.2.2" }, "tests": [ { diff --git a/conformance/0.2.0/history/tooling-0.2.0/README.md b/conformance/0.2.0/history/tooling-0.2.0/README.md new file mode 100644 index 0000000..0d58c19 --- /dev/null +++ b/conformance/0.2.0/history/tooling-0.2.0/README.md @@ -0,0 +1 @@ +Historical MASA 0.2.0 tooling evidence, preserved byte for byte from source commit `9d89b1e570ef154a715fdcba5024b8271d1ecd30`. These files describe that earlier implementation and fixture digest; current evidence lives in ../../evidence/. diff --git a/conformance/0.2.0/history/tooling-0.2.0/agent-host.json b/conformance/0.2.0/history/tooling-0.2.0/agent-host.json new file mode 100644 index 0000000..cef17cf --- /dev/null +++ b/conformance/0.2.0/history/tooling-0.2.0/agent-host.json @@ -0,0 +1,45 @@ +{ + "class": "agent-host", + "diagnostics": [], + "extensions": {}, + "fixtureManifestDigest": { + "algorithm": "sha-256", + "byteLength": 369464, + "digest": "007d7261686f5d33e346f0f849616e6036d383192e33340b272d11d66d16aa34", + "status": "verified", + "verifiedAt": "2026-09-12T20:33:04.330Z" + }, + "id": "urn:uuid:10000000-0000-4000-8000-000000000004", + "implementation": { + "name": "MASA local TypeScript reference", + "version": "0.2.0" + }, + "masaVersion": "0.2.0", + "migrationStatus": "not_tested", + "platform": { + "architecture": "arm64", + "os": "darwin", + "runtime": "node v22.22.3" + }, + "profile": "agent", + "runAt": "2026-09-12T20:33:04.330Z", + "status": "conformant", + "subject": "@sonicfield/masa workspace", + "suite": { + "name": "masa-typescript-reference-conformance", + "version": "0.2.0" + }, + "tests": [ + { + "diagnostics": [], + "id": "agent-host.capabilities-and-record", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "agent-host.mcp-stdio", + "status": "conformant" + } + ], + "type": "masa:ConformanceResult" +} diff --git a/conformance/0.2.0/history/tooling-0.2.0/publisher.json b/conformance/0.2.0/history/tooling-0.2.0/publisher.json new file mode 100644 index 0000000..59e4a04 --- /dev/null +++ b/conformance/0.2.0/history/tooling-0.2.0/publisher.json @@ -0,0 +1,40 @@ +{ + "class": "publisher", + "diagnostics": [], + "extensions": {}, + "fixtureManifestDigest": { + "algorithm": "sha-256", + "byteLength": 369464, + "digest": "007d7261686f5d33e346f0f849616e6036d383192e33340b272d11d66d16aa34", + "status": "verified", + "verifiedAt": "2026-09-12T20:33:04.330Z" + }, + "id": "urn:uuid:10000000-0000-4000-8000-000000000005", + "implementation": { + "name": "MASA local TypeScript reference", + "version": "0.2.0" + }, + "masaVersion": "0.2.0", + "migrationStatus": "not_tested", + "platform": { + "architecture": "arm64", + "os": "darwin", + "runtime": "node v22.22.3" + }, + "profile": "publication", + "runAt": "2026-09-12T20:33:04.330Z", + "status": "conformant", + "subject": "@sonicfield/masa workspace", + "suite": { + "name": "masa-typescript-reference-conformance", + "version": "0.2.0" + }, + "tests": [ + { + "diagnostics": [], + "id": "publisher.public-projection-audit", + "status": "conformant" + } + ], + "type": "masa:ConformanceResult" +} diff --git a/conformance/0.2.0/history/tooling-0.2.0/reader.json b/conformance/0.2.0/history/tooling-0.2.0/reader.json new file mode 100644 index 0000000..feab59b --- /dev/null +++ b/conformance/0.2.0/history/tooling-0.2.0/reader.json @@ -0,0 +1,60 @@ +{ + "class": "reader", + "diagnostics": [], + "extensions": {}, + "fixtureManifestDigest": { + "algorithm": "sha-256", + "byteLength": 369464, + "digest": "007d7261686f5d33e346f0f849616e6036d383192e33340b272d11d66d16aa34", + "status": "verified", + "verifiedAt": "2026-09-12T20:33:04.330Z" + }, + "id": "urn:uuid:10000000-0000-4000-8000-000000000001", + "implementation": { + "name": "MASA local TypeScript reference", + "version": "0.2.0" + }, + "masaVersion": "0.2.0", + "migrationStatus": "not_tested", + "platform": { + "architecture": "arm64", + "os": "darwin", + "runtime": "node v22.22.3" + }, + "profile": "core", + "runAt": "2026-09-12T20:33:04.330Z", + "status": "conformant", + "subject": "@sonicfield/masa workspace", + "suite": { + "name": "masa-typescript-reference-conformance", + "version": "0.2.0" + }, + "tests": [ + { + "diagnostics": [], + "id": "reader.valid-profile-matrix", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "reader.invalid-profile-matrix", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "reader.strict-json-and-extension-roundtrip", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "reader.directory-bundle", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "reader.deterministic-zip-roundtrip", + "status": "conformant" + } + ], + "type": "masa:ConformanceResult" +} diff --git a/conformance/0.2.0/history/tooling-0.2.0/transformer.json b/conformance/0.2.0/history/tooling-0.2.0/transformer.json new file mode 100644 index 0000000..b1e84e2 --- /dev/null +++ b/conformance/0.2.0/history/tooling-0.2.0/transformer.json @@ -0,0 +1,55 @@ +{ + "class": "transformer", + "diagnostics": [], + "extensions": {}, + "fixtureManifestDigest": { + "algorithm": "sha-256", + "byteLength": 369464, + "digest": "007d7261686f5d33e346f0f849616e6036d383192e33340b272d11d66d16aa34", + "status": "verified", + "verifiedAt": "2026-09-12T20:33:04.330Z" + }, + "id": "urn:uuid:10000000-0000-4000-8000-000000000003", + "implementation": { + "name": "MASA local TypeScript reference", + "version": "0.2.0" + }, + "masaVersion": "0.2.0", + "migrationStatus": "not_tested", + "platform": { + "architecture": "arm64", + "os": "darwin", + "runtime": "node v22.22.3" + }, + "profile": "transformation", + "runAt": "2026-09-12T20:33:04.330Z", + "status": "conformant", + "subject": "@sonicfield/masa workspace", + "suite": { + "name": "masa-typescript-reference-conformance", + "version": "0.2.0" + }, + "tests": [ + { + "diagnostics": [], + "id": "reader.directory-bundle", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "reader.deterministic-zip-roundtrip", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "transformer.processing-lineage", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "transformer.lineage-and-failure", + "status": "conformant" + } + ], + "type": "masa:ConformanceResult" +} diff --git a/conformance/0.2.0/history/tooling-0.2.0/writer.json b/conformance/0.2.0/history/tooling-0.2.0/writer.json new file mode 100644 index 0000000..e10c59f --- /dev/null +++ b/conformance/0.2.0/history/tooling-0.2.0/writer.json @@ -0,0 +1,45 @@ +{ + "class": "writer", + "diagnostics": [], + "extensions": {}, + "fixtureManifestDigest": { + "algorithm": "sha-256", + "byteLength": 369464, + "digest": "007d7261686f5d33e346f0f849616e6036d383192e33340b272d11d66d16aa34", + "status": "verified", + "verifiedAt": "2026-09-12T20:33:04.330Z" + }, + "id": "urn:uuid:10000000-0000-4000-8000-000000000002", + "implementation": { + "name": "MASA local TypeScript reference", + "version": "0.2.0" + }, + "masaVersion": "0.2.0", + "migrationStatus": "not_tested", + "platform": { + "architecture": "arm64", + "os": "darwin", + "runtime": "node v22.22.3" + }, + "profile": "core", + "runAt": "2026-09-12T20:33:04.330Z", + "status": "conformant", + "subject": "@sonicfield/masa workspace", + "suite": { + "name": "masa-typescript-reference-conformance", + "version": "0.2.0" + }, + "tests": [ + { + "diagnostics": [], + "id": "reader.valid-profile-matrix", + "status": "conformant" + }, + { + "diagnostics": [], + "id": "writer.identities-profiles-and-receipts", + "status": "conformant" + } + ], + "type": "masa:ConformanceResult" +} diff --git a/conformance/run.ts b/conformance/run.ts index 16ecaae..d914153 100644 --- a/conformance/run.ts +++ b/conformance/run.ts @@ -211,6 +211,18 @@ tests.push(await test("transformer.processing-lineage", async () => { ); })); +tests.push(await test("transformer.causal-preservation-matrix", async () => { + const cases = JSON.parse(await readFile(join(examples, "lineage-cases.json"), "utf8")) as + Array<{ name: string; valid: boolean; codes: string[]; record: MatterRecord }>; + for (const scenario of cases) { + const result = validateMatterRecord(scenario.record); + assert(result.valid === scenario.valid, `Unexpected validity for ${scenario.name}`); + for (const code of scenario.codes) { + assert(result.diagnostics.some(d => d.code === code), `Missing ${code} for ${scenario.name}`); + } + } +})); + tests.push(await test("transformer.lineage-and-failure", async () => { const transformed = await record(join(validDirectory, "transformation.masa.json")); assert(validateMatterRecord(transformed).valid, "Transformation fixture failed validation."); @@ -338,6 +350,7 @@ const classTests: Readonly> = { "reader.directory-bundle", "reader.deterministic-zip-roundtrip", "transformer.lineage-and-failure", + "transformer.causal-preservation-matrix", "transformer.processing-lineage" ], "agent-host": ["agent-host.capabilities-and-record", "agent-host.mcp-stdio"], diff --git a/docs/processing-integration.md b/docs/processing-integration.md new file mode 100644 index 0000000..20caf9e --- /dev/null +++ b/docs/processing-integration.md @@ -0,0 +1,50 @@ +# Processing and listening integration boundaries + +MASA 0.2 already describes external processing requests and receipts through the +[Processing profile](../spec/0.2.0/profiles/processing.md) and preserved descendants +through the [Transformation profile](../spec/0.2.0/profiles/transformation.md). +Applications should reuse those structures. MASA does not perform DSP or promote +application-specific listening vocabulary into the `masa:` namespace. + +## Declare the operation actually performed + +| Operation | Required integration distinctions | +| --- | --- | +| Filtered sample-rate conversion | Input/output rates, filter and version, retained bands, and actual duration. Changing representation rate with appropriate resampling ordinarily preserves playback duration. | +| Playback-rate change | Declared playback-rate ratio and resulting duration/pitch relation. Reinterpreting samples at another rate is not equivalent to filtered resampling. | +| Frequency translation | Translation frequency in Hz, algorithm/version, input/output bands, and source-to-output mapping. It is not a uniform musical pitch ratio. | +| Pitch shifting | Declared cents or ratio and the engine's duration behavior. Reuse `matter.pitchshift`; do not infer duration preservation merely from its name. | +| Time stretching | Declared factor and the engine's pitch behavior. Reuse `matter.timestretch`; do not infer pitch identity from its name. | +| Granulation | Reuse `matter.granulate`, the grain scheme, envelope, density, emission, and selection parameters. Execution stays in the named external engine. | + +For operations without a standardized MASA request vocabulary, the adopting +application owns a namespaced schema and adapter. Do not label a frequency +translation as pitch shifting merely to satisfy an existing operation enum. +Preserve the source representation and record distinct descendant IDs, source and +output hashes, engine/version, algorithm parameters with units, affected window, +parent relationships, and the operation receipt. Reuse existing fields wherever +they express the fact; carry any additional detail in the application's namespace. +Unknown parameters remain qualified unknowns, not plausible defaults. A refusal, +failure, or cancellation must not fabricate a completed descendant. + +## Keep evidence domains separate + +An integration needs separate declarations for physical capture support, sampled +representation, effective model input after preprocessing, and human access under +a declared chain and conditions. A sample rate alone supports none of the other +three declarations. A transformed rendering gives access to the rendering; its +receipt is needed to interpret its relationship to the source. + +Numerical sample/frame/subsample coordinates describe a representation or an +estimate. They do not establish a physical sensor's bandwidth, resolution, or a +human listener's temporal discrimination. Namespace registration and scale terms +must preserve that distinction. Epistemic category, confidence, source health, +availability, freshness, and disclosure remain independent; they must not be +collapsed into a total ranking of observations. + +The [project integration guide](project-agnostic-integration.md) defines namespace +ownership, opaque local preservation, offline schemas, and public projection. +Applications implementing an observation-to-record adapter must retain the +observation reference and qualified status, resolve required references locally, +and establish authority outside the report. Core schema conformance does not +certify that an application's evidence mapping or external DSP engine is correct. diff --git a/docs/project-agnostic-integration.md b/docs/project-agnostic-integration.md index 9fd5661..98d74b4 100644 --- a/docs/project-agnostic-integration.md +++ b/docs/project-agnostic-integration.md @@ -35,3 +35,6 @@ An adapter document may explain one repository's mapping to MASA, but an adapter ## Portable package boundary The TypeScript packages are local reference implementations. Their packed artifacts contain compiled code and embedded protocol resources only. The CLI and MCP server do not assume that `spec/`, `schemas/`, or `capabilities/` exists in a parent repository after installation. Canonical language-neutral files under this repository's versioned directories remain authoritative over packaged conveniences. + +For sample-rate conversion, playback-rate changes, frequency translation, and +listening evidence boundaries, see [processing integration](processing-integration.md). diff --git a/examples/0.2.0/lineage-cases.json b/examples/0.2.0/lineage-cases.json new file mode 100644 index 0000000..7a5e901 --- /dev/null +++ b/examples/0.2.0/lineage-cases.json @@ -0,0 +1,10773 @@ +[ + { + "name": "completed", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "read-capture-provenance", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:captured-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.capture", + "effectClass": "read", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "inverse-derivation-of", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000601", + "predicate": "masa:derivation-of", + "object": "urn:uuid:00000000-0000-4000-8000-000000000602", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "inverse-parent-of", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000601", + "predicate": "masa:parent-of", + "object": "urn:uuid:00000000-0000-4000-8000-000000000602", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "failed-claims-descendant", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "failed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "failed-without-descendant", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "failed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "refused-claims-descendant", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "refused", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "refused-without-descendant", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "refused", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "cancelled-claims-descendant", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "cancelled", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "cancelled-without-descendant", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "cancelled", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "not_performed-claims-descendant", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "not_performed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "not_performed-without-descendant", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "not_performed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "undetermined-claims-descendant", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "undetermined", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "undetermined-without-descendant", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "undetermined", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "partial-with-produced-descendant", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "partial", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "partial-output-without-authority", + "valid": false, + "codes": [ + "MASA_POLICY_DENIED" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "partial", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "prohibited", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "partial-without-output", + "valid": true, + "codes": [], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "partial", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "partial-fabricates-descendant", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "partial", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "undetermined-with-output", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "undetermined", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "wrong-output", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "wrong-parent-input", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "non-generating-effect", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "read", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "missing-operation", + "valid": false, + "codes": [ + "MASA_DESCENDANT_RECEIPT" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "inverse-wrong-parent", + "valid": false, + "codes": [ + "MASA_DESCENDANT_CAUSALITY" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000601", + "predicate": "masa:parent-of", + "object": "urn:uuid:00000000-0000-4000-8000-000000000602", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "completed-operation-without-profile-or-preservation", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "completed-missing-preservationIntent", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "mixed-valid-and-missing-preservationIntent", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000998", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 1, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3 + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "completed-missing-properties", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "mixed-valid-and-missing-properties", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000998", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 1, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "completed-missing-verification", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ] + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "mixed-valid-and-missing-verification", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000998", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 1, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ] + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "completed-missing-outputs", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + }, + { + "name": "mixed-valid-and-missing-outputs", + "valid": false, + "codes": [ + "MASA_PROFILE_MISMATCH" + ], + "record": { + "$schema": "https://masa.sonicfield.org/schemas/0.2.0/matter-record.schema.json", + "masaVersion": "0.2.0", + "id": "urn:uuid:00000000-0000-4000-8000-000000000003", + "type": "masa:MatterRecord", + "revision": 1, + "profiles": [ + "core", + "audio", + "transformation" + ], + "createdAt": "2026-07-27T12:00:00Z", + "createdBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "title": "Lineage-preserving transformation", + "description": "A representation is registered without claiming that it is identical to a physical event or perceptual object.", + "actors": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000101", + "type": "masa:Actor", + "actorKind": "human", + "roles": [ + "record-creator" + ], + "name": { + "state": "known", + "value": "Local example author" + }, + "disclosure": "private", + "extensions": {} + } + ], + "sources": [], + "representations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000601", + "type": "masa:Representation", + "role": "source-representation", + "mediaType": "audio/wav", + "format": { + "state": "unknown", + "reason": "The example does not include source bytes.", + "reasonCode": "not_bundled" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000602", + "type": "masa:Representation", + "role": "derivative", + "mediaType": "audio/wav", + "format": { + "state": "known", + "value": "WAVE PCM derivative; bytes omitted from fixture" + }, + "availability": "unavailable", + "locator": { + "state": "unavailable", + "reason": "No asset is bundled with this minimal example.", + "reasonCode": "not_bundled" + }, + "integrity": { + "state": "unknown", + "reason": "Integrity cannot be verified without bytes.", + "reasonCode": "not_bundled" + }, + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "disclosure": "private", + "extensions": {}, + "audio": { + "durationSeconds": { + "state": "known", + "value": 1 + }, + "channels": { + "state": "known", + "value": 1 + }, + "sampleRateHz": { + "state": "known", + "value": 48000 + }, + "bitDepth": { + "state": "known", + "value": 24 + }, + "encoding": { + "state": "known", + "value": "PCM signed integer little-endian" + }, + "spatialFormat": { + "state": "known", + "value": "mono" + }, + "levelContext": { + "state": "unknown", + "reason": "No calibrated playback or capture level is attached to this fixture.", + "reasonCode": "not_calibrated" + } + } + } + ], + "encounters": [], + "apertures": [], + "listeningPasses": [], + "claims": [], + "regions": [], + "measurements": [], + "observations": [], + "mappings": [], + "relations": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000605", + "type": "masa:Relation", + "subject": "urn:uuid:00000000-0000-4000-8000-000000000602", + "predicate": "masa:derived-from", + "object": "urn:uuid:00000000-0000-4000-8000-000000000601", + "assertedBy": "urn:uuid:00000000-0000-4000-8000-000000000101", + "createdAt": "2026-07-27T12:01:01Z", + "basis": [ + { + "ref": "urn:uuid:00000000-0000-4000-8000-000000000603", + "role": "operation" + } + ], + "operationRef": "urn:uuid:00000000-0000-4000-8000-000000000603", + "extensions": {} + } + ], + "policies": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000301", + "type": "masa:Policy", + "policyKind": "composite", + "issuer": "urn:uuid:00000000-0000-4000-8000-000000000101", + "status": "active", + "disclosure": "private", + "rules": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000302", + "effect": "permission", + "actions": [ + "read", + "validate", + "transform" + ], + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000003" + ], + "subjects": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "authorityBasis": { + "state": "known", + "value": "Local creator declaration for this private example" + }, + "constraints": { + "network": "prohibited" + }, + "duties": [ + "Preserve provenance and unknown states" + ] + } + ], + "review": { + "contact": { + "state": "unknown", + "reason": "No external contact exists for a local fixture.", + "reasonCode": "local_fixture" + }, + "route": { + "state": "known", + "value": "Review the record with the local MASA CLI" + } + }, + "extensions": {} + } + ], + "contexts": [], + "agentRuns": [], + "capabilities": [], + "integrity": { + "state": "unknown", + "reason": "The standalone example is an account rather than a bundled byte artifact.", + "reasonCode": "not_bundled" + }, + "history": { + "mode": "embedded", + "events": [ + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000603", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 0, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + }, + { + "id": "urn:uuid:00000000-0000-4000-8000-000000000998", + "type": "masa:OperationReceipt", + "recordId": "urn:uuid:00000000-0000-4000-8000-000000000003", + "sequence": 1, + "operationType": "matter.transform", + "effectClass": "transform", + "finalStatus": "completed", + "startedAt": "2026-07-27T12:01:00Z", + "endedAt": "2026-07-27T12:01:01Z", + "actors": [ + "urn:uuid:00000000-0000-4000-8000-000000000101" + ], + "inputs": [ + "urn:uuid:00000000-0000-4000-8000-000000000601" + ], + "outputs": [], + "tool": { + "state": "known", + "value": { + "id": "urn:uuid:00000000-0000-4000-8000-000000000604", + "name": "MASA fixture transform", + "version": { + "state": "known", + "value": "0.1.0" + }, + "kind": "script" + } + }, + "parameters": { + "operation": "gain", + "gainDb": -3, + "preservationIntent": { + "properties": [ + "duration", + "channel-layout" + ], + "verification": { + "state": "unknown", + "reason": "Derivative bytes are omitted from this structural fixture.", + "reasonCode": "not_bundled" + } + } + }, + "policyEvaluation": { + "action": "transform", + "targets": [ + "urn:uuid:00000000-0000-4000-8000-000000000602" + ], + "policyRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000301" + ], + "result": "permitted", + "evaluatedAt": "2026-07-27T12:01:00Z", + "evaluator": "urn:uuid:00000000-0000-4000-8000-000000000101", + "authorityRefs": [ + "urn:uuid:00000000-0000-4000-8000-000000000302" + ], + "reasons": [ + "The active local fixture policy explicitly permits this bounded operation." + ] + }, + "reversibility": "compensatable", + "determinism": { + "state": "deterministic" + }, + "warnings": [], + "errors": [], + "claimRefs": [], + "extensions": {} + } + ] + }, + "disclosure": "private", + "registers": [ + "digital-technical" + ], + "scales": [ + "object-event" + ], + "extensions": { + "example:roundtrip": { + "deep": { + "values": [ + "preserve", + "without-interpretation" + ] + } + } + } + } + } +] diff --git a/mcp/package.json b/mcp/package.json index 9cc44e9..731a9c0 100644 --- a/mcp/package.json +++ b/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@sonicfield/masa-mcp", - "version": "0.2.0", + "version": "0.2.2", "private": true, "license": "MIT", "description": "Read-oriented local MCP server for MASA", @@ -36,7 +36,7 @@ "devDependencies": { "@types/node": "24.13.3", "typescript": "7.0.2", - "vitest": "4.1.10" + "vitest": "4.1.11" }, "engines": { "node": ">=22.20" diff --git a/package.json b/package.json index 189db71..29ecd7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sonicfield/masa-workspace", - "version": "0.2.0", + "version": "0.2.2", "private": true, "license": "MIT", "description": "Local-first reference repository for the MASA Sound Matter Aware protocol", @@ -10,10 +10,10 @@ "node": ">=22.20" }, "scripts": { - "generate": "tsx scripts/generate-examples.ts && tsx scripts/generate-capabilities.ts && tsx scripts/generate-artifacts.ts", + "generate": "tsx scripts/generate-examples.ts && tsx scripts/generate-lineage-cases.ts && tsx scripts/generate-capabilities.ts && tsx scripts/generate-artifacts.ts", "build": "pnpm generate && tsc -b", "typecheck": "pnpm generate && tsc -b --pretty false", - "test": "vitest run", + "test": "node --test scripts/audit-dependencies.test.mjs && vitest run", "test:coverage": "vitest run --coverage", "schemas:check": "tsx scripts/check-schemas.ts", "examples:validate": "tsx scripts/validate-examples.ts", @@ -23,7 +23,8 @@ "artifacts:smoke": "tsx scripts/smoke-package-artifacts.ts", "check": "pnpm build && pnpm schemas:check && pnpm test && pnpm examples:validate && pnpm conformance && pnpm -r exec publint && pnpm artifacts:inspect && pnpm artifacts:smoke", "masa": "tsx cli/src/index.ts", - "mcp": "node mcp/dist/server.js" + "mcp": "node mcp/dist/server.js", + "audit:dependencies": "node scripts/audit-dependencies.mjs" }, "devDependencies": { "@modelcontextprotocol/sdk": "1.30.0", @@ -31,13 +32,22 @@ "@sonicfield/masa-bundle": "workspace:*", "@sonicfield/masa-validator": "workspace:*", "@types/node": "24.13.3", - "@vitest/coverage-v8": "4.1.10", + "@vitest/coverage-v8": "4.1.11", "ajv": "8.20.0", "ajv-formats": "3.0.1", "json-schema-to-typescript": "15.0.4", "publint": "0.3.23", "tsx": "4.23.11", "typescript": "7.0.2", - "vitest": "4.1.10" + "vitest": "4.1.11" + }, + "pnpm": { + "overrides": { + "fast-uri@3": "3.1.8", + "qs@6": "6.16.0", + "js-yaml@4": "4.3.2", + "hono@4": "4.13.7", + "ip-address@10": "10.7.1" + } } } diff --git a/packages/bundle/package.json b/packages/bundle/package.json index e1d11b3..a1d20c4 100644 --- a/packages/bundle/package.json +++ b/packages/bundle/package.json @@ -1,6 +1,6 @@ { "name": "@sonicfield/masa-bundle", - "version": "0.2.0", + "version": "0.2.2", "description": "Deterministic, bounded MASA directory and ZIP bundle tooling", "type": "module", "private": true, diff --git a/packages/bundle/src/content.ts b/packages/bundle/src/content.ts index 6ad60b5..e8156aa 100644 --- a/packages/bundle/src/content.ts +++ b/packages/bundle/src/content.ts @@ -8,6 +8,7 @@ import { type OperationReceipt } from "@sonicfield/masa"; import { + type LineageReceipt, validateOperationReceipt, validateMatterRecord } from "@sonicfield/masa-validator"; @@ -91,10 +92,7 @@ export function validateRecordBuffer(buffer: Buffer, instancePath: string): Reco } /** The bounded slice of a receipt retained for cross-file closure checks. */ -export interface ReceiptClosureView { - readonly id: string; - readonly recordId: string; -} +export type ReceiptClosureView = LineageReceipt; export class NdjsonReceiptValidator { readonly diagnostics: Diagnostic[] = []; @@ -205,7 +203,8 @@ export class NdjsonReceiptValidator { if (!result.valid || result.value === undefined) { return; } - this.receipts.push({ id: result.value.id, recordId: result.value.recordId }); + const { id, recordId, inputs, outputs, effectClass, finalStatus } = result.value; + this.receipts.push({ id, recordId, inputs, outputs, effectClass, finalStatus }); this.#validateOrder(result.value, path); } diff --git a/packages/bundle/src/directory.ts b/packages/bundle/src/directory.ts index f939811..bbccf6e 100644 --- a/packages/bundle/src/directory.ts +++ b/packages/bundle/src/directory.ts @@ -1,3 +1,4 @@ +import { auditDescendantReceipts } from "@sonicfield/masa-validator"; import { createReadStream } from "node:fs"; import { lstat, @@ -50,6 +51,7 @@ interface DirectoryEntry { */ export interface RecordClosureView { readonly id: string; + readonly lineage?: Record; readonly externalHistory?: { readonly href: string; readonly eventIds: readonly string[]; @@ -61,7 +63,14 @@ export function recordClosureView(record: MatterRecord): RecordClosureView { | { readonly mode: "embedded" } | { readonly mode: "external"; readonly href: string; readonly eventIds: readonly string[] }; if (history.mode === "external") { - return { id: record.id, externalHistory: { href: history.href, eventIds: history.eventIds } }; + return { + id: record.id, externalHistory: { href: history.href, eventIds: history.eventIds }, + lineage: { + representations: record.representations.map(({ id }) => ({ id })), + relations: record.relations.map(({ subject, predicate, object, operationRef }) => + ({ subject, predicate, object, operationRef })), + }, + }; } return { id: record.id }; } @@ -479,7 +488,15 @@ export function verifyExternalHistoryClosure( for (const [recordIndex, reference] of view.records.entries()) { const record = recordsByPath.get(reference.path); const history = record?.externalHistory; - if (history === undefined) continue; + if (record === undefined || history === undefined) continue; + if (record.lineage !== undefined) { + const resolved = new Map(history.eventIds.flatMap((id) => { + const receipt = receiptById.get(id); + return receipt === undefined ? [] : [[id, receipt] as const]; + })); + diagnostics.push(...auditDescendantReceipts(record.lineage, resolved, new Set(history.eventIds)) + .map((item) => ({ ...item, instancePath: `/records/${recordIndex}${item.instancePath}` }))); + } if (!hasEventLog) { diagnostics.push( diagnostic( diff --git a/packages/bundle/src/index.test.ts b/packages/bundle/src/index.test.ts index f8d66f8..b36bc8f 100644 --- a/packages/bundle/src/index.test.ts +++ b/packages/bundle/src/index.test.ts @@ -275,6 +275,29 @@ describe("external event-log closure", () => { }); }); +describe("external causal and preservation matrix", async () => { + const cases = JSON.parse(await readFile(join(repositoryRoot, "examples/0.2.0/lineage-cases.json"), "utf8")) as + Array<{ name: string; valid: boolean; record: any }>; + for (const scenario of cases) { + it(scenario.name + " in directory and ZIP", async () => { + const root = await temporaryRoot(); + const record = structuredClone(scenario.record); + const events = record.history.events; + record.history = { mode: "external", href: "events.ndjson", eventIds: events.map((e: OperationReceipt) => e.id) }; + const directory = await createBundleDirectory(root, "external.masa", { record, events }); + const inspected = await inspectBundle(directory); + expect(inspected.valid, JSON.stringify(inspected.diagnostics)).toBe(scenario.valid); + const archive = join(root, "external.zip"); + await writeRawZip(archive, await Promise.all( + ["manifest.json", "records/minimal.masa.json", "events.ndjson"].map(async path => + ({ path, data: await readFile(join(directory, path)) })), + )); + const zipped = await inspectBundle(archive); + expect(zipped.valid, JSON.stringify(zipped.diagnostics)).toBe(scenario.valid); + }); + } +}); + async function temporaryRoot(): Promise { const value = await mkdtemp(join(tmpdir(), "masa-bundle-test-")); temporaryRoots.push(value); diff --git a/packages/core/package.json b/packages/core/package.json index 895401c..686a1f7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@sonicfield/masa", - "version": "0.2.0", + "version": "0.2.2", "private": true, "license": "MIT", "description": "Browser-safe types and pure utilities for MASA 0.2.0", diff --git a/packages/core/src/generated/protocol-resources.ts b/packages/core/src/generated/protocol-resources.ts index 7ad8383..c671948 100644 --- a/packages/core/src/generated/protocol-resources.ts +++ b/packages/core/src/generated/protocol-resources.ts @@ -25,11 +25,11 @@ export const referenceCapabilitySet = { "masaVersion": "0.2.0", "id": "https://masa.sonicfield.org/capabilities/0.2.0/reference", "implementation": { - "id": "https://masa.sonicfield.org/implementations/typescript-reference/0.2.0", + "id": "https://masa.sonicfield.org/implementations/typescript-reference/0.2.2", "name": "MASA local TypeScript reference", - "version": "0.2.0" + "version": "0.2.2" }, - "generatedAt": "2026-08-11T00:00:00.000Z", + "generatedAt": "2026-10-01T02:00:16.890Z", "capabilities": [ { "id": "https://masa.sonicfield.org/capabilities/0.2.0/matter.validate", diff --git a/packages/core/src/generated/version.ts b/packages/core/src/generated/version.ts index d71d934..5688f01 100644 --- a/packages/core/src/generated/version.ts +++ b/packages/core/src/generated/version.ts @@ -1,3 +1,3 @@ /** Generated from synchronized MASA workspace package metadata. */ export const MASA_PROTOCOL_VERSION = "0.2.0"; -export const MASA_REFERENCE_IMPLEMENTATION_VERSION = "0.2.0"; +export const MASA_REFERENCE_IMPLEMENTATION_VERSION = "0.2.2"; diff --git a/packages/validator/package.json b/packages/validator/package.json index 0506948..3f80713 100644 --- a/packages/validator/package.json +++ b/packages/validator/package.json @@ -1,6 +1,6 @@ { "name": "@sonicfield/masa-validator", - "version": "0.2.0", + "version": "0.2.2", "private": true, "license": "MIT", "description": "Offline structural, semantic, profile, and public-safety validation for MASA 0.2.0", diff --git a/packages/validator/src/generated/schemas.ts b/packages/validator/src/generated/schemas.ts index 48aaac3..631d4b0 100644 --- a/packages/validator/src/generated/schemas.ts +++ b/packages/validator/src/generated/schemas.ts @@ -4118,6 +4118,7 @@ export const embeddedSchemas: readonly EmbeddedSchema[] = [ "operationType": { "type": "string", "enum": [ + "matter.derive", "matter.granulate", "matter.extract", "matter.reduce", @@ -4929,6 +4930,7 @@ export const embeddedSchemas: readonly EmbeddedSchema[] = [ "properties": { "operationType": { "enum": [ + "matter.derive", "matter.granulate", "matter.extract", "matter.reduce", @@ -5670,6 +5672,14 @@ export const embeddedSchemas: readonly EmbeddedSchema[] = [ "events": { "contains": { "$ref": "#/$defs/TransformationOperation" + }, + "items": { + "if": { + "$ref": "#/$defs/TransformationType" + }, + "then": { + "$ref": "#/$defs/TransformationOperation" + } } } } @@ -5712,7 +5722,7 @@ export const embeddedSchemas: readonly EmbeddedSchema[] = [ }, "events": { "contains": { - "$ref": "#/$defs/CompletedTransformation" + "$ref": "#/$defs/CompletedKind" } } } @@ -5763,25 +5773,21 @@ export const embeddedSchemas: readonly EmbeddedSchema[] = [ "$ref": "definitions.schema.json#/$defs/OperationReceipt" }, { - "properties": { - "operationType": { - "enum": [ - "matter.segment", - "matter.isolate", - "matter.transform", - "matter.sculpt", - "matter.recompose", - "matter.render", - "matter.compensate" - ] - }, - "effectClass": { - "enum": [ - "derive", - "transform", - "render" - ] + "$ref": "#/$defs/TransformationKind" + }, + { + "if": { + "required": [ + "finalStatus" + ], + "properties": { + "finalStatus": { + "const": "completed" + } } + }, + "then": { + "$ref": "#/$defs/CompletedRequirements" } } ] @@ -5836,6 +5842,88 @@ export const embeddedSchemas: readonly EmbeddedSchema[] = [ } }, "additionalProperties": false + }, + "TransformationKind": { + "properties": { + "operationType": { + "enum": [ + "matter.segment", + "matter.isolate", + "matter.transform", + "matter.sculpt", + "matter.recompose", + "matter.render", + "matter.compensate" + ] + }, + "effectClass": { + "enum": [ + "derive", + "transform", + "render" + ] + } + }, + "required": [ + "operationType", + "effectClass" + ] + }, + "CompletedKind": { + "allOf": [ + { + "$ref": "#/$defs/TransformationKind" + }, + { + "required": [ + "finalStatus" + ], + "properties": { + "finalStatus": { + "const": "completed" + } + } + } + ] + }, + "CompletedRequirements": { + "properties": { + "finalStatus": { + "const": "completed" + }, + "outputs": { + "minItems": 1 + }, + "parameters": { + "type": "object", + "required": [ + "preservationIntent" + ], + "properties": { + "preservationIntent": { + "$ref": "#/$defs/PreservationIntent" + } + } + } + } + }, + "TransformationType": { + "required": [ + "operationType" + ], + "properties": { + "operationType": { + "enum": [ + "matter.segment", + "matter.isolate", + "matter.transform", + "matter.sculpt", + "matter.recompose", + "matter.render", + "matter.compensate" + ] + } + } } } } diff --git a/packages/validator/src/index.test.ts b/packages/validator/src/index.test.ts index 4f79e24..2a055b0 100644 --- a/packages/validator/src/index.test.ts +++ b/packages/validator/src/index.test.ts @@ -466,3 +466,17 @@ describe("offline MASA validation", () => { expect(audit.diagnostics.map(({ code }) => code)).toContain("MASA_POLICY_DENIED"); }); }); + + +describe("generic external processing derivation", () => { + it("requires the same processing lineage for matter.derive", () => { + const record = fixture("examples/0.2.0/valid/processing.masa.json") as MatterRecord; + const raw = record as unknown as { history: { events: { operationType: string; parameters: unknown }[] }; relations: unknown[] }; + const event = raw.history.events.find(e => e.operationType === "matter.granulate")!; + event.operationType = "matter.derive"; + event.parameters = { "example:engine": "external transform" }; + expect(validateMatterRecord(record).valid).toBe(true); + raw.relations = []; + expect(validateMatterRecord(record).valid).toBe(false); + }); +}); diff --git a/packages/validator/src/index.ts b/packages/validator/src/index.ts index a2c02f7..2dead2e 100644 --- a/packages/validator/src/index.ts +++ b/packages/validator/src/index.ts @@ -25,7 +25,7 @@ import { auditEventReceiptSemantics, auditMatterRecordSemantics } from "./semant export { SCHEMA_IDS } from "./generated/schemas.js"; export { auditPublicSafety } from "./public-audit.js"; -export { auditEventReceiptSemantics, auditMatterRecordSemantics } from "./semantics.js"; +export { auditDescendantReceipts, type LineageReceipt, auditEventReceiptSemantics, auditMatterRecordSemantics } from "./semantics.js"; const PROFILE_SCHEMA_IDS: Readonly> = { core: SCHEMA_IDS.profileCore, @@ -96,6 +96,13 @@ export function validateMatterRecord(value: unknown): ValidationResult(schemaId, value, "MASA_PROFILE_MISMATCH").diagnostics, ); } + if (isJsonObject(raw.history) && raw.history.mode === "embedded") { + asJsonArray(raw.history.events).forEach((event, index) => { + diagnostics.push(...validateTransformationReceipt(event).map(item => ({ + ...item, instancePath: `/history/events/${index}${item.instancePath}`, + }))); + }); + } diagnostics.push(...auditMatterRecordSemantics(structural.value)); return result(structural.value, diagnostics); } @@ -105,7 +112,17 @@ export function validateOperationReceipt(value: unknown): ValidationResult { diff --git a/packages/validator/src/lineage.test.ts b/packages/validator/src/lineage.test.ts new file mode 100644 index 0000000..ddbe5a9 --- /dev/null +++ b/packages/validator/src/lineage.test.ts @@ -0,0 +1,26 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; +import { validateMatterRecord, validateOperationReceipt } from "./index.js"; +const cases = JSON.parse(readFileSync(new URL("../../../examples/0.2.0/lineage-cases.json", import.meta.url), "utf8")) as Array<{ + name: string; valid: boolean; codes: string[]; record: any; +}>; +describe("bidirectional generating lineage and per-event preservation", () => { + for (const scenario of cases) { + it(scenario.name, () => { + const result = validateMatterRecord(scenario.record); + expect(result.valid, JSON.stringify(result.diagnostics)).toBe(scenario.valid); + for (const code of scenario.codes) expect(result.diagnostics.map(d => d.code)).toContain(code); + }); + } + it("defers external receipt contents without pretending to verify causality", () => { + const record = structuredClone(cases[0]!.record); + record.history = { mode: "external", href: "events.ndjson", eventIds: [record.history.events[0].id] }; + expect(validateMatterRecord(record).valid).toBe(true); + }); + it("checks completed preservation in standalone external receipts", () => { + const receipt = structuredClone(cases[0]!.record.history.events[0]); + expect(validateOperationReceipt(receipt).valid).toBe(true); + delete receipt.parameters.preservationIntent; + expect(validateOperationReceipt(receipt).valid).toBe(false); + }); +}); diff --git a/packages/validator/src/semantics.ts b/packages/validator/src/semantics.ts index d6a0a5b..27fe64d 100644 --- a/packages/validator/src/semantics.ts +++ b/packages/validator/src/semantics.ts @@ -14,6 +14,7 @@ import { import { diagnostic } from "./diagnostic.js"; const PROCESSING_OPERATIONS = new Set([ + "matter.derive", "matter.granulate", "matter.extract", "matter.reduce", @@ -138,7 +139,8 @@ export function auditEventReceiptSemantics(receipt: OperationReceipt): Diagnosti } if ( - readString(raw, "finalStatus") === "completed" && + (readString(raw, "finalStatus") === "completed" || + (readString(raw, "finalStatus") === "partial" && outputs.length > 0)) && effectClass !== undefined && CONSEQUENTIAL_EFFECTS.has(effectClass) ) { @@ -149,7 +151,7 @@ export function auditEventReceiptSemantics(receipt: OperationReceipt): Diagnosti diagnostic( "MASA_POLICY_DENIED", "/policyEvaluation/result", - "A completed consequential operation lacks an authorizing policy result", + "A completed or output-producing partial consequential operation lacks an authorizing policy result", "Refuse the operation or attach an attributable permitted policy evaluation before performing it", ), ); @@ -721,9 +723,16 @@ function auditDerivationGraph(record: Record): Diagnostic[] { return diagnostics; } -function auditDescendantReceipts( +/** Only causal fields are needed when validating bounded external-history summaries. */ +export type LineageReceipt = Pick; + +const GENERATING_EFFECTS = new Set([ + "derive", "transform", "generate", "map", "render", "perform", "remember", "publish", +]); + +export function auditDescendantReceipts( record: Record, - eventsById: ReadonlyMap, + eventsById: ReadonlyMap, knownIds: ReadonlySet, ): Diagnostic[] { const diagnostics: Diagnostic[] = []; @@ -762,6 +771,20 @@ function auditDescendantReceipts( ), ); } + const receipt = operationRef === undefined ? undefined : eventsById.get(operationRef); + // External IDs remain unresolved evidence until the bundle supplies their receipts. + if (receipt !== undefined && ( + !receipt.inputs.includes(parent) || !receipt.outputs.includes(descendant) || + !(GENERATING_EFFECTS.has(receipt.effectClass) || + (predicate === "masa:captured-from" && receipt.effectClass === "read")) || + !["completed", "partial"].includes(receipt.finalStatus) + )) { + diagnostics.push(diagnostic( + "MASA_DESCENDANT_CAUSALITY", `/relations/${index}/operationRef`, + "A descendant must be an actual output of a completed or partial generating receipt that consumed its parent", + "Correct the causal assertion; preserve unsuccessful attempts without claiming they generated descendants", + )); + } if (descendant === parent) { diagnostics.push( diagnostic( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 251da45..acd2934 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,13 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + fast-uri@3: 3.1.8 + qs@6: 6.16.0 + js-yaml@4: 4.3.2 + hono@4: 4.13.7 + ip-address@10: 10.7.1 + importers: .: @@ -24,8 +31,8 @@ importers: specifier: 24.13.3 version: 24.13.3 '@vitest/coverage-v8': - specifier: 4.1.10 - version: 4.1.10(vitest@4.1.10) + specifier: 4.1.11 + version: 4.1.11(vitest@4.1.11) ajv: specifier: 8.20.0 version: 8.20.0 @@ -45,8 +52,8 @@ importers: specifier: 7.0.2 version: 7.0.2 vitest: - specifier: 4.1.10 - version: 4.1.10(@types/node@24.13.3)(@vitest/coverage-v8@4.1.10)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) + specifier: 4.1.11 + version: 4.1.11(@types/node@24.13.3)(@vitest/coverage-v8@4.1.11)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) cli: dependencies: @@ -67,8 +74,8 @@ importers: specifier: 7.0.2 version: 7.0.2 vitest: - specifier: 4.1.10 - version: 4.1.10(@types/node@24.13.3)(@vitest/coverage-v8@4.1.10)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) + specifier: 4.1.11 + version: 4.1.11(@types/node@24.13.3)(@vitest/coverage-v8@4.1.11)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) mcp: dependencies: @@ -95,8 +102,8 @@ importers: specifier: 7.0.2 version: 7.0.2 vitest: - specifier: 4.1.10 - version: 4.1.10(@types/node@24.13.3)(@vitest/coverage-v8@4.1.10)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) + specifier: 4.1.11 + version: 4.1.11(@types/node@24.13.3)(@vitest/coverage-v8@4.1.11)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) packages/bundle: dependencies: @@ -330,7 +337,7 @@ packages: resolution: {integrity: sha512-XovyyCCnBzW+zKu+z/zq8hwNs4KOR5rEMAOxo2f40Q5xoOI37IMm6MIg2COOUtUApo0i6850MTBKH2u4QLGIqg==} engines: {node: '>=20'} peerDependencies: - hono: ^4 + hono: 4.13.7 '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} @@ -355,12 +362,12 @@ packages: '@cfworker/json-schema': optional: true - '@napi-rs/wasm-runtime@1.2.2': - resolution: {integrity: sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==} + '@napi-rs/wasm-runtime@1.2.3': + resolution: {integrity: sha512-UMduMbqO5s5zF2NkNacMT/yK5Y5QiKvWr2+50bzIIxFDwVJ2h49b+oyjaCGPhJxd2/gC2x39EHv/gHVuu36x2Q==} engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} peerDependencies: - '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.3 - '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.3 + '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 + '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 '@oxc-project/types@0.139.0': resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==} @@ -617,20 +624,20 @@ packages: cpu: [x64] os: [win32] - '@vitest/coverage-v8@4.1.10': - resolution: {integrity: sha512-IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g==} + '@vitest/coverage-v8@4.1.11': + resolution: {integrity: sha512-8MVGEFnJIcdGjcbfKmeq8z0pZHH0JlVtoVZH9Q/qwUp6wyFnEJUBMrw9DCaj+ra3vShGmhavjalMIhPNxZAUcw==} peerDependencies: - '@vitest/browser': 4.1.10 - vitest: 4.1.10 + '@vitest/browser': 4.1.11 + vitest: 4.1.11 peerDependenciesMeta: '@vitest/browser': optional: true - '@vitest/expect@4.1.10': - resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} + '@vitest/expect@4.1.11': + resolution: {integrity: sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==} - '@vitest/mocker@4.1.10': - resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} + '@vitest/mocker@4.1.11': + resolution: {integrity: sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==} peerDependencies: msw: ^2.4.9 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -640,20 +647,20 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.10': - resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} + '@vitest/pretty-format@4.1.11': + resolution: {integrity: sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==} - '@vitest/runner@4.1.10': - resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} + '@vitest/runner@4.1.11': + resolution: {integrity: sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==} - '@vitest/snapshot@4.1.10': - resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} + '@vitest/snapshot@4.1.11': + resolution: {integrity: sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==} - '@vitest/spy@4.1.10': - resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} + '@vitest/spy@4.1.11': + resolution: {integrity: sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==} - '@vitest/utils@4.1.10': - resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} + '@vitest/utils@4.1.11': + resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==} accepts@2.0.0: resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} @@ -818,8 +825,8 @@ packages: fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - fast-uri@3.1.5: - resolution: {integrity: sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==} + fast-uri@3.1.8: + resolution: {integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==} fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} @@ -874,8 +881,8 @@ packages: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} - hono@4.13.1: - resolution: {integrity: sha512-kdJoFVv2xmayw6cY09H7AbMJMt8Jn5jdlEdXsP7AGBdF2DIptVlKlOLKXP41yPip4/a3yQPv9gVcJYI8YY04dw==} + hono@4.13.7: + resolution: {integrity: sha512-c8/gF9ac8Y78/agExVocyLevgR+JlpNB444Py0FSX8pJoPdYUfUzRcXtYEYGwt6l19qIlVZPN5Mfsw9jFShmQQ==} engines: {node: '>=16.9.0'} html-escaper@2.0.2: @@ -892,8 +899,8 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - ip-address@10.4.0: - resolution: {integrity: sha512-oSK96Grm3aP6OrS263xVxbNDGVL7rzBtYdpGqlDG8iQdoenDoTs/nkki+DflYbAEE8Xl6o5YxhxlrKvI3nqKXQ==} + ip-address@10.7.1: + resolution: {integrity: sha512-4OUAqU9Z1i3vCnS05hzGiFnEMDpQ+62pAD/MVQOp83fYyNC8GleCqaS0QikQBmcWCrKFiUs/B8ztRRiYOAXuCA==} engines: {node: '>= 12'} ipaddr.js@1.9.1: @@ -932,8 +939,8 @@ packages: js-tokens@10.0.0: resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==} - js-yaml@4.3.1: - resolution: {integrity: sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==} + js-yaml@4.3.2: + resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} hasBin: true json-schema-to-typescript@15.0.4: @@ -1119,12 +1126,16 @@ packages: resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} engines: {node: '>=12'} + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + pkce-challenge@5.0.1: resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} engines: {node: '>=16.20.0'} - postcss@8.5.26: - resolution: {integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==} + postcss@8.5.28: + resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==} engines: {node: ^10 || ^12 || >=14} prettier@3.9.6: @@ -1141,8 +1152,8 @@ packages: engines: {node: '>=18'} hasBin: true - qs@6.15.3: - resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} + qs@6.16.0: + resolution: {integrity: sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==} engines: {node: '>=0.6'} range-parser@1.3.0: @@ -1324,20 +1335,20 @@ packages: yaml: optional: true - vitest@4.1.10: - resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} + vitest@4.1.11: + resolution: {integrity: sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==} engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.10 - '@vitest/browser-preview': 4.1.10 - '@vitest/browser-webdriverio': 4.1.10 - '@vitest/coverage-istanbul': 4.1.10 - '@vitest/coverage-v8': 4.1.10 - '@vitest/ui': 4.1.10 + '@vitest/browser-playwright': 4.1.11 + '@vitest/browser-preview': 4.1.11 + '@vitest/browser-webdriverio': 4.1.11 + '@vitest/coverage-istanbul': 4.1.11 + '@vitest/coverage-v8': 4.1.11 + '@vitest/ui': 4.1.11 happy-dom: '*' jsdom: '*' vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1399,7 +1410,7 @@ snapshots: dependencies: '@jsdevtools/ono': 7.1.3 '@types/json-schema': 7.0.15 - js-yaml: 4.3.1 + js-yaml: 4.3.2 '@babel/helper-string-parser@7.29.7': {} @@ -1510,9 +1521,9 @@ snapshots: '@esbuild/win32-x64@0.28.1': optional: true - '@hono/node-server@2.1.0(hono@4.13.1)': + '@hono/node-server@2.1.0(hono@4.13.7)': dependencies: - hono: 4.13.1 + hono: 4.13.7 '@jridgewell/resolve-uri@3.1.2': {} @@ -1527,7 +1538,7 @@ snapshots: '@modelcontextprotocol/sdk@1.30.0(zod@4.4.3)': dependencies: - '@hono/node-server': 2.1.0(hono@4.13.1) + '@hono/node-server': 2.1.0(hono@4.13.7) ajv: 8.20.0 ajv-formats: 3.0.1(ajv@8.20.0) content-type: 1.0.5 @@ -1537,7 +1548,7 @@ snapshots: eventsource-parser: 3.1.0 express: 5.2.1 express-rate-limit: 8.6.2(express@5.2.1) - hono: 4.13.1 + hono: 4.13.7 jose: 6.2.8 json-schema-typed: 8.0.2 pkce-challenge: 5.0.1 @@ -1547,7 +1558,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@napi-rs/wasm-runtime@1.2.2(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': + '@napi-rs/wasm-runtime@1.2.3(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': dependencies: '@emnapi/core': 1.11.1 '@emnapi/runtime': 1.11.1 @@ -1600,7 +1611,7 @@ snapshots: dependencies: '@emnapi/core': 1.11.1 '@emnapi/runtime': 1.11.1 - '@napi-rs/wasm-runtime': 1.2.2(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1) + '@napi-rs/wasm-runtime': 1.2.3(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1) optional: true '@rolldown/binding-win32-arm64-msvc@1.1.5': @@ -1703,10 +1714,10 @@ snapshots: '@typescript/typescript-win32-x64@7.0.2': optional: true - '@vitest/coverage-v8@4.1.10(vitest@4.1.10)': + '@vitest/coverage-v8@4.1.11(vitest@4.1.11)': dependencies: '@bcoe/v8-coverage': 1.0.2 - '@vitest/utils': 4.1.10 + '@vitest/utils': 4.1.11 ast-v8-to-istanbul: 1.0.5 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 @@ -1715,46 +1726,46 @@ snapshots: obug: 2.1.4 std-env: 4.2.0 tinyrainbow: 3.1.1 - vitest: 4.1.10(@types/node@24.13.3)(@vitest/coverage-v8@4.1.10)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) + vitest: 4.1.11(@types/node@24.13.3)(@vitest/coverage-v8@4.1.11)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) - '@vitest/expect@4.1.10': + '@vitest/expect@4.1.11': dependencies: '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.3 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 + '@vitest/spy': 4.1.11 + '@vitest/utils': 4.1.11 chai: 6.2.2 tinyrainbow: 3.1.1 - '@vitest/mocker@4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11))': + '@vitest/mocker@4.1.11(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11))': dependencies: - '@vitest/spy': 4.1.10 + '@vitest/spy': 4.1.11 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11) - '@vitest/pretty-format@4.1.10': + '@vitest/pretty-format@4.1.11': dependencies: tinyrainbow: 3.1.1 - '@vitest/runner@4.1.10': + '@vitest/runner@4.1.11': dependencies: - '@vitest/utils': 4.1.10 + '@vitest/utils': 4.1.11 pathe: 2.0.3 - '@vitest/snapshot@4.1.10': + '@vitest/snapshot@4.1.11': dependencies: - '@vitest/pretty-format': 4.1.10 - '@vitest/utils': 4.1.10 + '@vitest/pretty-format': 4.1.11 + '@vitest/utils': 4.1.11 magic-string: 0.30.21 pathe: 2.0.3 - '@vitest/spy@4.1.10': {} + '@vitest/spy@4.1.11': {} - '@vitest/utils@4.1.10': + '@vitest/utils@4.1.11': dependencies: - '@vitest/pretty-format': 4.1.10 + '@vitest/pretty-format': 4.1.11 convert-source-map: 2.0.0 tinyrainbow: 3.1.1 @@ -1770,7 +1781,7 @@ snapshots: ajv@8.20.0: dependencies: fast-deep-equal: 3.1.3 - fast-uri: 3.1.5 + fast-uri: 3.1.8 json-schema-traverse: 1.0.0 require-from-string: 2.0.2 @@ -1792,7 +1803,7 @@ snapshots: http-errors: 2.0.1 iconv-lite: 0.7.3 on-finished: 2.4.1 - qs: 6.15.3 + qs: 6.16.0 raw-body: 3.0.2 type-is: 2.1.0 transitivePeerDependencies: @@ -1914,7 +1925,7 @@ snapshots: dependencies: debug: 4.4.3 express: 5.2.1 - ip-address: 10.4.0 + ip-address: 10.7.1 transitivePeerDependencies: - supports-color @@ -1940,7 +1951,7 @@ snapshots: once: 1.4.0 parseurl: 1.3.3 proxy-addr: 2.0.7 - qs: 6.15.3 + qs: 6.16.0 range-parser: 1.3.0 router: 2.2.0 send: 1.2.1 @@ -1953,7 +1964,7 @@ snapshots: fast-deep-equal@3.1.3: {} - fast-uri@3.1.5: {} + fast-uri@3.1.8: {} fdir@6.5.0(picomatch@4.0.5): optionalDependencies: @@ -2007,7 +2018,7 @@ snapshots: dependencies: function-bind: 1.1.2 - hono@4.13.1: {} + hono@4.13.7: {} html-escaper@2.0.2: {} @@ -2025,7 +2036,7 @@ snapshots: inherits@2.0.4: {} - ip-address@10.4.0: {} + ip-address@10.7.1: {} ipaddr.js@1.9.1: {} @@ -2056,7 +2067,7 @@ snapshots: js-tokens@10.0.0: {} - js-yaml@4.3.1: + js-yaml@4.3.2: dependencies: argparse: 2.0.1 @@ -2066,7 +2077,7 @@ snapshots: '@types/json-schema': 7.0.15 '@types/lodash': 4.17.25 is-glob: 4.0.3 - js-yaml: 4.3.1 + js-yaml: 4.3.2 lodash: 4.18.1 minimist: 1.2.8 prettier: 3.9.6 @@ -2193,9 +2204,11 @@ snapshots: picomatch@4.0.5: {} + picomatch@4.0.7: {} + pkce-challenge@5.0.1: {} - postcss@8.5.26: + postcss@8.5.28: dependencies: nanoid: 3.3.18 picocolors: 1.1.1 @@ -2215,7 +2228,7 @@ snapshots: picocolors: 1.1.1 sade: 1.8.1 - qs@6.15.3: + qs@6.16.0: dependencies: es-define-property: 1.0.1 side-channel: 1.1.1 @@ -2405,8 +2418,8 @@ snapshots: vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11): dependencies: lightningcss: 1.33.0 - picomatch: 4.0.5 - postcss: 8.5.26 + picomatch: 4.0.7 + postcss: 8.5.28 rolldown: 1.1.5 tinyglobby: 0.2.17 optionalDependencies: @@ -2415,21 +2428,21 @@ snapshots: fsevents: 2.3.3 tsx: 4.23.11 - vitest@4.1.10(@types/node@24.13.3)(@vitest/coverage-v8@4.1.10)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)): + vitest@4.1.11(@types/node@24.13.3)(@vitest/coverage-v8@4.1.11)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)): dependencies: - '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) - '@vitest/pretty-format': 4.1.10 - '@vitest/runner': 4.1.10 - '@vitest/snapshot': 4.1.10 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 + '@vitest/expect': 4.1.11 + '@vitest/mocker': 4.1.11(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(tsx@4.23.11)) + '@vitest/pretty-format': 4.1.11 + '@vitest/runner': 4.1.11 + '@vitest/snapshot': 4.1.11 + '@vitest/spy': 4.1.11 + '@vitest/utils': 4.1.11 es-module-lexer: 2.3.1 expect-type: 1.4.0 magic-string: 0.30.21 obug: 2.1.4 pathe: 2.0.3 - picomatch: 4.0.5 + picomatch: 4.0.7 std-env: 4.2.0 tinybench: 2.9.0 tinyexec: 1.3.0 @@ -2439,7 +2452,7 @@ snapshots: why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 24.13.3 - '@vitest/coverage-v8': 4.1.10(vitest@4.1.10) + '@vitest/coverage-v8': 4.1.11(vitest@4.1.11) transitivePeerDependencies: - msw diff --git a/rfcs/0003-aperture-and-register.md b/rfcs/0003-aperture-and-register.md new file mode 100644 index 0000000..e532833 --- /dev/null +++ b/rfcs/0003-aperture-and-register.md @@ -0,0 +1,34 @@ +# RFC 0003: Aperture, sonic register and projection + +Status: **draft — not adopted**. No normative schema or ontology changes. + +An aperture describes which distinctions a declared route can support for a source, +representation, interval and claim kind. It is not a sensor capability inferred from +a sample rate. A register records the kind of evidence presented without collapsing +digital computation into physical capture or human hearing. + +Proposed terms are `masa:aperture`, `masa:sonicRegister` and `masa:projection`. +Proposed register values: `physical_acoustic_capture`, `digital_waveform`, +`simulated_field`, `nonacoustic_observation`, `sonic_control`, +`latent_representation`, `sonic_analysis`, `sonic_speculation`. + +An aperture would bind source and representation identities, observer/route, +claim kind, supported intervals and bands, evidence references, and explicit +supported/unsupported/undetermined outcomes. Disjoint bands remain disjoint. +Unknown capture support must not be promoted by an upsampled representation. + +A projection would identify native inputs, transformation receipt, intended +recipient and `losses`. Sonification changes an observation's representation; +it does not turn the original observation into acoustic capture. Human-oriented +images and audio projections remain descendants, never substitute evidence. + +Application payloads continue using `akouo/agent-native-evidence/v1`, +`akouo/aperture-request/v1` and `oida.spectral`; these proposed `masa:` terms +must not be emitted as adopted ontology terms. Oída and Station must independently +implement the semantics and supply conformance examples before a versioned MASA +decision may promote them. Neither implementation exists as a result of this RFC. + +Open decisions: vocabulary alignment with representation/claim classes, clock +alignment receipts, projection-loss vocabulary, and evidence validation ownership. +Acceptance requires two implementations, offline positive/negative conformance +fixtures and an explicit versioned decision. Until then this document is design only. diff --git a/schemas/0.2.0/processing-request.schema.json b/schemas/0.2.0/processing-request.schema.json index 4d0604a..bd3fe3d 100644 --- a/schemas/0.2.0/processing-request.schema.json +++ b/schemas/0.2.0/processing-request.schema.json @@ -29,6 +29,7 @@ "operationType": { "type": "string", "enum": [ + "matter.derive", "matter.granulate", "matter.extract", "matter.reduce", diff --git a/schemas/0.2.0/profile-processing.schema.json b/schemas/0.2.0/profile-processing.schema.json index 118caac..903a9b4 100644 --- a/schemas/0.2.0/profile-processing.schema.json +++ b/schemas/0.2.0/profile-processing.schema.json @@ -88,6 +88,7 @@ "properties": { "operationType": { "enum": [ + "matter.derive", "matter.granulate", "matter.extract", "matter.reduce", diff --git a/schemas/0.2.0/profile-transformation.schema.json b/schemas/0.2.0/profile-transformation.schema.json index d71f016..dabaa35 100644 --- a/schemas/0.2.0/profile-transformation.schema.json +++ b/schemas/0.2.0/profile-transformation.schema.json @@ -3,20 +3,43 @@ "$id": "https://masa.sonicfield.org/schemas/0.2.0/profile-transformation.schema.json", "title": "MASA 0.2.0 Transformation profile", "allOf": [ - { "$ref": "matter-record.schema.json" }, + { + "$ref": "matter-record.schema.json" + }, { "properties": { - "profiles": { "contains": { "const": "transformation" } } + "profiles": { + "contains": { + "const": "transformation" + } + } }, "anyOf": [ { "properties": { "history": { "type": "object", - "required": ["mode", "events"], + "required": [ + "mode", + "events" + ], "properties": { - "mode": { "const": "embedded" }, - "events": { "contains": { "$ref": "#/$defs/TransformationOperation" } } + "mode": { + "const": "embedded" + }, + "events": { + "contains": { + "$ref": "#/$defs/TransformationOperation" + }, + "items": { + "if": { + "$ref": "#/$defs/TransformationType" + }, + "then": { + "$ref": "#/$defs/TransformationOperation" + } + } + } } } } @@ -25,10 +48,17 @@ "properties": { "history": { "type": "object", - "required": ["mode", "eventIds"], + "required": [ + "mode", + "eventIds" + ], "properties": { - "mode": { "const": "external" }, - "eventIds": { "minItems": 1 } + "mode": { + "const": "external" + }, + "eventIds": { + "minItems": 1 + } } } } @@ -40,26 +70,50 @@ "properties": { "history": { "type": "object", - "required": ["mode", "events"], + "required": [ + "mode", + "events" + ], "properties": { - "mode": { "const": "embedded" }, - "events": { "contains": { "$ref": "#/$defs/CompletedTransformation" } } + "mode": { + "const": "embedded" + }, + "events": { + "contains": { + "$ref": "#/$defs/CompletedKind" + } + } } } } }, "then": { "properties": { - "representations": { "minItems": 2 }, + "representations": { + "minItems": 2 + }, "relations": { "contains": { "allOf": [ - { "$ref": "definitions.schema.json#/$defs/Relation" }, { - "required": ["operationRef"], + "$ref": "definitions.schema.json#/$defs/Relation" + }, + { + "required": [ + "operationRef" + ], "properties": { "predicate": { - "enum": ["masa:derived-from", "masa:derivation-of", "masa:segmented-from", "masa:isolated-from", "masa:variation-of", "masa:rendered-as", "masa:parent-of", "masa:child-of"] + "enum": [ + "masa:derived-from", + "masa:derivation-of", + "masa:segmented-from", + "masa:isolated-from", + "masa:variation-of", + "masa:rendered-as", + "masa:parent-of", + "masa:child-of" + ] } } } @@ -73,29 +127,51 @@ "$defs": { "TransformationOperation": { "allOf": [ - { "$ref": "definitions.schema.json#/$defs/OperationReceipt" }, { - "properties": { - "operationType": { - "enum": ["matter.segment", "matter.isolate", "matter.transform", "matter.sculpt", "matter.recompose", "matter.render", "matter.compensate"] - }, - "effectClass": { "enum": ["derive", "transform", "render"] } + "$ref": "definitions.schema.json#/$defs/OperationReceipt" + }, + { + "$ref": "#/$defs/TransformationKind" + }, + { + "if": { + "required": [ + "finalStatus" + ], + "properties": { + "finalStatus": { + "const": "completed" + } + } + }, + "then": { + "$ref": "#/$defs/CompletedRequirements" } } ] }, "CompletedTransformation": { "allOf": [ - { "$ref": "#/$defs/TransformationOperation" }, + { + "$ref": "#/$defs/TransformationOperation" + }, { "properties": { - "finalStatus": { "const": "completed" }, - "outputs": { "minItems": 1 }, + "finalStatus": { + "const": "completed" + }, + "outputs": { + "minItems": 1 + }, "parameters": { "type": "object", - "required": ["preservationIntent"], + "required": [ + "preservationIntent" + ], "properties": { - "preservationIntent": { "$ref": "#/$defs/PreservationIntent" } + "preservationIntent": { + "$ref": "#/$defs/PreservationIntent" + } } } } @@ -104,17 +180,108 @@ }, "PreservationIntent": { "type": "object", - "required": ["properties", "verification"], + "required": [ + "properties", + "verification" + ], "properties": { "properties": { "type": "array", - "items": { "type": "string", "minLength": 1, "maxLength": 512 }, + "items": { + "type": "string", + "minLength": 1, + "maxLength": 512 + }, "minItems": 1, "uniqueItems": true }, - "verification": { "$ref": "definitions.schema.json#/$defs/QualifiedValue" } + "verification": { + "$ref": "definitions.schema.json#/$defs/QualifiedValue" + } }, "additionalProperties": false + }, + "TransformationKind": { + "properties": { + "operationType": { + "enum": [ + "matter.segment", + "matter.isolate", + "matter.transform", + "matter.sculpt", + "matter.recompose", + "matter.render", + "matter.compensate" + ] + }, + "effectClass": { + "enum": [ + "derive", + "transform", + "render" + ] + } + }, + "required": [ + "operationType", + "effectClass" + ] + }, + "CompletedKind": { + "allOf": [ + { + "$ref": "#/$defs/TransformationKind" + }, + { + "required": [ + "finalStatus" + ], + "properties": { + "finalStatus": { + "const": "completed" + } + } + } + ] + }, + "CompletedRequirements": { + "properties": { + "finalStatus": { + "const": "completed" + }, + "outputs": { + "minItems": 1 + }, + "parameters": { + "type": "object", + "required": [ + "preservationIntent" + ], + "properties": { + "preservationIntent": { + "$ref": "#/$defs/PreservationIntent" + } + } + } + } + }, + "TransformationType": { + "required": [ + "operationType" + ], + "properties": { + "operationType": { + "enum": [ + "matter.segment", + "matter.isolate", + "matter.transform", + "matter.sculpt", + "matter.recompose", + "matter.render", + "matter.compensate" + ] + } + } } } } diff --git a/scripts/audit-dependencies.mjs b/scripts/audit-dependencies.mjs new file mode 100644 index 0000000..a793119 --- /dev/null +++ b/scripts/audit-dependencies.mjs @@ -0,0 +1,42 @@ +import { readFileSync } from 'node:fs'; +import { fileURLToPath } from 'node:url'; +import { resolve } from 'node:path'; +import { spawnSync } from 'node:child_process'; + +// pnpm may report the local importer named cli as the unrelated npm cli package. +// Suppress only the exact observed importer collision, never a registry node. +export function reviewAudit(raw, cliPackage, lock) { + if (!raw || typeof raw.advisories !== 'object' || raw.advisories === null || Array.isArray(raw.advisories)) { + throw new Error('Unsupported audit response'); + } + const excluded = []; + const remaining = []; + for (const advisory of Object.values(raw.advisories)) { + const findings = advisory.findings; + const collision = advisory.github_advisory_id === 'GHSA-6cpc-mj5c-m9rq' + && advisory.module_name === 'cli' + && Array.isArray(findings) && findings.length === 1 + && findings[0].version === '0.2.2' + && JSON.stringify(findings[0].paths) === JSON.stringify(['cli']) + && cliPackage.name === '@sonicfield/masa-cli' && cliPackage.version === '0.2.2' + && !/(?:^|[\s'"/])cli@/m.test(lock); + if (collision) excluded.push(advisory.github_advisory_id); + else remaining.push(advisory); + } + return { registry_advisories: remaining, local_importer_collisions: excluded }; +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { + const windows = process.platform === 'win32'; + const executable = windows ? (process.env.ComSpec ?? 'cmd.exe') : 'pnpm'; + const arguments_ = windows ? ['/d', '/c', 'pnpm', 'audit', '--json'] : ['audit', '--json']; + const result = spawnSync(executable, arguments_, { encoding: 'utf8', shell: false }); + if (result.error || ![0, 1].includes(result.status)) { + throw new Error('Dependency audit could not complete'); + } + const review = reviewAudit(JSON.parse(result.stdout), + JSON.parse(readFileSync(new URL('../cli/package.json', import.meta.url), 'utf8')), + readFileSync(new URL('../pnpm-lock.yaml', import.meta.url), 'utf8')); + console.log(JSON.stringify(review, null, 2)); + process.exitCode = review.registry_advisories.length ? 1 : 0; +} diff --git a/scripts/audit-dependencies.test.mjs b/scripts/audit-dependencies.test.mjs new file mode 100644 index 0000000..b5543d2 --- /dev/null +++ b/scripts/audit-dependencies.test.mjs @@ -0,0 +1,28 @@ +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { reviewAudit } from './audit-dependencies.mjs'; + +const owner = { name: '@sonicfield/masa-cli', version: '0.2.2' }; +const advisory = { github_advisory_id: 'GHSA-6cpc-mj5c-m9rq', module_name: 'cli', + findings: [{ version: '0.2.2', paths: ['cli'] }] }; +const raw = (entry) => ({ advisories: { one: entry } }); + +test('excludes the exact local importer collision', () => { + assert.equal(reviewAudit(raw(advisory), owner, 'importers:\n cli:\n').registry_advisories.length, 0); +}); + +test('retains real registry packages and changed finding identities', () => { + for (const [entry, pkg, lock] of [ + [advisory, owner, 'packages:\n cli@0.2.2:\n'], + [advisory, { ...owner, name: 'cli' }, ''], + [{ ...advisory, findings: [{ version: '0.2.2', paths: ['cli', 'dependency>cli'] }] }, owner, ''], + [{ ...advisory, findings: [{ version: '0.2.3', paths: ['cli'] }] }, owner, ''], + [{ ...advisory, github_advisory_id: 'GHSA-example' }, owner, ''], + ]) assert.equal(reviewAudit(raw(entry), pkg, lock).registry_advisories.length, 1); +}); + +test('refuses missing or malformed audit results', () => { + for (const response of [{}, { advisories: null }, { advisories: [] }, { advisories: 'invalid' }]) { + assert.throws(() => reviewAudit(response, owner, ''), /Unsupported/); + } +}); diff --git a/scripts/generate-lineage-cases.ts b/scripts/generate-lineage-cases.ts new file mode 100644 index 0000000..8f09b31 --- /dev/null +++ b/scripts/generate-lineage-cases.ts @@ -0,0 +1,77 @@ +/** Deterministic adversarial records shared by source, packed and owner-boundary checks. */ +import { readFile, writeFile } from "node:fs/promises"; +import { resolve } from "node:path"; + +const root = resolve(import.meta.dirname, ".."); +const original = JSON.parse(await readFile(resolve(root, "examples/0.2.0/valid/transformation.masa.json"), "utf8")); +type Case = { name: string; valid: boolean; codes: string[]; record: typeof original }; +const cases: Case[] = []; +function add(name: string, valid: boolean, mutate: (record: typeof original) => void, codes: string[] = []) { + const record = structuredClone(original); + mutate(record); + cases.push({ name, valid, codes, record }); +} +const event = (record: typeof original) => record.history.events[0]; +add("completed", true, () => {}); +add("read-capture-provenance", true, (r) => { + r.profiles = r.profiles.filter((profile: string) => profile !== "transformation"); + event(r).operationType = "matter.capture"; event(r).effectClass = "read"; + r.relations[0].predicate = "masa:captured-from"; +}); +for (const predicate of ["masa:derivation-of", "masa:parent-of"]) { + add(`inverse-${predicate.split(":")[1]}`, true, (r) => { + r.relations[0].predicate = predicate; + [r.relations[0].subject, r.relations[0].object] = [r.relations[0].object, r.relations[0].subject]; + }); +} +for (const status of ["failed", "refused", "cancelled", "not_performed", "undetermined"]) { + add(`${status}-claims-descendant`, false, (r) => { + event(r).finalStatus = status; event(r).outputs = []; + }, ["MASA_DESCENDANT_CAUSALITY"]); + add(`${status}-without-descendant`, true, (r) => { + event(r).finalStatus = status; event(r).outputs = []; + delete event(r).parameters.preservationIntent; + r.representations = r.representations.slice(0, 1); r.relations = []; + event(r).policyEvaluation.targets = [r.representations[0].id]; + }); +} +add("partial-with-produced-descendant", true, (r) => { event(r).finalStatus = "partial"; }); +add("partial-output-without-authority", false, (r) => { + event(r).finalStatus = "partial"; event(r).policyEvaluation.result = "prohibited"; +}, ["MASA_POLICY_DENIED"]); +add("partial-without-output", true, (r) => { + event(r).finalStatus = "partial"; event(r).outputs = []; + r.representations = r.representations.slice(0, 1); r.relations = []; + event(r).policyEvaluation.targets = [r.representations[0].id]; +}); +add("partial-fabricates-descendant", false, (r) => { + event(r).finalStatus = "partial"; event(r).outputs = []; +}, ["MASA_DESCENDANT_CAUSALITY"]); +add("undetermined-with-output", false, (r) => { event(r).finalStatus = "undetermined"; }, ["MASA_DESCENDANT_CAUSALITY"]); +add("wrong-output", false, (r) => { event(r).outputs = [r.actors[0].id]; }, ["MASA_DESCENDANT_CAUSALITY"]); +add("wrong-parent-input", false, (r) => { event(r).inputs = [r.actors[0].id]; }, ["MASA_DESCENDANT_CAUSALITY"]); +add("non-generating-effect", false, (r) => { event(r).effectClass = "read"; }, ["MASA_DESCENDANT_CAUSALITY"]); +add("missing-operation", false, (r) => { delete r.relations[0].operationRef; }, ["MASA_DESCENDANT_RECEIPT"]); +add("inverse-wrong-parent", false, (r) => { + r.relations[0].predicate = "masa:parent-of"; + [r.relations[0].subject, r.relations[0].object] = [r.relations[0].object, r.relations[0].subject]; + event(r).inputs = [r.actors[0].id]; +}, ["MASA_DESCENDANT_CAUSALITY"]); +add("completed-operation-without-profile-or-preservation", false, (r) => { + r.profiles = r.profiles.filter((profile: string) => profile !== "transformation"); + delete event(r).parameters.preservationIntent; +}, ["MASA_PROFILE_MISMATCH"]); +for (const field of ["preservationIntent", "properties", "verification", "outputs"]) { + const remove = (r: typeof original) => { + if (field === "preservationIntent") delete event(r).parameters.preservationIntent; + else if (field === "outputs") event(r).outputs = []; + else delete event(r).parameters.preservationIntent[field]; + }; + add(`completed-missing-${field}`, false, remove, ["MASA_PROFILE_MISMATCH"]); + add(`mixed-valid-and-missing-${field}`, false, (r) => { + const valid = structuredClone(event(r)); remove(r); + const malformed = event(r); malformed.id = "urn:uuid:00000000-0000-4000-8000-000000000998"; malformed.sequence = 1; + r.history.events = [valid, malformed]; + }, ["MASA_PROFILE_MISMATCH"]); +} +await writeFile(resolve(root, "examples/0.2.0/lineage-cases.json"), JSON.stringify(cases, null, 2) + "\n"); diff --git a/scripts/release-version.ts b/scripts/release-version.ts index 35187c7..5db26b4 100644 --- a/scripts/release-version.ts +++ b/scripts/release-version.ts @@ -16,7 +16,7 @@ const PACKAGE_DIRECTORIES = [ * Deterministic timestamp for the current reference-tooling release. Keep it * explicit so generation never depends on the wall clock or developer locale. */ -export const REFERENCE_IMPLEMENTATION_GENERATED_AT = "2026-08-11T00:00:00.000Z"; +export const REFERENCE_IMPLEMENTATION_GENERATED_AT = "2026-10-01T02:00:16.890Z"; /** * Read the reference-tooling release from package metadata and fail generation diff --git a/spec/0.2.0/profiles/processing.md b/spec/0.2.0/profiles/processing.md index a100b22..bf2447b 100644 --- a/spec/0.2.0/profiles/processing.md +++ b/spec/0.2.0/profiles/processing.md @@ -6,6 +6,7 @@ The Processing profile carries granular, spectral, and time-pitch operations on | Operation | Meaning | Typical lineage predicate | | --- | --- | --- | +| `matter.derive` | Produce a new representation using an explicitly named external engine and recorded parameters; no identity or physical-validity claim is implied. | `masa:derived-from` | | `matter.granulate` | Decompose a representation into grains under a declared grain scheme and emit a texture or a fragment set. | `masa:granulated-from` | | `matter.extract` | Isolate a spectral band, spectral strata, partial set, or temporal region from a representation. | `masa:isolated-from` | | `matter.reduce` | Produce a sparser account of a representation: spectral peaks, envelope, decimation, mixdown, or denoising. | `masa:derived-from` | @@ -30,3 +31,5 @@ Engines are external. The receipt's Tool names the engine, version, and kind; `p ## Listening boundary When the host attaches an audio-capable model or a listening service, listening passes MAY inform grain selection, strata choice, or region boundaries. Listening evidence stays typed: a heard claim requires a listening pass, a measured claim requires method and units, and neither becomes a processing parameter without an attributable authoring step. Processing outputs MAY be re-listened; a re-listening is a new pass and never overwrites the account of the source. + +Generic derivation parameters are engine-specific. The host must validate its engine contract and policy before execution. A processing request does not authorize itself. Reproduction requires source integrity, effective parameters, engine identity/version and any relevant clock, seed, normalization and environmental assumptions in the receipt. diff --git a/spec/0.2.0/profiles/transformation.md b/spec/0.2.0/profiles/transformation.md index 32a8d6b..dc53da7 100644 --- a/spec/0.2.0/profiles/transformation.md +++ b/spec/0.2.0/profiles/transformation.md @@ -3,3 +3,11 @@ A completed transformation requires a preserved input, a distinct descendant Representation, an OperationReceipt, a parent relation, a preservation intent, and a reversibility class. Core transformation operations include segment, isolate, transform, sculpt, recompose, render, and compensate. Interface undo is recorded separately from a verified material inverse. Failed, refused, cancelled, or not-performed transformations do not fabricate descendants. + +## Validation erratum, reference tooling 0.2.1 + +A lineage relation MUST identify the actual receipt that lists its parent in `inputs` and its descendant in `outputs`, in either predicate direction. Only completed or partial outcomes can attest produced descendants. A partial receipt may attest only its explicitly produced outputs, with an authorizing policy result for consequential effects; a partial attempt with no outputs remains valid without descendant claims. An undetermined outcome does not establish generating causality. + +A core transformation operation identifies its requirements even when the record omits the transformation profile label. Every embedded transformation operation is checked, including additional operations after a valid one. Completed status activates the nonempty-output and preservation-intent requirements independently of whether those fields were supplied. Preservation intent includes both its nonempty properties list and its qualified verification. Failed, refused, cancelled and not-performed attempts remain valid when they disclose noncompletion and do not claim descendants. + +A standalone record with external history establishes only declared receipt identifiers. Bundle validation MUST bind the available event-log receipts to their parent/output relations and validate each completed transformation receipt. No remote history is fetched. Generating effects are derive, transform, generate, map, render, perform, remember and publish; destructive and no-effect receipts cannot generate a descendant representation. A completed or partial read receipt may establish `masa:captured-from` provenance for an explicitly listed capture output; it cannot attest a transformation or derivation.