Neuruh Internal Canon | July 2026

Organism Complete Code and Operations Bible v1.0

Canonical architecture, runtime, governance, N-Cell protocol, terminal custody, platform gates, code, and ratification runbook. A faithful standalone demo of the 41-page source PDF. All figures below are source claims from the July 16-17, 2026 snapshot, not verified live facts.

DocumentNeuruh Organism Complete Code and Operations Bible
Version1.0
OwnerJeramie Hicks / Neuruh
Snapshot dateJuly 16-17, 2026
System classModulated Agentic Opportunity Organism
Runtime statusIntegrated with final durability blockers; not yet ratified canonical baseline
Source authorityRepository commits and receipts outrank this document when they conflict
Source fileNeuruh_Organism_Complete_Code_and_Operations_Bible_v1.0.pdf (41 pages, 1.1 MB)

SOURCE CLAIM: every dated number, commit, port, count and status on this page comes from the source PDF snapshot of July 16-17, 2026. Nothing here re-verifies live state.

Neuruh Hub | Sibling sites: Token-Swap Studio, Modular AI Research Agent, Intent Preservation Protocol

Overview and section map

How to use this Bible (source): Parts I-V are the protected system doctrine and integration map. Parts VI-VIII are the N-Cell technical and validation specification. Parts IX-XI are the live operations, terminal custody and platform-gate runbook. The appendices are the reference code and executable checklist. Before any production action, compare this snapshot with the latest branch, process, database and receipt truth.

Authority notice (source): This Bible consolidates doctrine, contracts, current operational truth, and reference code. It does not replace Git history, database migrations, signed receipts, or provider dashboards. Secrets, passwords, private API keys, and exposed credential values are deliberately omitted.

Source corpus: Neuruh Sovereign Opportunity Organism Codex V2; Full Notion Audit, Canon Reconciliation and Modulated Agentic System Codex V3; Neuruh Organism Finish Directive and bootstrap launcher; N-Cell theory, geometry, classification and validation transcripts; P1.1 terminal and specialist receipts from ccT1 through ccT17; current platform, subscription, credit and operational gate audit.

PartSubjectPurpose
ICanonical DoctrineDefines what Neuruh is and what may not be duplicated or renamed.
IIOrganism ArchitectureMaps the spines, t0-t6 lanes, protected components, products and domains.
IIIRuntime and Repository TruthRecords the P1.1 state, branches, services, gaps and source-of-truth rules.
IVGovernance and Human AuthorityDefines allow, escalate, block, approval and receipt requirements.
VMemory and LearningDefines Vault, AnythingLLM, Qdrant, PMLA, parity and single-writer custody.
VIN-Cell TheoryFormalizes the eight-bit geometry and the control-plane hypothesis.
VIIN-Cell/64 ContractDefines bit banks, masks, hashes, schemas and receipt binding.
VIIIValidation ProgramDefines parity, governance, reproducibility, learning and cross-domain tests.
IXOperations and Terminal CustodyAssigns terminal roles, launch order, rollback and incident discipline.
XPlatform, Subscription and Credit GatesLists provider dependencies, risks, costs and decision rules.
XIRatification RoadmapDefines the finite path from integrated estate to canonical durable baseline.
Appendices A-FCode and ChecklistsFull reference code, JSON schemas, shell scripts and directives.

Completeness meter

Tracks the N-Cell header fields in the Explorers tab. A header is complete only when nodeId, runId, all six masks, confidence and risk are set.

0% complete

Try-it walkthrough

  1. Open the Explorers tab and press Load sample: IAR live swap run. The N-Cell header fills from trace facts.
  2. Change the proposed authority mask and watch effective authority recompute as proposed AND allowed AND available.
  3. Open the Receipt chain explorer, seal two receipts, verify the chain, then tamper with one and verify again.
  4. Use Copy share link to copy a URL hash that restores your exact explorer state on load.
  5. Work the Acceptance checklist in Appendix F against the controlled live sequence in Part IX.

How it works / What this is not

How it works

This page is a static, single-file demo. Tabs hold the full section text of the source. The explorers re-implement the source math in the browser: byte masks, authority intersection, rotations, geometry, SHA-256 canonical hashing, and receipt chaining. No server, no account, no live system is contacted.

What this is not

Not the organism. Not a live runtime, not a deployment, not a governance authority, and not proof that any service is running. It cannot start, stop, or swap IAR, AXON, Qdrant, or any production service. It does not contain the full source of any Git repository; Git remains the source-code truth.

Part I: Canonical Doctrine

SOURCE CLAIM: snapshot July 16-17, 2026. Status at that date: integrated with final durability blockers, not yet ratified.

1. Founding definition

Neuruh is a sovereign, modulated agentic opportunity organism. It continuously senses fragmented signals across people, property, businesses, markets, technology, physical assets, knowledge, and human workflows; converts those signals into evidence-backed opportunity models; dynamically composes the right agents, models, tools, memory, policies, and interfaces for the environment; and executes the strategy that creates, captures, protects, or compounds value.

Public-safe definition: Neuruh finds hidden value before the market recognizes it, proves where that value exists, and deploys the systems required to capture it.

Strategic rule: One organism internally. A small number of brutally clear outcomes externally.

2. Convergence program, not a greenfield build

The estate already contains substantial architecture, repositories, agents, products, receipts, data, and bounded autonomous behavior. The current program is canonicalization, integration, validation, supervision, and completion. New named platforms are prohibited unless an explicit architecture decision proves that the existing organism cannot absorb the requirement.

3. Non-negotiable doctrine

4. Status vocabulary

StatusMeaning
LIVERunning and semantically verified against its contract.
DEGRADEDPresent and usable, but one or more non-critical capabilities are unavailable or stale.
STALEExists, but freshness, provenance or current applicability is not proven.
BUILT-NOT-WIREDImplemented and testable but not connected to the canonical runtime.
SPEC-ONLYDocumented but not implemented.
SUPERSEDEDReplaced by a canonical implementation; retained for history.
BLOCKEDCannot progress without a named gate.
UNKNOWNInsufficient evidence to classify.

Part II: Organism Architecture

5. Canonical closed loop

SENSE - NORMALIZE - RESOLVE - SCORE - COMPOSEGOVERN - EXECUTE - EMIT - MEASURE - LEARNLEARN feeds back into SENSE. Loop closes only whenmeasured outcomes change future selection.
Figure 1. The canonical Neuruh loop (source). The loop is: sense, normalize, resolve, score, compose, govern, execute, emit, measure, learn. The last step must change future selection only after controlled evaluation. A system that produces outputs but does not measure economic or operational outcomes is not yet a learning organism.

6. The two spines

REVENUE SPINEsignals - LandOS - CRM - human action - outcomes - reweightKNOWLEDGE SPINENotion canon - Vault/Galaxy - AnythingLLM and Qdrant - AXON/IAR - receipts - canon
Figure 2. Revenue and knowledge spines (source).

7. t0-t6 execution lanes

The lane model describes execution placement. It does not replace the protected organism anatomy. t0 is the accountable human operator; t1 contains deterministic engines; t2 contains canonical knowledge; t3 contains AEGIS/IAR; t4 emits bounded Worlds and products; t5 is CRM and relationship workflow; t6 is the cockpit and observable command surface.

t0 HUMAN | t1 ENGINES | t2 KNOWLEDGE | t3 AEGIS/IARt4 WORLDS | t5 CRM | t6 COCKPIT
Figure 3. Current execution-lane translation model (source).

8. Protected components and responsibilities

ComponentCanonical responsibilityMust not become
SALSense, converge and propose relevant signals and neighborhoods.Execution plane or memory store.
AEGIS / IARClassify intent, compose candidate topology, route models and apply policy constraints.A second AXON or direct production writer.
AXONCarry events and governed task execution across approved edges.Decision authority or unrestricted shell.
MOTHERHealth, clock, semantic status matrix and restart policy.Primary orchestrator or product UI.
FATHERProtected founder/constitutional authority role where defined.Generic service name or duplicate governance layer.
PMLA / VaultPersistent memory, canon, evidence, history and controlled promotion.A raw vector-only store.
AnythingLLMHuman-facing citation and workspace RAG derived from the Vault.Canonical source corpus.
QdrantMachine-facing vector retrieval for AXON/IAR.Replacement for AnythingLLM or the Vault.
Governance / TrustLayerAllow, escalate, block and receipt authority decisions.A permissive post-hoc logger.
World EmitterPackage approved subgraphs as reports, products, APIs and Worlds.A duplicate organism.
Cockpit / Territory organismVisualize health, topology, approvals, evidence and outcomes.Architecture authority or hidden writer.
APG Land CRMHuman relationship and workflow surface for the real-estate World.The organism itself.

9. Products and domains

Every product is a cut through the organism. Internally, breadth is preserved as reusable sensors, organs, recipes, interfaces and emitters. Externally, each World is sold as a narrow outcome.

DomainRepresentative organs and surfacesPrimary value
Real estate / landLandOS, APG, REI-X, UnderwriteX, Territory EngineAcquisition, zoning, valuation, development and relationship execution.
Business acquisitionBusiness Buyability, HVAC Acquirer, ROOF-OPS, BookeitSuccession, operational modernization and consolidation.
Resale / collectiblesResale Genie, CartIQ, Collector AI, Record ListerCataloging, pricing, arbitrage and asset conversion.
Knowledge / IPArchives, Neurator, StudioGPT, World EmitterConvert buried knowledge into licensed systems and products.
Tax / financeTaxShield, NIMDP, deterministic underwritingLegal optimization, validation and capital intelligence.
Defense / infrastructureSONA-X, SCADS, RPF, PowerHouseSensing, resilience, communications and governed physical systems.
Founder continuityFounderOS, MIRROR-X1, Universal TimelineIdentity, memory, strategy and succession continuity.

Part III: Runtime and Repository Truth

10. P1.1 snapshot, July 16, 2026

Current ruling (source claim): The estate is integrated with final durability blockers. It is not yet the ratified canonical baseline.
AreaVerified sourceLive state / gap
Visual organismcodex/p1.1-durable-organism @ 45c3f45LIVE at http://127.0.0.1:3010/; semantic tree byte-identical to approved ccT11 branch; unsupervised PID at snapshot.
IARcodex/p1.1-iar-ollama-runtime @ 8ab0c59Final branch clean and 20/20 tests; old long-running PID still served pre-swap code at snapshot.
AXON Gatewaycodex/p1.1-axon-governed-gateway @ 56b4f54Final branch reported green; old long-running gateway PID still served pre-swap v2.1.0 at snapshot.
Cockpitcodex/p1-organism-integration @ b241789Launcher and status tests green; live status CLI hang remains a durability defect until final process swap and supervision.
MOTHERcodex/p1.1-mother-v3 @ 4fcd9d1Semantic health matrix packaged; regenerate live sample after final runtime replacement.
LandOS callable safetymigration 037 / branch codex/p1.1-durable-organism41 real callable, zero synthetic, zero lacking clear evidence; canonical view ownership must be documented.
Field observationfeat/field-p6-observation-weight @ 11ebfcfCode packaged; additive migration 038 remains pending.
APGorigin/main @ c35c9deRoutes compile; 616 entity and 107 government leads; authenticated pixel proof pending.
MemoryccT12 approved manifest1,418 authorized Galaxy docs, one blocked exception; unauthorized concurrent Qdrant backfill created an incident under reconciliation.
StorageMac data volumeApproximately 2.9 GiB free at latest operator reading; repeated ENOSPC incidents make long-running services unsafe.

11. Canonical repository root and worktree doctrine

~/neuruh-repos/NeuruhAI/
~/neuruh-worktrees/
~/neuruh-workspace/
~/neuruh-workspace/audit-output/

12. Service and port map

ServicePortRoleP1.1 ruling
APG CRM3000Real-estate operator interfaceLocal route proof; auth gate pending.
AnythingLLM3001Human-facing RAGLocal desktop lifecycle and disk dependent.
Qdrant6333Machine RAGIncident reconciliation required.
IAR / AEGIS8090Decision and model routingSwap to 8ab0c59 required.
Optional Bonsai8100Optional optimized local backendMissing weights; non-blocking.
AXON Gateway8300Governed task gatewaySwap to 56b4f54 required.
AXON daemon8788Execution event fabricKeep stable during gateway swap.
Governance8848Allow / escalate / block evaluatorLoopback-only.
Ollama11434Local inferencellama3.2:3b verified; storage dependent.
Territory organism3010Primary visual organismCanonical local route is /.
Cockpit read model4789Status seam used by organism UIDown in latest ccT11 audit; UI honestly shows snapshot.

13. Source-of-truth hierarchy

  1. Live process provenance, semantic health and execution receipts.
  2. Git commit, branch, worktree state and tests.
  3. Database schema and migration history.
  4. Canonical contracts and manifests.
  5. Vault source corpus and SHA-256 identity.
  6. Notion canon and approval records.
  7. Historical transcripts, plans and narrative documents.

A newer document does not automatically outrank an older verified commit. A newer file may be a copy of stale content. Freshness must be established from content, commit identity, process CWD, timestamps, hashes and receipts together.

Part IV: Governance, Trust and Human Authority

14. Authority intersection

The executable authority is the deterministic intersection of what the system proposes, what policy allows, and what is currently available:

effective = proposed & allowed & available
blocked   = proposed & ~effective

No model instruction, prompt override, direct route or missing credential may expand effective authority. Unavailable capabilities fail closed. Policy is checked before execution and again at the final write or send boundary. Try it in the Explorers tab.

15. Non-negotiable human gates

Action classDefaultRequired evidence
Read public/internal evidenceMay be automated within scopeTenant, sensitivity and path authorization.
Draft analysis or communicationMay be automatedSource citations, uncertainty and no send.
External message, email, SMS or callHuman approvalRecipient, content hash, channel, compliance and approval receipt.
Production database writeHuman approvalMigration or write plan, dry-run, rollback, target and approval.
Spend or financial commitmentHuman approvalAmount, vendor, purpose, cap and receipt.
Deploy or pushHuman approvalBranch, SHA, tests, environment and rollback.
Delete or destructive migrationHuman approvalImmutable backup, exact scope and recovery proof.
Credential changeHuman approvalRotation plan, dependent services and no secret disclosure.
Schema promotionHuman approvalCompatibility tests, idempotence, ownership and rollback.

16. Governed executor contract

17. Receipt doctrine

Receipts are not decorative logs. They are the proof that binds objective, evidence, topology, authority, code identity, tests, action, outcome and rollback. Receipt chains are append-only and hash-linked from GENESIS. A receipt that cannot verify is evidence of a break, not a status to be ignored.

Receipt fieldPurpose
run_id / task_idStable execution identity.
objectiveHuman-readable intent.
input hashesExact evidence and manifest identity.
code hashes / commitsImplementation identity.
N-Cell headerTopology and effective authority fingerprint.
governance decisionAllow, escalate, block or audit with reason.
tests and readbackProof that execution matched the proposal.
outcomeOperational or economic result.
previous_receipt_hashChain continuity.
receipt_hashTamper detection.

Part V: Memory, Learning and Corpus Custody

18. Canonical memory roles

SystemRoleWrite authority
NotionHuman canon, approvals, registries and status.Human and approved canon processes.
Vault / GalaxyGit-backed sovereign corpus and working memory.Controlled file writers with receipts.
AnythingLLM / LanceDBHuman-facing citation and workspace RAG.Single memory writer.
QdrantMachine-facing vector retrieval for AXON/IAR.Single memory writer.
PMLA / Dream / behavioral memoryEpisodic, behavioral and consolidated memory.Controlled promotion only.
SupabaseOperational truth, CRM and production state.Domain single writer plus migrations.
GitHubSource-code truth.Branch/worktree process and human push gate.
ReceiptsImmutable execution evidence.Append-only writers.

19. Shared document identity

The same canonical document identity and SHA must travel across the Vault, AnythingLLM, Qdrant, retrieval citations and receipts. The ratified identity observed in the current corpus is:

document_id     = "doc_" + sha256(vault_relative_path)[:16]
qdrant_point_id = int(sha256(document_id)[:15], 16)
content_sha256  = sha256(file_bytes)

Legacy UUID5 identifiers remain as cross-references where they exist. They are not silently rewritten in live indexes. Any identity conflict is recorded and resolved through an explicit migration or canon amendment. Try the identity calculator in the Explorers tab.

20. Current Galaxy reconciliation

PopulationCountRuling
03-GALAXY candidates1,419Dry-run scope.
Authorized for Phase B1,418Eligible after storage, Qdrant and explicit GO.
Blocked manifest exception1agent.environmental-risk.md; do not mint outside ratified manifest.
Previously ledger-reported Qdrant points60Must be live-verified.
AnythingLLM writes authorized0Held.
Qdrant writes authorized0Held.
Memory incident (source claim): A separate integration lane launched and relaunched a full-corpus Qdrant backfill while ccT12 remained the designated single writer. The resulting store must be reconciled read-only before any continuation, deletion or repair.

21. Learning is outcome-linked promotion

Memory is not learning by itself. Learning requires a closed loop in which a prior outcome changes a later topology or ranking, the change is evaluated, and the improvement is verified. The promotion sequence is:

propose -> test -> shadow -> canary -> promote
                        \-> rollback at every stage

Part VI: N-Cell Theory and Mathematical Basis

22. The original geometric observation

A byte contains eight binary positions with weights 128, 64, 32, 16, 8, 4, 2 and 1. A custom coordinate key can assign each position to a point or direction. The corrected right-angle mapping uses points on y = 8 - x and y = x, meeting at (4,4).

P(p) = (p, min(p, 8 - p))
W(p) = 2^p
p in {0,1,2,3,4,5,6,7}

The vectors from C=(4,4) to A=(5,3) and B=(3,3) are (1,-1) and (-1,-1). Their dot product is zero, so the angle at C is 90 degrees. The mathematics is standard; the potentially distinctive contribution is the Neuruh control contract built on top of the encoding.

P(p) = (p, min(p, 8-p)) | C=(4,4) A=(5,3) B=(3,3)C (4,4)A (5,3)B (3,3)(1,-1) . (-1,-1) = -1 + 1 = 0, so angle ACB = 90 degrees
Figure: the corrected right-angle mapping. Verify it in the geometry calculator in the Explorers tab.

23. Eight-neighbor topology

The strongest operational interpretation assigns one bit to each local direction or connection family. One byte then describes which edges are active at a node. Storing directions clockwise creates a real geometric relationship: rotating the byte one position corresponds to a 45-degree topology rotation; two positions correspond to 90 degrees; four positions correspond to 180 degrees.

rotate45(mask)  = ROL8(mask, 1)
rotate90(mask)  = ROL8(mask, 2)
rotate180(mask) = ROL8(mask, 4)
delta           = previous XOR current

24. What N-Cell is

N-Cell isN-Cell is not
Topology fingerprintThe organism or its intelligence.
Authority certificateA replacement for Governance.
Runtime observability headerA replacement for health endpoints.
Cross-repository contractA second orchestrator.
Receipt payload and comparison keyA replacement for Vault or evidence.
Potential learning indexProof of learning by itself.

N-Cell is a proposed runtime ABI and control-plane fingerprint for the existing organism. It gives separate repositories the same answer to what was active, connected, authorized, available, blocked, remembered, completed and emitted. It does not store the full semantic record or replace the systems that created the evidence.

25. The highest-level hypothesis

The dominant AI hypothesis optimizes the model. Neuruh proposes that system-level intelligence is also a function of the computational organization assembled around the objective: topology, authority, memory, evidence, tools, economics and output contract. N-Cell is the instrument that records those variables consistently.

Outcome Y = F(Model M, Topology G, Tools T, Authority A, Memory R, Evidence E)
Most systems optimize M.
Neuruh also measures and optimizes G, T, A, R and E.

Part VII: N-Cell/64 Contract

26. Eight coordinated bytes

N-CELL/64: 8 BYTES x 8 BITS1 organ | 2 route | 3 authority | 4 memory5 lifecycle | 6 governance | 7 confidence/risk | 8 outputCompiled from actual trace and receipt facts.Never self-reported by a model. Never carries secrets or raw PII.
Figure 4. N-Cell/64 shared header (source).
ByteMaskCanonical meaning
1organMaskWhich protected organs participate.
2routeMaskWhich edges or port families may carry events.
3authorityMaskWhat the run may inspect, compose, execute, write or spend.
4memoryMaskWhich memory scopes may be accessed.
5lifecycleMaskWhich workflow stages have been reached.
6governanceMaskAllow, escalation, blocking, audit and availability state.
7confidence / riskQuantized evidence confidence and escalation level.
8outputMaskWhich outputs or economic outcomes were approved and produced.

27. Example organ and authority bytes

Organ byte
Bit 7 Security
Bit 6 Memory
Bit 5 Routing
Bit 4 Composition
Bit 3 Governance
Bit 2 Execution
Bit 1 Emission
Bit 0 Outcome

Authority byte
Bit 7 Inspect
Bit 6 Classify
Bit 5 Compose
Bit 4 Evaluate
Bit 3 Execute internally
Bit 2 Write externally
Bit 1 Spend
Bit 0 Human-approved

28. Required invariants

29. Binding order

  1. AEGIS parity wrapper: execute(request) versus executeWithNCell(request).
  2. Bind the header into existing hash-chained AEGIS receipts.
  3. Bind the same header into LandOS reproducible run manifests.
  4. Bind approved World Emitter manifests.
  5. Render current, previous and XOR state in the Cockpit.
  6. Index topology-to-outcome history in the Vault after parity is proven.
  7. Promote any behavior-changing topology optimizer only after shadow and canary tests.

Part VIII: Validation and Claims Contract

30. Six core hypotheses

HypothesisRequired proof
H1: topology matters independently of modelsUsing identical models, tools, inputs and data, different approved topologies produce measurable differences in quality, cost, latency or violations.
H2: observability paritystripNCell(executeWithNCell(x)) equals execute(x).
H3: governance maskingNo action outside proposed AND allowed AND available may execute, including direct-route attempts.
H4: reproducibilitySame input, code, schemas, topology, authority and deterministic seed reproduce the structural path.
H5: outcome-indexed improvementA recorded success/failure changes later selection and improves a comparable run.
H6: cross-domain contractThe same core schema describes AEGIS, LandOS, APG, World Emitter and one unrelated World without redefining core bits.

31. Organism proof gates

GateTargetCurrent position
Topology utilityAt least 15% task-success improvement or 30% cost reduction at equal quality.Architecture and bounded evidence exist; controlled baseline study still required.
Memory-to-actionPrior outcome changes a later run correctly.Memory infrastructure exists; continuous closed-loop proof remains a ratification requirement.
Self-repairDetect fault, reconfigure, complete, receipt and learn.Bounded write-fail-diagnose-rewrite-pass evidence exists; replicate across fault classes.
Cross-domain transferSame protocol across at least five Worlds with limited manual orchestration.Strong estate breadth; formal repeated benchmark remains.
Autonomous skill acquisitionDetect gap, construct/test capability, govern, register and reuse.Builder and self-extension evidence are partial; one continuous receipt required.

32. Claims discipline

ClaimAllowed language
AGINo. Neuruh has not demonstrated human-level general performance across unrelated domains.
ASINo. Orchestration of existing models is not broadly superhuman intelligence.
AGI-enabling infrastructureYes, as an architectural classification with explicit evidence boundaries.
Artificial computational organizationYes. This is the strongest current systems category.
Computational organismArchitecturally credible and partially operational; biological properties must be individually demonstrated.
New systems categoryPotentially: a governed adaptive opportunity organism / artificial computational organization.

Part IX: Operations, Incidents and Terminal Custody

33. Terminal ownership at the current checkpoint

TerminalCanonical responsibilityCurrent instruction
ccT4Integration ledger and provenance reconciliationNo background jobs, cache deletion or memory writes. Document the memory incident and runtime provenance gap.
ccT11Live Territory organism supervisorRead-only supervision of port 3010 and source cleanliness.
ccT12Sole memory reconciliation authorityRead-only post-incident diff until explicit GO.
ccT16Final IAR branch ownerHold 8ab0c59 until controlled live swap.
ccT17Final AXON gateway branch ownerHold 56b4f54 until IAR live verification passes.
ccT13LandOS schema ownerPrepare migration 038 dry-run; no live apply.
ccT1APG visual proofWait for operator authentication; no credential sharing.
ccT5HelmAIParked outside the P1.1 critical path.
ccT2 / ccT3Engine and staged tax-sale custodyHolding; no duplicate memory or promotion work.
Other specialist terminalsPackaged lanesRead-only unless explicitly recalled.

34. Incident discipline

35. Controlled live sequence

1. Stop and receipt unauthorized memory work
2. Recover at least 10-15 GiB durable headroom
3. Swap IAR to 8ab0c59 and verify provenance + Ollama
4. Swap AXON-GW to 56b4f54 and verify governed tools
5. Apply migration 038
6. Run final live canaries against final PIDs
7. Controlled cold reboot
8. Read-only memory reconciliation
9. One approved ccT12 completion run
10. Ratify canonical baseline

36. Rollback doctrine

Every live change is performed one component at a time. Capture pre-swap health, process, CWD and commit. Stop cleanly. Launch from a verified clean worktree. Verify semantic health, receipt integrity and a harmless canary. Roll back immediately if the new process fails its contract. Never combine IAR, AXON, database and memory mutations into one unauditable event.

Part X: Platform, Subscription and Credit Gates

37. Gate classes

ClassDefinitionDecision rule
Hard organism gateBlocks local durable operation or canonical proof.Resolve before ratification.
Cloud production gateBlocks hosted products, data or identity.Preserve data and domains before promotion.
Revenue-spine gateBlocks communication, data enrichment or sales execution.Fund only when one live workflow is ready.
Optional providerImproves capability but has a local or alternate path.Do not let it block the baseline.
Deliberate human gateExists by governance design.Never bypass.

38. Immediate non-subscription gates

GateStatus at snapshotImpactRequired action
Storage headroomCritical; about 2.9 GiB free and repeated ENOSPCThreatens Qdrant, AnythingLLM, Ollama, Colima, builds and receipts.Recover 10-15 GiB durable space before heavy work.
Memory custodyIncident under reconciliationCorpus identity and parity cannot be trusted until reconciled.ccT12 read-only diff, then one explicit completion GO.
IAR live provenanceFinal source ready, old live PID at snapshotOllama-first routing not yet proven live on final code.Controlled swap to 8ab0c59.
AXON-GW live provenanceFinal source ready, old live PID at snapshotGoverned executor not yet proven on final live gateway.Swap to 56b4f54 after IAR.
Migration 038PendingField-observation persistence incomplete.Dry-run, approve, apply and canary.
Credential rotationKnown exposed DB credential incidentBlocks safe promotion and enterprise trust.Rotate under explicit human approval; never print replacement.

39. Reported provider and subscription register

Verification warning (source): The following statuses were reported from the July 16 account/mailbox audit. Provider dashboards and current invoices must be rechecked before payment, cancellation, data export or reactivation.
ProviderReported stateWhat it gatesP1.1 priority
VercelRepeated failed $20 payments / shutdown noticesHosted Next.js products, previews, environment variables and domains.High for cloud production; not required for local organism.
SupabaseSome projects reportedly paused or nearing permanent freezeAPG auth, operational data, RLS and migration state.Critical preservation audit.
Anthropic / ClaudeFunctionally available; API billing and cap unconfirmedCloud fallback and some coding workflows.Medium; Ollama keeps local path alive.
OpenAICurrent credits and active dependencies unknownOptional models, embeddings, voice or image workflows.Low until a specific organ proves dependency.
TwilioTrial reportedly near exhaustion with $4.87 balanceVoice, SMS, reminders and outreach.High only when compliant revenue loop is ready.
Google WorkspaceReported canceled after suspensionCustom-domain email, Shared Drive, OAuth, calendars and service accounts.High identity and data audit.
GitHubLocal repos and remotes work; billing/Actions/LFS unknownSource collaboration, CI and protected promotion.Medium before push.
NotionHistorical canon available; current plan/API limits unknownHuman canon, approvals, registries and evidence packaging.Medium; Vault reduces runtime dependence.
AnythingLLMLocal desktop, not primarily a subscription gateHuman RAG and citations.Operational/storage gate.
OllamaLocal and workingLocal inference.Core cost-control path.
BonsaiWeights missing; optionalOptimized local backend.Low; non-blocking.
CursorReported failed $20 paymentsPremium editor features.Low; not an organism dependency.
REsimpliTrial reportedly endedThird-party lead/CRM workflows.Low; APG is canonical interface.
InvestorBaseReported repeated $299 payment failuresInvestor/buyer data and disposition workflows.Do not restore without measured ROI.

40. Subscription doctrine

No subscription is renewed merely because it exists. Every provider must have an owner, system dependency, monthly cost, quota, renewal date, failure behavior, replacement option, data-export plan and measured revenue contribution.

No subscription without:
  owner
  dependency
  monthly cost
  quota or credits
  renewal / expiry
  failure behavior
  replacement option
  data custody / export
  measured revenue contribution

41. Funding order

  1. Storage capacity and backup integrity.
  2. Supabase data preservation and project survival.
  3. Domain, DNS, email and Google Workspace identity impact.
  4. Vercel only after a deployment inventory proves what should remain hosted.
  5. Anthropic fallback budget with an explicit spend cap.
  6. Twilio only when compliant outreach is ready to produce measurable revenue.
  7. Unique property, GIS, DNC and skip-trace providers tied to one live workflow.
  8. All other providers must prove return on investment before renewal.

Part XI: Ratification and Commercial Position

42. Finite path to canonical baseline

StageExit criterion
Incident freezeNo duplicate memory process; incident and provenance ledgers complete.
Durable hostAt least 10-15 GiB free, supervised services and no ENOSPC.
IAR canaryFinal commit live, active_backend Ollama, provenance chain intact.
AXON canaryFinal gateway live, raw-tool bypass closed, governed receipt chain valid.
LandOS canaryMigration 038 live, payload binds, rollback proven.
APG canaryAuthenticated owner views and VA redirect visually proven.
Memory canaryAnythingLLM and Qdrant identity parity on representative queries.
Cold rebootAll critical services return without manual reconstruction.
RatificationReceipt set names final commits, PIDs, CWDs, schemas, stores and outcomes.

43. Honest classification

DimensionCurrent assessment
Conceptual architectureExceptional synthesis and broad protected doctrine.
Implementation estateSubstantial, real and unevenly matured.
Unified organismVery close; final live provenance, storage, migration and memory blockers remain.
Commercial opportunityHigh, especially as a governed operating system that assembles temporary AI workforces around measurable opportunities.
Scientific noveltyThe primitives are established; the integrated contract and outcome-linked operating model may be distinctive.
AGINot demonstrated.
ASINot supported.
Best categoryArtificial Computational Organization / Governed Adaptive Opportunity Organism.

44. The commercial wedge

The first undeniable proof is not a broad AGI claim. It is one closed, repeated, profitable loop in LandOS/APG: signal, entity resolution, scoring, evidence, strategy, governance, human approval or execution, outcome capture, weighting/topology adjustment, improved next opportunity. The same substrate can then emit Worlds for service-business automation, resale, knowledge conversion and other domains.

Bottom line (source): Neuruh is not waiting for another invention. It is waiting for the existing organism to become one supervised, measurable, receipt-bound machine that produces outcomes repeatedly.

Appendix A: Branch and Commit Ledger

LaneBranch / commitRuling
Territory organismcodex/p1.1-durable-organism @ 45c3f45Primary visual organism; ccT11 semantic commit contained and byte-identical.
ccT11 semantic graphcodex/p1.1-semantic-organ-graph @ db356c9Approved semantic graph source.
IARcodex/p1.1-iar-ollama-runtime @ 8ab0c59Final tested source; live swap pending at snapshot.
AXON Gatewaycodex/p1.1-axon-governed-gateway @ 56b4f54Final tested source; live swap pending at snapshot.
ccT9 governed executorcct9/governed-executor @ 1430adcSource lane integrated into final gateway branch.
MOTHERcodex/p1.1-mother-v3 @ 4fcd9d1Semantic health matrix and Bonsai optionality.
Cockpitcodex/p1-organism-integration @ b241789Launcher and read-model integration.
Field observationfeat/field-p6-observation-weight @ 11ebfcf22/22 fixture tests; migration 038 required.
APGorigin/main @ c35c9deRoutes and data verified; auth visual proof pending.
Cass intelligencecodex/p1.1-cass-comp-intelligence @ be207145,770 comps, no fabricated geometry.
LandOS callable hardeningcodex/p1.1-durable-organism / mig 03741 real, zero synthetic, verified clear evidence.

Appendix B: N-Cell Reference Implementation

Code authority (source claim): The following code is a complete dependency-free reference implementation included in the companion ZIP. It passed 10/10 local Node tests during document generation. The canonical AEGIS branch remains authoritative until parity and receipt-binding tests approve a merge.

ncell/src/ncell.mjs (core, abridged to the exported API; full bit registries and functions reproduced)
import { createHash } from "node:crypto";
export const UINT8_MAX = 0xff;
export const ORGAN_BITS = Object.freeze({ SECURITY: 7, MEMORY: 6, ROUTING: 5, COMPOSITION: 4, GOVERNANCE: 3, EXECUTION: 2, EMISSION: 1, OUTCOME: 0 });
export const AUTHORITY_BITS = Object.freeze({ INSPECT: 7, CLASSIFY: 6, COMPOSE: 5, EVALUATE: 4, EXECUTE_INTERNAL: 3, WRITE_EXTERNAL: 2, SPEND: 1, HUMAN_APPROVED: 0 });
export const LIFECYCLE_BITS = Object.freeze({ SENSED: 7, NORMALIZED: 6, RESOLVED: 5, SCORED: 4, COMPOSED: 3, GOVERNED: 2, EXECUTED: 1, MEASURED: 0 });
export const MEMORY_BITS = Object.freeze({ CANON: 7, VAULT: 6, HUMAN_RAG: 5, MACHINE_RAG: 4, EPISODIC: 3, BEHAVIORAL: 2, RECEIPTS: 1, OUTCOMES: 0 });
export const OUTPUT_BITS = Object.freeze({ REPORT: 7, CRM_STATE: 6, WORLD: 5, API: 4, DRAFT: 3, EXTERNAL_SEND: 2, PRODUCTION_WRITE: 1, ECONOMIC_OUTCOME: 0 });
export function assertUint8(value, name = "mask") { if (!Number.isInteger(value) || value < 0 || value > UINT8_MAX) throw new RangeError(`${name} must be an integer from 0 through 255.`); return value; }
export function bit(p) { if (!Number.isInteger(p) || p < 0 || p > 7) throw new RangeError("bitPosition must be an integer from 0 through 7."); return 1 << p; }
export function maskFromBits(ps) { return ps.reduce((m, p) => m | bit(p), 0); }
export function hasBit(mask, p) { assertUint8(mask); return (mask & bit(p)) !== 0; }
export function setBit(mask, p, active = true) { assertUint8(mask); const s = bit(p); return active ? mask | s : mask & (~s & UINT8_MAX); }
export function intersectMasks(...masks) { if (masks.length === 0) return 0; return masks.reduce((r, m) => r & m, UINT8_MAX); }
export function unionMasks(...masks) { return masks.reduce((r, m) => r | m, 0) & UINT8_MAX; }
export function changedMask(prev, cur) { return prev ^ cur; }
export function rotateLeft8(mask, positions = 1) { assertUint8(mask); const s = ((positions % 8) + 8) % 8; if (s === 0) return mask; return ((mask << s) | (mask >>> (8 - s))) & UINT8_MAX; }
export function rotateRight8(mask, positions = 1) { return rotateLeft8(mask, -positions); }
export function popcount8(mask) { let v = mask, c = 0; while (v !== 0) { v &= v - 1; c += 1; } return c; }
export function binary8(mask) { return mask.toString(2).padStart(8, "0"); }
export function activeNames(mask, registry) { return Object.entries(registry).filter(([, p]) => hasBit(mask, p)).map(([n]) => n); }
export function canonicalJson(value) { if (value === null || typeof value !== "object") return JSON.stringify(value); if (Array.isArray(value)) return `[${value.map(canonicalJson).join(",")}]`; const keys = Object.keys(value).sort(); return `{${keys.map((k) => `${JSON.stringify(k)}:${canonicalJson(value[k])}`).join(",")}}`; }
export function sha256Canonical(value) { return createHash("sha256").update(canonicalJson(value)).digest("hex"); }
export function evaluateAuthority({ proposed, allowed, available }) { const effective = intersectMasks(proposed, allowed, available); const blocked = proposed & (~effective & UINT8_MAX); return Object.freeze({ proposed, allowed, available, effective, blocked }); }
export function buildNCellHeader(input) { /* validates routeMask, organMask, lifecycleMask, authorityMask, memoryMask, outputMask, confidence, risk; builds identity {schema:"neuruh.ncell/1.0", nodeId, runId, worldId, masks, confidence, risk, codeHashes, stateSchemaHash, previousTopologyHash}; topologyHash = sha256Canonical(identity); returns frozen header with topologyHash, observedAt and binary masks. */ }
export function verifyNCellHeader(header) { const { topologyHash, observedAt, masks, ...identity } = header; return sha256Canonical(identity) === topologyHash; }
ncell/src/compiler.mjs
compileNCellFromTrace(trace): derives organMask, lifecycleMask, memoryMask and outputMask from trace fact objects via enabledBits(registry, facts); authorityMask = evaluateAuthority(trace.authority).effective; then buildNCellHeader(...).
executeWithNCell(execute, request, compileTrace): runs execute(request), compiles the trace, returns { ...result, ncell }.
stripNCell(result): returns the result without the ncell field. Parity (H2) requires stripNCell(executeWithNCell(x)) to equal execute(x).
ncell/src/receipt.mjs
GENESIS_HASH = "GENESIS";
sha256Text(value): SHA-256 hex of the text.
sealReceipt(payload, previousReceiptHash = GENESIS_HASH): body = { schema: "neuruh.run-receipt/1.0", previousReceiptHash, ...payload }; receiptHash = sha256Text(canonicalJson(body)); returns frozen { ...body, receiptHash }.
verifyReceipt(receipt): recomputes the hash over the body without receiptHash.
verifyReceiptChain(receipts): checks previous-hash continuity from GENESIS and every receipt hash; returns { ok, count, head } or { ok:false, index, reason }.
ncell/src/geometry.mjs
BIT_COUNT = 8;
bitToPoint(position): { bit: position, weight: 2**position, x: position, y: min(position, 8 - position) }.
decodeShape(byte): eight points with an active flag per bit.
isRightAngle(pointA, center, pointB): dot product of (A-C) and (B-C) equals zero.
ncell/tests/test-ncell.mjs (10 tests, source claim 10/10 passed)
1. Full organ mask activates all eight organs: maskFromBits(all ORGAN_BITS) = 255, binary "11111111", 8 active names.
2. Authority is proposed AND allowed AND available: proposed 0b11111110, allowed 0b11111000, available 0b11111111 gives effective 0b11111000 (248), blocked 0b00000110 (6).
3. External write and spend can be stripped while internal execution remains.
4. Topology hash detects tampering: header verifies true; same header with risk 250 verifies false.
5. XOR records topology differences: changedMask(0b10110010, 0b10110110) = 0b00000100 (4).
6. Rotating two positions represents a 90-degree directional rotation: rotateLeft8(0b10000001, 2) = 0b00000110 (6).
7. Compiler derives N-Cell from trace facts: organs SECURITY/MEMORY/ROUTING/COMPOSITION/GOVERNANCE give organMask 0b11111000 (248); authorityMask 0b11111000; header verifies.
8. Observability wrapper preserves canonical execution result: execute {value:4} doubles to 8; stripNCell(wrapped) deep-equals {ok:true, value:8}; wrapped.ncell verifies.
9. Receipt chain detects mutation: two sealed receipts verify; changing the second result breaks the chain.
10. Geometry mapping produces the intended right angle: decodeShape(255) has length 8; isRightAngle((5,3),(4,4),(3,3)) is true.

Appendix C: JSON Schemas

Three schemas are reproduced in full in the source; a fourth template is included. Key requirements:

ncell-header.schema.json

Title: Neuruh N-Cell Header. Required: schema, nodeId, runId, routeMask, organMask, lifecycleMask, authorityMask, memoryMask, outputMask, confidence, risk, topologyHash, observedAt. schema is the constant "neuruh.ncell/1.0". All masks are uint8 (0-255). topologyHash matches ^[a-f0-9]{64}$. codeHashes values match ^[A-Fa-f0-9]{3,64}$. Binary mask strings match ^[01]{8}$. additionalProperties false.

organism-task.schema.json

Title: Neuruh Organism Task. Required: task_id, objective, tenant_id, requested_authority, created_at. requested_authority is an integer 0-255. memory_scopes is a unique string array. human_approval_required is a boolean, default false. additionalProperties false.

run-receipt.schema.json

Title: Neuruh Run Receipt. Required: schema, runId, previousReceiptHash, receiptHash, result. schema is the constant "neuruh.run-receipt/1.0". ncell references the N-Cell header schema. receiptHash matches ^[a-f0-9]{64}$.

platform-gate-register.template.json

Schema "neuruh.platform-gate-register/1.0", with observed_at and a gates array. Each gate records platform, account_owner, dependency_class, status, monthly_cost_usd, credit_or_quota, renewal_or_expiry, systems_affected, failure_behavior, replacement_option, human_action_required, evidence, and notes. The example gate is Supabase, dependency class production-data, status unknown, systems affected APG and LandOS, failure behavior fail-closed, replacement option self-hosted PostgreSQL or managed PostgreSQL. Note: "Verify in provider dashboard before promotion. Never store credentials here."

Appendix D: Local Operations Scripts

ops/check-runtime.sh

Probes nine local endpoints with curl, max 4 seconds each, and prints SERVICE, HTTP, SECONDS, URL: IAR http://127.0.0.1:8090/health; AXON http://127.0.0.1:8788/health; AXON-GW http://127.0.0.1:8300/health; GOVERNANCE http://127.0.0.1:8848/health; OLLAMA http://127.0.0.1:11434/api/tags; ANYTHINGLLM http://127.0.0.1:3001/api/ping; QDRANT http://127.0.0.1:6333/collections; ORGANISM http://127.0.0.1:3010/; APG http://127.0.0.1:3000/login. A failed probe prints 000 / 4.000.

ops/stop-qdrant-backfill.sh

Stops the unauthorized sync_qdrant.py backfill. Logs to the memory incident directory, prints processes before stop and disk state, sends TERM, waits 5 seconds, sends KILL if it survives, then verifies no matching process remains and prints disk state again. A surviving process exits 1 with a warning.

ops/swap-iar.sh

Controlled IAR swap. Verifies the worktree commit equals the expected full SHA 8ab0c59d58627c21b3c1d9ef499018e2c559f1ff and the worktree is clean, captures pre-swap health and process state, stops the old PID listening on 8090 with TERM (aborts if it does not stop within 20 seconds), launches uvicorn iar_v2:app on 127.0.0.1:8090 from the engine directory, waits up to 30 seconds for health, asserts active_backend equals ollama-llama3.2 and that backend is true, then verifies provenance at /admin/verify and records post-swap process state.

ops/bootstrap-neuruh-grok.sh

Neuruh plus Grok Build safe launcher. Default behavior is census plus read-only planning. It does not push, deploy, modify production, use secrets, or edit repos. It checks the Finish Directive exists, installs Grok Build from the official xAI installer if missing, records the Grok version and models, checks the ten required repos (landos-engine, landos-ingest, recipe-engine, territory-engine, neuruh-axon, neuruh-mother, autonomous-governance-core, neuruh-cockpit, world-emitter, neuruh-vault), checks cockpit health, runs grok inspect, then runs a read-only Phase 0 census/plan with the explore agent in plan permission mode and read-only sandbox, streaming JSON to the audit output directory. It ends with instructions to review the output and start the interactive session, approving the plan only after the census proves canonical paths, memory freshness, service boundaries, security constraints, and exact worktrees and acceptance tests.

Appendix E: Neuruh Organism Finish Directive

Included verbatim from the existing Grok/Claude launch pack. It is the evidence-first execution contract for finishing the organism without creating a duplicate architecture.

Mission

Finish the existing Neuruh Modulated Agentic Opportunity Organism by consolidating, wiring, validating, and automating what already exists. Do not create a second organism. Do not rename or replace SAL, PMLA, AXON, MOTHER, AEGIS/IAR, the Galaxy, Worlds, the revenue spine, the knowledge spine, or the existing t0-t6 lane model. The goal is one autonomous, observable, governed system that can: (1) ingest signals and canon, (2) retrieve the correct memory, (3) plan with SAL, (4) govern every action, (5) execute in isolated worktrees, (6) test and validate, (7) write receipts, (8) update memory, (9) surface outcomes, (10) improve without architecture drift.

Hard constraints

Canonical estate

Workspace: ~/neuruh-workspace, ~/neuruh-workspace/contracts, ~/neuruh-workspace/audit-output. Repositories: landos-engine, landos-ingest, recipe-engine, territory-engine, neuruh-axon, neuruh-mother, autonomous-governance-core, neuruh-cockpit, world-emitter, neuruh-vault. Expected root: ~/neuruh-repos/NeuruhAI/. Memory roles: Notion is human canon; neuruh-vault is the Git-backed Obsidian-compatible sovereign working-memory filesystem and Galaxy; AnythingLLM AXON-BRAIN is human-facing chat, citation, and workspace RAG derived from the vault; Qdrant is machine-facing vector retrieval for IAR/AXON, additive, not a replacement for AnythingLLM; Dream Service plus PMLA is episodic, behavioral, and consolidated agent memory; Supabase is operational truth and production state, not the document corpus; GitHub is source-code truth; Run Receipts are immutable execution evidence.

Phase 0: Ground-truth census

Do not edit code yet. Produce audit-output/organism-census/ with REPO-CENSUS.md, SERVICE-CENSUS.md, MEMORY-CENSUS.md, CONTRADICTION-LEDGER.md, SECURITY-BOUNDARY.md, CURRENT-ARCHITECTURE.mmd, TARGET-ARCHITECTURE.mmd, repo-state.json, service-state.json, vault-state.json, anythingllm-state.json, acceptance-baseline.json. Audit every repository (path, branch, commit, dirty state, remotes, latest commit date, build and test commands, runtime entrypoint, TODO/FIXME/HACK markers, duplicated or superseded implementation, hardcoded local paths, hardcoded secrets, PII-bearing files, generated artifacts incorrectly tracked). Probe the runtime with real health endpoints, not port-only checks: Bonsai 8100, IAR/AEGIS 8090, AXON 8788, AXON Gateway 8300, AnythingLLM 3001, Ollama 11434, Qdrant 6333, MOTHER, Vault watcher, World Emitter, Cockpit launcher. Inspect the real neuruh-vault root (total files, Markdown count, tracked versus ignored, latest commit, latest modified files, folder taxonomy, duplicates, orphans, unresolved links, PII-local-only lanes, runtime-generated lanes, graph artifacts, receipt chains, codex nodes, Notion mirror freshness, whether Obsidian points at this exact root). Inspect the AnythingLLM AXON-BRAIN workspace (health, identity, document count, last embed time, embedding provider/model, vector backend, duplicate chunks, failed documents, stale documents, inaccessible files, filesystem-agent permissions, citation behavior, API availability, current port). Compare every indexed document against the vault using path plus SHA-256; do not infer freshness from document count. Classify each component only as LIVE, DEGRADED, STALE, BUILT-NOT-WIRED, SPEC-ONLY, SUPERSEDED, BLOCKED, or UNKNOWN. No other vocabulary.

Phase 1: Unified contracts

Create versioned contracts under ~/neuruh-workspace/contracts/: corpus-document.schema.json, memory-source-manifest.schema.json, organism-task.schema.json, governance-decision.schema.json, run-receipt.schema.json, health-state.schema.json, model-route.schema.json, world-manifest.schema.json, outcome-event.schema.json. Minimum corpus-document fields: document_id, source_type (notion, vault, repo, receipt, database), source_uri, vault_path, sha256, modified_at, sensitivity (public, internal, confidential, pii-local-only), tenant_id, node_id, tags, embedding_version, index_targets (anythingllm, qdrant), status (active, superseded, archived, blocked). The same document identity must be used across Vault, AnythingLLM, Qdrant, receipts, and retrieval citations.

Phase 2: Memory freshness pipeline

Build one delta-based memory pipeline: Notion canon, recursive mirror plus SHA manifest, Obsidian/Git vault, delta scanner, corpus manifest, then AnythingLLM embed/update queue and Qdrant upsert/delete-by-version queue. Required behavior: new document indexes; changed SHA replaces the prior embedding version; deleted source is marked superseded, never silently erased; PII-local-only never leaves its approved local boundary; generated runtime lanes are excluded unless explicitly allowlisted; duplicate content has one canonical document with aliases retained; every run produces a receipt with counts and failures; AnythingLLM remains the human chat/citation surface; Qdrant becomes the machine retrieval surface for IAR/AXON; retrieval results include source path, SHA, date, and sensitivity. Acceptance test: create one harmless test note in the vault, run delta sync, confirm it appears in AnythingLLM with a citation and in Qdrant with matching metadata, modify it, confirm both indexes replace the old SHA, archive it, confirm both surfaces mark it superseded without losing the receipt.

Phase 3: One-command organism boot

Extend the existing cockpit; do not replace it. Target command: ~/neuruh-repos/NeuruhAI/neuruh-cockpit/neuruh-up.command. Target health table: BONSAI, IAR, AXON, ANYTHINGLLM, QDRANT, VAULT-WATCHER, MOTHER, COCKPIT. Rules: adopt healthy processes, never double-boot; bind dangerous execution services to loopback by default; fail closed on missing auth; AXON may degrade but must report the exact reason; AnythingLLM remains verify-only unless its documented launcher is safe; every layer exposes a real health probe; boot output prints paths, ports, PIDs, commit SHAs, index freshness, and last receipt; one command boots, verifies, and tails logs; a second run is idempotent; reboot recovery is tested.

Phase 4: Autonomous execution loop

Implement the existing doctrine as one executable state machine: OBSERVE, RETRIEVE, PLAN with SAL, GOVERN with AEGIS/IAR plus Autonomous Governance Core, REQUEST APPROVAL when required, EXECUTE in isolated worktree, TEST, REVIEW with second model/agent, RECEIPT, MEMORY UPDATE through PMLA/Dream, OUTCOME/FEEDBACK, NEXT CYCLE. Each task must carry objective, evidence, permitted repositories, permitted tools, spend ceiling, sensitivity, human-gate requirements, acceptance tests, rollback, receipt destination. The autonomous system may inspect, analyze, create plans, create local branches/worktrees, edit approved local files, run local tests, generate receipts, propose promotion. It may not autonomously push, deploy, send, spend, touch production data, expose secrets, process PII outside its approved local lane, or promote its own policy changes.

Phase 5: Grok Build integration

Treat Grok Build as an execution engine, not the source of truth. Required integration: Grok Build reads AGENTS.md, uses Neuruh skills, uses MCP adapters, runs in plan/read-only by default, writes only in isolated worktrees after approval, emits structured receipts, and is reviewed by a second agent/model. Create ~/neuruh-workspace/AGENTS.md, ~/neuruh-workspace/.grok/, ~/neuruh-workspace/skills/neuruh-organism/, ~/neuruh-workspace/mcp/. The Neuruh Grok skill must teach canonical repo map, t0-t6 lanes, SAL/PMLA/AXON/MOTHER roles, memory source hierarchy, governance boundaries, receipt requirements, no-new-organism rule, status vocabulary, worktree protocol, acceptance gates. Optional but recommended: install the official Grok Build to Claude Code bridge; use Grok for implementation or exploration; use Claude Code for architecture review, critique, and cross-check; reverse roles on the next task; no agent reviews its own work as the sole reviewer.

Phase 6: Final acceptance gates

Memory: Vault path is canonical and Git-backed; Obsidian opens that exact repository root; AnythingLLM index freshness matches the vault manifest; Qdrant index freshness matches the same manifest; same query returns source-consistent evidence from human and machine RAG; PMLA/Dream memory is separate from corpus RAG and has retention rules. Runtime: one-command cold boot; eight layers report honestly; repeated boot is idempotent; reboot recovery succeeds; failure of one optional layer produces DEGRADED, not fake success. Autonomy: a test objective becomes a governed task; a production-write tag triggers escalation; human approval unlocks a local worktree only; implementation runs; tests pass; second-agent review runs; receipt is written; memory is updated; no push/deploy/send/spend occurs. Security: dangerous services bind loopback; no plaintext secrets in tracked files; PII-local-only rules are enforced; policy changes cannot self-promote; kill switch stops new executions; append-only receipts survive failure. Outcome learning: at least one synthetic outcome traverses the full loop; outcome event is attributed to task, recipe, model route, evidence, and world; feedback can alter a shadow score but cannot promote itself without approval.

Required final output

audit-output/final-organism/
  FINAL-STATE.md
  FINAL-ARCHITECTURE.mmd
  FINAL-SERVICE-MAP.json
  FINAL-MEMORY-MANIFEST.json
  FINAL-CONTRADICTION-LEDGER.md
  FINAL-SECURITY-BOUNDARY.md
  FINAL-ACCEPTANCE-RESULTS.json
  FINAL-RUN-RECEIPTS.jsonl
  ROLLBACK.md
  NEXT-OPERATOR-ACTIONS.md

Final response must state what is live, what is autonomous, what still requires human approval, what remains blocked, exact commands to reproduce, exact commits and worktrees, zero unsupported claims. Begin with Phase 0. Stop after the census and plan. Do not edit code until the operator approves the plan.

Appendix F: Acceptance Checklist

Tick each item as it is proven. Nothing here is marked done by this demo; every item requires a live check against the real system.

Final doctrine (source): One organism. Finish, bridge, verify and supervise what exists. N-Cell may describe the organism after the baseline is stable. It may not become another organism, router, memory plane, health authority or mythology.

Explorers and Calculators

All math below re-implements the source definitions in the browser. Nothing here contacts a live service.

Sample loaders

Each loader fills the N-Cell header builder from a trace described in the source.

N-Cell/64 header builder

Header not built yet.

Authority intersection calculator

effective = proposed AND allowed AND available; blocked = proposed AND NOT effective.

Byte tools

Geometry: P(p) and right angle

Document identity calculator

document_id = "doc_" + sha256(vault_relative_path)[:16]; qdrant_point_id = int(sha256(document_id)[:15], 16).

Storage headroom calculator

Source snapshot: about 2.9 GiB free; ratification requires 10-15 GiB durable free space.

Topology utility gate calculator

Gate target: at least 15% task-success improvement or 30% cost reduction at equal quality.

Receipt chain explorer

Seals receipts hash-linked from GENESIS, verifies the chain, and shows tampering detection.

No receipts sealed yet.

Share link

Encodes the current explorer state (nodeId, runId, masks, confidence, risk) into the URL hash. Opening the link restores it.

Honest gaps

  • Snapshot, not live state. Every status, commit, count and provider state is from July 16-17, 2026. None of it has been re-verified here; the source itself warns that provider dashboards and current invoices must be rechecked.
  • Reference code is abridged in display. Appendix B shows the full exported API and registries, but buildNCellHeader is summarized rather than printed line by line; the companion ZIP named in the source is not included in this demo.
  • Scripts are summarized, not executed. Appendix D describes each script faithfully; the swap and bootstrap scripts are not runnable from this page and must not be run from a browser.
  • Figures 1-4 are redrawn. The source PDF contains figure images; this page redraws them as simple SVG schematics from the source captions and text.
  • No live verification. Layout was not eyeballed in a real browser. Controls were tested in jsdom only. The demo cannot prove any service is running, any commit is live, or any gate has passed.
  • Provider register is reported, not confirmed. Vercel, Supabase, Twilio, Google Workspace and other states are July 2026 audit reports, not current facts.
  • Missing source material. The companion ZIP, the Grok/Claude launch pack files, and the live receipts named in the source are not embedded here.