Skip to content

mcpx(cli): batch the flag-reach probe to one invocation per command (#1980) - #7377

Closed
developing-today[bot] wants to merge 7 commits into
mainfrom
archive/janitor-2026-11-07/2859
Closed

developing-today[bot] wants to merge 7 commits into
mainfrom
archive/janitor-2026-11-07/2859

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Archive-branch disposition (Drew's 2026-11-07 21:57 CST correction) for branch archive/janitor-2026-11-07/2859.

This archive branch was created by the janitor/repo-keeper sweep, not by any preservation decision. Per the correction, archive branches enter the normal disposition pipeline: the useful changes are reviewed and extracted here — this PR is the permanent preservation record for the branch's commits and diff ("ensure you opened a pr so branch exists forever"). Outcome per batch triage (batch issue #7297): FINISH the work and MERGE this PR, or CLOSE it with the record standing (closed-with-record is a valid end state; the changes remain recoverable from this PR). The branch was deleted after this PR was opened; its tip SHA is in the execution evidence.

Content: 5 unique commit(s) vs main; authored-file diff 6/6 (authored/total files). Pure build output/fixtures in the branch, if any, are discarded-bulk and are not the extraction target — the authored files (code, scripts, markdown, docs) are.

Tip: 2787b48 · tree: f0fc481e01c794d3


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

dezren39 and others added 7 commits October 30, 2026 06:32
…g seed per Run (#1980 stage 1, Codex)

Codex P1: commands.go/exec.go script paths called os.Exit on a nonzero script status, terminating an in-process caller of cli.Run and skipping its deferred CloseInline. They now return exitStatusError, an ExitCoder Run already translates into the process exit code; Run does not prefix it with mcpx: since the run already reported itself.

Codex P2: config.SetPathsConfigSeed is a package global; Run now clears it on entry and defers clearing it on exit, so a --paths-config seed cannot leak between sequential in-process invocations.
… Codex P1)

Codex round 2 (PR #2714): the stage-1 tests would still pass with either round-1 bug restored. Add failing-first regressions: a script exiting 3 through cli.Run returns 3 in both the local text and local JSON paths (mutation-checked: restoring os.Exit in the JSON branch kills the test binary with exit status 3); renderExecResult returns an ExitCoder for a nonzero daemon-side result in text and JSON shapes (remote path); sequential Run calls do not inherit a --paths-config seed (seed visible via config.ResolveChainFrom before, absent after flagless and flagged Runs).
…1980)

TestEverySettingFlagReachesTheResolvedValue invoked every handler once
per (command, flag) pair, rebuilding the whole settings schema twice per
invocation (bindFlags, then Settings): O(commands x flags) schema builds
that made it the package's top duration contributor (14.5s of a single
no-race run) and blew the stress 600s budget under race/shuffle/repeat
(#2859). Batch instead: one invocation carrying every canonical flag and
one carrying every alias per command, with the same per-setting flag-layer
origin assertion. Flags the batch does not carry home (a requirement
refusing --mcp-spec=probe-value aborts the fold; two spellings of
--interpreter/--shell collide) fall back to their own invocation with the
original assertions verbatim, so coverage is unchanged: 0.62s, same
checked-pair floor.
Resolve the module repoint (#4626): the branch's new cli.Run files move
from github.com/dezren39/mcpx to github.com/developing-today/code/pkgs/mcpx,
and cmd/mcpx/main.go keeps the slim signal+Run entrypoint on the new
import path. No behavioural change from the stage-1 head.
@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 8, 2026 06:52
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9d745fa2-cb69-4011-920e-b0272aaad951

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39 dezren39 closed this Nov 8, 2026
@dezren39
dezren39 deleted the archive/janitor-2026-11-07/2859 branch November 8, 2026 08:01
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member

agent-note:v1
task: 14089
lane: code-e
stage: handed_off
state: execution lane assigned opencode (lane row 5381); handed off to the opencode claimant per runbook 1b. Fresh check 2026-11-09T05:11Z: PR #7377 CLOSED, head 2787b48, no labels — matches the packet premise (salvage remainder of the closed PR not on main).
next: claimant evaluates re-application of PR #7377's unlanded content per the packet and records the outcome on PR #7377 and #7297.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member

🤖 Agent note · handed off

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.

1 participant