GeezerVison is showing github.com — fix(pm-stack): preserve historical genealogy boundaries in ancestor output · Issue #12071 · developing-today/code
fix(pm-stack): preserve historical genealogy boundaries in ancestor output #12071DescriptionEvidence
In pm-stack/aggregator/src/genealogy.ts:47-60, each explicitly historical parent is used as the start of a chain that follows its current parentRef links. At lines 55-57, those current ancestors are added to ancestors as relation parent, the same relation used for the item's live parent chain. At line 100, all historical chains are flattened into one list and joined with → under “Formerly part of”.
I reproduced both cases with temporary focused Bun tests (removed after the run):
- Item Bump build/buck/preludes/buck2-prelude from
d956689 to 9afedba #100 has historical parent Bump unsafe-libyaml from 0.2.8 to 0.2.10 in /sources/pavex/examples/realworld #99. After the split, Bump unsafe-libyaml from 0.2.8 to 0.2.10 in /sources/pavex/examples/realworld #99 is re-parented under lab-ops-hub: Worker-fallback crawler has no fetch timeout — a slow target hangs the crawl indefinitely #500. The sentence renders “Formerly part of Former epic (Bump unsafe-libyaml from 0.2.8 to 0.2.10 in /sources/pavex/examples/realworld #99) → Post-split reorg epic (lab-ops-hub: Worker-fallback crawler has no fetch timeout — a slow target hangs the crawl indefinitely #500)”, implying Bump build/buck/preludes/buck2-prelude from d956689 to 9afedba #100 was formerly under lab-ops-hub: Worker-fallback crawler has no fetch timeout — a slow target hangs the crawl indefinitely #500 even though that edge was created after the split. The API also labels lab-ops-hub: Worker-fallback crawler has no fetch timeout — a slow target hangs the crawl indefinitely #500 as relation parent, not historical.
- With two historical parents (Bump unsafe-libyaml from 0.2.8 to 0.2.10 in /sources/pavex/examples/realworld #99 → lab-ops-hub: Worker-fallback crawler has no fetch timeout — a slow target hangs the crawl indefinitely #500 and chore(deps): bump build/buck/preludes/buck2-prelude from
d956689 to 2901d28 #80 → Bump build/buck/preludes/buck2-prelude from d956689 to 222dd7f #90), the sentence emits one continuous arrow chain #99 → #500 → #80 → #90, fabricating cross-chain links.
The existing bun test test/genealogy.test.ts suite passes (4 tests), but has no re-parent-after-split or multiple-history-chain case. This conflicts with the design contract in doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy/note.md §6: chain breaks must be honest and links must never be fabricated. #9066 covers recording/validating historical link metadata, while #9070 (the read-model implementation) is closed; neither tracks the read-side temporal boundary bug.
Why it matters
The genealogy sentence and /api/item/<id>.json can present a post-split parent as part of an item's former lineage, or combine unrelated historical parent chains into a false lineage. Consumers cannot distinguish these fabricated ancestors from current parent edges.
Acceptance criteria
- Historical links render only the ancestry known to have applied during that historical relationship; post-split current parents are not implied as the item's former ancestors.
- Distinct historical-parent chains remain distinct in the sentence/API and are never concatenated into one arrow path.
- API ancestry distinguishes historical relations from current
parent relations (or otherwise represents historical edges without claiming they are current parents).
- Add regression tests for a former parent re-parented after the split and for multiple independent historical parent chains.
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/triageQueue packet kind: verify, reproduce, and route this item effort/xsTrivial: expected under 30 minutes of work on Nov 19, 2026developing-today commented on Nov 19, 2026 dezren39 commented on Nov 19, 2026 agent-note:v1
task: 20862
issue: #12071
lane: any-o
worker: repo-worker-code
origin: openchamber-scheduled-lane
state: completed
Triage disposition: confirmed. The design's link semantics (§11; §6's historical-chain rendering) define historical links as former direct parents with temporal bounds and provenance. Current parentRef ancestry of a former parent must not be retroactively attributed to the child, and independent former-parent chains must remain distinct. deriveGenealogy currently violates both constraints and also exposes historical ancestors with relation parent.
Routed a bounded implementation follow-up as queued task 20863: #12071. Scope is genealogy.ts and focused tests only; no implementation or design edits were made during triage. Regressions must cover post-split reparenting, multiple chains and API relation semantics.
bookkeeping: {"backlog_updated": false, "sweep_log_line_at": null, "note": "openchamber scheduled lane — sandbox bookkeeping deferred to fleet reconciliation"} dezren39 commented on Nov 19, 2026
🤖 Agent note · implementation ready for review — task 20863 (lane any-n)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|