1use super::*;
6
7const RELEASE_DENY: &[&str] = &[
10 "atlas",
11 "credit",
12 "diff",
13 "foundry",
14 "hub",
15 "proposals",
16 "publication",
17 "reproduce-external",
18];
19
20#[cfg(test)]
23pub(crate) const HIDDEN_FROM_ADVANCED_HELP: &[&str] = &[
24 "atlas",
25 "completions",
26 "credit",
27 "diff",
28 "foundry",
29 "hub",
30 "proposals",
31 "publication",
32 "reproduce-external",
33];
34
35fn released_command_names() -> &'static std::collections::HashSet<String> {
47 use std::sync::OnceLock;
48 static NAMES: OnceLock<std::collections::HashSet<String>> = OnceLock::new();
49 NAMES.get_or_init(|| {
50 use clap::CommandFactory;
51 let mut set = std::collections::HashSet::new();
52 for c in Cli::command().get_subcommands() {
53 set.insert(c.get_name().to_string());
54 for a in c.get_all_aliases() {
55 set.insert(a.to_string());
56 }
57 }
58 set
59 })
60}
61
62pub fn is_science_subcommand(name: &str) -> bool {
63 if RELEASE_DENY.contains(&name) {
64 return false;
65 }
66 released_command_names().contains(name)
67}
68
69pub(crate) fn print_strict_help() {
70 print!("{}", strict_help_text());
71}
72
73pub(crate) fn strict_help_text() -> String {
79 let retired_line = RELEASE_DENY.join(", ");
80 format!(
81 r#"Vela {}
82Version control for scientific state.
83Agents land. Verifiers reproduce. Humans approve. Git publishes.
84
85Usage:
86 vela <COMMAND>
87
88Daily product:
89 init Create a minimal Git-native frontier
90 status Compact frontier identity, roots, counts, and next action
91 next Ranked producer work only
92 work Claim one target and open a private typed session
93 land Land Receipt v1; policy admits, defers, or denies
94 review Inspect, decide, or producer-withdraw one exact proposal
95 check Replay, signatures, parity, and strict signals
96 reproduce Re-run stored witnesses with frozen verifiers
97 log Recent signed events or one finding's history
98 doctor Blockers plus one safe next action
99 migrate Preview or apply a root-preserving repository migration
100
101Nouns and setup:
102 finding record, standing, evidence, and attribution views
103 artifact content-addressed evidence lifecycle
104 frontier materialize, compare, recover publication, release, audit
105 policy standing authority rules and their human ceremonies
106 actor governed frontier identities
107 id local identity and key custody setup
108 agents regenerate agent adapters from VELA.md
109 config closed local/frontier configuration
110
111Advanced verification and integration:
112 gate claim-level verification projections
113 proof proof packet export, verify, and explain
114 ci deterministic CI verdicts
115 serve read-only or nonfinalizing draft MCP/HTTP surface
116 sign historical batch and detached-file signing compatibility
117
118Hidden utility:
119 completions generate shell completion scripts
120
121Retired from the core product: {}
122"#,
123 env!("CARGO_PKG_VERSION"),
124 retired_line,
125 )
126}