gunk-dev/the-valley

bd-c4d069b-git-churn-from-task-state.md

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