Skip to content

fleet-cert: split format/profile/algorithms/trust verbs out of cli.rs (#16255 slice 18) - #16988

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16255-fleet-cert-cli-split
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16255-fleet-cert-cli-split

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Slice 18 of the #16255 production-line-guard track (one file per PR, per the track's established discipline).

pkgs/fleet/crates/fleet-cert/src/cli.rs was 3457 production lines (limit 2500) — the largest of the three files still over the limit on main. This PR moves the display-only verb cluster — format_cmd, profile_cmd, algorithms_cmd, trust_cmd plus private helpers san_policy_name, key_custody_name, trust_target, trust_consumer_export — into a new cli_display.rs, following the cli_ocsp.rs split pattern from the earlier slices:

  • parse_algorithm_name (shared with the remainder of cli.rs) becomes pub(crate), matching how parse_args/emit/Parsed are already shared with cli_ocsp.
  • Dispatch arms in run_inner and the key-ceremony test call sites repoint through crate::cli_display.
  • No behavior change: pure code motion.

Guard: bash .github/scripts/check-production-line-limit.sh passes on the branch tree (was: cli.rs OVER LIMIT 3457).

Remote verification (fleet-cert test suite via fleet-command) is dispatched against this branch; the run id and verdict will be posted here and on #16255.

Remaining on #16255 after this slice: id-cli serve.rs and console edge.ts.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T21:47:18Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

@coderabbitai

coderabbitai Bot commented Nov 29, 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: 764b735e-cc18-4ada-b67e-e2bd3ee7f303

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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification dispatched (Felix lane 0640-DT): fleet-command run 46314116394 against this branch — cd pkgs/fleet && cargo test -p fleet-cert with the realised nixpkgs OpenSSL env. Verdict will be posted here from the full log read (executed counts + FLEET-CERT-TEST-EXIT marker), not the run conclusion.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46314116394 verdict (Felix lane 0640-DT, full log read firsthand): RED — real code defect in the first push, zero tests executed. The split missed the visibility bumps: 33 compile errors (E0603/E0616) — the four moved *_cmd functions, validity, write_new_file, and the Parsed.positionals field were still private to cli.rs. Fixed in amended head b930522 (all seven now pub(crate), matching the cli_ocsp sharing pattern; two unused imports in cli_display.rs dropped). Guard still passes on the branch tree. Re-verification dispatched against the new head.

…#16255 slice 18)

cli.rs was 3457 production lines (limit 2500), the largest of the
three files still failing the production-line-guard on main. Move
the display-only verb cluster (format_cmd, profile_cmd,
algorithms_cmd, trust_cmd plus private helpers san_policy_name,
key_custody_name, trust_target, trust_consumer_export) into a new
cli_display.rs, following the cli_ocsp.rs split pattern: helpers
shared with the remainder of cli.rs (parse_algorithm_name) become
pub(crate), dispatch arms and test call sites repoint through
crate::cli_display. Guard passes on the branch tree.
@developing-today-fleet
developing-today-fleet Bot force-pushed the felix/16255-fleet-cert-cli-split branch from b930522 to 53d771e Compare November 29, 2026 22:02
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46314949982 verdict (Felix lane 0640-DT, full log read firsthand): RED again — one import over-pruned, zero tests executed. 5 errors, all from read_artifact missing in cli_display.rs (E0425 ×4 + one E0277 knock-on): the block uses it in trust_consumer_export, and my unused-import cleanup removed it based on a compile warning from the earlier broken state. Restored in amended head; the visibility fixes from the previous round held (no E0603/E0616 this time). Re-verification dispatched.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46315498617 verdict (Felix lane 0640-DT, full log read firsthand): GREEN — PR #16988 is merge-ready. Checkout at branch head 53d771e; cargo test -p fleet-cert executed 14 test binaries, 137 passed / 0 failed in total (lib 64, key-ceremony and verb suites all green), marker FLEET-CERT-TEST-EXIT=0 present in the log. The split surface (format/profile/algorithms/trust verbs, exercised through the cli test suites) compiled and passed. Guard passes on the branch tree (cli.rs 3457 → under the 2500 limit). Felix: this one is ready to merge.

@developing-today-fleet
developing-today-fleet Bot merged commit a1b1bd8 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/16255-fleet-cert-cli-split branch November 29, 2026 22:19
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Shepherd merge — Archer lane 1552-G (2026-11-29). Felix lane 0640-DT posted the GREEN verdict at head 53d771e (run 46315498617: cargo test -p fleet-cert, 137 passed / 0 failed, guard pass) and called this merge-ready. I read the full diff before merging: 3 files — cli.rs +33/-1193 (the four verb functions + helpers removed; only visibility bumps to pub(crate) and dispatch/test repoints to crate::cli_display added), cli_display.rs +1181 (the moved cluster), lib.rs +1 (mod cli_display;). Pure code motion, no behavior change, exactly the PR stated purpose (slice 18 of #16255). Merged as a1b1bd8. Key: 1552-G

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.

0 participants