diff --git a/.claude/settings.json b/.claude/settings.json index 2d105c725d5..6575a2bc3fe 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -10,46 +10,6 @@ } ] } - ], - "WorktreeCreate": [ - { - "hooks": [ - { - "type": "command", - "command": "nix run \"${CLAUDE_PROJECT_DIR}#quest\" -- worktree hook" - } - ] - } - ], - "WorktreeRemove": [ - { - "hooks": [ - { - "type": "command", - "command": "nix run \"${CLAUDE_PROJECT_DIR}#quest\" -- worktree hook" - } - ] - } - ], - "SubagentStart": [ - { - "hooks": [ - { - "type": "command", - "command": "nix run \"${CLAUDE_PROJECT_DIR}#quest\" -- worktree hook" - } - ] - } - ], - "SubagentStop": [ - { - "hooks": [ - { - "type": "command", - "command": "nix run \"${CLAUDE_PROJECT_DIR}#quest\" -- worktree hook" - } - ] - } ] }, "permissions": { diff --git a/quest/m0/README.md b/quest/m0/README.md index 3c36284362e..c239f0539e0 100644 --- a/quest/m0/README.md +++ b/quest/m0/README.md @@ -35,6 +35,5 @@ edge, which embeds moq-relay; it moved there on 2026-09-28. - [Benchmark sessions can't overlap on a host](/quest/m0/bench-host-lock.md) - a host-level lock keeps a second benchmark or profile session from measuring under the first's load - [A waiter's record limit changes no behavior](/quest/m0/kio-waiter-records.md) - two moq-net tests stop failing when kio's waiters remember 16 lists, and the limit becomes a tuning knob worth 3.9% per delivered group - [Backport the relay and auth hardening to release](/quest/m0/backport-release-hardening.md) - `release`'s relay refuses dot-segment paths, serves its HTTP routes with main's response hardening, and withdraws advertisements a peer starves of send credit; its auth client refuses redirects -- [quest init keeps moq's nix-wrapped worktree hooks](/quest/m0/quest-worktree-hooks.md) - quest pin bumps keep the hooks that run moq's pinned `quest` - [HLS lists contributions](/quest/m0/hls-contributions.md) - an HLS master lists each catalog contribution's renditions, and a contribution's media is subscribed only while players fetch it - [@moq/net passes qmux stream limits through](/quest/m0/qmux-stream-limits.md) - Node and WebSocket JS clients stop failing near 100 live tracks diff --git a/quest/m0/quest-worktree-hooks.md b/quest/m0/quest-worktree-hooks.md deleted file mode 100644 index 50c2c67fd0b..00000000000 --- a/quest/m0/quest-worktree-hooks.md +++ /dev/null @@ -1,46 +0,0 @@ -# [XS] quest init keeps moq's nix-wrapped worktree hooks - -## Goal - -moq's Claude Code worktree hooks, which run the `quest` moq pins through nix, -survive quest pin bumps: `quest init` leaves them alone instead of refusing -them. - -## Plan - -Decided 2026-11-03 (maintainer, on -[moq-dev/moq#7674](https://github.com/moq-dev/moq/pull/7674)): ✅ the hooks -reach `quest` through nix (or a submodule) long-term, so they run moq's pin. -A host-wide `quest` on `PATH` is acceptable only as a temporary bridge. -Rejected: relying on an installed `quest`, `direnv exec`, adopting the bare -`quest worktree hook` now, and dropping the quest. - -Decided 2026-11-03 (maintainer, on -[moq-dev/moq#7674](https://github.com/moq-dev/moq/pull/7674)): ✅ ask -moq-dev/quest to have `quest init` treat any command hook whose arguments end -in `worktree hook` as its own. Rejected: a configured hook command, and not -asking. - -[moq-dev/moq#7674](https://github.com/moq-dev/moq/pull/7674) installed the four -hooks as `nix run "${CLAUDE_PROJECT_DIR}#quest" -- worktree hook`. That command -takes 0.1–0.5 s warm and 1.5–3 s with a cold nix cache, and builds a new pin in -about 6 s. It also bumped the pin past -[moq-dev/quest#425](https://github.com/moq-dev/quest/pull/425), so -`--worktree '#123'` starts at the PR head and workflow agents' checkouts get -released, and checked live that the hooks coexist with T3 Code's worktree -threads and isolated delegates. What remains: - -- `quest init` matches only the literal `quest worktree hook`, so it refuses a - wrapped `WorktreeCreate`/`WorktreeRemove` command (exit 1, nothing written) - and would add duplicate subagent hooks. Until quest recognizes a wrapped - command, a pin bump drops the four entries for its `quest init` run and - restores `.claude/settings.json` afterwards, as AGENTS.md says. Once - quest recognizes them, bump the pin, check that `quest init` is a - no-op here, and drop that AGENTS.md sentence. - -## Waiting - -- moq-dev/quest: land `quest init` and `quest uninstall` treating a command - hook whose arguments end in `worktree hook` as Quest's own (being planned - there as of 2026-11-03). Check: with this repository's hooks in place, the - pinned `quest init` exits 0 and leaves `.claude/settings.json` unchanged. diff --git a/quest/m1/codex-env-snapshot.md b/quest/m1/codex-env-snapshot.md index 09d6b973c7d..8f586b5a221 100644 --- a/quest/m1/codex-env-snapshot.md +++ b/quest/m1/codex-env-snapshot.md @@ -31,7 +31,3 @@ Decided 2026-11-03 (maintainer, /quest-plan of the follow-ups from and `nix develop --command` keeps its own toolchain. Public API: none. Wire: none. - -## Related - -- [Agents use quest's worktree hooks](/quest/m0/quest-worktree-hooks.md) - the Claude-side worktree hooks