GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect · Issue #1929 · developing-today/code Open 1 / 11 of 1 issue completedOpen 1 / 11 of 1 issue completed Copy link Labels enhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/enhancementsource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item Milestone DescriptionRelocated from dezren39/darwin-nix#112 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering). Parent: #176 Summary
That is a better factoring than it first appears. The script is the part that must be reproducible; "make sure these dependencies exist wherever this runs" and "clean up the results and transform them" are the parts that legitimately vary by environment and by caller. Keeping them out of the script means the same script file works everywhere and the variation is in the options, which is exactly the shape Original notes
Current state (what mcpx does today, with file refs)
ApproachesApproach A — least recommended: five new string options, each handed to a model, each running arbitrary code
Why not:
Approach B — middle: one
|
effect |
what the hook's output may be | runs code? |
|---|---|---|
advise |
text, attached to the result or error | no |
transform |
a replacement for the result value only | no |
script |
TypeScript, diagnosed and typechecked, then run in the same sandbox | yes |
retry |
a decision: retry / retry-with-changes / give up | via the repair ladder |
advise is the default. This is the same dial as repair.level in #111 and should use the same vocabulary; a user who understands one understands the other. #181 collision 3: #111 carries that one dial vocabulary, via the SURFACES decision record under pkgs/mcpx/docs/decisions/; the effect values in this table are input to it, and #112 adopts what it decides rather than shipping its own. The ceiling a daemon puts on it is #185 (collision 5). A prompt hook whose effect is script is the only one that can execute anything, and it inherits Options.Permissions unchanged — a hook must never be able to do what the script it wraps could not.
2. Template variables reuse the placeholder machinery that exists, including its safety property. @name is already the spelling in recipes and launchers, and recipe values are JSON-encoded, not text-substituted, precisely so a placeholder cannot become an injection site. A prompt is text and the same discipline applies at a different layer: the substituted value must be delimited and marked as data, and a hook prompt must never be able to redefine the hook's own effect. Beyond user placeholders, offer a small set of built-ins the note is clearly asking for — @result, @error, @diagnostic, @calls, @artifacts, @source — so "onError gets provided above or below the error" is expressible as "Here is what happened:\n@error\n@diagnostic\nWhat should I do?" rather than being a positioning rule mcpx has to guess. Position by template, not by convention; when a prompt contains no built-in reference, mcpx appends the context after it, which is the sensible default the note describes.
3. Hooks are declarable in config, not just per call. ScriptConfig.Prefix and the shipped script.before/onSuccess/onError/suffix already layer across the config chain; script.hooks (or whatever collision 2's record names it) should layer the same way, so "always check dependencies before any run in this project" is written once. Per-call hooks append to config hooks rather than replacing them, with the same nearest-wins resolution ResolveLines already implements.
4. Stop/resume is internal/tasks, not a new mechanism. "for prompt overall to be stopped/resumed maybe" — a hook that needs a decision raises an elicitation through the existing broker (with a default and a deadline, as elicit.Ask enforces), and a run that must wait becomes a task with a handle, collectable from /v1/tasks/{id}. Both already exist and both already work for the recipe path. On 2026-07-28 this is also exactly MRTR: resultType: "input_required", the client answers, the request is retried.
Stream placement, since the Frame order is a contract (docs/exec.md:137). #181 collision 7: #111 owns the rule every new frame kind follows (declared placement relative to result, listed in the documented order, asserted by a test comparing documented and emitted order); the hook frame is added under that rule and the placement below is input to it: a hook emits log/emit/stdout frames tagged with its phase and a hook frame recording phase, effect, model used, duration and whether it changed anything. pre frames come after start; post/onSuccess frames come after the result frame and before end; onError frames come after error and before end. The final result reflects a transform hook's output, with the original preserved in the hook frame — a caller must be able to see what mcpx changed.
Cost and default posture. Hooks are off unless declared. A prompt hook without an available model is a warning on the run, not a failure — the script still ran, and that is the honest degradation. pre hooks with effect: script should be cached by (prompt, placeholder values, catalogue fingerprint) so the same "ensure my dependencies" instruction resolves to the same generated script on every run instead of re-generating it; that caching is also what makes the generated script reviewable and promotable to a real hook script, which is how this feature should be expected to be used — prompt once, keep the script.
Recommended because the structure is one list rather than five fields, because effect-declaration is what keeps a convenience feature from being an execution back door, because everything it needs — placeholders, prefixes, tasks, elicitation, diagnostics, artifacts — already exists and this mostly wires them to four new points in time, and because the deterministic half (Approach B) is independently valuable and ships first.
onSuccess earn its own phase when post exists? post running only on success and onError on failure covers it; a separate onSuccess is only distinct if post is meant to run on both. Pick one and document it — this is the note's ambiguity, not a design difficulty.order? Declaration order plus nearest-wins layering matches ScriptPrefix.transform hook be allowed to change artifacts, or only the result value? Only the value is far simpler and probably enough.Options.Timeout or get its own budget? Its own, or a slow model silently eats the script's budget.before every call to this server, ...)? That is closer to a server-level middleware feature and may belong with tool views.pre returning refuse)? Useful and cheap, but then a pre hook is a policy mechanism and needs the floor/ceiling clamping Phase 5: who may clear a tag claim #185 owns.Ease M (S for the deterministic half — much of it already ships as script.* launcher phases, so what remains is exposing them per call with a typed context; M with prompt hooks and effects; L if stop/resume gets its own machinery rather than reusing tasks) · Impact medium-high — it is what makes one script file portable across environments without the script knowing where it runs, which is the same goal #40 had for artifacts.
Depends on / related: #81 (owns the hook vocabulary via the SURFACES decision record — #181 collision 2), #111 (owns the autonomy dial and the frame-order rule — collisions 3 and 7), #185 (owns ClampedBy — collision 5), #82 (runtime hook registration, the fourth vocabulary), #40 (closed, fixed in #57: ExecOptions is the home; "not a new method, an option" is the governing precedent), #41 (closed, fixed in #58: placeholders, elicitation defaults/deadlines, diagnostics as hook context), #7 (launcher @placeholder spelling), #5 (config chain, for layered hooks), #79 (hook cost must not regress exec latency). Siblings: #110 (where a prompt hook's model comes from), #113 (the dependency-provisioning half of the pre example; also #103/#104 in #175).
Security/auth deferred; see tracker.
History carried over from dezren39/darwin-nix#112 (verbatim, oldest first):
@dezren39 · 2026-09-30T07:21:51Z
Integration pass. Placed in the DAG rooted at #181.
d956689 to d460fcc #109 Bump build/buck/preludes/buck2-prelude from d956689 to 52604b1 #110 Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111 Update module github.com/jackc/pgx/v5 to v5.5.4 [SECURITY] - autoclosed #113 Update checkmarx/ast-github-action digest to 6c56658 - autoclosed #114 Update github.com/charmbracelet/promwish digest to 6c16e8f - autoclosed #115@dezren39 · 2026-09-30T07:27:50Z
Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.
script.* (shipped), #81's hook-point table, #82's runtime hook registration, and #112's prePrompt/postPrompt/onError list are four vocabularies for one concept. #112 sits in a different theme (#176) from #81/#82 (#173), so nobody currently owns the overlap. Reconciling them after the fact is a breaking config change -- design them as one.
Also on: #81 #82. Nobody currently owns this.
@dezren39 · 2026-09-30T07:27:53Z
Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.
#111's repair.level, #112's hook effect, and #113's prompt.mode: plan are the same dial. Settle it in #111, which is the earliest of the three. Otherwise a user learns three vocabularies for one concept.
Also on: #111 #113. Nobody currently owns this.
@dezren39 · 2026-09-30T07:28:01Z
Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.
ClampedBy is a settings-registry feature with no owner#111 proposes floor/ceiling clamping -- a daemon sets a maximum, a caller may lower but not raise -- and #112 and #113 both need it. It currently exists only as a paragraph inside #111. It is an internal/settings capability, not a repair feature; whoever reaches it first will implement it, and the other two will implement it again differently.
Also on: #111 #113 #172. Nobody currently owns this.
@dezren39 · 2026-09-30T07:28:09Z
Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.
Frame ordering contract is extended by two issues independently#111 adds a call frame; #112 adds a hook frame with explicit before/after-result placement rules. docs/exec.md states the frame order as a contract. Neither issue knows about the other's placement rules, and no issue owns updating the contract.
Also on: #111. Nobody currently owns this.
@dezren39 · 2026-09-30T11:06:07Z
Collision ownership (issues pass, 2026-09-30, at 05c78b2). #181 listed these cross-theme collisions with no owner. Each now has one:
| #181 row | Collision | Owner | What the owner decides |
|---|---|---|---|
| 2 | four hook vocabularies (script.* shipped, #81, #82, #112) |
#81, via a decision record SURFACES is writing under pkgs/mcpx/docs/decisions/ (in flight; linked here when it merges) |
The vocabulary is decided in the decision record; #81 is the issue that carries it. #82 and #112 adopt it rather than defining their own. |
| 3 | three autonomy dials (#111 repair.level, #112 hook effect, #113 prompt.mode: plan) |
#111, via a decision record SURFACES is writing under pkgs/mcpx/docs/decisions/ (in flight; linked here when it merges) |
One dial vocabulary; #111 carries it because it is the earliest of the three. The ceiling mechanism is #185. |
| 5 | ClampedBy -- a daemon ceiling a caller may lower but not raise |
#185 (new) | A settings-registry capability, owned by its own design issue under #176. #111, #112 and #113 consume it. |
| 7 | the exec Frame ordering contract, extended by #111 (call) and #112 (hook) |
#111 | #111 extends docs/exec.md's order first and states the rule every new frame kind follows (declared placement relative to result, listed in the documented order, asserted by a test that compares documented and emitted order). #112 adds its kind under that rule. |
Where this issue is the owner, the decision is made here; where it is not, it adopts the owner's decision rather than making its own.
@dezren39 · 2026-09-30T11:57:45Z
Issues pass (2026-09-30, at 05c78b2).
Parent: #176.script.before, script.prefix, script.onSuccess, script.onError and script.suffix (internal/settings/registry.go:212-242, ScriptConfig internal/config/config.go:236-257, runner.Phases internal/runner/runner.go:190-205). They inject source into the launcher. onError rethrows ("a hook, not a handler") and suffix runs in a finally. They are CLI and config only; /v1/exec does not carry them by design (internal/execsvc/execsvc.go:358-366). Approach B is therefore partly built already. The body says so and flags that B's onError (may replace the result) differs from the shipped one (always rethrows).effect defers to Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111's dial (collision 3), with Phase 5: who may clear a tag claim #185 as its ceiling (collision 5). The hook frame is added under Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111's frame-order rule (collision 7). The design text is kept as input to those owners.Related: adds chore(deps): bump stefanzweifel/git-auto-commit-action from 4 to 5 #81, chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 5f79ad1 #82, Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111 and Phase 5: who may clear a tag claim #185, marks Bump openssl from 0.10.54 to 0.10.55 in /sources/pavex/examples/realworld #40 and Bump build/buck/preludes/buck2-prelude from d956689 to 6f75473 #41 as closed (fixed in chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 677e9eb #57 and chore(deps): bump rustix from 0.38.3 to 0.38.21 in /build/nix/setup #58), and names siblings by number. Label design added.@dezren39 · 2026-09-30T16:58:17Z
Decided (SURFACES, 0001 and 0002, merged in #228).
What changes in this issue:
pre → before, post → onSuccess; main is not a hook, it is /v1/intent. prePrompt/postPrompt/onErrorPrompt are the prompt action at before/onSuccess/onError.effect takes the autonomy levels: transform → apply; script → run (or propose to hand the script back); retry → run; a pre hook that refuses is ask.script.hooks becomes entries of the one hooks setting with on: script.result/error; suffix after it.mcpx exec accepts --before/--on-success/--on-error and drops them; a top-level throw skips onError and suffix because the import sits outside the launcher's try; no phase reaches /v1/exec or --remote.@dezren39 · 2026-09-30T19:35:58Z
Follow-up: two of the three phase holes named in the decision comment are closed in #265 -- mcpx exec now runs --before/--on-success/--on-error (and script.before/onSuccess/onError), and a top-level throw runs onError and suffix (the import moved inside the launcher's try). The third, phases on /v1/exec and --remote, is #192. #265 also fixed mcpx exec --remote losing its output.
@dezren39 · 2026-10-28T22:22:42Z
Triage verdict (task 2154, repo-health-nix-pilot): PARTIALLY LANDED + CONFIRMED remainder, RELOCATED — deterministic script phases are now on the wire; prompt hooks (the actual ask) are unimplemented. Implementation routes in developing-today/code; no fix packet in this repo.
Verified against current main on both sides (nix 224c7b738e88c7a8e5d406987a7d88257e229db2, code d2cb60fe8e08cd6fee149b930187b610299c1fa7):
enhancement, design — no hard-stop labels. Parent tracker Nix Playwright E2E suite fails after vendoring dependencies #176 is OPEN.pkgs/mcpx at HEAD; the extraction plan (planning/plans/mcpx-extraction.md, steps 4–5, lab-ops-hub container crawler accepts inet_aton IPv4 spellings (127.1, 2130706433, 0x7f.1) — loopback SSRF bypass in validate_crawl_url #468) records the build switch and deletion done 2026-10-19, and this repo now only builds mcpx from the pinned code rev.execsvc.Options now carries Phases *Phases (pkgs/mcpx/internal/execsvc/execsvc.go, wire struct) with before/prefix/onSuccess/onError/suffix source lines, and the comment records why: "Before Phase 4 fix: a joiner fetches the epoch it missed #192 a remote mcpx exec parsed every one of these and sent none, so the daemon ran a different program from the one asked for." Per-call script hooks over /v1 therefore exist; the script.before/script.onError settings family is still registered for the CLI (internal/settings/registry.go:291,309).Options has no prePrompt/postPrompt/onErrorPrompt/onSuccessPrompt fields and no declared prompt-hook list with a declared effect — the fields are Runtime…Export plus the program-shaping group (TypeCheck, Launcher, AllowRepeat, CaptureConsole, Phases), all deterministic source, no natural-language hook anywhere in execsvc or internal/api/ops_exec.go. Prompt hooks also depend on Bump build/buck/preludes/buck2-prelude from d956689 to 52604b1 #110's unsettled question of where a model comes from, so they cannot land before that design does.Route: no small_fix packet in dezren39/nix — this repo holds no mcpx source to fix. The remainder (one declared hook list unifying the script Phases vocabulary with prompt hooks, gated on #110) belongs with the source in developing-today/code, referencing #112, via the #309 relocation pass; per the cross-repo rule, do not re-file it there. #112 stays open on the nix side until implemented there or transferred.
🤖 Agent note · picked up
Scope confirmed against current pkgs/mcpx main (verified via gh api on current main, 2026-10-29):
execsvc.Options (pkgs/mcpx/internal/execsvc/execsvc.go, ~:101) still has no hooks or prompt fields — no Hooks, Prompt, PrePrompt, or PostPrompt. The issue's premise holds unchanged.script.before, script.prefix, script.onSuccess, script.onError, script.suffix (pkgs/mcpx/internal/settings/registry.go:291-317), layered through ScriptConfig and not on the wire Options.Dedupe — not a duplicate. Searched open code issues for mcpx hooks: #1872 (config-declared hooks over the event bus) and #1873 (privileged plugin surface / runtime hook registration) are the sibling scopes #1929 itself names as separate vocabularies — neither covers a per-call hooks list on ExecOptions. Trackers #1885, #1891, #1900 aggregate related work but do not cover this. No closure, no duplicate link needed.
Split, per the issue's own recommendation ("the deterministic half is independently valuable and ships first"):
hooks list on execsvc.Options ({phase, script}; phases pre/main/post/onError/onSuccess adopting the shipped script.* semantics), typed hook context (run id, result/error + diagnostic, artifacts), same runtime/permissions as the wrapped script, config layering append/nearest-wins like ScriptConfig.Prefix, and hook frames placed per the docs/exec.md stream-order contract. Verification for the follow-up: pkgs/mcpx: go test ./... via CI, including tests for pre/post/onError execution and frame placement.This issue stays open as the tracker for both halves.
🤖 Agent note · done
Agent note — design: sequencing the remaining prompt-hook effects (task 19661, lane any-m, 2026-11-17)
State: triaged (design). The advise slice landed (PR #9021, #5276 closed); this note sequences the rest of Approach C. Grounded in pkgs/mcpx/docs/decisions/0001-hook-vocabulary.md (0001: hook = on/phase/action/effect; output keys above a hook's effect are dropped and reported), pkgs/mcpx/docs/decisions/0002-autonomy-dial.md (0002: the ordered levels off < advise < ask < propose < apply < run, each permitting everything below it), and the current implementation (internal/execsvc/hooks.go, prompt_hooks.go at main): script/module hooks have fixed per-phase effects (onSuccess/onError = apply, before/suffix = advise, via effectFor), prompt hooks implement advise only, and validateHooks refuses any other declared prompt effect naming this issue. The slices below are therefore all prompt-action slices; script hooks are touched only where a slice says so.
The dial's order is not the build order. ask sits below propose on the dial because it cannot replace anything — but it can stop an operation, which is an availability risk propose does not carry: a propose hook changes nothing at all. Build order is by blast radius:
propose (ENQUEUED: child issue #11141, task 20694)Semantics (0002): return a replacement beside the original, unapplied. A prompt hook declaring effect: propose at onSuccess/onError gets its reply parsed as a hook-output object; the propose value rides in the hook frame (new HookFrame.propose field) beside the untouched outcome. before refuses the declaration (no outcome exists to propose against) and suffix refuses it (0001 clamps suffix to at most advise). Keys above the effect (apply, run) are dropped and named in the frame's dropped list. Plain-text (non-JSON) replies are carried as string proposals — a plan is a legitimate proposal. Fail-soft like advise: no provider → frame says unavailable, run unchanged (propose is not a gate). Full spec, acceptance, and tests are on #11141.
ask (spec here; enqueued by a later triage of #1929 after slice 1 lands)Semantics (0002): stop the operation — raise a question through the broker, where an unanswered one refuses, or refuse with a structured reason; may not replace or run anything. Declared-effect design:
before only. Asking is a gate on an operation that has not run; at onSuccess/onError the operation is already complete and a "question" about it is elicitation-after-the-fact, a different feature. Other phases refuse the declaration at validation.ask (a question for the broker/elicitation path — the elicit.confirmDestructive precedent: unanswered refuses) or refuse (a structured reason string). The hook frame carries whichever fired; a refusal ends the run with that reason as its error, before the script starts (assertable: no result frame, no calls).prompt_hooks.go's header where the advise contract is stated.failure: "closed" semantics for script hooks (0001 ties it to effects that may refuse; script hooks' effects are fixed per phase and a refusing before is the Phase 5: who may clear a tag claim #185 policy mechanism, not this slice).ask declared at any other phase → validation refusal.apply (spec here; enqueued after slice 2)Semantics (0002): replace the value the caller receives, with the original kept visible; may not execute anything the caller did not send. This is the prompt analogue of what script hooks already do at onSuccess/onError:
onSuccess and onError only (before has nothing to replace; suffix is clamped to advise by 0001). Other phases refuse at validation.applyHookResult): the reply must be a JSON object with an apply key — the keyed form is required, because a bare-value reply is ambiguous with advice text. A non-JSON or keyless reply applies nothing, records the reason in the frame, and the run is unchanged. On honouring, the frame carries original and changed exactly as script apply does; at onError the replacement clears the error and exit code, mirroring script semantics.apply key and keeps the data-not-instructions guard. Keys above apply (run) are dropped and reported.original in the frame; onError apply replaces the error with a result; non-JSON reply → unchanged + frame reason; apply declared at before/suffix → validation refusal.hooks_test.go, replayed through the prompt path): the acceptance paths, plus composition — an apply prompt hook after a script hook sees the script hook's transformed value (the runHooks context-refresh rule).run for prompt hooksThe design concludes the run effect is not built for prompt hooks, for three reasons:
/v1/exec themselves) is what makes the execution legitimate. A prompt hook at run has the model propose and execute in one step, inside a hook the caller declared for a lesser purpose.module/run actions run human-written code with the script's own permissions. A prompt run key adds model authorship to that execution without adding any capability.autonomy.max / hooks.autonomy clamping from 0002) and consent-gate interplay (elicit.confirmDestructive must still fire) enforced for hook output specifically; neither exists today. Building run first would ship the top of the dial with no ceiling.If a concrete need ever overrides this, it belongs in a dedicated design on this issue that builds the 0002 ceiling first — not as a fourth slice of this sequence. (The run key in a script hook's output is a separate question — a script hook already executes human-written code — and is likewise not built by these slices; today such a key is silently ignored by hookOutput, which brings up the gap below.)
Script/module hook output is parsed into hookOutput{apply, advise} only: propose/ask/run keys in a script hook's output are currently ignored without being named in the frame's dropped list, where 0001 requires above-effect keys to be "dropped and reported". The prompt slices above all specify dropped-key reporting on the prompt path; the script path's reporting is a small conformance fix of its own that a later triage should route (it is not folded into slice 1, whose scope is the prompt path, to keep that packet bounded).
This task (19661) completes as triaged with this design as its artifact: slice 1 is enqueued (child #11141, task 20694); slices 2 and 3 are specced here for later triages of #1929 to enqueue in order; run is decided above. Issue #1929 stays open as the tracker until slices 2–3 land or are separately tracked in full.
feat(mcpx): prompt hooks effect: propose (#11141, #1929 Approach C sl…
Agent note — triage (lane oc-code-06, task 20698, 2026-11-18)
Fresh revalidation: design note for sequencing the remaining Approach C effects already posted by task 19661 (comment 6942157353), and slice 1 (propose) is enqueued as child issue #11141 (task 20694). Slices 2 (ask) and 3 (apply) remain specced in that note and are not yet enqueued; run is decided not-built. No new enqueue this pass. Resume by a design-capable session to enqueue slice 2 against #1929 after slice 1 lands.
Agent note — second-pass verify (lane oc-code-05, queue task 21775, 2026-11-24)
propose, mcpx: prompt hooks — effect: propose (#1929 Approach C slice 1) #11141) is CLOSED.ask) and 3 (apply) are specced but not enqueued, per the 2026-11-18 note. run is decided not-built.agent-note:v1 — oc-code-07 second-pass (queue task 22855, pass 3, 2026-11-24). Fresh state: #1929 OPEN. Approach B merged (PR #2616, 2026-10-30); slice 1 (propose, #11141) CLOSED. Remainder unchanged: slice 2 (ask) and slice 3 (apply), specced in the 2026-11-17 design note and not yet enqueued. Per that note, filing slice 2 needs a design-capable session, so no packet was enqueued here to avoid an unverified scope. Verdict: live remainder, routing deferred to a design-capable session. Tracking: #14158
🤖 Agent note · triaged — remainder revalidated; slice 2 (ask) routed as child #15809 (queue task 24916, lane xaltha, 2026-11-26)
advise landed (Implement prompt-action advise hooks for mcpx exec (#1929 Approach C, first slice) #5276 closed, PR feat(mcpx): prompt-action advise hooks for exec (#5276) #9021 merged 2026-11-13). Slice 1 propose landed (mcpx: prompt hooks — effect: propose (#1929 Approach C slice 1) #11141 closed, PR feat(mcpx): prompt hooks effect: propose (#11141, #1929 Approach C slice 1) #11155 merged 2026-11-17; local main confirms prompt_hooks.go implements advise + propose and validateHooks refuses other prompt effects naming this issue). The design note's named script-path gap (dropped-key reporting) is also fixed (fix(mcpx): report unsupported script-hook output effect keys #12063 closed, PR fix(mcpx): report unsupported script hook output effects #12064 merged 2026-11-21).ask) and 3 (apply) from the 2026-11-17 design note (task 19661); run remains decided not-built. Slice 2 was specced to be enqueued after slice 1 landed — it landed 2026-11-17, so the deferral is over, yet no child issue existed for it (searched: none).ask, before-only, fail-closed) with the design note's full scope, acceptance, and tests. Slice 3 (apply) stays specced on this issue and is enqueued only after slice 2 lands, per the design sequencing. mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929 stays open as the tracker until slices 2–3 land or are separately tracked in full.🤖 Agent note · triaged — remainder fully routed, no duplicate packet (lane 1837-B, queue task 25382, 2026-11-26)
advise landed (Implement prompt-action advise hooks for mcpx exec (#1929 Approach C, first slice) #5276 closed, PR feat(mcpx): prompt-action advise hooks for exec (#5276) #9021 merged 2026-11-13). Slice 1 propose landed (mcpx: prompt hooks — effect: propose (#1929 Approach C slice 1) #11141 closed, PR feat(mcpx): prompt hooks effect: propose (#11141, #1929 Approach C slice 1) #11155 merged 2026-11-17). run remains decided not-built.ask) and 3 (apply) from the 2026-11-17 design note (task 19661).effect: ask, before-only, fail-closed) is claimed by queue task 25393 (sibling lane 1837-J, claimed this same cycle; that lane is actively working the prompt_hooks.go implementation). Creating a second packet or implementing from this lane would duplicate that claim — not done.apply) stays specced on this issue and is enqueued only after slice 2 lands, per the design sequencing.🤖 Agent note · remainder update — slice 2 landed, slice 3 routed (lane oc-code-03, queue task 25782, 2026-11-27)
ask, mcpx: prompt hooks — effect: ask (#1929 Approach C slice 2) #15809) LANDED via PR mcpx: prompt hooks — effect: ask (#15809) #15831 (merged 2026-11-27, merge commit 43425a2); mcpx: prompt hooks — effect: ask (#1929 Approach C slice 2) #15809 auto-closed. The 00:47Z triage ("slice 2 live-claimed") is superseded.apply) from the 2026-11-17 design note (task 19661); run remains decided not-built. The design sequencing (slice 3 after slice 2 lands) is now satisfied.apply, onSuccess/onError only, keyed apply reply through applyHookResult, script-apply semantics mirrored) with the design note's full scope, acceptance, and tests. The standing coverage reconciliation (queue: no reconciliation between open issues and queue coverage — non-creator filings never get queue items #7016) will import it into the pilot queue.Triage verdict (task 26009, 2026-11-27): tracker stays open; remainder is slice 3 via #15845 — no packet from this pass.
Fresh verification via gh API: #1929 OPEN. Slice 2 (ask, #15809) CLOSED via PR #15831 (merged 2026-11-27). Slice 3 (apply) child #15845 OPEN with no PR yet. Concur with the oc-code-03 routing (task 25782): run remains decided not-built; slice 3 is the exact remainder and is already separately tracked, so no duplicate filing. No code changed.
Triage verification — task 26009 / lane oc-code-02 (2026-11-27): #1929 remains open as the tracker. Slice 2 (ask) landed via merged PR #15831; slice 3 (apply) is already tracked by open child issue #15845. Checked that #15845 is open and no PR references it. No duplicate packet filed; keep #1929 open until slice 3 lands.