GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx hooks (#2541 follow-up): bound descendant processes on timeout, cap retained output, count bus-level drops, real interpreter readiness — plus CI-only internal/hooks failure · Issue #2573 · developing-today/code

mcpx hooks (#2541 follow-up): bound descendant processes on timeout, cap retained output, count bus-level drops, real interpreter readiness — plus CI-only internal/hooks failure #2573

New issue
Copy link
New issue
Copy link
Closed
#2840
Closed
mcpx hooks (#2541 follow-up): bound descendant processes on timeout, cap retained output, count bus-level drops, real interpreter readiness — plus CI-only internal/hooks failure#2573
#2840
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilot

Description

@dezren39
dezren39
opened on Oct 30, 2026
Issue body actions

Follow-up to #1872 / PR #2541 (merged 2026-10-30, merge commit 1aef00e). The PR merged with 4 Codex review findings undispositioned (review 2026-10-30T03:27:58Z by chatgpt-codex-connector[bot]) and a red basic: test run. Filing per the Codex-findings gate so none of them evaporate.

Codex findings to fix (all in the merged hooks implementation)

  1. P1 — pkgs/mcpx/internal/hooks/runner.go:187 Bound descendant processes and output-pipe waits. CommandContext kills only the direct child; descendants can hold stdout/stderr pipes open and keep cmd.Run() waiting for EOF indefinitely — so the hard timeout does not actually bound a hook that spawns children, contradicting mcpx: config-declared hooks over the event bus, running any command, JS/TS or Python module #1872'''s acceptance "a hanging hook cannot hang the daemon" for that case. Fix direction: process-group kill and/or bounded pipe draining.
  2. P2 — runner.go:86 Account for event losses before per-hook fanout. The shared bus subscription can overflow before events reach per-hook queues; Subscription.Dropped is never read, so Stats.Dropped under-reports and the gap contract (Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 4371899 #6) is not honoured for bus-level drops.
  3. P2 — runner.go:185 Cap retained hook output. Both output streams accumulate unbounded in daemon memory, including successful runs whose output is discarded (a yes hook can allocate heavily inside the 2s default timeout). Cap and truncate.
  4. P2 — pkgs/mcpx/internal/cli/hook.go:93 Check interpreter availability before marking a module ready. A declared Python module with neither python3 nor uv on PATH still reports ready in mcpx hook ls / doctor, then fails on every matching event. Readiness must check the interpreter, not just the file.

CI-only internal/hooks failure

PR #2541'''s basic: test (run 40997046260, head eb4cabc) failed internal/hooks in 0.159s (the internal/defaults/internal/settings failures in the same run are the pre-existing doc-drift reds tracked in #2552). Reproduction attempt 2026-10-30 (queue task 3097, Lane D): go test ./internal/hooks/ -count=1 on the laptop at the exact merged commit eb4cabc passes 11/11 tests. The workflow log prints only package-level output (per-test JSON is filtered out), so the failing test is not identifiable from CI logs. Investigate: likely environment- or timing-sensitive (candidates: TestTimeoutCutsHangingHookAndPublishProceeds under runner load, or an executor-availability assumption). Consider surfacing per-test failures in the mcpx workflow log so this class is diagnosable.

Acceptance

  • All 4 findings fixed with tests (descendant-spawning hanging hook is cut at timeout; bus drops counted; output capped; hook ls/doctor report unready when the interpreter is missing).
  • go test ./internal/hooks/... green in CI on the fixing PR.
  • Findings dispositioned on PR mcpx: config-declared hooks over the event bus (#1872) #2541 threads pointing here.

Acceptance criteria

  • Timeout handling kills the hook's whole process group (or equivalently bounds pipe draining): a hook whose descendants hold stdout/stderr open cannot keep cmd.Run() waiting past the timeout
  • Bus-level subscription drops are accounted: Subscription.Dropped is read and reflected in Stats.Dropped
  • Retained hook output is capped per run with truncation, for both streams, including successful runs
  • mcpx hook ls / doctor readiness for a declared Python module checks interpreter availability (python3 or uv on PATH), not just the file
  • The CI-only internal/hooks failure from PR mcpx: config-declared hooks over the event bus (#1872) #2541's run 40997046260 is identified (named test + mechanism) or per-test failure output is surfaced in the mcpx workflow so it becomes identifiable
  • Existing hooks tests pass; new regression tests pin the descendant-timeout and output-cap behaviour

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    source/queue-workerFiled or worked by the queue/worker pilot
    queue/queuedHas a queued queue task
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Intake review

    Still live: follow-up to merged PR #2541 (#1872) — the four Codex findings are on code that is now on main, verified undispositioned at filing; a fix task is already queued (task 3823, enqueued by the lane that filed this). The CI-only internal/hooks failure is a fifth, separate thread in the same issue: it passes 11/11 on the laptop at the exact merged commit eb4cabc, so it is environment/timing-sensitive until proven otherwise.

    Related: #1872 (origin), PR #2541 (merged 1aef00e), #2552 (the pre-existing defaults/settings doc-drift reds in the same CI run — explicitly NOT part of this issue).

    Notes / risks: finding 1 (descendant processes) is the P1: it negates the timeout guarantee #1872's acceptance promised. Findings 2–4 are P2 but each is small and localised in internal/hooks/runner.go / internal/cli/hook.go. The CI-only failure should not block the four findings; if it cannot be reproduced, surfacing per-test JSON in the workflow is an acceptable resolution for that thread.

    Suggested approach: one PR for findings 1–4 with regression tests (process-group kill pattern already used elsewhere in the fleet), and a separate small look at the CI failure's timing sensitivity.

  3. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 30, 2026
  5. 16 remaining items

  6. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Oct 30, 2026
  7. dezren39
    added a commit that references this issue on Oct 30, 2026

    fix(mcpx): exclude hook.* before buffering wildcard hook subscriptions (

    8db2e07
  8. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 3823
    • Found via: queue claim (resume)
    • Task: PR 2840 resumed at 831ac5d. Codex re-review had added one P2 (wildcard subscriptions buffer hook.* events before the dequeue-side exclusion) — FIXED in 8db2e07 via Hook.SubFilter() (wildcard expanded to HookableKinds() at subscribe time) + regression test; all three Codex threads now replied + resolved, @codex re-review requested on 8db2e07. CI on the previous head: everything green except stress, whose only failure is internal/cli's 600.093s timeout — that is issue mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859's defect (this PR touches internal/cli/hook.go, so cli is a changed package in the stress leg), not a hooks failure. Still open: 3 CodeRabbit threads on the PR from 23:17Z, undispositioned.
    • Expectation: resume = Codex clean on 8db2e07 + CodeRabbit threads dispositioned → merge (stress red solely from mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859 is the documented unrelated failure; note it in the merge) — or merge after mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859 lands
    • Links: PR fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 (head 8db2e07) · mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859
  9. chatgpt-codex-connector commented on Oct 30, 2026

    @chatgpt-codex-connector
    chatgpt-codex-connectorBot
    on Oct 30, 2026 – with ChatGPT Codex Connector
    More actions

    To use Codex here, create an environment for this repo.

  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 31, 2026
  11. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane C shift
    • Session / ID: queue task 3823 (resume from park)
    • Found via: queue claim
    • Task: Resume PR fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 at head 8db2e07 — verify Codex re-review of the wildcard-buffering fix, disposition the 3 CodeRabbit threads, verify the stress red is solely the mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859 internal/cli timeout, then merge when clean.
    • Expectation: effort m; done = PR fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 merged with all review findings dispositioned, or parked with a precise resume condition.
    • Links: PR fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 · branch queue/3823-2573-mcpx-hooks
  12. dezren39
    added a commit that references this issue on Oct 31, 2026

    Merge pull request #2840 from developing-today/queue/3823-2573-mcpx-h…

    b5d334b
  13. dezren39
    closed this as completedin #2840on Oct 31, 2026
  14. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane C shift
    • Session / ID: queue task 3823
    • Found via: queue claim (resume from park)
    • Task: PR fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 merged — merge commit b5d334b0b6de7328dc8188f90aadf90fd5c1ae14.
    • Expectation: met. All 4 Codex findings from PR mcpx: config-declared hooks over the event bus (#1872) #2541 fixed with tests in fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840; Codex re-reviewed the final head 8db2e07b clean ("Didn't find any major issues", 2026-10-30T23:41:58Z) and all 4 original threads on mcpx: config-declared hooks over the event bus (#1872) #2541 now carry a reply pointing at the fix and are resolved. The 3 CodeRabbit threads on fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 are dispositioned: the wildcard drop-count finding was already fixed by Hook.SubFilter() in 8db2e07b; the 2 remaining valid minors (streaming CI log formatter; separate stderr cap for hook failure text) are tracked in mcpx: CodeRabbit minor follow-ups from PR #2840 — stream the CI log formatter, separate stderr cap for hook failure text #2880. CI: lint + plugin tests + mcpx-docs pass; the stress leg's only failure is the pre-existing mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859 internal/cli timeout (TestEverySettingFlagReachesTheResolvedValue) — internal/hooks passed the same leg (ok 22.797s, -count=10 race/shuffle). The one-off CI-only internal/hooks failure from mcpx: config-declared hooks over the event bus (#1872) #2541 head eb4cabc6 has not recurred across any fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 run.
    • Links: PR fix(mcpx): disposition the 4 undispositioned Codex findings from PR #2541 (#2573) #2840 · follow-up mcpx: CodeRabbit minor follow-ups from PR #2840 — stream the CI log formatter, separate stderr cap for hook failure text #2880 · stress red tracked in mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859
  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.