Files
piik/docs/workspace-disposition.md
T
AAA a6919c2dbf docs: record canonical workspace cleanup (#194)
Record the completed canonical-main restoration, audited D cleanup, retained workspace state, and explicit user stop gates.
2026-08-22 12:57:02 +08:00

15 KiB

Workspace Disposition

Last sampled: 2026-08-22 after the approved cleanup pass

This is the demand-loaded schedule for restoring one canonical repository root and disposing of auxiliary work safely. It is not permission to delete, merge, rebase, or resume a TODO. Shared state is dynamic, so every action must re-sample Git status, refs, PRs, and links immediately before execution.

Executed Cleanup Checkpoint

The detailed tables below retain the pre-execution 30-worktree snapshot so the disposition evidence is reviewable. This checkpoint supersedes those counts:

  • The canonical root Screener was restored to clean main@5bb54b0, equal to origin/main and GitHub main before this docs-only record. The two staged user AGENTS.md rules are present in that mainline truth; their recovery copy remains in stash@{0} through the user checkpoint.
  • After this record branch is merged and removed, 26 registered worktrees and 29 local branches remain. Five worktrees are dirty; only Screener-local-oneclick has nonignored untracked files, exactly five. Every dirty, held, unknown, evidence-only, archive, and open-stack item was preserved.
  • The clean auxiliary-main, current-routing-truth, connection-details-stability, and detached current-route-canary worktrees were removed after exact status and non-following link checks. Their eligible local branches were removed together with the merged-equivalent feat/viewer-presence-polish, feat/room-viewer-access-merge-history, and main-ancestor fix/ice-status-wording refs.
  • Fifteen merged remote heads were deleted only after exact PR-head equality, merge ancestry, and open head/base checks. Ten remote branches remain: main, open PR #192, the six open Native stack refs, held test/native-two-viewer-fanout, and closed-unmerged feat/screen-audio-stereo.
  • The signaling-canary junction and both junction-only unregistered shells were unlinked without following their targets. The only known registered-worktree junction left is the preserved configurable-cap node_modules link to the canonical dependency directory.
  • Four approved empty/junction-only sibling directories were removed. The empty Screener-android-pilot-apk directory remains because Windows reports an external open handle; no process was killed and no forced recursive deletion was attempted. Deployment archives, extracted artifacts, the independent audio acceptance clone, and all uncertain directories remain retained.
  • feat/sfu-media-mode remains local because it is closed-unmerged and not commit-equivalent to main. Apparent semantic supersession was not used as permission to destroy its recovery input.

No routing implementation or remaining TODO resumed during this cleanup pass.

Canonical Target And Stop Gate

  • The canonical repository root is the registered worktree whose sibling-directory name is Screener; all other Screener-* worktrees are auxiliary.
  • Its required terminal state is a clean, exact latest main. An auxiliary worktree must not retain main afterward.
  • The audit-guard truth checkpoint merges first; it does not accept a final routing model. The root's staged user rules must be proved present in that updated main or explicitly preserved before its index changes.
  • After truth integration, canonical-root restoration, and the approved workspace cleanup below, report the main SHA, dirty/untracked count, retained worktrees/branches, held candidates, and TODO classifications to the user before producing the holistic route proposal or resuming cleanup.
  • After that checkpoint is explicitly confirmed, produce the holistic routing model as a held proposal from exact canonical main, then stop again for route-semantics confirmation. Do not create or resume an implementation worktree until the accepted owning truth is merged; every later worktree starts from that exact newer main SHA.

Disposition Classes

  • A PRESERVE: required before truth integration, dirty, disputed, open, or carrying unique/unknown work. No cleanup.
  • B RECONCILE: evaluate only after accepted truth is in main; transplant approved scoped code/tests/evidence, never an old truth snapshot.
  • C CANONICAL: handle only while restoring the canonical root to latest main.
  • D CLEANUP: eligible only after semantic disposition, integration/equivalence, clean-tree, open-reference, and non-following link checks all pass.
  • E RETAIN: active stack, external evidence, archive, or unknown provenance; keep until a separate reviewed decision.

Registered Worktrees (Pre-Execution Snapshot)

The snapshot contains 30 registered worktrees. Seven are dirty. Only Screener-local-oneclick has nonignored untracked files: five unique project files.

Worktree Branch / HEAD Snapshot Class and next action
Screener feat/viewer-presence-polish@d10e879 staged AGENTS.md, no untracked A -> C; preserve two user rules, then restore this root to exact main. PR #153 is merged; after restoration, its local and remote branch become D only after a fresh merged-head and open-head/base recheck.
Screener-current-routing-truth docs/current-routing-truth audit branch truth owner; sampled from origin/main@7df8217 A -> D after merge; finish, validate, review, and merge before any other integration, then remove its clean merged auxiliary worktree/branch during canonical cleanup.
Screener-connection-details-presentation main@7df8217 clean A -> C; currently occupies main. Release only after dependent junction handling and latest-main verification.
Screener-configurable-relay-cap fix/configurable-relay-cap@7df8217 10 tracked edits; junction to canonical node_modules A -> B; disputed routing draft, preserve and later rebuild only approved intent.
Screener-av-sync-next-slice spike/av-sync-next-slice@d9bd4e2 clean, open PR #192 A/E; evidence-only, preserve open refs.
Screener-real-relay-canary test/real-relay-canary@f135302 clean; local differs from merged PR head A -> B; retain possible one-line report correction, never delete solely because #191 merged.
Screener-resource-matrix-gate docs/resource-matrix-gate@140dd00 clean A -> B; retain measurements only, exclude stale Browser1 policy.
Screener-signaling-blackhole-canary test/signaling-blackhole-canary@e972b75 clean; junction to auxiliary-main node_modules A -> B; evidence for held watchdog decision; handle junction before releasing auxiliary main.
Screener-routing-architecture docs/routing-algorithm-convergence@43b1f46 clean A -> B; historical/disputed model input only.
Screener-relay-parent-quarantine fix/relay-parent-quarantine@5bab93b 2 tracked server edits A -> B; unknown routing draft, preserve pending model review.
Screener-connection-details-stability fix/connection-details-stability@55f4cbc clean A -> D; superseded design input, cleanup only after #187 equivalence recheck.
Screener-current-route-canary detached b77f4eb clean D; old exact-main fixture, recheck no consumer before removal.
Screener-host-generation-debug spike/host-generation-quality-evidence@fc4b0b0 clean, local-only E; unknown provenance.
Screener-local-oneclick feat/local-oneclick-bundle@e3ab39c 7 tracked edits plus 5 untracked project files A/E; unique dirty work, never clean or remove automatically.
Screener-native-live-bridge spike/native-live-encoded-bridge@8121b69 clean, draft PR #22 E; preserve Native stack.
Screener-native-live-feedback-loop spike/native-live-feedback-loop@aad560e clean, draft PR #28 E; preserve Native stack.
Screener-native-primary-nack-retransmit spike/native-primary-nack-retransmit@a6c3456 clean, draft PR #25 E; preserve Native stack.
Screener-native-shared-encode spike/native-shared-encode-browser@80f65d0 clean, draft PR #18 E; preserve Native stack.
Screener-native-shared-feedback-control spike/native-shared-feedback-control@eb9aabe clean, draft PR #23 E; preserve Native stack.
Screener-pion-rtp-fanout spike/native-rtp-fanout-oracle@5b09f0a clean, draft PR #16 E; preserve Native stack.
Screener-native-two-viewer-fanout test/native-two-viewer-fanout@bf898b6 clean, remote branch, no PR E; held Native candidate.
Screener-windows-shared-encode-sender feat/windows-shared-encode-sender@1ce732e clean, 14 local commits E; unique held Native candidate.
Screener-participant-connection-truth-plan docs/participant-connection-truth-plan@4b536d0 clean, local-only E; unknown docs input.
Screener-quality-evidence-followups docs/quality-evidence-followups@d3f160f clean, local-only E; unknown docs input.
Screener-recovery-details-release fix/recovery-details-release@b0e013f 2 tracked docs edits A/E; stale code ancestry plus unique unknown docs.
Screener-route-status-visual fix/route-status-visual-recall@79ee46e clean, local-only E; unknown and likely overlapped.
Screener-sfu-healthy-reselection docs/sfu-healthy-reselection@47c2ce7 clean, local-only E; old design, semantic review required.
Screener-sfu-stable-stream fix/sfu-stable-subscriber-stream@4d46a4a clean, local-only E; unknown.
Screener-target-peer-error fix/target-peer-not-connected@7141cd9 clean, local-only E; unknown.
Screener-viewer-c-evidence docs/viewer-c-evidence-contract@911b03b 4 staged/add plus docs/status.md conflict A/E; unresolved conflict and unique work, never remove/rebase automatically.

Local Branches Without Worktrees

  • docs/production-smoke-record@231a7c3: E, unknown.
  • feat/room-viewer-access-merge-history@921e8a2: D, merged-equivalent after final recheck.
  • feat/sfu-media-mode@fb7d4f1: D candidate, closed-unmerged PR #12; semantic supersession must be proved first.
  • fix/ice-status-wording@4f7fee4: D, current-main ancestor after final recheck.
  • fix/screen-audio-bitrate-target@5a71462: E, local unique commits despite a related merged remote head.

Open And Remote References

  • Preserve main, open PR #192, and the Native stack #16/#18/#22/#23/#25/#28, including every stacked base branch. Preserve test/native-two-viewer-fanout, which has a remote branch without a PR. These are nine retained remote refs in this snapshot.
  • The following 14 merged-PR heads are D candidates only after a fresh exact remote-head equals merged-PR-head check and confirmation that no open PR uses the branch as head or base: chore/hygiene-ignore-untracked, docs/nat-web-boundary, feat/host-display-name, feat/host-roster-details-disclosure, feat/viewer-presence-polish, feat/viewer-topology-map, fix/codec-lock-hint, fix/peer-relay-quality-release, fix/relay-relative-quality, fix/revert-low-fps-reselection, fix/screen-audio-bitrate-target, fix/sfu-viewer-recovery, fix/sticky-sfu-cooldown-mainline, and test/real-relay-canary.
  • Preserve feat/screen-audio-stereo as E: PR #147 is closed-unmerged, so the merged-branch deletion rule does not apply merely because later work appears equivalent.
  • The remote listing also contains the symbolic origin/HEAD alias; it is not a branch cleanup target. Every count and disposition must be re-sampled immediately before action because this 2026-08-22 snapshot is not permanent authority.

Unregistered Directories And Artifacts

  • Empty directory candidates: Screener-android-pilot-apk, Screener-deploy-261e980c, Screener-production-truth-66eb (D after exact empty recheck).
  • Junction-only shells: Screener-quality-evidence-alignment, Screener-room-peer-canary. Each points to canonical node_modules; unlink the junction itself without following it before considering the empty root (D).
  • Independent acceptance clone: Screener-audio-main-acceptance plus bare Screener-audio-main-acceptance.git at 960ae42 (E). It is not a canonical worktree; if later removed, use its own bare repository to remove its registered worktree first.
  • Deployment archives: Screener-deploy-artifacts, Screener-deploy-builds, two extracted artifact directories, and five sibling .tar.gz files (E/D). Pair each with commit, checksum, and deployment retention records before archive/removal; never glob-delete Screener-*.

Known Reparse Points

The non-following scan found exactly four junctions and no scan errors:

  1. Screener-configurable-relay-cap\node_modules -> canonical root node_modules.
  2. Screener-signaling-blackhole-canary\node_modules -> auxiliary-main node_modules.
  3. Screener-quality-evidence-alignment\node_modules -> canonical root node_modules.
  4. Screener-room-peer-canary\node_modules -> canonical root node_modules.

Never recursively remove a containing directory while one of these links remains unresolved. Delete only the link itself using a non-following operation, then verify the external target still exists.

Execution Order

  1. Stop writers and re-sample worktrees, dirty/untracked state, local/remote refs, open PRs, and reparse points.
  2. Finish, validate, independently review, and merge the audit-guard truth checkpoint first; do not treat it as final route acceptance.
  3. Prove the root's staged user rules exist in accepted main; explicitly preserve any unmatched content.
  4. Handle the signaling-canary junction without following it. Recheck the auxiliary-main worktree is clean, untracked-free, and at exact latest main, then release it.
  5. Make the canonical root clean without losing unmatched user work, switch it to exact latest main, and verify path, branch, HEAD, dirty/untracked state, and GitHub main equality.
  6. Execute only already-approved D cleanup items, one exact target at a time, after semantic/equivalence/open-reference/link checks. Preserve all A, B, and E items.
  7. Stop and obtain user confirmation of the organized canonical state, retained material, and TODO classifications before route modeling or another cleanup pass.
  8. After that confirmation, produce only the holistic routing held proposal from exact canonical main; do not implement it or resume another TODO.
  9. Stop again and obtain explicit route-semantics confirmation.
  10. Only after confirmation, update accepted owning truth and merge that truth into canonical main. Then create new implementation worktrees from that exact newer canonical-main commit and reconcile B candidates one at a time. Old branch truth files never win conflicts.
  11. Process independent archives and deployment artifacts last, with checksum and retention evidence.