SLM as Totebox sysadmin — the plan
editorial(services): rewrite service-slm-totebox-sysadmin as an honest plan, not an inventory (Track-B) — confirmed the real apprenticeship pipeline (slm-doorman/src/apprenticeship.rs) is generic and already operational for engineering task types (real example: version-bump-manifest), but zero of the 10 claimed sysadmin task types (node-provision/ingress-diagnose/etc.) are registered anywhere; confirmed tool-extract-content.sh/tool-extract-people.sh don't exist; condensed the fabricated 10-row task-type schema table and specific tool/cost apparatus into an honest 'what's real vs what's proposed' framing; register-clean EN+ES
@@ -1,16 +1,16 @@ --- schema: foundry-doc-v1 title: "SLM as Totebox sysadmin and support centre" title: "SLM as Totebox sysadmin — the plan" slug: service-slm-totebox-sysadmin category: services type: topic content_type: topic quality: complete index_group: ring-3-ai-gateway short_description: "How service-slm becomes the operational assistant for Totebox deployments — the training strategy, task families, and pipeline from corpus to per-tenant LoRA adapters." short_description: "A planned direction for service-slm: using its real, already-operational capture-then-verdict training pipeline to build a Totebox sysadmin assistant — the specific task taxonomy and tooling described here are not yet built." status: active bcsc_class: public-disclosure-safe last_edited: 2026-05-25 bcsc_class: forward-looking last_edited: 2026-08-22 editor: pointsav-engineering cites: - olmo3-allenai @@ -24,92 +24,60 @@ cites: paired_with: service-slm-totebox-sysadmin.es.md --- [[service-slm]] — the access-control gateway at [[three-ring-architecture|Ring 3]] of the platform, also referred to as the [[doorman-protocol|Doorman]] — is intended to become the operational assistant and support centre for [[totebox-os|Totebox]] Archive and Totebox Orchestration deployments. This article describes the strategy: the operational task families a sysadmin handles, why `service-slm` is structurally suited to handle them, the corpus shape required to train it, and the four stages that take a deployment from initial capture to a per-tenant LoRA adapter running in production. The premise is grounded in present state, not projection. The Doorman is operational. The apprenticeship corpus pipeline is wired. The substrate is configured to learn. What remains is to direct it at the operational work that matters most. ## The ten Totebox operational task families A survey of the GUIDE files across the three Totebox deployment clusters — personnel, corporate, and property — yields a clear taxonomy of the day-to-day scenarios a Totebox sysadmin encounters. These ten families cover roughly 95 percent of the operational scenarios present in the existing guides. They define what service-slm needs to learn. | Task family | Example surfaces | Common error states | |---|---|---| | **Node provisioning** | 9-step physical sequence: power, boot drive, MBA handshake, isolated container mount, Diode Standard, terminal lock | Boot-drive cryptographic mismatch; MBA handshake failure; Diode reverse-flow violation | | **Ingress operations** | MSFT Graph harvester, First Derivative emission, spool-daemon watchdog | Auth tokens expired; Outlook target folders missing; spool-daemon not monitoring `maildir/new/` | | **Sovereign data extraction (DARP)** | `tool-extract-content.sh`, `tool-extract-people.sh` | Cloud-side temp file not destroyed; SSH credentials missing; partial flatten step | | **Cold-storage egress** | Quarterly rsync to attached secure drive; JSON-to-CSV ledger extraction | Drive not mounted; rsync permission denied; partial transfer; integrity mismatch | | **SLM execution review** | Inspect `knowledge-graph/` drafts vs `verified-ledger/` finalised records | Drafts not advancing; AI extraction mismatch with Domain Glossaries | | **Sovereign search operations** | Tantivy index, boolean query at command terminal, DARP extraction by encrypted volume | Index not regenerating; query parser rejecting valid boolean; index drift | | **Identity and capability operations** | Tenant ID, Client ID, Secret Value — Zero-Touch Parser locks keys at 600 permissions; per-node MBA handshake | Keys in Git history; permission drift on `.env`; MBA registration desync | | **Adapter injection validation** | Drop adapter into `private-adapters/`; volume cap at 75–100 ops/cycle; read-only service-people query | Adapter writing to local store; volume cap exceeded; service-people write attempt | | **Audit-trail reconciliation** | Cross-check per-tenant audit ledger against [[worm-ledger-design|WORM Immutable Ledger]]; verify signed verdict events; resolve anchor timestamps | Audit row missing for an apprentice diff; verdict signature fails verification; anchor lag | | **Schema-conforming data import** | Imports following canonical Glossary CSV; Archetype + Chart-of-Accounts + Domain mapping at ingress | Term not in canonical Term_EN; Domain mismatch; YAML structural-tag failure | ## Why service-slm rather than an external API for these tasks Four structural properties make these workloads suited to service-slm over third-party inference APIs: **Sovereignty.** Every task family above touches tenant data — personnel records, corporate ledgers, real-property archives, audit trails. Routing these to an external service for routine sysadmin operations breaks the platform's data-sovereignty guarantee. service-slm running locally inside the customer's Doorman boundary is the only architecture where the data never leaves the customer-controlled substrate. **Latency.** Sysadmin work is high-frequency and low-latency in character. Diagnosing a stalled spool-daemon, reconciling an audit-row mismatch, or walking through a 9-step provisioning sequence requires a responsive assistant. Tier B (OLMo 3.1 32B Think on A100 80GB) delivers approximately 100–150 tokens per second at modest batch sizes [olmo3-allenai]. A Tier C external-API round-trip adds 5–15 seconds per call including network and provider queuing. On a multi-step provisioning walkthrough, that latency difference is material. ### Cost and personalisation at fleet scale **Cost at volume.** The planned amortised cost of Tier B on a preemptible A100 with idle-shutdown lands near $0.0001 per typical sysadmin request once the instance is shared across multiple customer deployments. Tier C equivalents at full prompt context exceed $0.05 per request. At sustained operational volumes — thousands of sysadmin queries per day across an active fleet — the differential compounds. [ni-51-102] [osc-sn-51-721] *Forward-looking cost figures reflect planned substrate economics; actual costs may differ based on model, provider pricing, and prompt size.* **Personalisation.** Per-tenant LoRA adapters trained on each customer's specific operational patterns — the actual error states they encounter, the command shapes they prefer, the glossary terms they use — make service-slm a more accurate assistant for that customer than a generic inference service can be at any scale. The structural basis for this is that the customer's data and interaction history stay within the customer's substrate, available for training, without any sharing or external transmission. **Continuous availability.** Tier A (local CPU model) operates during Tier B cold starts, spot preemption windows, or network-isolated periods. The Brief Queue Substrate keeps corpus capture continuous across all three failure modes. The training signal is never lost. ## The corpus shape: ten new task-type registrations | task_type | Trigger | Input shape | Output shape | Verdict criteria | |---|---|---|---|---| | `node-provision` | Operator runs provisioning and asks for step confirmation or failure diagnosis | Step number + terminal output + MBA state | Diagnosis + next-step instruction citing the guide | Step matches authoritative guide; no fabricated commands | | `ingress-diagnose` | Spool-daemon stall or auth failure | systemd status + last 50 log lines + credentials presence (redacted) | Root cause + remediation command sequence | Cause matches operator-confirmed root cause; commands syntactically valid | | `darp-extract` | `tool-extract-*.sh` failure or partial result | Script invocation + exit code + cloud-temp-file post-state | Cleanup commands + retry sequence | Zero cloud-temp residue after cleanup; retry preserves DARP guarantees | | `cold-storage-sync` | rsync integrity mismatch | rsync invocation + output + drive UUID | Verification + repair sequence | Verification matches checksum manifest; no data loss | | `slm-execution-review` | `knowledge-graph/` vs `verified-ledger/` divergence | Draft entity + verified entity + Domain Glossary | Diff explanation + advancement recommendation | Recommendation aligns with canonical Term_EN | | `sovereign-search-debug` | Tantivy index drift or parser rejection | Boolean query + index state + last Forge run timestamp | Diagnosis + index regeneration command | Regeneration succeeds without losing prior index | | `identity-cap-handshake` | MBA handshake failure | Hardware fingerprint + MBA state + per-node `.env` | Step-by-step recovery preserving Zero-Touch Parser invariants | Recovery preserves MBA registration; no key leakage; 600 permissions maintained | | `adapter-injection-validate` | Operator drops new private adapter | Adapter source + placement + volume-cap declaration | Pass or fail with specific structural-rule citations | Adapter passes Diode Standard; volume cap declared; no service-people writes | | `audit-row-reconcile` | Audit ledger row missing for a known brief | brief_id + commit SHA + ledger range | Trace locating the missing row + repair sequence | Repair preserves WORM append-only invariant | | `schema-import-validate` | CSV or JSON import fails the deterministic parser | Source row + Glossary Term_EN + expected Archetype | Reformatted row + structural-tag YAML | Term_EN is canonical; Archetype correct; YAML passes lexical grammar | Each new task-type starts at `review` stage. Promotion to `spot-check` requires at least 50 verdicts at a rate of 0.85 or higher. ## The four-stage training pipeline ### Capture and verdict signing **Stage 1 — Capture.** Every shadow brief lands a corpus tuple at `stage_at_capture: review`, `verdict: null`. Capture is automatic on every commit's post-commit hook via the [[apprenticeship-substrate|Brief Queue Substrate]]. No operator action; no additional compute. This stage is operational. **Stage 2 — Promote via signed verdict.** A senior identity — Master, Root, or operator at the chat surface — reviews captured tuples and signs verdicts using `ssh-keygen -Y sign -n apprenticeship-verdict-v1`. Verdict outcomes: Approve, Refine (producing a DPO pair), Reject, or Defer to Tier C. A weekly batch at session end is the sustainable cadence; per-commit signing does not scale. Signing is local cryptographic operation: zero compute cost. Verification uses the `identity/allowed_signers` file. ### Training and adapter composition **Stage 3 — Per-cluster LoRA training cycle.** When a task-type's corpus crosses 50 verdict-signed tuples, the trainer is triggered. Initial cycle runs CPU-only on the workspace VM (zero cost; informs Phase 1 scope). Production cycles move to Tier B once the Yo-Yo GPU instance is provisioned (planned cost: $1–3 per training run, hours of wall time) [olmo3-allenai]. LoRA rank 16–32, targeting attention and feed-forward layers. The trained adapter lands at `data/adapters/<task-type>-<cluster>-<tenant>-v0.1.lora` and is SSH-signed before deployment. *Training timeline and cost projections are planned targets, subject to corpus accumulation rate, hardware availability, and operator review. [ni-51-102] [osc-sn-51-721]* **Stage 4 — Multi-adapter composition at request time.** The Doorman composes up to three adapters per request: `base ⊕ engineering-pointsav ⊕ cluster-<name>` or `base ⊕ apprenticeship-pointsav ⊕ tenant-<name>`. Tier B vLLM Multi-LoRA serves the composition [vllm-multi-lora] [s-lora-2024] [lorax-predibase]. Every request's audit-ledger entry records the composed adapter set, making the influence of each adapter traceable. ### Beyond stage 4 — continued pretraining Stage 5 — continued pretraining into a PointSav-OLMo base — is a long-horizon trajectory planned for a future platform milestone, contingent on corpus accumulation crossing 50–100B tokens across all tenants. This is an intended capability; actual timeline depends on corpus growth rate and operational conditions [olmo3-allenai]. [ni-51-102] [osc-sn-51-721] ## Customer product tiers The service-slm-as-sysadmin capability is available across three customer tiers, each with a distinct deployment and cost shape: **Tier 1 — Single-Totebox SMB.** OLMo 3 7B Q4 running on the customer's appliance (8–12 GB consumer GPU or 8 GB CPU laptop). The Doorman handles routine sysadmin queries from the ten task families. Tier C external API access remains for cases the local model defers. Sovereignty: complete — no data flow to vendor infrastructure for routine operations. **Tier 2 — Multi-Totebox customer.** Tier 1 plus access to vendor-hosted Tier B (OLMo 3.1 32B Think) for harder queries. Per-tenant LoRA adapters trained on the customer's own corpus deploy on Tier B. Pricing: per-token at PointSav rates, planned to be structurally below the $95,000–$590,000 annual floors that gate comparable closed-source SMB offerings. *Planned pricing is intended to be structurally favourable relative to those alternatives; actual pricing is not yet set and is subject to operator decision before any commercial offer.* [ni-51-102] [osc-sn-51-721] **Tier 3 — PointSav-LLM specialist product.** A vendor-hosted model trained on the platform's aggregated multi-tenant corpus plus curated public corpus; a specialist in Totebox Archive operation, PointSav conventions, and the ten task families. L1 AI resolution of a planned 80–90 percent of customer queries autonomously; L2 human-in-the-loop escalation; L3 engineering for rare complex cases. Each L2 response feeds back as DPO training signal. *Tier 3 deployment timeline is planned for v0.5.0 (Q1 2027 per current roadmap); actual timing is subject to corpus accumulation rate and operator decision. [ni-51-102] [osc-sn-51-721]* [[service-slm]] is intended to become the operational assistant for [[totebox-os|Totebox]] deployments — an AI that helps an operator diagnose and resolve day-to-day sysadmin problems instead of requiring them to search documentation or escalate to engineering. This is a planned direction, not a shipped feature: what's real today is the underlying training substrate; what's planned is directing it at sysadmin work specifically. ## What's real today The [[apprenticeship-substrate|apprenticeship pipeline]] this plan would build on is real and operational. It captures a corpus tuple for any labeled task type at `stage_at_capture: review`, `verdict: null`, on every relevant commit — automatic, no operator action. A senior identity later reviews captured tuples and signs a verdict (approve, refine, reject, or defer) using an SSH signature verified against the workspace's signer registry. This capture-then- verdict-sign mechanism is generic — it already runs today for engineering task types, not sysadmin ones — and per-tenant LoRA adapters composed at request time by the Doorman are a real, working capability. **What is not real today**: no sysadmin task type has been registered in this pipeline. The specific taxonomy below, and the specific tools it names, are a proposal for how that capability could be extended to sysadmin work — not an inventory of what exists. ## The proposed task taxonomy A survey of the operational guides across Totebox deployment clusters suggests roughly ten recurring categories of sysadmin work a trained assistant could help with: node provisioning, ingress-pipeline diagnosis, sovereign data extraction, cold-storage egress, review of AI-drafted records against verified ones, search-index operations, identity and pairing operations, adapter deployment validation, audit-trail reconciliation, and schema-conforming data import. Each would need its own task type registered in the pipeline above, with its own corpus of real operator interactions, before an adapter could be trained for it. ## Why service-slm rather than an external API, if built The reasoning for keeping this work local rather than routing it to a third-party API applies regardless of whether the specific taxonomy above is what ships: every one of these task categories touches tenant data — personnel records, corporate ledgers, property archives, audit trails — and routing that data to an external service for routine sysadmin operations would break the platform's data-sovereignty guarantee. A model running inside the customer's own Doorman boundary is the architecture where the data never leaves the customer's own infrastructure. Per-tenant LoRA adapters, once trained on a customer's own operational corpus, would also make the assistant more accurate for that customer specifically than a generic service could be — the customer's own interaction history stays within their own substrate, available for training, without external transmission. ## Cost and timeline Any cost or timeline figures for this capability — per-request cost at scale, training-run cost, adapter promotion thresholds — are planned targets pending real operational data, not measured figures. [ni-51-102] [osc-sn-51-721] ## See also - [[service-slm]] — the service that implements this capability; Ring 3 Doorman specification - [[compounding-doorman]] — the operational pattern the Doorman implements; why it compounds - [[apprenticeship-substrate]] — the corpus capture and verdict-signing pipeline that feeds Stage 1 and Stage 2 - [[service-slm]] — the service that would implement this capability - [[compounding-doorman]] — the operational pattern the Doorman implements - [[apprenticeship-substrate]] — the real capture-and-verdict-signing pipeline this plan builds on - [[brief-queue-substrate]] — the durable queue that keeps corpus capture continuous across compute-tier transitions - [[pointsav-llm]] — the related, separately-planned commercial specialist-model product