fix(8376): a repo that leaves a project takes its shape rows out of that project's accounting
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m19s
CI & Build / Build & push image (push) Successful in 20s

A coverage refresh walks only the repos bound to a project, but its readout
counts every live row, so the rows of a repo unbound or re-bound to another
project were never synced again and kept counting: in the total, the gap
list, and every reader of live rows (proposer, divergence, stamp review).
Re-binding a repo to another project and unbinding it now stamp its rows on
the project it left as vanished, and each refresh sweeps any rows still left
under a repo nobody binds to the project. A bound repo the forge did not
serve this time stays live. Each stamped row gets an `unbound` event and
keeps its judgment, so binding the repo back revives it like any vanished
row. Plugin version bumped for the shape-accounting skill's event list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 23:15:24 -05:00
co-authored by Claude Opus 5.5
parent af5edd5c3f
commit f55e263d7e
9 changed files with 211 additions and 10 deletions
+3 -1
View File
@@ -707,5 +707,7 @@ def test_history_and_divergence_columns_are_pinned():
fk = next(iter(ev.c.shape_id.foreign_keys))
assert fk.ondelete == "CASCADE" and fk.column.table.name == "code_shapes"
assert not ev.c.snippet_id.foreign_keys # history outlives the snippet
assert SHAPE_EVENTS == ("classified", "vanished", "reappeared", "drifted", "moved")
assert SHAPE_EVENTS == (
"classified", "vanished", "reappeared", "drifted", "moved", "unbound",
)
assert "code_shape_events" in Base.metadata.tables