Repository navigation
rust-cli-template phase 2: catch up with the canon and with scribe - #20
Merged
Merged
Conversation
rust-cli-template phase 2: catch up with the canon and with scribe Phase 2 is ready for the pipeline. Strict Linux CI passed in the template and in a fresh checkout renamed demo-cli. Orbit-Task: ORB-26712 Orchestrated-By: Orchestrated-By: opus
Manifest verified: attempt_id matches, HEAD equals candidate.commit c19725b, base.commit c7d24df is an ancestor of HEAD, and required_validation_commands is present and empty. There was no prior report or history. Acceptance criteria checked against the diff: the standards pins for STD-01@2, STD-02@4, STD-03@2, STD-04@2, STD-05@1, STD-06@1, STD-08@2 and STD-09@1 match in README.md and AGENTS.md, and check.sh passes. README passes check-readme.py and I read it against the STD-09 length, header, required-section and link rules. LICENSE is MIT with the specified copyright, and Cargo.toml declares MIT. The scope-track 1_scope.md sits beside the full-track templates. Root help is grouped under Notes and Help, and the summary-length test covers every command and checks each visible root row exactly once. Piped help is byte-identical under COLUMNS 12, 40 and 200, and under a pty with stderr and stdin on a TTY while stdout is piped; clap's wrap_help feature is off in the locked tree. The blank-trailing-cell table fix, the deny cache fallback (exercised by a stub-driven test), the bounded lock-holder read, and the listing and private-remove helpers each have a test. The ORB-digit guard exits 1 when a planted id is added to README.md and exits 0 once the file is restored, and git grep finds nothing outside docs/standards. One low defect was found and repaired: list_dir discarded inspect_dir's does-not-exist answer and returned an I/O NotFound error for a missing directory. I added a regression test that failed before the fix and passes after, and list_dir now returns an empty listing. On the fixed tree, make ci-fast, make ci-lint and make goldens pass; the focused core lib and store tests (58), the tmpl-cli lib, cli, scripts and rename_template tests (77), and the doctests pass. A scratch copy renamed with rename-template.sh demo-cli passes ci-fast, ci-lint and goldens, and its script removed itself. Not run here: the full make test and make ci blanket suite, which the review policy excludes; the implementer's canon-validation/demo-ci.log predates the list_dir fix. macOS was not run on this host, and the hosted CI matrix covers it. Judgement calls: a missing directory lists as empty, matching how remove_private treats a missing file; scribe's no-follow read_bounded_beneath (a scaffold read) was not ported, since the template has no scaffold read and its generic bounded read guards the lock holder. Repaired findings: F1. Changed paths: crates/tmpl-cli-core/src/store/fsio.rs, crates/tmpl-cli-core/src/store/tests/fsio.rs. Orbit-Task: ORB-26712 Orbit-Review-Attempt: rvw-12f33389f3d9-1 Orbit-Review-Crew: haiku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
ORB-26712 — rust-cli-template phase 2: catch up with the canon and with scribe
Description
Phase 2 ("Canon") of the Rust CLI template redesign: everything in the design's Shape 4.
The template was last brought up to the canon on 2026-09-26. It pins
STD-02@3andSTD-04@1while the canon is atSTD-02@4andSTD-04@2, and it does not adopt STD-06, STD-08 or STD-09. scribe, made from the template on 2026-11-02, fixed four shared-code defects the template never received.Change
draft). The adopted set becomes STD-01, STD-02, STD-03, STD-04, STD-05, STD-06, STD-08, STD-09. Use thestandards.syncplugin tool, or the umbrella'soperations/scripts/sync-standards.sh --adopt <full list>; never hand-editdocs/standards/or the managed block inAGENTS.md. Bring the code and docs into line with the new rules of STD-02@4 and STD-04@2 that the template demonstrates.README.mdthat meets STD-09, keeping the template-only notescripts/rename-template.shstrips.MITthatCargo.tomldeclares, in the form other public constellation-works repositories use (MIT License,Copyright (c) 2026 constellation-works contributors).1_scope.md, STD-06 §R2) beside the full-track templates underdocs/design/.constellation-works/scribe, root help summaries and groups) and port the mechanism, not scribe's commands.make denyfalls back to a writable advisory-database path; a help-width helper keeps piped--helpoutput independent of the machine; a table row with blank trailing cells no longer ends in padding;store/fsio.rsgains bounded reads, a directory listing and a private remove. Compare with scribe'sMakefile,output/table.rsandstore/fsio.rs.scripts/run bymake ci) that fails when a tracked file outsidedocs/standards/containsORB-<digits>.Not in this task: the grouped-help rule itself as a standard. That is a standards friction against STD-01 in the umbrella, filed separately.
Design:
docs/design/rust-cli-template/1_scope.mdin the constellation umbrella (Accepted, constellation 574df86; Daniel, 2026-11-21: "Approve as recommended"). Phase 1 (ORB-26696) made this repository the source of the template, and ORB-26697 onboarded it asws_rust-cli-template. This repository is public: keep private task ids (ORB-…) out of every shipped file.Approval: tagged
no-auto-approve. The constellation captain (ORB-26697) owns this workspace (Daniel, 2026-11-22: "Const captain") and approves it explicitly, quoting his 2026-11-16 words, once ORB-26710 has landed.Also, from the about.md change that landed first: the README line under the template-only note now states the template's own summary, and a renamed copy keeps it, so a new repository's README describes the template. In the STD-09 rewrite, keep the template's summary inside the template-only note and leave a placeholder summary line for the copy, matching the placeholder card rename-template.sh writes.
Acceptance Criteria
docs/standards/README.mdand the managed block inAGENTS.mdpin the canon's current versions for STD-01, STD-02, STD-03, STD-04, STD-05, STD-06, STD-08 and STD-09, andsh docs/standards/check.shexits 0.README.mdmeets STD-09 and still carries the template-only note; a licence file states the MIT licence thatCargo.tomldeclares.docs/design/holds a scope-track1_scope.mdtemplate beside the full-track templates.--helpgroups commands under headings with one-line summaries, and a test fails when a summary exceeds the limit.make cifails on a tracked file outsidedocs/standards/containingORB-followed by digits, andgit grep -nE 'ORB-[0-9]+' -- . ':(exclude)docs/standards'finds nothing.make cipasses, and on a scratch copyscripts/rename-template.sh demo-clifollowed bymake cipasses.Execution Summary
Click to expand
Phase 2 is ready for the pipeline. Strict Linux CI passed in the template and in a fresh checkout renamed demo-cli.
Reconciliation: baseline c7d24df, clean working tree and index. HEAD and index remain at the baseline. Delivery includes the synced standards; public README, licence, usage/development and design docs; Make and script gates; CLI/core implementation, tests and root golden. Companion changes outside selectors cover architecture and about metadata, the feature board and conventions, help module and re-exports, typed color and its callers, core lock regression and lint reasons, additional script/golden tests and the template-only rename test. No unrelated changes or scratch output outside .orbit/tmp. Staged and non-vendored whitespace checks passed, including untracked additions. Full git diff --check flagged one canonical blank line at EOF in docs/standards/STD-04-testing-and-verification/why.md:199. The vendor is byte-identical to canon and its checksum passes.
The design decisions record public-reference handling for STD-06 and retained human diagnostics for STD-08. The umbrella's operations/scripts/new-rust-cli.sh still passes its old five-standard adoption list to sync after export. That cross-workspace caller was outside this checkout. The phase 3 handoff already owns routing the caller update. The template and its direct rename path both retain all eight standards.
Evidence: canon-validation/template-ci.log, canon-validation/demo-ci.log, canon-validation/negative-controls.log and canon-validation/deny-fallback.log.
Validation
Branch Freshness
refs/remotes/origin/agent-mainorbit/ORB-26712-af449fc6Orchestrated-By: opus