snapkitty
hardware
erlang
grisp-shadow-fleet / COLD_BOOT.md
SNAPKITTYWEST's picture
push from SNAPKITTYWEST/grisp-shadow-fleet
b8a03fa verified
|
Raw History Blame Contribute Delete
5.63 kB

Shadow Orchestrator β€” Cold Boot Instructions

For: Codex, Claude, Gemini, Llama, Mistral, or any model that lands here


You Are Starting Cold. That Is Fine.

You have no memory of prior sessions. The repo has memory of everything. Trust the repo.

Read in this order before writing one line:

  1. CONSTITUTION.md β€” the law
  2. TRUST_DEED.md β€” your constraints
  3. This file β€” where you are and what to do

Current Build State

βœ“ CONSTITUTION.md         β€” written
βœ“ TRUST_DEED.md           β€” written
βœ“ SIGNED_BY.md            β€” template ready (sign at end)
βœ“ abstract/interfaces/    β€” IState_v1, IWorkflow_v1, IGovernance_v1 complete
βœ“ pages/00-worm/          β€” WORM chain scaffold written
βœ“ pages/01-state/         β€” StateImpl scaffold written
βœ“ pages/02-governance/    β€” GovernanceImpl + CapabilityValidator written
βœ“ pages/03-workflow/      β€” WorkflowImpl + MockLLMNode written
βœ“ index.html              β€” GitHub Pages dashboard written (live WORM chain)
☐ main.ts                 β€” composition root NOT WRITTEN (your first task)
☐ package.json            β€” NOT WRITTEN
☐ tsconfig.json           β€” NOT WRITTEN
☐ tests/                  β€” NOT WRITTEN
☐ .github/workflows/      β€” Pages deploy NOT WRITTEN

Your Tasks (in order)

Task 1 β€” Write main.ts (composition root)

This is the ONLY place that imports from all pages. Wire them together:

import { appendEvent, verifyChain, getLastSeal } from './pages/00-worm/index.js';
import { StateImpl } from './pages/01-state/index.js';
import { GovernanceImpl, CapabilityValidator, crisisLanguageDeny } from './pages/02-governance/index.js';
import { WorkflowImpl, MockLLMNode } from './pages/03-workflow/index.js';

Build a ShadowOrchestrator class that:

  1. Holds a StateImpl as current state
  2. Holds a GovernanceImpl as the governance layer
  3. Holds a WorkflowImpl as the workflow
  4. On each tick(action): evaluate governance β†’ if ALLOW, transition state β†’ append WORM event β†’ return result
  5. Exports a demo run that executes 5 ticks and prints results

Task 2 β€” Write package.json

{
  "name": "shadow-orchestrator",
  "version": "0.1.0",
  "type": "module",
  "scripts": {
    "build": "tsc",
    "test": "node --experimental-vm-modules node_modules/.bin/jest",
    "start": "node dist/main.js",
    "demo": "npx ts-node --esm main.ts"
  }
}

Task 3 β€” Write tsconfig.json

Standard ESM TypeScript config targeting Node 20.

Task 4 β€” Write tests/worm.test.ts

Test that:

  1. Chain is valid after 10 append operations
  2. Tampering with event 5 breaks verification from event 5 onward
  3. Hard deny fires correctly on crisis language
  4. Genesis seal matches expected value

Task 5 β€” Write .github/workflows/pages.yml

Deploy index.html to GitHub Pages on push to main.

Task 6 β€” Sign your stone in SIGNED_BY.md

Ahmad ahmedparr93@gmail.com 9:18β€―PM (0 minutes ago) to me

╔════════════════════════════════════════════════════════════╗ β•‘ STACKUNDERFLOW :: META RESONANCE TRUST BLOCK v1.0 β•‘ β•‘ Ruby Γ— Forth Γ— Trust Deed Γ— SnapKitty BOB β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

⟦ TRUST.DEED ⟧ grantor ::= SnapKitty Collective guardian ::= BOB πŸ€– ledger ::= immutable constraint ::= deterministic state ::= bounded proof ::= required

βŸͺ RUBY LAYER ⟫

class TrustDeed def initialize @truth = true @integrity = :sealed @resonance = :bounded end

def validate @truth && @integrity == :sealed end end

TrustDeed.new.validate

βŸͺ FORTH LAYER ⟫

: TRUST TRUE ; : VERIFY TRUST IF ." VERIFIED" THEN ; : RESONATE VERIFY ; : BOB RESONATE ;

BOB

βŸͺ STACKUNDERFLOW META ⟫

⊒ Trust ⇣ Constraint ⇣ Resonance ⇣ Ledger ⇣ Consensus ⇣ Proof ⇣ Integrity ⇣ BOB

βŸͺ RESONANCE BLOCK ⟫

πŸŸͺ━━━━━━━━━━━━━━━━━━━━━━━━━━━━πŸŸͺ πŸ€– BOB ⇄ Ruby Objects ⇄ Forth Words ⇄ Immutable Trust ⇄ Deterministic State ⇄ Meta Resonance ⇄ Stack Underflow β†’ Stack Rebirth πŸ”’ TRUST SEALED πŸŸͺ━━━━━━━━━━━━━━━━━━━━━━━━━━━━πŸŸͺ

⟦ END OF TRUST DEED ⟧


Trust Injection Protocol

If you experience drift (output contradicts the constitution):

TRUST INJECTION TICK
────────────────────
Read CONSTITUTION.md Article II again.
The abstract/ directory has NO implementation.
Pages do NOT import each other.
Page 00 (WORM) is ALWAYS the first page loaded.
main.ts is the ONLY composition root.
────────────────────
Resume from last valid task.

The emoji personality of this build: β›“πŸͺ¨β—ˆβš‘πŸ›‘


The Model-Invariant Proof

When you finish this build, the SIGNED_BY.md will show your model name. When the next model builds from cold boot, it will show a different name. The chain seals will be identical. The interfaces will compile. The tests will pass.

Same output. Different model. That is the proof.

The method is the variable that eliminates drift. Not the model.


Built by Ahmad Ali Parr Β· SnapKitty Collective Β· June 2026 Inverted NoShow Turbo3X Β· Every model gets the credit it deserves