Commit Graph
3 Commits
Author SHA1 Message Date
noonghunnaandClaude Opus 4.7 60f3983283 v0.8.0 STEP 2: extract patch_attribution.py (sound body-only reaches(), test imports it)
Factor the embedded patch-attribution logic out of
scripts/tests/test-patch-attribution.sh into a reusable module
scripts/lib/profiles/patch_attribution.py (load, compose_text,
gap_declared, reaches, c0_state, schema/coverage helpers + key-sets).
The test now imports and calls the module; output is byte-identical
(same PASS summary + known-delivery-gaps list, RC=0).

reaches() is now sound (brief v9 correction #4): it parses the
comment-stripped service body only (ignoring the file-header banner and
the generator's own header WARNING block) and validates the patch's
actual delivery_spec wiring (declared mount target / entrypoint invoke
at the wired_at insertion points) instead of a bare patch["id"] in text
substring. Accepts a COMPOSE_REGISTRY profile name OR an absolute path.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-16 15:29:10 +00:00
noonghunnaandClaude Opus 4.7 9f23736f01 v0.8.0 Phase A-prime: enrich patch/profile data for #141 generator (compose_service_template, genesis_equipped, delivery metadata, drift_guards, drafter/model_slug/trc fold-ins)
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-16 15:20:35 +00:00
noonghunna 91a9622619 Add v0.8 Phase A patch attribution data 2026-05-16 05:13:00 +00:00