Title: mcpx testing: enumerate the exec/run flag set in TestEveryExecFlagChangesSomething (completeness + missing rows) · Issue #2188 · developing-today/code · GitHub
Open Graph Title: mcpx testing: enumerate the exec/run flag set in TestEveryExecFlagChangesSomething (completeness + missing rows) · Issue #2188 · developing-today/code
X Title: mcpx testing: enumerate the exec/run flag set in TestEveryExecFlagChangesSomething (completeness + missing rows) · Issue #2188 · developing-today/code
Description: Contribute to developing-today/code development by creating an account on GitHub.
Open Graph Description: Contribute to developing-today/code development by creating an account on GitHub.
X Description: Contribute to developing-today/code development by creating an account on GitHub.
Opengraph URL: https://github.com/developing-today/code
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx testing: enumerate the exec/run flag set in TestEveryExecFlagChangesSomething (completeness + missing rows)","articleBody":"Split from #1971 (its task list + leak 1), filed by queue worker triage (task 2873, 2026-10-29).\n\n## Problem\n\n`TestEveryExecFlagChangesSomething` (`pkgs/mcpx/internal/e2e/e2e_test.go`) does not enumerate the flags it guards. It has four hand-written rows (`--export`, `--launcher`, `--prefix`, `--typecheck`) and a comment \"Add a row when you add a flag\", while the exec/run flag set (`internal/cli/commands.go`) has ~23 flags — including three fixed by the historical #75 (`--no-launcher`, `--allow-repeat`, `--no-capture-console`) with no row. A new flag with no row passes; the \"flag accepted and ignored\" class (shipped three times before the guard existed) is not closed — it relies on memory, the thing the guard exists to replace. Its probe half is the model to copy: each row asserts the outcome with the flag and its absence without.\n\n## Scope (per #1971 Approach C)\n\n1. A **unit-speed completeness test** enumerating the real exec/run FlagSet (`flag.FlagSet.VisitAll` over the flag definitions in `internal/cli`) that fails when any flag has neither a probe row nor an exemption with a reason. The completeness half lives outside the e2e test so it fails locally in milliseconds.\n2. **Probe rows** for `--no-launcher`, `--allow-repeat`, `--no-capture-console` and every other unprobed flag with an observable effect, in the existing with/without shape.\n3. Exemptions explicit, reasoned, and **ratcheted** (pinned set may only shrink without a deliberate reasoned update).\n\n## Acceptance criteria\n\n- Completeness test enumerates the FlagSet and fails on a flag with no row/exemption; runs at unit speed.\n- All unprobed flags with observable effects gain with/without probe rows; the rest carry reasoned exemptions.\n- `pkgs/mcpx go test ./...` green in CI.\n- No flag behaviour changes — this guards existing behaviour only.\n\nParent: #1971 (leak 1, task list). Sibling: the settings effect guard from the same split is queue task 3261 (dedupe key repo-health:v1:fix:developing-today/code:issue:1971).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T08:33:14Z","url":"https://github.com/developing-today/code/issues/2188"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:84ece26f-2cd9-8c43-53c1-1d053954503b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC8C:17B76C:912F65:BC2DCC:6B0631D0 |
| html-safe-nonce | 8616affe21ba0efde85f6a1f29a61ef722d7101ea7f8194d05fee7bbcec98974 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzhDOjE3Qjc2Qzo5MTJGNjU6QkMyRENDOjZCMDYzMUQwIiwidmlzaXRvcl9pZCI6Ijg0MDU4NTQzMTQxMjM2MzcyMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9be68b7923eb9802a15cccc1ff835c6b951bcb81ff4efc840470294a195fd312 |
| hovercard-subject-tag | repository:627308783 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/developing-today/code/issues/2188 |
| twitter:image | https://opengraph.githubassets.com/c1a2d415bd2c796fea2e23b2fed64a1efc7802730482e5b3777242c3e81bd5e2/developing-today/code |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1a2d415bd2c796fea2e23b2fed64a1efc7802730482e5b3777242c3e81bd5e2/developing-today/code |
| og:image:alt | Contribute to developing-today/code development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-cache |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width