AGENT SKILL

flightsw-fdir-time-telemetry-and-updates

Use when designing the operational behaviour of a spacecraft: fault detection, isolation and recovery including safe modes and the escalation ladder, time and clocks (onboard time, correlation, leap seconds, drift), command and telemetry design with CCSDS packets, and data handling, onboard storage and the in-flight software update path with its rollback requirements.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 5
Forks
3

01 前言 Front Matter

name
flightsw-fdir-time-telemetry-and-updates
description
Use when designing the operational behaviour of a spacecraft: fault detection, isolation and recovery including safe modes and the escalation ladder, time and clocks (onboard time, correlation, leap seconds, drift), command and telemetry design with CCSDS packets, and data handling, onboard storage and the in-flight software update path with its rollback requirements.

03 SKILL.md 正文

Flight Software: FDIR, Time and Clocks, Command and Telemetry, and In-Flight Update

Part 3 of 5 of the Flight Software reference (plugin flight-software), covering §8–§11. Sibling skills: flightsw-architecture-languages-and-standards (§0–§3), flightsw-processors-radiation-and-real-time (§4–§7), flightsw-gnc-verification-ground-and-autonomy (§12–§16), flightsw-reference (§17–§20). Section numbers are shared across the set; a reference written as §N → skill points into that sibling skill.

Currency: The discipline and standards are stable; flight processors and framework releases moved materially in 2025-26. See §17 → flightsw-reference for what is dated and what is genuinely contested.

How to read this. This is the deep treatment of flight software. It supersedes the compressed flight-software section in a robotics-software reference; spacecraft systems engineering is in a space-exploration reference, and launch physics in a rocket-science reference.

Two markers:

  • [DURABLE] — the discipline, architecture, and standards. Most of this.
  • [CONTESTED] — genuine disagreement.

⚠️ GOTCHA boxes mark what has actually destroyed vehicles.

The three properties that make this domain different from all other software:

  1. ⚠️ You cannot patch your way out. Uplink is bandwidth-limited, latency-bound, and sometimes impossible. A bug that bricks the receiver ends the mission — which is why §11's update mechanism is designed before the software it updates.
  2. ⚠️ The hardware is actively hostile. Radiation flips bits in RAM and registers with no warning and no error signal. Software must assume its own memory is corrupting underneath it (§4 → flightsw-processors-radiation-and-real-time, §5 → flightsw-processors-radiation-and-real-time).
  3. ⚠️ Correct-but-late is wrong. A control loop that misses its deadline has failed regardless of the answer it eventually produces. Determinism outranks throughput, and this inverts almost every instinct from server-side engineering (§6 → flightsw-processors-radiation-and-real-time).

§8. FDIR

[DURABLE] Fault Detection, Isolation and Recovery — the organizing principle of flight software, not a feature of it.

DETECT     limit checks, watchdogs, consistency checks, checksums,
           heartbeat monitors, plausibility tests
   ↓
ISOLATE    determine which component; ⚠️ avoid misattribution — the hardest step
   ↓
RECOVER    retry → reconfigure to redundant unit → reset component
           → reset processor → ⚠️ SAFE MODE

⚠️ Safe mode is the design that saves missions. Power-positive, thermally stable, Sun- or Earth-pointed, minimal software, and survivable indefinitely awaiting ground instruction. Every deep-space mission enters safe mode. The design question is not whether, but whether it can sit there for a month without degrading.

Command loss timer: ⚠️ if no valid command is received for N days, assume something is wrong with the receive chain and autonomously reconfigure — swap receivers, swap antennas, reset. This has recovered missions whose primary receiver failed, and it is a mandatory feature, not a nicety.

⚠️ The hard-won lessons of FDIR design:

  • ⚠️ Fault protection that misfires is itself a hazard. A spurious safe-mode entry during orbit insertion or EDL can lose the mission. Critical sequences therefore inhibit selected fault responses — and choosing which is a genuinely difficult engineering judgement.
  • Don't recover into the fault. Repeated automatic resets that re-trigger the same condition burn power and can exhaust a resource. Escalate, and count.
  • ⚠️ Log everything before acting. The telemetry that explains a fault is often lost in the recovery that follows it. Persist diagnostics first.
  • Distinguish transient from persistent. A single SEU-induced anomaly should not trigger the same response as a failed component.

§9. Time and Clocks

[DURABLE] Getting time wrong is a classic and expensive failure mode.

Time scales: TAI (atomic, continuous — ⚠️ what you want onboard), UTC (⚠️ has leap seconds; do not use it as an onboard timebase), GPS time (continuous, offset from TAI by 19 s), spacecraft elapsed time (SCET/MET) — ⚠️ a free-running onboard counter, which is the actual reference for onboard operations.

⚠️ Clock correlation is the operational task: relating the onboard counter to ground time using radiometric measurements, and tracking drift and drift rate. Every science observation timestamp depends on it.

⚠️ The specific hazards:

  • Leap seconds — ⚠️ a repeated or skipped second breaks naive monotonic assumptions. Multiple terrestrial outages have been caused by this; don't inherit the problem onboard.
  • Counter rollover — ⚠️ a 32-bit millisecond counter wraps in 49.7 days. The Patriot missile timing failure and several spacecraft anomalies trace to accumulated or wrapped counters. Compute the wrap interval explicitly and handle it.
  • Light-time correction — a command's execution time and an observation's timestamp are in different frames; ⚠️ one-way light time to Mars is 3–22 minutes.
  • Relativistic corrections — ⚠️ GPS requires them (about 38 μs/day net); for precision deep-space navigation they are not optional.

§10. Command and Telemetry

[DURABLE] CCSDS is the international standard set, and it is genuinely worth following rather than inventing.

The stack:

Application:  ⚠️ Space Packet Protocol (CCSDS 133.0-B) — APID identifies the destination
Transfer:     TM/TC Space Data Link, or AOS for higher rates
Coding:       Reed-Solomon, convolutional, ⚠️ turbo/LDPC (near-Shannon)
Physical:     RF, per a space-exploration reference §5

Telecommand: CLTU framing, ⚠️ COP-1 (Communications Operations Procedure) providing sequence-controlled, guaranteed-delivery command transfer — with a FARM/FOP state machine that is a genuine source of operational subtlety.

⚠️ Command design principles that matter operationally:

  • Idempotent where possible — ⚠️ a retransmitted command should not do the thing twice.
  • Two-stage arm/fire for hazardous commands (deployments, pyros, engine starts).
  • Validate before execute: checksum, authenticate (⚠️ command authentication is now standard, and CCSDS SDLS provides it — an unauthenticated uplink is a hijack risk), and range-check every parameter.
  • ⚠️ Reject, don't clamp. Silently clamping an out-of-range parameter hides the ground error that produced it.
  • Absolute and relative time-tagged sequences — the backbone of deep space ops.

Telemetry: housekeeping (periodic state), event/EVR messages (⚠️ the spacecraft's log, and your only debugger), science, diagnostic dwell (⚠️ read arbitrary memory addresses — indispensable for in-flight debugging).

⚠️ Design telemetry for the anomaly you haven't had yet. The recurring operational regret is insufficient telemetry to diagnose a fault after it occurs. Budget bandwidth for diagnostics, include mode and state transitions, and make everything you'd want during a 3 a.m. anomaly call reachable without a patch.


§11. Data Handling and In-Flight Update

Onboard storage: ⚠️ flash wear-levelling and radiation-induced corruption both apply; use journaling or log-structured approaches, checksum everything at rest, and plan for data prioritization — when downlink is scarce, what gets dropped is a mission decision that must be encoded.

⚠️ CFDP (CCSDS File Delivery Protocol) — reliable file transfer across a link with huge latency, intermittent connectivity, and asymmetric rates. Class 1 (unacknowledged) and Class 2 (acknowledged with retransmission). It is the right answer and it is worth using rather than rolling your own.

⚠️ In-flight software update is the highest-stakes operation in the discipline.

Design rules, each written in blood:
  1. ⚠️ The bootloader must be immutable, or dual-redundant with a golden image
  2. Uplink to inactive memory, verify checksum, THEN switch
  3. ⚠️ Automatic rollback on failure to check in after N minutes
  4. Never patch the receive chain and the patch mechanism at once
  5. ⚠️ Test the exact uplink product on the exact testbed configuration (§13.3)
  6. Patch granularity small enough to fit the uplink budget

⚠️ A failed update that bricks the command receiver is unrecoverable and has ended missions. This is why rule 1 exists.

⚠️ The counterexample worth knowing: Voyager received a software patch in 2023–24 to work around degraded memory 46 years after launch, on a system whose original engineers had retired or died. That is only possible because the update path was designed conservatively from the start.

04 同仓库更多 Skills

the-vibey-project
the-vibey-project/vibey

white-paper-writing

Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks "how should I structure this" for a long-form document.

★ 5
the-vibey-project
the-vibey-project/vibey

prose-technical-mechanics

Use when editing or writing prose at a technical/mechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.

★ 5
the-vibey-project
the-vibey-project/vibey

prose-mechanics

Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate/Jamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix "AI-sounding" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.

★ 5
the-vibey-project
the-vibey-project/vibey

narrative-structure

Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or "how should I structure this story/pitch/presentation" request.

★ 5
the-vibey-project
the-vibey-project/vibey

legal-brief-writing

Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic/neurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.

★ 5
the-vibey-project
the-vibey-project/vibey

journal-publishability-criteria

Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs/paper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.

★ 5