Skip to content

test: detect parser-owned flags omitted from README - #84

Merged
developerz-ai[bot] merged 1 commit into
mainfrom
dz/guard-parser-owned-flags-against-readme--8f7f018f
Oct 29, 2026
Merged

developerz-ai[bot] merged 1 commit into
mainfrom
dz/guard-parser-owned-flags-against-readme--8f7f018f

Conversation

@developerz-ai

@developerz-ai developerz-ai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Acceptance

  • Every parser-owned public flag spelling, including --version and -v separately, requires README coverage and a parser acceptance check; undocumented exceptions carry reasons and name actual owned flags.
  • An in-memory README mutation removing all --opus documentation fails the guard; a synthetic new owned flag absent from docs and checks is also rejected.
  • A refusal-only mention cannot satisfy positive documentation coverage. Passthrough flags, refused flags, shell flags and bare -- are not classified as accepted owned flags.
  • Existing whole-README ownership checks, parser acceptance assertions, and refusal exit-code/message checks remain effective.
  • bin/check passes after edits; existing dispatch, login and doctor tests retain unchanged behavior.

Changes

  • src/dispatch.ts (edit) — Export readonly VERSION_FLAGS containing --version and -v; make dispatch's version branch consume it. Preserve signatures and behavior, exposing the actual accepted flag surface for documentation checks.
  • src/commands/login-args.ts (edit) — Export readonly LOGIN_FLAGS containing --url, --opus, --sonnet and --haiku; use it in the accepted-value-flag branch. Preserve key scans, separate --key refusal, inline syntax, validation, signatures, usage and errors.
  • src/commands/doctor.ts (edit) — Export readonly DOCTOR_FLAGS containing --live and use it in the argv acceptance loop. Preserve unknown-argument handling, duplicate acceptance, usage, signatures and check execution.
  • src/readme.test.ts (edit) — Import parser inventories and require every owned spelling to have both a parser check and README coverage. Parameterize source extraction for mutation tests; exclude the refusals section from positive coverage but retain whole-document ownership and refusal checks. Require aliases individually; provide a reason-bearing undocumented-exception map, currently empty, rejecting stale exceptions. Test omitted --opus, missing -v, future inventory additions and refusal-only mentions fail; retain existing checks.

Verification

./bin/check passed (exit 0) in 1m 21s.

Notes

Premises of the request the team disproved:

  • (from a dropped noWork claim) The current flag guard already detects parser-to-README omissions.

🤖 Opened by developerz.ai for task tsk_8f7f018f364840561225e8ad06534acf on developerz-ai/claudes.

Raised automatically by the raw_task_triage lane.

🤖 developerz.ai, an automated agent, not a human — this PR is one slice of a stacked plan.
Dispatched automatically by the raw_task_triage lane
Model gpt-6.1-sol on router.ai.developerz.ai via native, funded by account_key
Ran on box hv-dedicated-ci-1
Cost unknown: part of this run’s token usage was not fully reported, so a sum would be an undercount
Run timeline run_e5bde7e0a84b44bab8cd22b7ef7eb83b
Part 1/1 of plan rtk_86c08d9e6a2a467ca41349c039bf6d62

Dz-Task-Id: tsk_8f7f018f364840561225e8ad06534acf
@developerz-ai

developerz-ai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Guard parser-owned flags against README omissions

Work landed on #84 — watching it toward merge.

1h05m · 37 tool calls · 5 messages

Sessions: coding run


🤖 developerz.ai, an automated agent, not a human — hv-dedicated-ci-1 (developerz-ai[bot]) · model gpt-6.1-sol on router.ai.developerz.ai

@developerz-ai developerz-ai Bot added dz/fleet-pr Opened by developerz.ai, an automated agent, from a fleet run. dz/model:gpt-6.1-sol developerz.ai: model that wrote this bot PR. dz/provider:router.ai.developerz.ai developerz.ai: provider that served this bot PR. labels Oct 29, 2026
@developerz-ai

developerz-ai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Reviewed — nothing blocking

0 actionable comment(s) · grounded on your code

⏱ 39s wall clock · gpt-6.1-sol via router · 2 model call(s) · 253 output token(s)

🤖 developerz.ai — automated review, running on your model and your box.

@developerz-ai developerz-ai Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary — 4 file(s), 0 finding(s).

[bot] completed: Exposes parser-owned flag inventories and adds bidirectional README coverage guards with mutation tests, preserving parser behavior. No merge-blocking defects found in the supplied diff.

🤖 developerz.ai review — automated, running on your model and your box. What is this? · Reviewed by router/gpt-6.1-sol on box hv-dedicated-4 — 57.9k in / 253 out over 2 calls; cost unknown: no price on record for router/gpt-6.1-sol.

@developerz-ai
developerz-ai Bot merged commit 0c81570 into main Oct 29, 2026
5 checks passed
@sebyx07
sebyx07 deleted the dz/guard-parser-owned-flags-against-readme--8f7f018f branch October 29, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dz/fleet-pr Opened by developerz.ai, an automated agent, from a fleet run. dz/model:gpt-6.1-sol developerz.ai: model that wrote this bot PR. dz/provider:router.ai.developerz.ai developerz.ai: provider that served this bot PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants