feat(impact): recursive candidate impact analysis over the union graph #14

Merged
cflmy merged 2 commits from release/eco-impact into main 2026-11-27 02:15:08 +08:00
2 Commits
Author SHA1 Message Date
cflmy 328cc5c61b fix(impact): load the impact report before assembling the evidence record
ci/woodpecker/pr/eco Pipeline was successful
ci/woodpecker/push/eco Pipeline was canceled
The candidate evidence heredoc referenced the report without reading it after the
rebase; define the report from <work>/impact.json (or None when no accepted ref
was available) before building the record.
2026-11-27 02:05:33 +08:00
cflmy 520931ca34 feat(impact): recursive candidate impact analysis over the union graph
Implement the ECO-02 impact contract: compare the recursively expanded
(global_id, parent, remote, SHA, state) identities of an accepted root commit
and a candidate, expand domain gitlink changes to child identities, close over
the reverse requires graph built from the union of both revisions, add parent
domains, then reach a fixed point over checks_with. An unexpandable domain is
reported UNVERIFIED and widens the affected set to the full candidate instead of
skipping (--fail-on-unverified makes it fatal).

integration.sh runs it against the accepted root ref (PR target branch or
origin/main) and records changed/affected/checks_with/fallback in the candidate
evidence JSON. Five contract tests build real temporary Git repositories,
including a domain gitlink change and the conservative fallback.

Refs cflmy/marqdo#7
2026-11-27 02:05:22 +08:00