Validate contract boundaries
- Identify the canonical provider and every known consumer. Do not infer ownership from a generated client or copied schema.
- Normalize each surface into
runtime.foundation_assurance.ContractSurfacerecords. - Run
compare_contract_surfaces; treat missing owners, routes, required fields, types, versions, and permission scopes as fail-closed findings. - Trace confirmed mismatches through the dependency graph before proposing edits.
- Add focused positive, denial, malformed-input, compatibility, and rollback tests at the owning boundary.
- Re-run the comparison and the smallest authoritative contract/integration tests.
- Report unconsumed providers separately; unused does not prove safe removal.
Also reconcile these boundary classes when present:
- producer routes and schemas against every generated and handwritten consumer;
- intended route/role access against browser-observed navigation, denial behavior, and session state;
- storage identifiers, migration names, table/collection names, and persistence keys across code, configuration, migrations, and deployed state;
- development authentication or bypass paths against production build and runtime configuration.
Static agreement does not certify a live boundary. Record static intent and runtime observation separately, and fail closed on unexplained drift.
For framework adapters, compare behavior against the framework's canonical in-memory implementation: object and ID semantics, lazy construction, sync/async behavior, duplicate policy, filters, score conventions, persistence/configuration round trips, deletion/upsert behavior, thread safety, and documented limitations. Similar method names do not prove contract compatibility.
Read boundary contract for normalization and evidence rules.
This skill is read-only until a separately authorized implementation step. Generated specifications and external source trees are evidence, not automatic canonical owners.