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 verify Retain non-authorizing proposal-scoped verifier evidence
98 log Recent signed events or one finding's history
99 doctor Blockers plus one safe next action
100 migrate Preview or apply a root-preserving repository migration
101
102Nouns and setup:
103 finding record, standing, evidence, and attribution views
104 artifact content-addressed evidence lifecycle
105 frontier materialize, compare, recover publication, release, audit
106 policy standing authority rules and their human ceremonies
107 actor governed frontier identities
108 id local identity and key custody setup
109 agents regenerate agent adapters from VELA.md
110 config closed local/frontier configuration
111
112Advanced verification and integration:
113 gate claim-level verification projections
114 proof proof packet export, verify, and explain
115 ci deterministic CI verdicts
116 serve read-only or nonfinalizing draft MCP/HTTP surface
117 sign historical batch and detached-file signing compatibility
118
119Advanced setup:
120 target-index inspect, diagnose, or seal derived producer targets
121
122Hidden utility:
123 completions generate shell completion scripts
124
125Retired from the core product: {}
126"#,
127 env!("CARGO_PKG_VERSION"),
128 retired_line,
129 )
130}