Login
View Ticket
Login
Ticket Hash: 7bea545ac192167ecd7090e14cce6609674ed55e
Title: write-topology guard fails any branch after a trunk merge: the generated inventory embeds src line numbers, so the gate's merge-then-test makes docs/write-topology.md stale on every branch trunk has moved past
Status: Closed Type: Code_Defect
Severity: Normal Priority: High
Subsystem: Resolution: Overcome_By_Events
Last Modified: 2026-11-09 21:35:40
34.6 hours ago
Created: 2026-09-21 14:26:39
50.7 days ago
Version Found In:
Description:
OCX-PLAN: role=work parent=9e2e696e2b seq=8 complexity=low design_input=none

Seen 2026-09-21 10:1x am Eastern on ticket d2d58e6a8d: the branch's own commit regenerated docs/write-topology.md and passed locally; the automatic gate (which now merges trunk first, ticket 752e76f61b) failed only write_topology_spec with 'docs/write-topology.md is stale after a src/*.cr line shift'. Any branch cut before a trunk change to src/ will now fail this way, and the daemon's run-end regeneration (ticket 56dcc5b7d8) cannot help because it runs before the gate's merge. Do: make the inventory line-number-free, identifying each write call site by file plus enclosing def and the config key or table written, in source order, so it is stable across unrelated line shifts; keep the staleness spec, which then fails only when a call site is added, removed or moved between defs; regenerate the doc once on trunk; and adjust tools/generate_write_topology.cr and the daemon's regeneration to the new shape. Spec: shifting a line above a call site does not change the render; adding a call site does.

User Comments:
added on 2026-11-09 21:35:40:

Closed in OCX's ticket sort, batch 1 (ollama post 8f6c9afbb7): a fault in trunk's daemon and gate, whose code has been inactive since the ocx branch began on Sep 21; OCX's protocol v2 does not have this machinery. Trunk's code stays in the history; reopen this if it comes back.