| 1 | --- |
| 2 | type: bug |
| 3 | id: bd-c4d069b |
| 4 | status: open |
| 5 | title: "Frequent coordination updates may make the Git-backed graph expensive to use" |
| 6 | created: 2026-09-01 |
| 7 | source: knowledge base design review, 2026-09-01 |
| 8 | --- |
| 9 | |
| 10 | # Frequent coordination updates may make the Git-backed graph expensive to use |
| 11 | |
| 12 | Recording every lease renewal, heartbeat, and discussion update as a Git commit may create editing |
| 13 | conflicts and unnecessary repository growth. The scheduler sketches in |
| 14 | [[ida-eac723e]](../ideas/ida-eac723e-outcome-dag.md) and |
| 15 | [[ida-3145b7a]](../ideas/ida-3145b7a-demand-pressure.md) need to establish which execution state |
| 16 | belongs in durable project history. |
| 17 | |
| 18 | This is a projected workload concern. The current small graph is edited without an automated lease |
| 19 | or heartbeat writer, so it does not demonstrate the proposed high-frequency workload. |
| 20 | |
| 21 | ## Possible costs |
| 22 | |
| 23 | Concurrent edits to nearby frontmatter fields can conflict. A lease update and a dependency edit may |
| 24 | then require resolution even though their intended changes are compatible. |
| 25 | |
| 26 | Frequent commits create more history and Git objects. The effect on storage, clone time, and history |
| 27 | queries depends on record size, compression, and update rate. It needs measurement; the number of |
| 28 | commits alone does not establish that every Git operation will become slow. |
| 29 | |
| 30 | A scheduler that rescans all outcome files on every tick may also spend increasing time parsing and |
| 31 | traversing the graph. Derived indexes or incremental queries could reduce that cost without changing |
| 32 | the authoritative store. |
| 33 | |
| 34 | ## Candidate approaches |
| 35 | |
| 36 | Keep short-lived coordination state in a store suited to atomic claims and frequent renewal, while |
| 37 | integrating durable outcome milestones through Git. |
| 38 | |
| 39 | Reduce the number of persisted transitions if some are only operational details. Which milestones |
| 40 | belong in history remains a design question; creation and completion are clear examples. |
| 41 | |
| 42 | Store rapid discussion or run traces in an append-only record with stable references from the graph, |
| 43 | rather than repeatedly rewriting a large node. |
| 44 | |
| 45 | ## Constraint and investigation |
| 46 | |
| 47 | Any additional store needs explicit recovery and authority rules. A disposable lease index and a |
| 48 | second authoritative outcome database have different consequences. The proposal must preserve the |
| 49 | [architecture's](../../design/architecture.md) integration and history guarantees. |
| 50 | |
| 51 | Measure plausible concurrent editing and scheduler workloads before selecting a backend. The tests |
| 52 | should cover conflicts, restart recovery, repository growth, and the cost of finding ready work. |