The Orca Platform ArmyKnife Labs 2026 --- Licensed under CC BY-NC-SA 4.0 --- Table of Contents - [The Orca Platform](the-orca-platform) - [Table of Contents](table-of-contents) - [Introduction: Orca in One Sitting](introduction-orca-in-one-sitting) - [The Thesis: AI Work Is Regulated Operational Activity](the-thesis-ai-work-is-regulated-operational-activity) - [The Pipeline in One Breath](the-pipeline-in-one-breath) - [The Three Product Pillars](the-three-product-pillars) - [The Four-Plane Trust Model](the-four-plane-trust-model) - [The Mac → .114 Lab Stack](the-mac-114-lab-stack) - [deploy/docker-compose.yml (excerpt)](deploy-docker-compose-yml-excerpt) - [What Orca Is Not](what-orca-is-not) - [How This Book Is Organized](how-this-book-is-organized) - [Chapter 1: The Orca Architecture](chapter-1-the-orca-architecture) - [What Orca Is and Why It Exists](what-orca-is-and-why-it-exists) - [The Mac → .114 Pipeline Architecture](the-mac-114-pipeline-architecture) - [Port Allocation and Service Topology](port-allocation-and-service-topology) - [deploy/docker-compose.yml (excerpt)](deploy-docker-compose-yml-excerpt) - [The Three Capture Paths](the-three-capture-paths) - [The Four-Crate Dependency Graph](the-four-crate-dependency-graph) - [Claude Code Hooks Integration](claude-code-hooks-integration) - [Event Type System and Governance Events](event-type-system-and-governance-events) - [Capability Status Summary](capability-status-summary) - [Patterns Developed Here](patterns-developed-here) - [Anti-Patterns to Address](anti-patterns-to-address) - [Conclusion](conclusion) - [Chapter 2: AgentChron Agent](chapter-2-agentchron-agent) - [The Agent's Role in the Pipeline](the-agent-s-role-in-the-pipeline) - [The Watcher: Two-Phase Capture](the-watcher-two-phase-capture) - [Checkpoint and Spool: At-Least-Once Delivery](checkpoint-and-spool-at-least-once-delivery) - [The Sanitizer's Role in the Agent](the-sanitizer-s-role-in-the-agent) - [Push: HTTP Transport](push-http-transport) - [Remote Pull: SSH Fleet Harvest](remote-pull-ssh-fleet-harvest) - [Effective command (simplified):](effective-command-simplified) - [Fetch bytes from offset 1024 to 2048 (1024 bytes)](fetch-bytes-from-offset-1024-to-2048-1024-bytes) - [TCP Push Wire Protocol](tcp-push-wire-protocol) - [Generic Ingest and Config Scanning](generic-ingest-and-config-scanning) - [Companion Binaries](companion-binaries) - [The doctor Subcommand](the-doctor-subcommand) - [The ingest Subcommand in Detail](the-ingest-subcommand-in-detail) - [Patterns Developed Here](patterns-developed-here) - [Anti-Patterns to Address](anti-patterns-to-address) - [Conclusion](conclusion) - [Chapter 3: AgentChron Sink](chapter-3-agentchron-sink) - [The Sink's Role as Origin](the-sink-s-role-as-origin) - [The HTTP API Surface](the-http-api-surface) - [The Ingest Pipeline: ingestone()](the-ingest-pipeline-ingest-one) - [TCP Push Receiver](tcp-push-receiver) - [SQLite Storage Layer](sqlite-storage-layer) - [deploy/docker-compose.yml (excerpt)](deploy-docker-compose-yml-excerpt) - [Graph Writer](graph-writer) - [Plugin Framework](plugin-framework) - [Vector Writer and Auth](vector-writer-and-auth) - [The MCP Bridge](the-mcp-bridge) - [SQLite Performance Tuning](sqlite-performance-tuning) - [Patterns Developed Here](patterns-developed-here) - [Anti-Patterns to Address](anti-patterns-to-address) - [Conclusion](conclusion) - [Chapter 4: AgentChron Web](chapter-4-agentchron-web) - [Architecture: Store-Nothing BFF](architecture-store-nothing-bff) - [The Dashboard](the-dashboard) - [Session Scrubbing](session-scrubbing) - [Evidence Search](evidence-search) - [Context Graph Explorer](context-graph-explorer) - [Workflow Candidate Review](workflow-candidate-review) - [BFF Proxy Pattern](bff-proxy-pattern) - [Vendored Assets for Air-Gapped Deployment](vendored-assets-for-air-gapped-deployment) - [Deploy the web crate to an air-gapped host:](deploy-the-web-crate-to-an-air-gapped-host) - [Patterns Developed in This Chapter](patterns-developed-in-this-chapter) - [Anti-Patterns Addressed](anti-patterns-addressed) - [The LiveResponse Envelope and the SSE Future](the-liveresponse-envelope-and-the-sse-future) - [Askama Templates: Type-Safe HTML Rendering](askama-templates-type-safe-html-rendering) - [Error Handling and Degradation](error-handling-and-degradation) - [The Dashboard KPI Strip in Practice](the-dashboard-kpi-strip-in-practice) - [Session Timeline Rendering](session-timeline-rendering) - [Conclusion](conclusion) - [Chapter 5: Orca Guard](chapter-5-orca-guard) - [Guard's Position: Before the Model, Before the Disk](guard-s-position-before-the-model-before-the-disk) - [Three Binaries](three-binaries) - [Four Guard Modes](four-guard-modes) - [Production mode: blocks env-var documentation in UserPromptSubmit](production-mode-blocks-env-var-documentation-in-userpromptsubmit) - [Dev mode: allows env-var documentation](dev-mode-allows-env-var-documentation) - [Audit mode: allows but reports wouldblockinproduction=true](audit-mode-allows-but-reports-would-block-in-production-true) - [Human Paste Approval: /approve-paste](human-paste-approval-approve-paste) - [In a Claude Code session, the operator runs:](in-a-claude-code-session-the-operator-runs) - [This executes:](this-executes) - [Create approval](create-approval) - [First use: allowed (approval consumed)](first-use-allowed-approval-consumed) - [Second use: blocked (approval was one-use)](second-use-blocked-approval-was-one-use) - [QA and UAT Process](qa-and-uat-process) - [Start gateway with dead upstream](start-gateway-with-dead-upstream) - [Configuration and Allow-List Policy](configuration-and-allow-list-policy) - [LLM Gateway as Egress Defense](llm-gateway-as-egress-defense) - [Guard Integration Points](guard-integration-points) - [Patterns Developed in This Chapter](patterns-developed-in-this-chapter) - [Anti-Patterns Addressed](anti-patterns-addressed) - [Risk Matching: The Guard Rule Engine](risk-matching-the-guard-rule-engine) - [Exit Code Protocol: Design Rationale](exit-code-protocol-design-rationale) - [The scan-text Binary: CI and Pipeline Integration](the-scan-text-binary-ci-and-pipeline-integration) - [Scan a file for secrets before committing](scan-a-file-for-secrets-before-committing) - [Use in a pre-commit hook](use-in-a-pre-commit-hook) - [Guard and the Sanitizer: Division of Labor](guard-and-the-sanitizer-division-of-labor) - [Claude Code Hook Configuration](claude-code-hook-configuration) - [Installer Safety: Opt-In Guard Configuration](installer-safety-opt-in-guard-configuration) - [Guard Receipts and Audit Trails](guard-receipts-and-audit-trails) - [OpenBrain and SecureGit Guard Posture](openbrain-and-securegit-guard-posture) - [Conclusion](conclusion) - [Chapter 6: Secret Sanitization](chapter-6-secret-sanitization) - [Origin and Architecture](origin-and-architecture) - [The 18-19 Detection Patterns](the-18-19-detection-patterns) - [Shadowing Logic](shadowing-logic) - [JSON-Aware Sanitization](json-aware-sanitization) - [Sink-Side Plugin Framework](sink-side-plugin-framework) - [Known-Token Replacement](known-token-replacement) - [Findings as Metadata, Never Values](findings-as-metadata-never-values) - [Sanitization Across the Pipeline](sanitization-across-the-pipeline) - [Patterns Developed in This Chapter](patterns-developed-in-this-chapter) - [Anti-Patterns Addressed](anti-patterns-addressed) - [The sanitize() Function: Plain-Text Redaction](the-sanitize-function-plain-text-redaction) - [Detailed Pattern Analysis](detailed-pattern-analysis) - [The agentchronsecretfilter Metadata Block in Practice](the-agentchron-secret-filter-metadata-block-in-practice) - [Entropy-Based Detection: The Foundry's Additional Layer](entropy-based-detection-the-foundry-s-additional-layer) - [Testing the Sanitizer](testing-the-sanitizer) - [Pattern Design Philosophy](pattern-design-philosophy) - [Extending the Pattern Set](extending-the-pattern-set) - [The sanitizejsonvalue Recursion](the-sanitize-json-value-recursion) - [The detect() Function: Counting Without Revealing](the-detect-function-counting-without-revealing) - [Conclusion](conclusion) - [Chapter 7: MCP Gateway](chapter-7-mcp-gateway) - [Role and Positioning](role-and-positioning) - [Binding Contracts](binding-contracts) - [Twelve Built-In Roles](twelve-built-in-roles) - [Narrowing-Only Role Intersection](narrowing-only-role-intersection) - [Signed Receipts and Chain of Custody](signed-receipts-and-chain-of-custody) - [Policy Bundles and Compliance Reports](policy-bundles-and-compliance-reports) - [Guard Integration and Policy Modes](guard-integration-and-policy-modes) - [Observe-mode rollout: see what would be blocked without blocking](observe-mode-rollout-see-what-would-be-blocked-without-blocking) - [AgentChron MCP Server](agentchron-mcp-server) - [Patterns Developed in This Chapter](patterns-developed-in-this-chapter) - [Anti-Patterns Addressed](anti-patterns-addressed) - [The MCP Protocol: Background](the-mcp-protocol-background) - [Receipt Verification and Conformance Testing](receipt-verification-and-conformance-testing) - [The Receipt Envelope Shape](the-receipt-envelope-shape) - [Dry-Run Mode: Observe Before Enforce](dry-run-mode-observe-before-enforce) - [Next Required Work](next-required-work) - [AgentChron MCP Server: Query Surface Details](agentchron-mcp-server-query-surface-details) - [Role Enforcement: Concrete Examples](role-enforcement-concrete-examples) - [The Four-Plane Trust Context](the-four-plane-trust-context) - [Compliance Report Structure](compliance-report-structure) - [Conclusion](conclusion) - [Chapter 8: Presence Attestation](chapter-8-presence-attestation) - [Design Philosophy](design-philosophy) - [The Frozen 19-Field Receipt Body](the-frozen-19-field-receipt-body) - [Envelope Shape](envelope-shape) - [Validation Rules](validation-rules) - [Hardware Provider Abstraction](hardware-provider-abstraction) - [Create a presence envelope from a signedbody JSON on stdin](create-a-presence-envelope-from-a-signed-body-json-on-stdin) - [Verify an existing envelope](verify-an-existing-envelope) - [Emit only the canonical hash for a signedbody](emit-only-the-canonical-hash-for-a-signed-body) - [FleetNode.v1: Aggregation Output](fleetnode-v1-aggregation-output) - [The Signed-Geo Invariant](the-signed-geo-invariant) - [Freshness and Reachability](freshness-and-reachability) - [Chain of Custody Across the Platform](chain-of-custody-across-the-platform) - [Anti-Patterns Addressed](anti-patterns-addressed) - [The Approval Workflow: A Concrete Walkthrough](the-approval-workflow-a-concrete-walkthrough) - [Deployment Scenarios for Presence](deployment-scenarios-for-presence) - [The CLI in Detail](the-cli-in-detail) - [Cross-Platform Considerations](cross-platform-considerations) - [Summary](summary) - [Chapter 9: GraphRAG Ingestion](chapter-9-graphrag-ingestion) - [GraphRAG: The Live Retrieval Lane](graphrag-the-live-retrieval-lane) - [Store Architecture](store-architecture) - [Code Understanding via /v1/graph/context](code-understanding-via-v1-graph-context) - [Session Rules Hook: Real-Time Context Injection](session-rules-hook-real-time-context-injection) - [Library Artifact Linkage Patterns](library-artifact-linkage-patterns) - [The Feedback-Loop Safety Gate](the-feedback-loop-safety-gate) - [Raw/Bronze Never Enter GraphRAG](raw-bronze-never-enter-graphrag) - [The Qdrant Vector Writer: Honest Stub](the-qdrant-vector-writer-honest-stub) - [Real-Time Comprehension Layer (2027 Roadmap)](real-time-comprehension-layer-2027-roadmap) - [Anti-Patterns Addressed](anti-patterns-addressed) - [Summary](summary) - [The Graph Context Response Shape](the-graph-context-response-shape) - [Batch Writing for Backfill](batch-writing-for-backfill) - [The MCP Tool: agentchrongraphcontext](the-mcp-tool-agentchron-graph-context) - [The Three-Consumer Pattern](the-three-consumer-pattern) - [The Real-Time Comprehension Layer: Design Preview](the-real-time-comprehension-layer-design-preview) - [Chapter 10: Data Foundry](chapter-10-data-foundry) - [Thesis: The Data Engine Is the Moat](thesis-the-data-engine-is-the-moat) - [Raw Archive](raw-archive) - [Bronze: Normalized Canonical Turns](bronze-normalized-canonical-turns) - [Silver: The Governance Core](silver-the-governance-core) - [Gold: Curated High-Signal Data](gold-curated-high-signal-data) - [Quarantine: Fail-Closed by Design](quarantine-fail-closed-by-design) - [Manifests and Reproducibility](manifests-and-reproducibility) - [Dataset Products and Reviews](dataset-products-and-reviews) - [Anti-Patterns Addressed](anti-patterns-addressed) - [Summary](summary) - [A Worked Silver Example](a-worked-silver-example) - [The Implementation Plan](the-implementation-plan) - [Evaluation Suites](evaluation-suites) - [Success Criteria](success-criteria) - [Governance Rules Summary](governance-rules-summary) - [Chapter 11: ContextOS Edge](chapter-11-contextos-edge) - [Context Block API](context-block-api) - [The Compose Algorithm](the-compose-algorithm) - [Build-Once, Two-Consumers](build-once-two-consumers) - [Brain Bundle Schema v0](brain-bundle-schema-v0) - [Grants Travel, Credentials Do Not](grants-travel-credentials-do-not) - [Memory Scoping and Normalization](memory-scoping-and-normalization) - [Operational Memory Library](operational-memory-library) - [The Workflow Library Bridge](the-workflow-library-bridge) - [Patterns and Anti-Patterns](patterns-and-anti-patterns) - [Conclusion](conclusion) - [Chapter 12: Deployment Guide](chapter-12-deployment-guide) - [Docker Compose: The Reference Deployment](docker-compose-the-reference-deployment) - [deploy/Dockerfile.sink](deploy-dockerfile-sink) - [syntax=docker/dockerfile:1.7](syntax-docker-dockerfile-1-7) - [Do not copy rust-toolchain.toml here. It uses channel="stable", which makes](do-not-copy-rust-toolchain-toml-here-it-uses-channel-stable-which-makes) - [rustup update inside Docker and can break offline/repeatable deploy builds.](rustup-update-inside-docker-and-can-break-offline-repeatable-deploy-builds) - [The rust: