Skip to content

docs(research): cross-worktree gitignored coord-doc sync — verdict ADAPT (symlink-to-canonical) - #78

Merged
artyhoo merged 1 commit into
mainfrom
research/cross-worktree-coord-sync-2026-05-17
May 20, 2026
Merged

docs(research): cross-worktree gitignored coord-doc sync — verdict ADAPT (symlink-to-canonical)#78
artyhoo merged 1 commit into
mainfrom
research/cross-worktree-coord-sync-2026-05-17

Conversation

@artyhoo

@artyhoo artyhoo commented May 20, 2026

Copy link
Copy Markdown
Owner

Summary

R-phase deliverable: a research-patch analysing the cross-worktree gitignored coordination-doc drift problem (.claude/orchestrator-prompts/** is gitignored → each git worktree carries its own physical copy → an SSOT edit in one worktree leaves the other N−1 stale). Surveys 8 candidate mechanisms, applies the 7-verdict build-first-reuse typology, and lands on ADAPT — symlink-to-canonical (one canonical dir outside all worktrees, symlinked into each, so an edit is the same inode everywhere). No implementation; recommendation + ≤30 LOC bash sketch + maintainer ATTN items only.

Changes

  • Add docs/meta-factory/research-patches/2026-05-17-cross-worktree-coord-doc-sync.md (+266 LOC, one tracked file).
  • §2 search-coverage: DeepWiki ×3, WebSearch ×3, SSOT consult, internal grep sweep — all command-verified.
  • §4 per-candidate verdicts with explicit "Upstream class → Our class → Match? evidence" lines (T-coord-A: name-match ≠ problem-class match — copy-at-creation tools REFERENCE'd, not adopted).
  • §8 self-application surfaced the recursion that this R-phase's own kickoff was gitignored-absent from its fresh worktree.

Prior-art consult

Test plan

  • Docs-only PR (one markdown file under docs/meta-factory/research-patches/); no code, no hooks, no principles touched.
  • Pre-push hook suite green (zizmor, audit probes 9/9, §7/§9 substance 16/16, principle tests 85/85, skill drift check).
  • Markdownlint clean on the new file (MD040 fixed pre-commit).
  • All relative link targets in the doc resolve (-f test).

§1.7 Self-discipline check (REQUIRED if PR touches discipline-bearing files)

§1.7 Skipped: research-patch deliverable only — recommends a future symlink mechanism, introduces no rule under .claude/rules or principles; the forward/backward discipline analysis lives inside the doc itself at §6 (forward) and §7 (backward) with per-line file:line citations.

…APT (symlink-to-canonical)

R-phase deliverable for the gitignored-coordination-doc drift problem
(.claude/orchestrator-prompts/** per-worktree copies diverge on edit).

Search-coverage executed: SSOT consult (no match; near-neighbours #27/#28/#44
rejected on problem-class), DeepWiki x3 (git/git, superpowers, git-worktree.nvim),
WebSearch x3, internal sweep. 8 candidates enumerated across copy/symlink/hardlink/
relocate/un-gitignore semantics; per-candidate verdict via build-first-reuse-default
§2 typology.

Recommendation: ADAPT symlink-to-canonical (b)+(e) — proven by worktree-env-sync +
worktree.linkFiles proposal; copy-at-creation tools (git-worktreeinclude/
git-worktree-runner) REFERENCE'd only (T-coord-A: name-match, wrong problem class —
they copy, we need live sync). <=30 LOC harness-agnostic helper sketch. Zero LLM,
no daemon, no CI surface.

§1.7 forward+backward checks applied; T15 self-application surfaced the recursion
that this R-phase's own kickoff was gitignored-absent from its fresh worktree.

Prior-art: skipped — research-patch only, no new capability shipped (deliverable is one tracked markdown analysis file under docs/meta-factory/research-patches/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant