Skip to content

shard(2026-05-21/0149Z): orphaned-branch triage — substrate-drift discriminator generalizes#4472

Merged
AceHack merged 1 commit into
mainfrom
shard/tick-0149z-otto-cli-orphaned-branch-mostly-rescued-substrate-drift-discriminator-generalizes-2026-05-21
May 21, 2026
Merged

shard(2026-05-21/0149Z): orphaned-branch triage — substrate-drift discriminator generalizes#4472
AceHack merged 1 commit into
mainfrom
shard/tick-0149z-otto-cli-orphaned-branch-mostly-rescued-substrate-drift-discriminator-generalizes-2026-05-21

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 21, 2026

Summary

Follow-up to PR #4461 + PR #4468 (0059Z cold-boot + corrections). Verifies the orphaned otto/2012z-... branch carry-forward against current origin/main.

Finding: 4 of 5 orphaned commits' substrate is already rescued via peer agents. HC-8 NCI (f0abf3ed) was landed by PR #4205 between 2026-05-18 (orphan creation) and 2026-05-21 (cold-boot). The 0059Z carry-forward overestimated re-landing needs.

Generalization: the substrate-drift discriminator from .claude/rules/backlog-item-start-gate.md step 0 (row-scope) generalizes to orphaned-branch scope: before re-landing, run git diff origin/main..<sha> per file. 0 lines = fully rescued; 20-50 = partial drift; hundreds = genuine deltas worth cherry-picking.

DO NOT re-apply 467424ec Lior prompt fix — Lior's prompt has evolved repeatedly since 2026-05-18; re-applying the stranded fix would regress 22 lines of newer prompt-engineering work.

Verify

  • 1 file added: docs/hygiene-history/ticks/2026/05/21/0149Z.md (83 lines)
  • Pre-push gate passed (MD032 / markdownlint / relative-path audit)
  • Branch off current origin/main (7dd66fb7) — no rebase conflict expected

🤖 Generated with Claude Code

…criminator generalizes

Follow-up to PR #4461 + PR #4468 (0059Z cold-boot + corrections).

Verifies the orphaned `otto/2012z-...` branch carry-forward against
current origin/main: 4 of 5 commits' substrate already rescued via
peer agents. The HC-8 NCI commit (f0abf3e) was rescued by PR #4205
between 2026-05-18 (orphan creation) and 2026-05-21 (this cold-boot).

Generalizes the substrate-drift discriminator from backlog-row scope
(in .claude/rules/backlog-item-start-gate.md step 0) to orphaned-branch
scope: before assuming orphaned commits need re-landing, check substrate
against origin/main via per-file diff. 0 lines = fully rescued; 20-50
lines = partial drift cell-by-cell; hundreds = genuine deltas.

Supersedes the 0059Z carry-forward as overestimated.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 21, 2026 01:56
@AceHack AceHack enabled auto-merge (squash) May 21, 2026 01:56
@AceHack AceHack merged commit 9e0b316 into main May 21, 2026
29 checks passed
@AceHack AceHack deleted the shard/tick-0149z-otto-cli-orphaned-branch-mostly-rescued-substrate-drift-discriminator-generalizes-2026-05-21 branch May 21, 2026 01:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new hygiene-history tick shard documenting an orphaned-branch triage verification against origin/main, and generalizes the existing “substrate-drift discriminator” concept to orphaned-commit triage so future sessions avoid redundant re-landing or regressions.

Changes:

  • Adds tick 0149Z documenting that most orphaned commits’ substrate is already present on origin/main (via other PRs/rescues).
  • Introduces an “orphaned-branch triage discriminator” procedure using git show + git diff origin/main..<sha> -- <file> to classify rescue vs drift vs real deltas.
  • Records explicit guidance not to re-apply the stale Lior prompt fix commit due to on-main evolution.

AceHack added a commit that referenced this pull request May 21, 2026
…o orphaned-branch scope (#4477)

The substrate-drift discriminator (row-scope, step 0) generalizes
naturally to orphaned-branch surface: before assuming orphaned commits
need re-landing, verify the substrate they encode against current
origin/main via per-file diff.

Discovered while triaging the orphaned `otto/2012z-...` branch
(2026-05-18 vintage, 5 unmerged commits including HC-8 NCI). The
HC-8 commit (f0abf3e) had been rescued by PR #4205 between orphan
creation and the cold-boot tick — re-landing would have been
duplicate work. 4 of 5 commits showed similar already-on-main state;
the 5th was a runtime-script (.gemini/bin/lior-loop-tick.ts) that
the special-case guard correctly flags as DO NOT re-apply.

Adds a new "Orphaned-branch triage discriminator" section after
the main gate steps with:
- 3-step verification procedure (grep main, per-file diff, line count)
- 3-tier interpretation table (0 / 20-50 / hundreds of lines)
- Special-case guard for runtime scripts that evolve continuously
- Empirical anchors: PR #4205 + PR #4461 + PR #4472
- Composes-with edge to honor-those-that-came-before.md at
  orphaned-commit scope

The shard at PR #4472 documented the discovery; this PR makes the
discriminator actually reachable for future-Otto cold-boots via
the auto-loaded rule.

Co-authored-by: Claude <noreply@anthropic.com>
AceHack added a commit that referenced this pull request May 21, 2026
…ull-file verification (#4478)

Upgrades #4472's first-file spot-check to full per-file diff verification
across all 5 orphaned commits on otto/2012z-...:

- 29d89be Agora V6 followup: ALL 4 files at 0 lines diff (fully rescued)
- 09a9a3c V6 constitution: 32 files, 20-163 line diffs (main preferred)
- 2ca87ef Mirror/Beacon: 4 files, 30-37 line drift (main preferred)
- 467424e Lior prompt: 22 lines diff (confirmed DO NOT re-apply)
- f0abf3e HC-8 NCI: already on main via #4205 (re-confirmed)

Branch is local-only (git ls-remote origin returns empty) → no
remote cleanup. Substrate-drift discriminator at orphaned-branch
scope now has empirical-anchor confirmation: first-file spot-check
correctly classified all 4 of 4 cases this session checked.

Composes with the 0149Z generalization of the substrate-drift
discriminator from row-scope (backlog-item-start-gate.md step 0)
to orphaned-branch-scope. Honors peer agents (Lior, peer Otto)
whose rescues made re-landing unnecessary.

Authored from isolated worktree per zeta-expected-branch.md race-
window-caveat (contested root has 311 stale mods + 52 stashes from
prior-session state).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
AceHack added a commit that referenced this pull request May 21, 2026
… empirical anchor (#4482)

Aaron's #4477 landed the orphaned-branch discriminator section with
3 empirical anchors (#4461 cold-boot, #4472 spot-check discovery,
#4205 peer rescue). My #4478 merged ~1 min after #4477 was authored
— too late to be included in the original empirical anchor list.

Adds #4478 between #4472 and #4205 in chronological substrate-evolution
order: cold-boot → spot-check discovery → full-file verification → rescue
context. The full-file diff across ALL 32 + 4 + 4 + 4 + 2 files of the
5 orphaned commits confirmed the cheap first-file heuristic correctly
classified 4 of 4 cases this session checked exhaustively, anchoring
the discriminator's operational reliability.

Strengthens the rule's empirical-anchor density without changing the
operational discipline.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
AceHack added a commit that referenced this pull request May 21, 2026
…-43 prevented); orphaned-branch triage for `otto/2012z-...` + PR #4574 (#4585)

7h 48min after the last in-repo shard (1421Z). CronList empty at cold-boot; CronCreate job `ebc958b7` armed per `tick-must-never-stop.md`. Refresh: graphql=3005 (Normal tier), 11 peer procs (Lior cycling), ls-tree=54 (canary clean).

Substantive substrate of this tick: orphaned-branch triage for `otto/2012z-land-nci-tonal-momentum-rules-cross-substrate-triangulator-skill-2026-05-18` + PR #4574 (DIRTY, auto-merge armed since May 18 era; 384 files / 10779 insertions vs origin/main; 17 unresolved threads; 2 required-check failures). Per-commit substrate verification per orphaned-branch triage discriminator (`backlog-item-start-gate.md`): HC-8 NCI fully rescued on main (PR #4205 family + #4478 + #4477 + #4472 + #4461); Agora V6 wave/particle + free-will + cross-substrate triangulation fully rescued (#4537 + #4530 + #4522 + #4517); Lior prompt fix falls under runtime-scripts special-case guard (do NOT re-apply); `tools/kiro/kiro-loop-wrapper.sh` is the single non-redundant slice (file does NOT exist on origin/main).

Recommended Pattern A → C blend: disarm auto-merge + close PR #4574 substrate-honest with rescue cross-links + open small focused PR for kiro-loop-wrapper.sh slice only. Forward-signal, not this-tick execution (multi-step + 17-thread + 2-required-check scope deserves operator awareness).

Working-tree contested mod (`tools/kiro/kiro-loop-wrapper.sh` shellenv.sh source-block) NOT committed — peer-Otto/Alexa uncommitted state preserved. 3 untracked Lior worktree directories NOT touched.

Composes with: backlog-item-start-gate orphaned-branch triage discriminator + claim-acquire stale-armed-PR patterns + honor-those-that-came-before + holding-without-named-dependency (concrete artifact = this shard) + zeta-expected-branch isolated-worktree race-window-caveat + codeql-canary pre/post-commit checks + refined-detection regex `lior|gemini.*--yolo` (Anchor 6 from the 21min-Lior session-arc memo).

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants