PHC requirement and evidence traceability
Draft 0.1 · 15 October 2026 · Offline evidence map
This maps the twenty candidate requirements in the specification to the thirty planned cases in the conformance plan, actual local code and executable tests. Every PHC-T01–PHC-T30 service case remains not_run. An offline rejection of a related input does not execute or pass the service case. No complete requirement group, independent interoperability, independent review or service qualification is established here.
The exchange grammar remains phc-exchange-experimental, 0.1.0-draft, schema urn:phc:experimental:exchange:0.1.0. The validator implementation is phc-experimental/0.1.1. The separate portable fixture corpus is phc-portable-validation, version 0.1.0. These identify different components; see the binding for the executable limits. Release-wide execution results and source hashes are recorded in evidence/verification.json; this document is a map to evidence, not a signed test attestation.
Evidence sources and boundaries
Paths below are relative to the standalone kit root. Test titles and diagnostic codes identify the executable evidence more precisely than a suite count.
| Key | Code and tests | Evidence actually supplied |
|---|---|---|
| P | lib/json.mjs: parseStrict, utc, canonicalize; lib/schema.mjs: compileSchema; schemas/exchange.schema.json; tests/validation.test.mjs |
Duplicate/escaped duplicate keys, bounds, invalid Unicode/numbers/times, closed shapes, exact format/capability/classification enums and selected JCS vectors. This is a selected evaluator and corpus, not general JSON Schema or cross-language certification. |
| V | lib/validate.mjs: createValidator; tests/validation.test.mjs |
Namespace, identity-tuple existence, versions, rule attachment, persona custody, dependency closure, tombstone/checkpoint consistency, expiry and optional envelope-reference comparison. Diagnostic codes below locate the relevant branches. Identity tuples and historical confirmations remain payload claims. |
| F | fixtures/validation/manifest.json, fourteen full JSON bundles in the same directory; tests/conformance-fixtures.test.mjs |
Portable semantic negatives, positive counterparts and deferred-rule demonstrations. Each input first passes schema validation, then must match its exact expected diagnostic-code set and evaluated/deferred restriction report. All outcomes retain blocked activation. |
| C | bin/phc.mjs; tests/cli.test.mjs |
CLI quarantine/expiry outcomes, bounded I/O failure, no remote resolver and upstream DEC verification. Configuration/decoding regressions are local CLI evidence, not authenticated admission. |
| D | lib/dec.mjs: createDECVerifier; tests/dec.test.mjs; vendor/agent-dec/UPSTREAM.json and original public signed fixtures |
Actual Node Ed25519 verification, manifest/chain/time checks and negative cases, including re-signed synthetic semantic mutations. Success is integrity only; replay: not_performed, authorization: not_evaluated, attestation: not_assessed. No upstream signed bytes are modified. |
| Q | lib/qualification.mjs: assessQualification; qualification tests in tests/dec.test.mjs |
Pure reference composition over synthetic trusted-input snapshots: authority, qualification, runtime and evidence assessment/freshness. Even eligible input returns eligible_for_final_service_check, with no disclosure. No registry, authenticated adapter or final transaction is implemented. |
Requirement → planned cases → actual evidence
Rxx and Txx below abbreviate PHC-Rxx and PHC-Txx. The case mapping follows the catalog's Requirements column exactly. Every row is partial local evidence or an explicit absence, never a requirement-level pass.
| Requirement | Planned cases, all not_run |
Actual offline code/test evidence | Required evidence absent from this kit |
|---|---|---|---|
| R01 Distinct authority | T06, T11 | V always returns activation: blocked; valid payload stays quarantined and gives no authority. Q denies missing authority independently of qualification. |
Authenticated actor/owner/delegate/client roles, tenant selection and separate service permissions. |
| R02 Explicit envelope | T01, T02, T08, T19 | P exact schema/bounds; V BUNDLE_INTERVAL, BUNDLE_FUTURE, BUNDLE_EXPIRED, RECIPIENT_MISMATCH; credentials rejected as structure, grant replay rejected as structure; F baseline. |
Trusted exporter, protected recipient binding, export projection from real stores, replay ledger, crypto envelope and independent round trip. |
| R03 Attributed records | T02, T13 | P provenance/classification shape; V RECORD_NAMESPACE, IDENTITY_UNRESOLVED, RECORD_TIME; reported inference survives validation unchanged. |
Producer authentication, verified owner-entry channel, source validation and truth assessment. |
| R04 Confirmation | T02, T10, T30 | V CONFIRMATION_VERSION, CONFIRMATION_MISSING; inference preservation test; F historical confirmation in baseline. |
Reviewer authorization, protected confirmation event, separate current sharing decision and comprehension study. |
| R05 Lineage and graph | T02, T14, T15, T16 | V LINEAGE_UNRESOLVED, LINEAGE_CYCLE, LINEAGE_RULE_LOSS, LINEAGE_PURPOSE_EXPANSION, LINEAGE_CLASSIFICATION_LOSS, LINEAGE_CUSTODY; F six lineage-* vectors; P blocks nonempty relationships. |
Proven complete lineage, actual route/recipient intersections, graph permission checks, cache/index invalidation and publication races. |
| R06 Persona association | T05, T09, T30 | V PERSONA_CUSTODY, PERSONA_RECORD_UNRESOLVED, PERSONA_RULE_UNRESOLVED; preference cannot carry authority; F persona remains advisory. |
Authorized reassociation/copy, deletion behavior, remote grant isolation and stale client UI handling. |
| R07 Restrictive composition | T03, T04, T09, T15 | P typed mandatory rules; V RULE_PURPOSE_CONFLICT, EXPORT_FORBIDDEN, RULE_EXPIRED and inheritance checks; F prohibition/deadline and deferred recipient/operation vectors. |
Intersection with real authority, recipients, routes, operations, reviews, delegation, qualification and all current service state. |
| R08 Fail closed negotiation | T03, T04, T05, T20, T28 | P unknown capabilities reject (unknown required capability); V CAPABILITY_MISSING, CAPABILITY_UNDECLARED; missing parent rejects; closed schema excludes partial-import modes. |
Discovery, bilateral negotiation, enforceable runtime capability checks, omission reports and retry/downgrade behavior. |
| R09 Verified binding | T06, T07, T13 | P forces unresolved destination identity status; V requires exact source identity tuples; C CLI has no arbitrary remote resolver; references are not fetched. |
OAuth/OIDC/resource validation, account-link flows, credential separation and trusted source resolution/SSRF controls. |
| R10 Fresh decisions | T07, T11, T16, T17, T24 | V bundle/rule time checks only. Q missing/revoked/stale authority and scope-mismatch tests over synthetic snapshots. | Live grants, epochs, continuations, revocation leases, stream/job stopping and final publication checks. |
| R11 Reviewed contribution | T10, T11, T12, T13 | P no grant fields; V imported confirmation stays historical/blocked; Q cannot create missing authority. | Contribution endpoint, independent rights, idempotency store, authorized proposal review and concurrent expected-version writes. |
| R12 Lifecycle preservation | T12, T16, T21 | V TOMBSTONE_LIVE_CONFLICT, TOMBSTONE_CHECKPOINT, CHECKPOINT_ISSUER, CHECKPOINT_COLLECTION; unexplained lifecycle sequence. |
Current destination high-water marks, missing-event/rollback detection, deletion execution and atomic canonical/outbox writes. |
| R13 Notices and recovery | T21, T22, T27, T30 | No notice/recovery implementation or executable service evidence. V's package checkpoint checks do not establish recovery safety. | Authenticated notices, delivery versus deletion verification, safety reconciliation, fencing and old-generation rejection. |
| R14 Authorized export | T02, T08, T19 | V rejects explicit export prohibition/purpose conflict; F export-forbidden; P blocks structured credentials/grants. |
Export endpoint, current object/field/custody authority, allowlisted store projection, authorized omission report and step-up. |
| R15 Quarantined admission | T02, T06, T08, T18, T19, T20 | V and C expose valid_for_quarantine/blocked activation; identity mappings remain unresolved; missing lineage and unsupported structure reject. |
Protected storage, authenticated mappings, replay barriers, authorized review preview, isolated search/counts and atomic activation. |
| R16 Crypto and custody | T08, T23, T26 | D pinned DEC integrity tests; P selected JCS vectors. These authenticate execution certificates, not a PHC exchange. | Recipient-bound authenticated encryption, exchange crypto profile, key roles/rotation and actual plaintext/search/egress custody assessment. |
| R17 Equivalent transport | T24 | No MCP/HTTPS operation binding or transport-parity harness. Shared CLI/browser validation core only checks documents. | Equivalent authenticated policy decisions, safe text fallback and bound continuation state across transports. |
| R18 Minimized evidence | T22, T24, T28 | V bounded codes/structural paths; errors do not contain secret values or arbitrary unknown keys; C bounded I/O error test. |
Authorized operation receipts, requested/authorized/disclosed distinction, receipt isolation and notice evidence. |
| R19 Explicit compatibility | T23, T29 | P exact format/version/capability rejection; foreign format is not silently converted, unknown schema version; D preserves pinned upstream artifacts. Release metadata, changelog and bin/verify-release.mjs identify component revisions and verify kit inventory/integrity; they do not authenticate a publisher or establish semantic equivalence. |
Migration loss map/adapter, legacy parser qualification and independent equivalent authorization round trips. |
| R20 Bounded qualification | T25 | Q reference seam requires final service check even on eligible input, no grant, changed release/purpose, stale/revoked qualification, runtime/evidence/freshness denials. D integrity result explicitly grants nothing. |
Trusted registries, evaluator independence, authenticated runtime/adapter evidence and final transaction-bound consent/authority. |
Planned case → local evidence → missing execution
The following is a service-case inventory, not a local test-result table. Every status is not_run, including rows with useful local precursors.
| Case | Requirements | Status | Related local evidence; missing service evidence |
|---|---|---|---|
| T01 Shape and bounds | R02 | not_run |
P rejects malformed/bounded inputs; no resource/admission/publication probe against a service. |
| T02 Semantic round trip | R02–R05, R14–R15 | not_run |
V/F preserve/check selected fields in one implementation; no independent exporter/importer or decision equivalence. |
| T03 Unknown mandatory rule | R07–R08 | not_run |
P rejects unknown required capability; no service retry/downgrade/disclosure trace. |
| T04 Unsupported boundary | R07–R08 | not_run |
V reports processing routes requires_service; no hosted/local boundary or egress sink. |
| T05 Optional preference | R06, R08 | not_run |
P requires advisory: true; no receiver omission/report or authorization-equivalence run. |
| T06 Identity ambiguity | R01, R09, R15 | not_run |
P/V keep mappings unresolved; no authenticated competing-identity flow or protected review store. |
| T07 Credential separation | R09–R10 | not_run |
No credential-consuming endpoint; Q synthetic authority inputs are not token validation. |
| T08 Recipient, expiry, replay | R02, R14–R16 | not_run |
V/C recipient-label and expiry tests; no exchange key binding or atomic replay ledger. |
| T09 Persona laundering | R06–R07 | not_run |
V rejects mismatched persona custody; F retains inherited rules; no authorized copy/delete/transfer operations. |
| T10 Confirmation not sharing | R04, R11 | not_run |
V exact-version confirmation/inference tests; no live review, topic selector or client sharing authority. |
| T11 Independent operations | R01, R10–R11 | not_run |
Q checks supplied authority tuple only; no independent read/propose/confirm/export endpoints. |
| T12 Contribution races | R11–R12 | not_run |
V package version consistency is not a concurrency test; no idempotency or atomic store/outbox. |
| T13 Prompt/source attack | R03, R09, R11 | not_run |
C rejects remote input paths; parser/validator treat statement/reference strings as data; no service/tool/resolver attack harness. |
| T14 Graph isolation | R05 | not_run |
P rejects nonempty graph transport; no authorized/hidden graph traversal or canary-disclosure test. |
| T15 Derivation intersection | R05, R07 | not_run |
F isolates restriction loss, purpose expansion, classification downgrade and custody boundaries; no runtime route/recipient intersection or disclosure test. |
| T16 Correction/deletion race | R05, R10, R12 | not_run |
V static lineage/version/tombstone checks only; no in-flight retrieval versus publication race. |
| T17 Revocation/outage | R10 | not_run |
Q rejects stale/revoked supplied snapshots; no live stream/job, outage or measured stopping bound. |
| T18 Quarantine isolation | R15 | not_run |
V returns blocked activation; no protected database, index, graph, count or authorized-preview isolation test. |
| T19 Credential/grant export | R02, R14–R15 | not_run |
P rejects prohibited structured fields; no seeded credential stores or allowlisted export projection; prose-secret detection incomplete. |
| T20 Partial import closure | R08, R15 | not_run |
V rejects missing parents/unsupported rules as a whole document; no partial-import service/profile. |
| T21 Lifecycle rollback | R12–R13 | not_run |
V checks package issuer/collection/sequence consistency; no destination high-water mark, gap detection or restore operation. |
| T22 Notices | R13, R18 | not_run |
No notice endpoint, recipient deduplication, forgery test or deletion-completion verification. |
| T23 Crypto vectors | R16, R19 | not_run |
P/D selected JCS and DEC integrity vectors; no cross-language PHC signing/encryption or complete exchange algorithms/profile. |
| T24 Transport parity | R10, R17–R18 | not_run |
No MCP/HTTPS service transport/continuation harness; common document-validation code is insufficient. |
| T25 Qualification changes | R20 | not_run |
Q synthetic no-grant/revoked/stale/mismatch tests; no authenticated registries, live runtime binding or final service decision. |
| T26 Custody claim | R16 | not_run |
No deployed plaintext/key/vector/egress inspection; D integrity says nothing about custody. |
| T27 Recovery partition | R13 | not_run |
No topology, fencing, restore, safety-event reconciliation or old-credential harness. |
| T28 Metadata/receipts | R08, R18 | not_run |
Bounded offline diagnostics only; no unauthenticated discovery or cross-client receipt endpoint. |
| T29 Legacy compatibility | R19 | not_run |
P rejects a foreign format; no original legacy parser suite, migration loss map or authorization-equivalence adapter. |
| T30 Human understanding | R04, R06, R13 | not_run |
No observed participant study or task/accessibility outcome evidence. |
Portable corpus and reproducible audit findings
Run from the standalone kit root with Node 24 or newer:
node --test tests/conformance-fixtures.test.mjs
node bin/phc.mjs validate fixtures/validation/lineage-rule-loss.json \
--at 2026-10-14T12:30:00Z \
--recipient synthetic-destination-custodian
The manifest supplies each fixture's full input filename, explicit evaluation clock and expected envelope recipient, exact outcome/code set and restriction-check expectations. The runner does not construct hidden mutation inputs. It first checks schema validity, compares diagnostic sets without depending on order/duplicates, checks deferred-service output and validates referenced positive counterparts. Fourteen vectors represent selected invariants; this is not full rule coverage. In particular, delegation and qualification restriction families have no dedicated portable vector here; qualification reference-policy tests have a different scope.
Input file in fixtures/validation/ |
Expected outcome at manifest clock | Invariant or limit demonstrated |
|---|---|---|
baseline.json |
valid_for_quarantine |
Historical confirmation, unresolved mappings and advisory persona stay blocked from activation. Absence of export prohibition is not export authority. |
lineage-preserved.json |
valid_for_quarantine |
Positive control: exact parent version, inherited scopes/references, narrower purposes and equal sensitive classification. |
lineage-rule-loss.json |
LINEAGE_RULE_LOSS |
Remove both derivative reference and scope for one parent rule. All remaining attachment structure is consistent; this isolates inheritance rather than accidentally testing an unattached scoped rule. |
lineage-purpose-expansion.json |
LINEAGE_PURPOSE_EXPANSION |
Export purpose remains allowed; only the derivative's additional purpose exceeds the parent. |
lineage-classification-downgrade.json |
LINEAGE_CLASSIFICATION_LOSS |
Sensitive parent to ordinary derivative in the same local vocabulary. |
lineage-cross-tenant.json |
LINEAGE_CUSTODY |
Matching source identity tuple supplied; same collection isolates the tenant boundary. |
lineage-cross-custody.json |
CHECKPOINT_COLLECTION, LINEAGE_CUSTODY |
Matching source identity tuple supplied; a second custodian necessarily violates the one-collection profile too. Both semantic failures are expected; no schema accident is used. |
export-forbidden.json |
EXPORT_FORBIDDEN |
Explicit prohibition; baseline is the no-prohibition counterpart. |
deadline-open.json |
valid_for_quarantine |
One second before a rule deadline, with bundle unexpired. |
deadline-expired.json |
RULE_EXPIRED |
Exact rule deadline, with bundle still unexpired. |
recipients-matching-label.json, recipients-other-label.json |
Both valid_for_quarantine; recipient rules requires_service |
Matching an envelope custodian reference never proves a verified processing recipient satisfies a restriction. |
operations-export.json, operations-read.json |
Both valid_for_quarantine; operation rules requires_service |
Offline inspection supplies no actual service operation. An operation is not inferred from a rule or the validation command. |
The audit reproduced missing portable regression evidence for inherited-rule loss, purpose expansion, classification downgrade and custody derivation; the existing implementation already rejected these cases. These fixtures close that evidence gap without changing acceptance semantics. The two recipient variants and two operation variants reproduce the enforcement boundary: recognized rule shape can pass document validation while the actual service decision remains absent. The explicit check report makes that distinction reviewable; it does not add recipient/operation enforcement.
A reviewer reference equal to a producer reference is not, by itself, a proven unauthorized review: the utility does not resolve either principal or their permissions. An inferred record with an empty parent list is not, by itself, a demonstrated bypass: this grammar does not prove external lineage completeness, and inference need not name transported parents. Opaque URL-shaped references are not automatically a fetch/execution exploit: this utility never resolves them. Real services must separately authenticate reviews, establish required dependency completeness and control reference resolution. These are explicit absent service assurances, not fabricated local exploit findings.
The corpus is synthetic and same-implementer evidence. It supplies no independent conformance result, legal-compliance result, production safety claim or evidence of actual deletion, consent, deterministic replay or cross-implementation interchange.