Answer
Number One attaches a hash-chained event stream to .numberone/ so every edit, crash, thought, and ruling replays across all 24+ AI harnesses without losing history.
StreamStorewrites every workspace fact toevents.jsonlwith canonical SHA-256 hashes and linear-time secret redaction.1ReplayEnginefolds those atomic events into one verifiedWorkspaceProjectionguarded bysnapshotDigest.AuthorityEngineenforcesL1stream truth andL2directives aboveL4session prompts.2PartyModeOrchestratorruns three specialist officers and promotes new checks only when KPI delta exceeds zero.3
Applies toNumber One v1.0.0Node >= 22all MCP and CLI harnesses
How do workspace signals become authoritative state?
Diagram structure
- Watchers & MCP
sensors - Secret Redactor
redact - events.jsonl
log - ReplayEngine
fold - Authority & Crew
gate - Directory / GitHub / Jira
mirrors sensors→redact· raw eventsredact→log· SHA-256log→fold· JSONLfold→gate· projectionlog→mirrors· sync
- Watchers & MCP
Captures edits, Git hooks, test crashes, transcripts, and MCP calls.
- Secret Redactor
Scrubs cloud keys, PATs, JWTs, PEM blocks, and SAS tokens in linear time.
- events.jsonl
Links
prevHashtohashand flushes bytes withfsyncSync. - ReplayEngine
Rebuilds
WorkspaceProjectionand verifiessnapshotDigest. - Authority & Crew
Blocks
L4plans that violateL1crashes,L2directives, orL3lessons.
How does L1–L4 arbitration stop repeated dead-ends?
Diagram structure
- AI Harness
agent - McpServer
mcp - AuthorityEngine
auth - StreamStore
store agent→mcp· consult_number_onemcp→agent· lessons + dead-endsagent→mcp· arbitrate_actionmcp→auth· check L1-L3 rulesauth→store· append arbitration.decidedstore→mcp· seq + SHA-256 hashmcp→agent· APPROVE or BLOCK
public static readonly PRECEDENCE: AuthorityLevel[] = [
'L1_SOR_INVARIANT',
'L2_NUMBER_ONE_DIRECTIVE',
'L3_OFFICER_GATE',
'L4_SESSION_CONTEXT'
];
constructor(store: StreamStore, lessonEngine: LessonEngine) {
this.store = store;
this.lessonEngine = lessonEngine;
}
public arbitrate(
state: WorkspaceProjection,
proposal: ArbitrationProposal,
options: { recordAuditEvent?: boolean } = {}
): ArbitrationResult {Why does an external SoR outperform chat memory?
| Capability | Chat Window Only | Number One SoR |
|---|---|---|
| Context compaction | AmnesiaDrops failed tries | DurablePreserves every dead-end |
| Switching harnesses | IsolatedStarts from zero | UnifiedShares .numberone + MCP |
| Security & release gates | SoftPrompt advice only | EnforcedDeterministic 0-100 KPIs |
- Event Types
47atomic schemas across 9 domains- MCP Surface
12tools and4livenumberone://resources- Runtime Dependencies
1(zod) with0CVEs