Skip to content

Commit d3326c2

Browse files
committed
Terminology: retire the "SFRS" acronym
"SFRS" was introduced by mistake — it only ever meant "a feature (description/specification)," never a real external standard name. Every mention now reads "the CLI Standard" / "the Spacecraft Software Dual-Mode Self-Documenting CLI Standard (v1.0.0)", following the construct-repo a301baf naming precedent.
1 parent 8cbb886 commit d3326c2

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ src/
1414
cert_authority.rs @cert-authority / @revoked parser + HashedHost
1515
relay.rs bidirectional stdin/stdout/stderr relay
1616
config.rs AnvilConfig builder; per-provider constructors
17-
error.rs unified error + SFRS exit codes
17+
error.rs unified error + the canonical exit-code map
1818
algorithms.rs KEX/cipher/MAC catalogue + OpenSSH +/-/^/replace + denylist
1919
retry.rs RetryPolicy + transient/fatal classifier + jittered backoff
2020
keygen.rs Ed25519/ECDSA/RSA keygen in OpenSSH format
@@ -78,7 +78,7 @@ cargo fmt --check
7878
- **Pinned host keys** — SHA-256 fingerprints for GitHub, GitLab, and Codeberg are embedded in `src/hostkey.rs`. Update them by fetching the official fingerprint pages and running `cargo test` to verify.
7979
- **stdout stays clean** — diagnostic output goes to stderr. The library deliberately exposes no stdout-touching APIs; output framing is the consumer's concern.
8080
- **Passphrase zeroization** — any `String` holding a passphrase must be wrapped in `Zeroizing<String>`.
81-
- **Exit codes (when consumed via Gitway's SFRS error mapping):**
81+
- **Exit codes (when consumed via Gitway's CLI-Standard error mapping):**
8282
- `0` — success
8383
- `1` — general / unexpected error
8484
- `2` — usage error (bad arguments, invalid configuration)

src/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! JSON mode already carries `timestamp` and `command` in its structured
2020
//! `{"error": {...}}` blob, so callers should skip this helper on that
21-
//! path. Stdout is always left untouched (SFRS Rule 1) — the diagnostic
21+
//! path. Stdout is always left untouched (CLI Standard Rule 1) — the diagnostic
2222
//! writes exclusively to stderr.
2323
2424
use std::path::PathBuf;

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22
// Rust guideline compliant 2026-03-30
3-
// Updated 2026-04-12: added error_code(), exit_code(), hint() for SFRS Rule 2/5
3+
// Updated 2026-04-12: added error_code(), exit_code(), hint() for CLI Standard Rule 2/5
44
//! Error types for `anvil-ssh`.
55
//!
66
//! # Examples
@@ -257,7 +257,7 @@ impl AnvilError {
257257
}
258258
}
259259

260-
/// Returns an upper-snake-case error code for structured JSON output (SFRS Rule 5).
260+
/// Returns an upper-snake-case error code for structured JSON output (CLI Standard Rule 5).
261261
///
262262
/// | Code | Exit code | Condition |
263263
/// |------|-----------|-----------|
@@ -280,7 +280,7 @@ impl AnvilError {
280280
}
281281
}
282282

283-
/// Returns the numeric process exit code for this error (SFRS Rule 2).
283+
/// Returns the numeric process exit code for this error (CLI Standard Rule 2).
284284
///
285285
/// | Code | Meaning |
286286
/// |------|---------|
@@ -312,7 +312,7 @@ impl AnvilError {
312312
/// [`Display`](std::fmt::Display) output already says what went wrong).
313313
///
314314
/// Emitted on stderr after the error message in human mode, and
315-
/// carried as the `hint` field in `--json` output (SFRS Rule 5).
315+
/// carried as the `hint` field in `--json` output (CLI Standard Rule 5).
316316
#[must_use]
317317
pub fn hint(&self) -> &str {
318318
if let Some(h) = self.custom_hint.as_deref() {

src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22
// Rust guideline compliant 2026-03-30
3-
// Updated 2026-04-12: added verified_fingerprint tracking for SFRS JSON output
3+
// Updated 2026-04-12: added verified_fingerprint tracking for the CLI Standard's JSON output
44
//! SSH session management (FR-1 through FR-5, FR-9 through FR-17).
55
//!
66
//! [`AnvilSession`] wraps a russh [`client::Handle`] and exposes the

0 commit comments

Comments
 (0)