Add typed canonical identity payloads, derived-alias lifecycle and projection validation#412
Open
Add typed canonical identity payloads, derived-alias lifecycle and projection validation#412
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
CanonicalAspfPathPayload,DerivedIdentityAdapterLifecycle,DerivedIdentityProjection,DerivedAliasPayload,ProjectionContract,ProjectionSlot, andProjectionBindingdataclasses and helpers insrc/gabion/analysis/evidence_keys.pyto reify canonical identity payloads and derived-alias lifecycle.FingerprintIdentityLayersto use typed payloads, addsvalidate(),_projection_for_slot(),derived_aliases()and strict contract validation viaPROJECTION_CONTRACTS.fingerprint_identity_layers()to construct typed layers, add adapter lifecycle metadata and run validation before emission, and changestype_fingerprints.fingerprint_identity_payload()to emit derived aliases via the new helper.suite_site_endpointsand other canonical identity invariants and adds themeta_reify_structural_homology_plan.mddocumentation and expandeddocs/aspf_taint_isomorphism_no_change.yamljustification text; updatesout/test_evidence.jsonand updates/extends unit tests intests/test_aspf_cofibration_laws.py,tests/test_fingerprint_soundness.py, andtests/test_type_fingerprints_sidecar.pyto assert lifecycle fields and validation behavior.Testing
pytestfor the modified tests includingtests/test_aspf_cofibration_laws.py,tests/test_fingerprint_soundness.py, andtests/test_type_fingerprints_sidecar.py.NeverThrowninvariants.out/test_evidence.json) to include new test function sites and mappings; the updated tests passed in the local test run.Codex Task