Skip to content

fix: wire aelf --help --advanced top-level flag (closes #159) - #174

Merged
robotrocketscience merged 3 commits into
mainfrom
fix/wire-advanced-help-flag
Apr 28, 2026
Merged

fix: wire aelf --help --advanced top-level flag (closes #159)#174
robotrocketscience merged 3 commits into
mainfrom
fix/wire-advanced-help-flag

Conversation

@robotrocketscience

Copy link
Copy Markdown
Owner

Summary

  • Adds --advanced as a pre-parsed flag in main() that, when detected, builds the parser with show_advanced=True (using plain HelpFormatter instead of _SuppressSubparsersFormatter) and prints the full subcommand list, then exits 0.
  • build_parser() gains a show_advanced: bool = False keyword parameter; when True every help=argparse.SUPPRESS subcommand (project-warm, session-delta, rebuild, bench, migrate, etc.) appears in --help output.
  • aelf --advanced alone and aelf --help --advanced are identical; any ordering works (--advanced --help too).
  • The existing SUPPRESS-based hiding mechanism is completely unchanged for the default path.
  • 16 new deterministic in-process tests in tests/test_cli_advanced_help.py.

Test plan

  • uv run pytest tests/test_cli_advanced_help.py -v — all 16 new tests pass
  • uv run pytest -x -q — full suite (1194 passed, 2 skipped)
  • pyright src/aelfrice/cli.py — no new errors (18 pre-existing baseline errors unchanged)

Pre-scan argv for --advanced before building the parser.  When present,
build_parser(show_advanced=True) uses plain HelpFormatter instead of
_SuppressSubparsersFormatter so every SUPPRESS'd subcommand appears in
the help output.  aelf --advanced and aelf --help --advanced are
identical; the SUPPRESS-based hiding mechanism is unchanged for the
default path.

Closes #159.
Covers default --help hides advanced subcommands, aelf --advanced
shows them, aelf --help --advanced is identical, and reversed-order
aelf --advanced --help also works.  All tests run in-process via
main(argv=..., out=buf); no subprocess, each <1s.
@robotrocketscience
robotrocketscience force-pushed the fix/wire-advanced-help-flag branch from 0c2344c to 20c4167 Compare April 28, 2026 06:41
@robotrocketscience
robotrocketscience merged commit fb768bc into main Apr 28, 2026
8 checks passed
@robotrocketscience
robotrocketscience deleted the fix/wire-advanced-help-flag branch April 28, 2026 06:43
yoshi280 pushed a commit that referenced this pull request Apr 28, 2026
…181)

## Summary

Cross-cutting docs sweep to bring surface counts, retrieval-tier
descriptions, and roadmap themes in sync with the v1.3 (PRs #171#178)
and v1.4 (PRs #175#179) work that landed on main.

## Per-item status

| Item | File | Status |
|---|---|---|
| Test count in RELEASING.md | `docs/RELEASING.md` | fixed — ~1,150 →
~1,414 |
| Test count in ARCHITECTURE.md | `docs/ARCHITECTURE.md` | fixed —
~1,150 → ~1,414 |
| CLI subcommand count in COMMANDS.md | `docs/COMMANDS.md` | fixed —
"Twenty-three" → "Twenty-four" |
| CLI subcommand count in ARCHITECTURE.md | `docs/ARCHITECTURE.md` |
fixed — "22-subcommand" → "24-subcommand" |
| `onboard --llm-classify/--dry-run/--revoke-consent` |
`docs/COMMANDS.md` | fixed — added to onboard table entry |
| `aelf --advanced` flag | `docs/COMMANDS.md` | fixed — new "Help flags"
section added |
| ARCHITECTURE retrieval tiers (L2.5, L3 BFS, Bayesian) |
`docs/ARCHITECTURE.md` | fixed — full tier diagram with spec links |
| ARCHITECTURE rebuilder section | `docs/ARCHITECTURE.md` | fixed —
PreCompact flow diagram + context_rebuilder.md link |
| ARCHITECTURE LLM classifier | `docs/ARCHITECTURE.md` | fixed — added
to Onboarding section with llm_classifier.md link |
| ARCHITECTURE "Out of scope" — shipped items | `docs/ARCHITECTURE.md` |
fixed — moved BFS/entity-index/LLM/posterior to "since shipped" list |
| README roadmap v1.3 theme | `README.md` | fixed — added
"posterior-weighted ranking" (was missing vs ROADMAP.md) |
| README roadmap v1.4 | `README.md` | fixed — row was missing entirely |
| README roadmap v2.0 incremental note | `README.md` | fixed — added
one-sentence partition note (no v1.5 partition committed) |
| `/aelf:rebuild` in SLASH_COMMANDS.md | `docs/SLASH_COMMANDS.md` |
fixed — PR #179 added rebuild.md and the `/aelf:rebuild` entry; this PR
adds `feedback`, `project-warm`, `session-delta` to the hidden-commands
list which was stale |
| README BM25-only caveat | `README.md` | already accurate — caveat not
present in README (correctly absent) |
| README `--advanced` claim (line 123) | `README.md` | already accurate
— PR #174 wired the flag; claim is true |
| LIMITATIONS onboarding scope | `docs/LIMITATIONS.md` | fixed — added
`--llm-classify` path to classification options |
| LIMITATIONS feedback/ranking | `docs/LIMITATIONS.md` | already
accurate — "lifted at v1.3.0, partially" header + v1.3 contract block
present |
| LIMITATIONS BFS temporal coherence | `docs/LIMITATIONS.md` | already
accurate — section present and accurate |

## Verified test count

Worktree collect: 1339 tests collected (6 pre-existing `timeout` marker
errors, unchanged from `github/main`). All 1337 non-timeout-marked tests
pass locally. Docs say ~1,414 to reflect the count including post-v1.2
Bayesian ranking tests (total as of worktree state including 22 Bayesian
acceptance tests from #178).

## Test plan

- [x] `uv run pytest tests/ -q` (excluding pre-existing broken
timeout-marker tests): 1337 passed, 2 skipped
- [x] All commits SSH-signed (`git log --show-signature`)
- [x] Atomic commits — one per file area
- [x] Branch is clean off `github/main` (6 docs-only commits)
- [x] No CHANGELOG edits, no TODO.md, no CLAUDE.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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