Skip to main content
CRUCIBLE
Legacy Reference Archive: This 44-chapter book reference has been distilled into Academy A01 (8 Executable Modules) with Tier-Adaptive Productive Failure, Kore/Puck voice, and live Firecracker labs.
Open Academy A01 →
COURSE 0 · SERVER BUILDING & LIFECYCLE MASTERY

Zero-to-Production Linux, Containers, Networking & Recovery

PROGRESS: 0 / 72 (0%)0/44L · 0Q · 0VM
CH 19 · PART IV · WORKED LABS & FULL LIFECYCLE (CH 14–24) · 1,226 WORDS (7 MIN)

19 The repeatable lifecycle and requirements contract

A server is a role fulfilled by software and infrastructure. An HTTP application, a database, a domain controller and an inference worker all have requirements, configuration, dependencies, operators, changes, failure modes and retirement obligations.

FULL WAR-ROOM →
INTERACTIVE 12-PHASE LIFECYCLE · CLICK ANY GATE TO INSPECT

Server Lifecycle Governance: Requirements -> ADR -> Target Evidence -> Clean Retirement

Every production host starts with named ownership and RPO/RTO targets and ends with zero dangling DNS.

decidesprovesretiresRequirementsOwner · RPO · RTODecision RecordTradeoffs · Non-GoalsTarget EvidenceSHA-256 · Redacted LogsClean RetirementDrain · Archive · Revoke
SELECTED LAYER · REQUIREMENTS
Locks down named owner, budget ceiling, data sensitivity, and numerical RPO/RTO bounds before provisioning.
Common failure: Launching undocumented servers without RPO targets or owners creates unpatched zombie infrastructure.
$ hostname && date -u +"%Y-%m-%dT%H:%M:%SZ"

Type: explanation and guided worksheet. Audience: beginner moving toward independent operation. Prerequisites: Chapters 1–4 and the worked local service. Environment: your own project directory; this chapter changes no infrastructure. Outcome: describe what a server must achieve and how each lifecycle decision will be accepted. Evidence: a completed requirements sheet, inventory, phase applicability record and named owners.

A framework you can reuse without pretending systems are identical

A server is a role fulfilled by software and infrastructure. An HTTP application, a database, a domain controller and an inference worker all have requirements, configuration, dependencies, operators, changes, failure modes and retirement obligations. Those shared concerns give us a common lifecycle. Their implementation details require different runbooks. A database restore procedure cannot safely stand in for restoring an identity forest; a stateless process restart cannot demonstrate data durability.

Use the same engineering loop for every phase: define the desired outcome, plan a change, implement it in a controlled environment, verify the behavior, record evidence and maintain the result. If verification fails, keep the phase open. If a phase does not apply, record the technical reason and reviewer; do not silently delete inconvenient checks. Every outcome needs a scope. “HTTPS passed” is incomplete until you identify the hostname, trust chain, client location and date.

The twelve phases are framework, beginner readiness, requirements/design, provisioning, foundation security, service implementation, go-live, operation, change/scale, recovery, migration/retirement and validation/publication. They are learning and delivery milestones, not a guarantee that all risk disappears after a checklist. Operations loops back into requirements as demand and failures reveal new information. Retirement has requirements too: legal retention, downstream consumers, data disposal, key revocation and orphaned costs.

Keep each project separate. The companion framework/ tooling captures a profile and evidence gates; its help and reference files define the supported commands. Use it to make omissions visible. See worksheets/evidence-record.md for the exact init/check commands, required profile values, evidence file structure and target_identity binding. A production profile rejects local-scope evidence; incomplete generated profiles remain pending. A tool can validate that required records exist, their scope is stated and referenced evidence is intact. It cannot establish that a human observation is true merely because somebody wrote “passed” in JSON. Preserve command outputs and arrange independent reproduction for high-value checks.

Begin with a service contract

Write one sentence describing the user's outcome. For the automation reference: “An authorized tenant submits a bounded text request, receives a durable identifier, and retrieves a result without reading another tenant's work.” For a DNS server: “Authorized clients resolve the delegated names with stated availability and change-propagation expectations.” Both statements identify a useful outcome; neither starts by choosing Kubernetes or a particular machine size.

Complete worksheets/requirements-template.md. Identify users, clients, data, environment, owner, dependencies and the boundaries of authorization. Describe normal and peak demand using units: requests per second, simultaneous sessions, jobs per minute, stored bytes, daily growth or GPU contexts. “Fast” and “large” are not capacity requirements. When demand is unknown, state a bounded experiment and conservative initial limits rather than inventing certainty.

State availability and recovery needs separately. A service-level objective describes an outcome over time. A recovery point objective states acceptable data loss measured in time; a recovery time objective states acceptable time to regain a defined service after a failure. Neither number is proven by a backup schedule. Define when the recovery clock begins, when it ends and who accepts the result. A successful process restart measures a narrower event than restoring service after total host loss.

Set a spending ceiling and an owner for overruns. Enumerate compute, attached storage, backup copies, network transfer, load balancers, monitoring, licenses, public addresses and paid model calls. A stop date matters for experiments. Use the selected provider's current account-specific prices before approving resources. The filled reference worksheet uses a zero-paid-resource local scope, so it is an example requirement rather than a cloud price estimate.

Map trust and dependencies before drawing machines

List where identities originate, where secrets are stored, which service can read each dataset, and which operators can alter production. Draw a request path and a data path. A load balancer may handle public TLS while the database remains private. A worker can need database access without needing bootstrap administrator tokens. A backup operator may need encrypted artifacts while a separate recovery role controls decryption keys.

Record dependencies outside your ownership: DNS registrar, identity provider, certificate authority, registry, model provider, managed database and upstream APIs. For each, define timeout, outage behavior, escalation and retirement implications. “Managed” transfers specific administration duties; it does not transfer your application's authorization, schema, retention or recovery requirements automatically.

Use worksheets/decision-record.md for decisions that constrain later work. Include context, options, choice, reasons, consequences and a review trigger. An appropriate initial choice might be a single-host deployment because planned downtime is acceptable and operational simplicity is valuable. Its recorded consequence is a shared failure domain. If required availability changes, revisit the decision instead of continuing to claim the old design meets the new contract.

Define acceptance before implementing

For each requirement write an observable test. “Tenant isolation” becomes: valid tenant B credentials requesting an existing tenant A object receive the defined denial without the object data. “Durable” becomes: a committed object can be read after the specified failure. Be precise about whether that failure is application restart, database restart, storage recreation, host loss or region loss. The scope determines the needed experiment.

The local lifecycle lab supplies two different workload contracts: a content-serving HTTP service and a persistent key/value service backed by SQLite. From your VM workspace (~/playground), run python3 ~/playground/labs/foundations.py, then inspect the newly produced proof/lifecycle.json. Inspect its receipt and compare the stateless and stateful checks. The content server can be rebuilt from an artifact; the key/value server must preserve accepted writes and prove restoration. Neither substitutes for a production Linux host or a managed database control plane.

A useful phase record contains the target, version, actor, timestamps, inputs, expected result, actual result, evidence location, hash where appropriate, cleanup and known limitations. Never record passwords, bearer tokens or customer payloads as proof. An evidence hash detects a changed file; it does not authenticate a machine or prove the command's origin unless your evidence collection process also establishes those properties.

Diagnose a failed gate

If a gate says “evidence missing,” determine whether work was never performed, was performed but not recorded, or used the wrong target. Re-run a reversible verification when safe. If the action is destructive or external, inspect the existing record and obtain the scoped authorization required for the real action. Do not generate a fabricated success receipt to make a dashboard green.

If an assessment fails, identify the missing skill. A learner who cannot explain the working directory should return to file/process exercises. A learner who knows the commands but cannot distinguish a restored database from the original needs another recovery exercise. A learner who can repair a service but erases the evidence needs operational discipline practice. Each has a different remedy.

Cleanup: keep source, decisions and redacted evidence. Remove only disposable lab state identified by the lab's ownership controls. Pass: another reader can identify what the server does, who owns it, what “working” means, what failures are tolerated, and exactly which verification remains pending. Failure: a design relies on unstated assumptions or treats a template as executed production proof.

ACTIVE-RECALL MASTERY CHECKPOINT · CH 19

Lock in what you just learned (3 quick questions)

PASS 2/3 FOR +30 XP
Q1.Why map trust boundaries and external dependencies BEFORE drawing servers or buying cloud instances?
Q2.Why define concrete acceptance criteria BEFORE writing deployment automation?
Q3.Why does a production lifecycle profile reject local-scope evidence for target-host gates?
Answered 0 / 3