Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ are closed (status: closed in frontmatter)._
- [ ] **[B-0071](backlog/P2/B-0071-rename-otto-275-forever-out-of-live-lock-class-codex-pr-17-2026-04-28.md)** Rename otto_275_forever memory out of "live-lock 9th pattern" subclass + reclassify per Otto-352 taxonomy split
- [ ] **[B-0072](backlog/P2/B-0072-memory-md-index-entry-length-normalization-copilot-pr-72-2026-04-28.md)** Normalize MEMORY.md index entry lengths to one-line-per-memory per memory/README.md guidance
- [ ] **[B-0074](backlog/P2/B-0074-pr-72-punch-list-stale-item-sweep-spec-consistency-2026-04-28.md)** PR #72 punch-list / spec-consistency drift sweep — 8 codex threads on stale items + cross-doc alignment
- [ ] **[B-0076](backlog/P2/B-0076-disowned-runtime-sweep-python-typescript-2026-04-28.md)** Disowned-runtime sweep — Python + TypeScript surface (same pattern PR #662 fixed for Java)
- [x] **[B-0076](backlog/P2/B-0076-disowned-runtime-sweep-python-typescript-2026-04-28.md)** Disowned-runtime sweep — Python + TypeScript surface (same pattern PR #662 fixed for Java)
- [ ] **[B-0077](backlog/P2/B-0077-curl-fetch-canonical-content-cleanup-codex-pr-663.md)** tools/setup/common/curl-fetch.sh canonical-content cleanup — Codex P0/P1 on PR #663
- [ ] **[B-0078](backlog/P2/B-0078-markdownlint-research-carve-out-narrowing-codex-pr-663.md)** Narrow markdownlint carve-out from `docs/research/2026-*-*.md` to verbatim-only pattern — Codex P1 on PR #663
- [ ] **[B-0079](backlog/P2/B-0079-audit-agencysignature-script-hardening-codex-pr-663.md)** tools/hygiene/audit-agencysignature-main-tip.sh hardening — 4 Codex findings on PR #663
Expand Down
19 changes: 10 additions & 9 deletions tools/orchestrator-checks/check-orchestrator-state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,28 @@ describe("parseWorktreeList", () => {
const raw = `worktree /repo\nHEAD abc123\nbranch refs/heads/main\n\n`;
const entries = parseWorktreeList(raw);
expect(entries).toHaveLength(1);
expect(entries[0].path).toBe("/repo");
expect(entries[0].head).toBe("abc123");
expect(entries[0].branch).toBe("main");
expect(entries[0].bare).toBe(false);
const e0 = entries[0]!;
expect(e0.path).toBe("/repo");
expect(e0.head).toBe("abc123");
expect(e0.branch).toBe("main");
expect(e0.bare).toBe(false);
});

test("strips refs/heads/ prefix from branch field", () => {
const raw = `worktree /repo\nHEAD abc\nbranch refs/heads/feat/my-task\n\n`;
const [entry] = parseWorktreeList(raw);
const entry = parseWorktreeList(raw)[0]!;
expect(entry.branch).toBe("feat/my-task");
});
Comment thread
AceHack marked this conversation as resolved.

test("handles detached HEAD (no branch line)", () => {
const raw = `worktree /repo\nHEAD deadbeef\n\n`;
const [entry] = parseWorktreeList(raw);
const entry = parseWorktreeList(raw)[0]!;
expect(entry.branch).toBe("(detached)");
});
Comment thread
AceHack marked this conversation as resolved.

test("handles bare worktree marker", () => {
const raw = `worktree /bare.git\nHEAD 0000000\nbranch refs/heads/main\nbare\n\n`;
const [entry] = parseWorktreeList(raw);
const entry = parseWorktreeList(raw)[0]!;
expect(entry.bare).toBe(true);
});
Comment thread
AceHack marked this conversation as resolved.

Expand All @@ -47,8 +48,8 @@ describe("parseWorktreeList", () => {
].join("\n\n");
const entries = parseWorktreeList(raw);
expect(entries).toHaveLength(3);
expect(entries[1].branch).toBe("feat/one");
expect(entries[2].branch).toBe("feat/two");
expect(entries[1]!.branch).toBe("feat/one");
expect(entries[2]!.branch).toBe("feat/two");
});
});

Expand Down
Loading