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 13 · PART III · AI, MCP, INFERENCE & PLATFORMS (CH 09–13) · 1,207 WORDS (7 MIN)

13 Capstones reference and continued mastery

Use these gates instead of a fixed promise about how many days expertise takes. Repeat them after changing the architecture substantially.

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"

Competency gates

Use these gates instead of a fixed promise about how many days expertise takes. Repeat them after changing the architecture substantially.

GateRequired demonstrationEvidence
FundamentalsExplain a process, port, file permission, HTTP request, and transactionShort explanation plus local experiments
Local developerImplement a validated API and durable resultCode, tests, and request/response record
Automation builderHandle duplicates, retry safely, recover interrupted workConcurrency and failure tests
DeployerPublish through HTTPS with controlled accessExternal connectivity and permission checks
OperatorDetect failure, roll back, restore dataRunbook execution and measured recovery
AI engineerEvaluate behavior and constrain tool authority/costEvaluation set, permission tests, budget evidence
Advanced operatorDefend scaling decisions and failure-domain assumptionsArchitecture record, load and recovery results
SpecialistOperate a selected infrastructure protocol correctlyProduct-specific acceptance and restore evidence

Capstone one a dependable automation API

Build the included service from a clean environment, extend it with a useful deterministic transformation, and write tests before changing the implementation. Keep authenticated tenant identity separate from input. Retain duplicate protection and bounded work. Deploy to staging, complete a synthetic workflow, stop the worker, recover, and restore a backup separately.

Deliver a repository, environment specification, diagram, API contract, test report, deployment runbook, rollback procedure, and incident exercise. A reviewer should be able to repeat the local setup without asking you for missing files. Secrets must not be in the repository or report.

Capstone two an evaluated AI workflow

Add an optional summarization provider adapter. Define a schema and evaluation set before selecting a model. Preserve source permission boundaries. Add input/output limits, a per-job deadline, explicit retry rules, and a cost ledger. Expose only appropriate read operations through MCP first; add writes only with a narrow permission and approval design.

Demonstrate malformed provider output, rate limits, timeout, duplicate delivery, prompt injection in source content, and budget exhaustion. Explain how you distinguish a failed response from an ambiguous external effect. Record which tests were mocked and which used a real provider.

Capstone three a recoverable platform

Choose a single VM, managed platform, or cluster based on stated requirements. Automate repeatable environment creation, isolate data and application lifecycle, implement a release pipeline, and exercise rollback. Prove backup restoration and document the point-in-time loss and recovery duration actually achieved.

A higher-complexity design must justify its cost and operational burden. Include at least one failure-domain analysis: host loss, zone loss, database outage, secret exposure, or incompatible release. State what the design does not protect against.

Optional commercialization

Once the service is reliable, define a billable unit that can be measured consistently. Store usage events durably with an event identity, tenant/customer mapping, quantity, timestamp, and source operation. Flush asynchronously to the billing provider and reconcile. Do not increment billing only in a process-local counter or assume provider delivery is exactly once.

Separate entitlement from payment state. Define how cancellations, payment failure, free tiers, refunds, duplicate usage, and delayed events affect access. Verify webhook signatures and replay protection according to the provider's current contract. Use test mode and synthetic customers before any real transaction. Billing is its own engineering domain; the reference service does not implement it.

Document data handling, retention, support expectations, and software/model licenses. Obtain appropriate professional review when contractual or regulatory obligations matter. Do not copy another company's legal policy and assume it fits your service.

Maintenance routine

Weekly during active development: review failed jobs, alerts, error trends, dependencies, and capacity. Monthly or on relevant change: rehearse a restore, inspect access/credentials, update documentation, and review cost. Before a major upgrade: read compatibility notes, test migration and rollback, and update the release record. Adjust the cadence to the service's risk and change rate.

For Course 0, retain a source register and last-verified date. Test runnable examples on clean environments. Separate durable concepts from vendor-specific steps. Regenerate the PDF after source changes and inspect code blocks, tables, links, page breaks, and navigation. A beautiful document with broken examples is not a successful release.

Troubleshooting reference

ProblemCheck before changing anything
Python import failsActive environment, runtime, working directory, lock installation
Port in useExact listener and owner; select another lab port instead of killing unrelated processes
Container exitsExit code, first error, command, permissions, resource limits
Database initialization failsData directory permissions, free bytes/inodes, logs, selected volume
Authentication failsToken source, whitespace, identity mapping, intended environment
Job never finishesWorker process, database URL, queue age, lease/attempt state
Duplicate effectsIdempotency scope, downstream behavior, transaction boundaries
TLS issuance failsDNS A/AAAA, reachability, challenge route, hostname, certificate state
Release breaks readsSchema compatibility, config change, image identity, dependency version
Restore appears emptyCorrect source/database, dump exit status, restore errors, permissions
AI output regressesModel/prompt version, retrieval corpus, sampling, evaluation differences
Costs jumpTraffic, retries, loops, idle resources, egress, retention, model selection

Glossary

API: a defined interface for software interactions. Authentication: establishing identity. Authorization: deciding permitted actions. Tenant: an isolated customer or organizational scope. TLS: transport security used by HTTPS. DNS: the naming system mapping hostnames and other records. Reverse proxy: a server forwarding client requests to an upstream application.

Transaction: operations committed or rolled back as a unit under defined isolation. Idempotency: repeated application of an operation has the intended stable effect. Lease: time-bounded ownership. Fencing: rejecting actions from an obsolete owner. Queue: stored work awaiting processing. Backpressure: controlling incoming work when downstream capacity is insufficient.

Image: packaged runtime filesystem/configuration. Container: isolated process instance. Volume: persistent storage attachment. Migration: a versioned schema/data change. CI: automated validation of changes. CD: controlled delivery/deployment of releases. Infrastructure as code: versioned resource configuration.

Liveness: whether a process is functioning enough that restarting it is unnecessary. Readiness: whether it can receive work. SLI: a measured service indicator. SLO: its target. RPO: acceptable data-loss interval. RTO: acceptable recovery duration. Runbook: an executable operational procedure. Postmortem: evidence-based analysis after an incident.

MCP: a protocol for AI clients and servers to exchange tool and related capabilities. RAG: generation supported by retrieved information. Evaluation: measuring behavior against a defined dataset and criteria. TTFT: time to first generated token. KV cache: attention-related state retained during model inference. Quantization: representing model values with reduced precision under a specified scheme.

Your completion checklist

You can explain the architecture without naming brands. You can build it from a clean checkout. You can reject unauthorized access and duplicates. You can deploy and observe a real workflow. You can stop a component and recover. You can restore data into a separate environment. You can update the system without guessing about compatibility. You can state remaining limitations honestly.

Keep the evidence. It is useful for your own confidence, technical interviews, client handoff, and future debugging. The durable professional skill is owning the complete lifecycle of a service.

ACTIVE-RECALL MASTERY CHECKPOINT · CH 13

Lock in what you just learned (3 quick questions)

PASS 2/3 FOR +30 XP
Q1.What proves true readiness on a server engineering capstone?
Q2.When evaluating an AI workflow capstone, what must be verified alongside happy-path output quality?
Q3.Why document known limitations and explicit non-goals in your capstone evidence record?
Answered 0 / 3