Generated banner for Third Brain V8.1 Skills
Generated logo for Third Brain V8.1 Skills

Third Brain V8.1 Skills

LLM wiki kit

First committed by Mark393295827

Published in Mark393295827/third-brain-v7-skills. Publisher page

140 GitHub stars

What it is

agent wiki +engineering skills
— the description by Mark393295827

AutoGineer overview, from the brain’s own files

Third Brain V8.1 provides a structured, verification-first operating model for AI agents, treating the LLM as a CPU, context as RAM, and an Obsidian vault as a durable disk. It offers 21 reusable agent skills designed to manage knowledge ingestion, daily loops, research, and multi-agent orchestration. The system enforces strict provenance, governance, and quality gates, ensuring that agent actions are backed by evidence and that knowledge compounds over time through a structured taxonomy.

How it works

Memory model: LLM wiki

AutoGineer overview, from the brain’s own files

The system organizes information into a structured folder hierarchy including sources, concepts, entities, and maps. It uses a 5-stage worker assembly pipeline (Ingest, Cognitive, GraphWeaver, Governance, Deliverable) to process information. Skills are executed as programs within a harness that provides scheduling, permissions, and observability. It relies on a transactional runtime to manage state and ensure that all knowledge updates are verified and linked within the Obsidian vault.

Folders
FolderRoleFiles
.githubagent-config5
assetsattachments5
commandsagent-instructions4
docsdocs21
examplesexamples10
hookshooks1
skillsagent-instructions40
sourcesraw-sources13
teststests8
toolsscripts51
adaptersfolder2
artifactsfolder28
contractsfolder18
corefolder6
experimentsfolder7
mapsfolder1
outreachfolder46
systemfolder33
workflowsfolder1

Requirements

Works with: Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Amp, Cline, JetBrains Junie, Devin (ex-Windsurf)

Set it up

  1. This brain runs code automatically: 2 scripts. Review install.ps1, install.sh before opening the folder in Claude Code. No step below turns a hook on for you.

    • install.ps1: pwsh install.ps1
    • install.sh: sh install.sh
  2. Clone the repository at the commit AutoGineer scanned:

    git clone https://github.com/Mark393295827/third-brain-v7-skills.git && cd third-brain-v7-skills && git checkout 5a645148a108d71c76521715117b737ae60b1423
  3. Claude Code reads CLAUDE.md from this folder automatically.

  4. cd third-brain-v7-skills && claude

  5. AutoGineer scanned these files at commit 5a64514.

  6. First committed by Mark393295827. Published in Mark393295827/third-brain-v7-skills. Licence: MIT License.

Usage

AutoGineer overview, from the brain’s own files

  • Ingesting research papers or articles into a linked wiki
  • Running daily knowledge loops to compound insights
  • Enforcing verification gates before claiming task completion
  • Orchestrating multi-agent teams with isolated write scopes
  • Managing context budgets and state checkpoints for long-running tasks
“Use wiki-ingest on this source. Stage an immutable source, author a governed concept candidate, plan navigation updates, and return a verification summary.”
The agent creates an immutable note in the sources folder, updates the relevant concept pages in the wiki, and provides a summary of the verification steps taken.
“Run the daily-okr skill for today.”
The agent executes the 7-KR cycle, generating a daily insight, updating the wiki, and producing a receipt for the completed work.

Documentation by Mark393295827

Third Brain V8.1 Skills

<p align="center"> <img src="assets/third-brain-v8.1-actual-system-architecture.png" alt="Third Brain V8.1 actual Codex OS architecture: Codex host, repository control plane, transactional worker runtime, live Obsidian Vault, verification evidence, and declared debt" width="900"> </p>

Verification-first Agent Skills for Codex OS, with optional compatibility adapters for Claude Code, Gemini, Cursor, and Windsurf. Build a persistent knowledge operating system with Obsidian provenance, scheduled loops, bounded static dependency graphs, context management, and multi-agent orchestration.

Install 21 reusable agent skills for ingesting sources, auditing workflows, compiling interlinked wikis, running daily knowledge loops, verifying claims before shipping, managing token costs, engineering bounded loops and static dependency graphs, and orchestrating multi-agent teams.

Use this if:

  • Your AI agent keeps forgetting context between sessions

  • You want to enforce verification gates before "done" claims

  • You need to structure knowledge as linked pages (like Obsidian) instead of scattered chat history

  • You're building agent workflows that should learn and compound over time

  • You want Obsidian wiki knowledge to update skills, SOPs, schemas, and automation through supervised promotion gates

Image: GitHub stars Image: License: MIT Image: Codex OS Image: Claude Code Image: Cursor Image: PRs Welcome


Quick Start

1. Clone & Install
git clone https://github.com/Mark393295827/third-brain-v5-skills.git
cd third-brain-v5-skills
bash install.sh codex  # Codex is the primary host/kernel

Windows PowerShell uses .\install.ps1 codex. Compatibility adapters require an explicit non-Codex target.

2. Try a Skill

Paste this into Codex:

Use wiki-ingest on this source. Stage an immutable source, author a governed concept candidate, plan navigation updates, and return a verification summary. Treat entity authoring as a separate reviewed capability.

Then paste a URL, article, PDF text, or any source you want to capture.

3. Next Steps

See the 3-Minute Quickstart for a complete walkthrough.

Full guide: GUIDE.md

Command centre and distribution: V8.1 Codex Agentic OS command centre. Start it with python tools/agentic_os_server.py --state-root .agentic-os-state; the host is localhost-only by default and requires T02 runtime receipts. Claude/Gemini/Cursor/Windsurf remain compatibility adapters, not the primary runtime.

中文历史进阶手册:V7 最大潜力使用手册(参考)

🔥 V8.1 多智能体 Worker 流水线手册 & Worker Flows 规范:事务式流水线(Stage → Author → Graph Plan → Govern → Commit/Postcheck → optional Deliverable),归档只发生在验证提交之后。


The Problem

ScenarioBeforeAfter
Research PDFSummarized once, then forgottenwiki-ingest: source notes, concept pages, linked wiki
Coding sessionAgent: "I fixed it" (no proof)verify-before-claim: requires test output + exit code before any claim
Daily workTasks and ideas scatter across chatdaily-okr: one insight, one wiki update, one action, one output, daily score

V8.1 Operating Model

V8.1 keeps the wiki as durable disk and governance, gives every skill a profile-aware execution contract, and makes python -m tools.worker_flow.cli the only canonical transactional runtime:

Input -> Source -> Wiki compile -> Daily loop -> Agent/Wiki flywheel -> Skill/SOP upgrade -> Verification

The upgrade adds seven hard defaults:

  • Profiles match risk: one-shot, stateful, loop, and high-risk work load only the controls they need.

  • Source provenance stays immutable: raw source notes and block refs remain the audit layer.

  • Loops have contracts: Trigger -> Execute -> Verify -> State, with budgets and recovery.

  • Context is zero-overhead by default: hot paths load only what the task needs.

  • Automation is bounded: scans and queues can run unattended; semantic writes stay supervised.

  • Teams need ownership: multi-agent work requires write scopes, IPC, join gates, cleanup, and evidence.

  • Rules promote through evidence: wiki insights become schema or skill rules only after repeated support and a cheap check.

See the V8.1 Worker Flow, the Agent Skills standard, and the historical V7 release notes.

V8.1 keeps graph-engineering bounded to static DAGs; dynamic expansion and cyclic graphs remain out of scope.


Core Skills (Start Here)

🧠 Knowledge & Verification
SkillWhat it does
wiki-ingestPreserve an immutable source, compile linked understanding, enforce promotion boundaries, and verify every touched file.
verify-before-claimIron rule: no completion claim without fresh, scope-matched evidence; consequential actions also require independent verification, approval, and rollback.
📅 Daily Loop
SkillWhat it does
daily-okrExecute a 7-KR cycle: Input → Cognition → Wiki → Behavior → Creativity → Output → Feedback, with an artifact or receipt for every completed KR.
🎯 Behavior & Creativity
SkillWhat it does
behavior-designTurn outcomes into observable minimum behavior, cues, SOPs, recovery, evidence, and review.
creativity-engineGenerate mechanism-diverse options, rank evidence gaps, and define three bounded minimum experiments.
🔬 Research & Quality
SkillWhat it does
deep-researchSTOW-compatible research harness with evidence trails, source/claim ledgers, privacy checks, and direct handoff to wiki-ingest.
session-learnExtract knowledge patterns from sessions — concepts, entities, corrections, patterns, ideas, decisions, gaps. Closure protocol ensures learning feeds back into the wiki.
📊 Context & Engineering
SkillWhat it does
context-managerDerive budgets at runtime, checkpoint state, compact with KEEP/SUMMARIZE/DROP/RETRIEVE, and route by capability.
loop-engineeringControl temporal depth: turn repeatable work into a bounded Trigger -> Execute -> Verify -> State loop with durable state, finite budgets, and explicit stop/recovery rules.
graph-engineeringControl dependency width: validate bounded static DAGs with explicit dependencies, independent branches, typed joins, and node-local recovery.
agentic-engineeringDesign agent workflows as spec-driven macro actions with quality ceilings, verification gates, delegated-action boundaries, and state checkpoints.
harness-engineeringProvide the runtime scheduler, permissions, leases, tools, provenance, and observability needed to execute agent workflows safely.
agent-teams-commandAdmit and command multi-agent processes with exclusive ownership, typed IPC, isolated writes, serial integration, evidence, and cleanup.

Complete Skill List

📥 Ingestion & Knowledge
  • wiki-ingest — Stage immutable sources, author governed concept candidates, plan graph updates, and hand off optional entity authoring for separate review

  • knowledge-ops — Multi-layer knowledge management: classify, deduplicate, preserve evidence hierarchy, vector + Markdown retrieval

  • wiki-lint — Health check: P0/P1 graph health, frontmatter, source refs, wikilink density, provenance debt

🔄 Daily Workflow
  • daily-okr — 7-KR evidence cycle with minimum-day degradation and durable closeout

  • cognitive-compile — 8-section framework: Question → Facts → Concepts → Pattern Recognition → Conflict Detection → Hypothesis Generation

🎨 Behavior & Creativity
  • behavior-design — Outcome → minimum behavior → cue → SOP → evidence → review

  • creativity-engine — Mechanism-diverse combinations, scoring, and falsifiable minimum tests

🔬 Research & Quality
  • deep-research — STOW-compatible research harness, evidence trails, source/claim ledgers

  • verify-before-claim — Fresh scope-matched evidence, independent checks, approval, rollback

🔄 Learning & Flow
  • session-learn — 7 signal types: concepts, entities, corrections, patterns, ideas, decisions, gaps

  • project-flow-ops — Execution flow: triage, plan, track, review across projects

📊 Context
  • context-manager — Runtime budgets, checkpoint replay, compaction, retrieval, capability routing

Utility command: commands/token-cost-tracker.md estimates, logs, and reports token usage; it is not one of the 21 Agent Skills.

🏗️ Engineering
  • loop-engineering — Temporal depth through bounded loop contracts, independent verification, finite budgets, and stop/recovery rules

  • graph-engineering — Dependency width through bounded static DAGs, explicit branches, typed joins, and node-local recovery

  • agentic-engineering — Spec-driven macro actions, quality ceilings, verification gates, state checks

  • harness-engineering — Runtime scheduler, permissions, system-call tools, delegated gates, provenance, observability

  • agent-teams-command — Multi-agent process ownership, IPC, integration, async budgets, and evidence gates

💼 Strategy & Operations
  • startup-evaluation — Startup health: entrepreneurship, VC 5T, PMF, runway, team, unit economics

  • anthropic-os — Governed operating-system experiments: Four-C, 3B, prediction errors, permission ladder

  • ai-six-sigma-property-os — AI + Ontology + DMAIC for property work orders, dispatch, quotes, evidence


How These Skills Fit Together

                        LLM (CPU) + Context (RAM) + Wiki (Disk)

External Sources ──→ wiki-ingest + knowledge-ops ──→ Knowledge Layers
                            ↓
                    Daily Loop (daily-okr)
                    /    /    \    \    \
               Input  Cognition  Wiki  Behavior  Creativity
                            |
                        Output → Feedback
                            ↓
                    session-learn (extract patterns)
                            ↓
                    verify-before-claim (quality gate)
                             ↓
             Loop depth / Graph dependency width
                             ↓
                Multi-agent teams (agent-teams-command)

The system is a closed loop: ingest sources → process daily → extract learning → verify claims → promote rules → scale to teams.


Architecture & Design

Third Brain V8.1 treats agents as LLM OS processes:

  • LLM = CPU

  • Context = RAM

  • Wiki/Obsidian = Disk

  • Tools = System calls

  • Skills = Executable programs

  • Harness = Kernel

  • Agent teams = Processes

Design Layers
LayerPrincipleSkills
🧠 Knowledge OSCapture, structure, lint, and promote knowledge over timewiki-ingest, knowledge-ops, wiki-lint
⚡ Daily LoopClose the knowledge-to-action cycle every daydaily-okr, cognitive-compile
🎯 Behavior & CreativityTurn knowledge into habits and novel ideasbehavior-design, creativity-engine
🔬 Research & QualityVerify before claiming, research with rigordeep-research, verify-before-claim
🔄 Continuous LearningExtract patterns from every sessionsession-learn, project-flow-ops
📊 ContextManage hot context, durable checkpoints, and runtime budgetscontext-manager
🏗️ EngineeringDesign bounded loops, static dependency graphs, harnesses, agent workflows, and multi-agent systemsloop-engineering, graph-engineering, agentic-engineering, harness-engineering, agent-teams-command
💼 Strategy & OperationsEvaluate startups, design AI quality systemsstartup-evaluation, anthropic-os, ai-six-sigma-property-os

Engineering boundaries are deliberate: Loop Engineering controls temporal depth; Graph Engineering controls dependency width; Agent Teams Command controls process ownership, IPC, and integration; Harness Engineering supplies the runtime scheduler, permissions, and observability. A graph node may contain a Loop or Agent Team, but V8.1 does not support dynamic or cyclic graphs.


Skill Adoption Path

Start small. Add skills as you need them.

StageCore SkillsUnlock When
Week 1wiki-ingest + verify-before-claimYou can ingest 1 source/day + every claim has fresh evidence
Weeks 2-4+ daily-okr + session-learnDaily artifacts and verified learnings feed back to the wiki
Month 2++ cognitive-compile + behavior-design + creativity-engineWiki has 50+ pages or repeated decisions need synthesis
Month 3++ knowledge-ops + loop-engineering + harness-engineering + agentic-engineeringRetrieval, looping reliability, permissions, or delegated actions become bottlenecks
Dependency graph+ graph-engineering after loop-engineeringExplicit dependencies, independent branches, typed joins, or node-local recovery create more value than orchestration and review cost
Multi-agent+ agent-teams-command + project-flow-opsWork splits into separate owners with clear integration gates
Strategy+ startup-evaluation + anthropic-os + deep-researchNeed startup health, market, operating-system decisions
Operations+ ai-six-sigma-property-osNeed measurable service quality, dispatch, evidence loops

Installation

For Codex CLI (Primary host/kernel)
# Personal skills (available across all projects)
bash install.sh codex
For Cursor
bash install.sh cursor
For Windsurf
bash install.sh windsurf
Compatibility adapters: Claude Code / Gemini CLI
bash install.sh claude
bash install.sh gemini

Full guide: GUIDE.md


Example Workflows

Each workflow is copyable into your agent. See examples/ for complete, verified examples:


Wiki Structure

Skills default to STOW paths (configurable via system/config.md):

sources/          ← Immutable source notes (articles, PDFs, transcripts)
wiki/
├── concepts/     ← 13 contracted domains
├── entities/     ← people, companies, funds-investors, products, orgs
└── outputs/      ← gmail-digests, evaluations, compilations
maps/
├── domain-mocs/
├── system-indexes/
├── project-maps/
└── canvases/
system/           ← Deployed contracts, config, schema, templates, runs

Tools & References

ResourcePurpose
tools/index.htmlV8.1 visual skill navigator
tools/token-calculator.htmlHistorical V5 cost-model calculator; not a runtime authority
GUIDE.mdFull installation & troubleshooting
V7 最大潜力使用手册(历史参考)Earlier profile、知识飞轮、Agent 工程、治理和 30 天采用路径
CLAUDE.mdClaude Code setup
CONTRIBUTING.mdHow to contribute skills

What This Is NOT

  • Not a chat wrapper. Skills are executable prompts that agents follow; they're not productivity theater.

  • Not a productivity tool with 100 metrics. Daily OKR has seven causally linked KRs with evidence.

  • Not an all-in-one framework. Pick skills incrementally. You don't need all 20 to start.

  • Not prescriptive. Adapt paths, frontmatter, and skill triggers to your workflow.


Philosophy

Three core principles:

  1. Verification first: No "done" without proof. No claims without evidence. Expected value over confidence.

  2. Knowledge compounds: Every session should improve the wiki, not scatter across chat history.

  3. Closed loops: Ingest → Process → Learn → Scale → Verify. No loose ends.



Contributing

Bug reports, skill improvements, and PRs are welcome. See CONTRIBUTING.md and CHANGELOG.md.


License

MIT — see LICENSE.


Transparency Note

This project includes growth and outreach tools (in tools/ and outreach/) designed to help the repository reach users via GitHub search and Awesome lists. These tools are optional, dry-run-by-default, and separate from the core skills. If you're installing skills for your own workflow, you don't need them.

The skill frameworks and philosophy are genuine. Use what works for you; ignore what doesn't.

docs/v8.1-current-model-obsidian-blueprint.md


title: "Third Brain V8.1 Current-Model × Obsidian Blueprint" type: architecture-blueprint status: proposed version: "8.1.0-proposal" created: "2026-08-16" updated: "2026-08-16" decision_owner: vault-owner implementation_status: not-started

Third Brain V8.1 Current-Model × Obsidian Blueprint

Decision: keep the repository as the executable control plane, keep Obsidian Markdown as the canonical knowledge and evidence plane, and connect them through a transactional worker runtime. Use a serial command spine with bounded fan-out only for disjoint artifacts. No live-vault mutation is authorized by this blueprint.

1. Objective and boundaries

Objective

Evolve the current V8 scaffold into a resumable, evidence-bound pipeline that can safely ingest new material, retrofit previously imported concept pages to the Gold Standard, weave the Obsidian graph, and produce verifiable outputs at the scale of the current vault.

The target lifecycle is:

discover -> stage -> compile -> graph-plan -> independently verify -> commit -> archive -> optionally deliver

Non-goals
  • Do not bulk-rewrite all existing notes.

  • Do not mutate immutable source evidence to repair metadata debt.

  • Do not let parallel workers write Home.md, 中央索引.md, shared MOCs, dashboards, or logs directly.

  • Do not fabricate URL, author, date, source anchors, evidence, metrics, or counterarguments.

  • Do not treat a successful process exit, file count, or placeholder artifact as semantic success.

  • Do not bind the design to one fixed model name. Route work by capability and verify its artifacts.

  • Do not archive a clipping before the committed artifacts pass their required gates.

2. Evidence-based starting point

The blueprint is based on a read-only inspection of the repository and the live vault on 2026-08-16.

SurfaceObserved stateArchitectural consequence
Vault scale1,231 sources, 1,669 concepts, 707 entities, 74 outputs, and 39 map filesWhole-vault rewrites are too risky; use touched-set gates and bounded migration batches.
Version contractAGENTS.md and GEMINI.md describe V8.0; README.md, CLAUDE.md, system/config.md, and system/schema.md still describe V7/V7.2Introduce one machine-readable contract version and publish it to both planes.
Template authorityThe repo and live-vault template-concept-gold-standard.md have different SHA-256 hashes and materially different fieldsReconcile them into one V8.1 schema/template package; never copy in either direction without a version/hash check.
Current engineThe five-stage engine can emit files, but GraphWeaver returns Pending Manual Review as SUCCESS, Governance reports counts without validating links/YAML/block refs, and Deliverable always emits a generic outputTreat the engine as a scaffold, not a production verifier. Split deterministic execution, semantic authoring, integration, and verification.
Current testsFive worker-flow tests pass, including the placeholder GraphWeaver/Governance behaviorReplace artifact-existence tests with contract, failure, idempotency, provenance, and recovery tests.
Live governanceThe latest scan reports 54 broken source refs, 1,125 source-provenance debt items, 7,759 unresolved wikilinks, and 2,792 notes missing V5 fieldsA full-vault-green gate would deadlock ingestion. Require zero new P0/P1 defects in touched files and no regression against the recorded global baseline.
Dashboard behaviorRepeated Daily Knowledge Loop Snapshot sections coexist, while the headline still claims a 94.5%+ integrity scoreDashboards must be generated from immutable run receipts into one keyed machine-owned block.
Writer topologyPython ingest, multi-agent, adaptation, auto-heal, KPI, and PowerShell queue scripts can all touch vault stateEstablish one commit owner, explicit writer leases, and compatibility adapters for legacy entry points.
Path resolutionMultiple scripts default to a personal absolute vault pathResolve --vault first, then environment/config, and fail closed if the vault fingerprint is ambiguous.

3. System boundary and sources of truth

flowchart LR
    subgraph Repo["Repository — executable control plane"]
        Contracts["Schemas + templates + workflow contracts"]
        Runtime["Scheduler + state machine + compatibility adapters"]
        Tests["Contract tests + migration tests"]
    end

    subgraph Run["Transactional run boundary"]
        Command["Commander + command board"]
        Stage["Per-run staging + typed IPC receipts"]
        Integrator["Single integration owner"]
        Verifier["Independent governance verifier"]
    end

    subgraph Vault["Obsidian — canonical knowledge/evidence plane"]
        Inbox["Clippings / inbox"]
        Sources["Immutable sources"]
        Wiki["Concepts + entities + outputs"]
        Maps["MOCs + Home + Central Index + Canvas"]
        Ledger["Run receipts + debt queues + dashboards"]
    end

    Contracts --> Command
    Runtime --> Command
    Inbox --> Command
    Command --> Stage
    Stage --> Verifier
    Verifier -->|promotion receipt| Integrator
    Integrator --> Sources
    Integrator --> Wiki
    Integrator --> Maps
    Integrator --> Ledger
    Integrator -->|after commit| Inbox
    Tests --> Verifier
ObjectCanonical ownerRule
Skill contracts, note schemas, templates, workflow definitions, runtime, migrations, and testsRepositoryChanges are reviewed and versioned here first.
Source evidence, compiled knowledge, entities, maps, outputs, and decisionsObsidian vaultMarkdown remains the durable canonical store.
Generated SOP mirrors in wiki/sops/Repository-derived, vault-residentCarry generated_from, contract_version, and source_hash; local commentary belongs in a separate overlay block/file.
Run state and evidence receiptssystem/runs/YYYY-MM/<run_id>/ in the vaultAppend-only receipts; staging is disposable only after a verified commit.
Dashboards and indexesDerived viewsRebuildable from canonical files and run receipts; never the sole evidence source.
Contract publication rule

Every generated artifact records at least:

contract_version: "8.1.0"
template_id: "concept-gold-standard"
template_version: "8.1.0"
run_id: "run-..."
source_id: "src-..."
source_hash: "sha256:..."

The repository and deployed vault template must have the same declared version and content hash before a write-capable run starts.

4. Command program and team admission

This design applies the three required command lenses:

LensConcrete implementation
Ender / command intentOne commander publishes objective, non-goals, priorities, stop rules, and shared-intent hash. Workers own bounded artifacts, not strategy.
Palantir / object-action ontologySources, concepts, entities, graph deltas, findings, decisions, and receipts are typed objects; stage, verify, commit, archive, and rollback are explicit actions.
Von Neumann / executable controlA persisted state machine, typed IPC, deterministic tools, checkpoints, verifier, and promotion instruction make the workflow replayable.
Team admission decision
  • One clipping: no five-agent fan-out. One commander runs the serial spine, invokes deterministic tools, uses one semantic author where needed, and requests an independent verification context before commit.

  • Two or more disjoint clippings/concepts: fan out only per-source and per-concept staging. Default semantic concurrency is 2 and remains configurable.

  • Shared maps, indexes, dashboards, logs, archive state, and final promotion: always single-writer and serial.

  • Consequential or low-evidence promotion: add a human approval gate; agent count does not substitute for evidence.

Command program
mission_id: obsidian-v8.1-<run_id>
objective: create evidence-grounded canonical knowledge without provenance or graph regression
non_goals:
  - rewrite_unselected_notes
  - fabricate_missing_evidence
  - parallel_write_shared_artifacts
commander: run-coordinator
integration_owner: vault-commit-owner
independent_verifier: governance-checker
shared_intent_hash: sha256(normalized mission + contract versions + permissions)
checkpoint_path: system/runs/YYYY-MM/<run_id>/state.json
command_board_path: system/runs/YYYY-MM/<run_id>/command-board.md
artifact_manifest_path: system/runs/YYYY-MM/<run_id>/manifest.json
max_attempts_per_failure_signature: 2
promotion_rule: all required receipts green + preimage hashes unchanged
stop_states:
  - NEEDS_INPUT
  - INSUFFICIENT_EVIDENCE
  - BLOCKED_DEPENDENCY
  - BLOCKED_PERMISSION
  - VERIFY_FAILED
  - NO_PROGRESS
  - BUDGET_STOP

5. Current-model execution strategy

The current model should be used where semantic judgment creates value; exactness belongs to deterministic tools.

Capability profileResponsibilitiesMust not own
deterministic-runtimeScan, normalize paths, hash, parse explicit metadata, detect identity, render templates, validate schemas/links/anchors, compare preimages, commit, archiveUnsupported semantic claims or topic synthesis
reasoning-authorReconstruct thesis, mechanisms, boundaries, falsifiers, comparison dimensions, implications, timeline, and meaningful links from supplied evidenceDirect writes to shared maps or archive state
graph-plannerProduce a typed graph delta from existing neighbors and domain mapsApplying shared-file changes
independent-checkerVerify provenance, claim-to-anchor support, understanding, no placeholders, graph delta, and exact post-write state using a fresh context manifestEditing the authored artifact during the same check
human-approverResolve ambiguous merges, high-impact rule promotion, source deletion, or consequential publicationRoutine deterministic validation

The model receives a compact context_manifest, not the whole vault or a prior worker chat transcript. The manifest contains only the contract version, source identity/hash, selected evidence blocks, candidate target, relevant neighbors/MOCs, allowed paths, known baseline debt, budget, and stop rules.

6. Five worker contracts plus control roles

Control roles
  • Commander: owns intent, task graph, leases, context manifests, budget, and recovery decisions.

  • Integration Owner: is the only process allowed to promote staged files and mutate shared artifacts.

  • Independent Verifier: evaluates staged artifacts and post-commit state; it cannot silently repair the author’s work.

Worker assembly
StageExclusive territoryInputsRequired artifact/receiptPromotion gate
W1 IngestOne clipping and one staged source candidateRaw clipping, vault fingerprint, source identity rulesImmutable full source candidate, normalized metadata with explicit unknowns, SHA-256, 3–7 stable anchors, duplicate decisionExact identity checked before staging and again before commit; no source truncation
W2 CognitiveOne staged concept/entity deltaSource anchors, canonical template, relevant existing notesGold-Standard concept/entity candidate with thesis, causal mechanism, evidence boundary, falsifier, adaptable Mermaid, paradigm matrix, key data, implications, links, and timelineEvery factual claim has a resolvable locator; no unresolved template tokens
W3 GraphWeaverOne graph-delta planCandidate note, neighbor query, domain MOC sliceTyped add/remove edge plan plus expected preimage hashes for MOC/Home/Central Index/CanvasNo direct shared-file write; at least two meaningful links or an explicit isolation reason
W4 GovernanceRead-only touched set and staged deltasAll stage receipts, schemas, preimages, baseline debtDeterministic lint receipt, semantic understanding decision, regression delta, commit/deny decisionAll P0/P1 touched-set checks green; global debt does not worsen
W5 DeliverableOne optional output candidateVerified concepts plus an explicit output triggerDecision memo, evaluation, compilation, or daily-loop artifact with evidence table and owner/action fieldsRuns only when requested or when a configured decision/output threshold is met

W5 is not a mandatory side effect of every clipping. A generic deliverable created only to make a pipeline look complete is a quality failure.

7. Typed IPC and durable state

Every worker returns the same envelope:

{
  "task_id": "task-...",
  "run_id": "run-...",
  "state": "DONE",
  "context_manifest": {
    "contract_version": "8.1.0",
    "vault_fingerprint": "sha256:...",
    "allowed_write_paths": ["system/runs/.../staging/..."],
    "budget": {"attempt": 1, "max_attempts": 2}
  },
  "artifact": [{"path": "...", "sha256": "...", "expected_preimage_sha256": null}],
  "artifact_hash": "sha256:manifest-hash",
  "evidence": [{"check": "source-anchor-resolution", "status": "PASS", "receipt": "..."}],
  "decision": {"promotion": "ALLOW"},
  "unknowns": [],
  "dependency": ["task-upstream"],
  "termination_reason": null,
  "next_action": "submit_to_governance"
}
State transition

DISCOVERED -> CLAIMED -> STAGED -> AUTHORED -> GRAPH_PLANNED -> VERIFIED -> COMMITTED -> ARCHIVED

  • A failure transitions to one explicit stop state and persists evidence plus next_action.

  • A retry resumes the failed node; it does not replay completed writes or append duplicate log entries.

  • A repeated failure signature after a changed strategy stops at attempt 2.

  • archive is legal only after COMMITTED and successful post-commit verification.

  • A transient failure leaves the clipping in place. A terminal failure may invoke the existing fail queue action only after its failure receipt is persisted.

8. Transaction and write protocol

  1. Preflight: resolve and fingerprint the vault; load contract/template hashes; record permissions and the global debt baseline.

  2. Discover: scan queue without mutation; create source identities and an idempotency key from operation, canonical source identity, target, and run/batch.

  3. Stage: workers write candidates only under system/runs/<run_id>/staging/.

  4. Plan: produce concept/entity and graph deltas with expected target preimage hashes.

  5. Verify: W4 checks schema, links, block refs, source immutability, placeholders, understanding, taxonomy, and no-regression rules.

  6. Commit serially: Integration Owner rechecks identity and preimages, promotes canonical files, applies graph deltas in dependency order, and appends one idempotent receipt.

  7. Verify post-commit: read touched files from disk and repeat the cheapest direct checks against final paths.

  8. Archive: invoke the clipping archive adapter only after the commit receipt is green.

  9. Close: persist the final manifest, update one keyed dashboard block, remove disposable staging, release leases, and record a short after-action review.

Rollback may remove or restore derived concept/map writes from the transaction manifest, but it must not erase original source evidence or append-only receipts.

9. Canonical concept template and retrofit lane

V8.1 template decision

Neither current template should be copied wholesale over the other. The V8.1 canonical template should merge:

  • the live vault template’s flexible Mermaid topology selection, richer mechanism decomposition, URL/author/date fields, and five-dimension comparison matrix;

  • the repo template’s explicit evidence level, knowledge stage, evidence boundary, falsifier, exact locators, actionable implications, governance constraint, and claim-level source anchors.

One schema should validate the data model; Markdown templates should be renderers of that schema. The live template named by the user is the structural/visual baseline for retrofits, with the stronger provenance gates restored before migration begins.

Previously imported concept retrofit

Run retrofits as a separate migration lane so they cannot block live clipping ingestion.

  1. Build an immutable candidate manifest using import markers, source backlinks, template version, unresolved placeholders, or missing Gold-Standard sections.

  2. Partition candidates by domain/MOC and source availability.

  3. Classify each page:

    • STRUCTURE_ONLY: content is supported; normalize fields/sections without changing claims.

    • EVIDENCE_RESTORABLE: source exists; the reasoning author may rebuild semantic sections from resolvable anchors.

    • INSUFFICIENT_EVIDENCE: preserve the page, mark the debt, and do not invent missing content.

  4. Generate a page-level before/after diff, source-anchor ledger, graph delta, and rollback entry.

  5. Verify every changed claim and locator, then commit one bounded domain batch at a time.

  6. Re-run touched-set lint and compare global health counts after each batch.

The first retrofit canary should be a small, representative set from one domain, including one clean page, one broken-source page, and one duplicate/title-collision case.

10. Governance and quality gates

Required touched-set gates
  • Vault identity, contract version, and template hash match the run manifest.

  • Source identity is unique at commit time; reruns converge to one canonical source and one logical receipt.

  • Immutable source content equals its recorded SHA-256 after commit.

  • Every required block locator exists and every derived claim resolves to an allowed source locator.

  • Required YAML fields pass the note-type schema.

  • No {{...}}, placeholder prose, generic metrics, or Pending Manual Review is accepted as success.

  • New wikilinks resolve, or the artifact records an explicit reviewed isolation/debt decision.

  • Concept pages pass the understanding gate: thesis, mechanism, boundary, falsifier/counterpoint, and reusable implication.

  • Shared artifacts were changed only by the Integration Owner and their preimage hashes matched.

  • Post-commit file hashes and archive state match the final manifest.

Global migration gate

Legacy debt is tracked separately from new defects:

  • touched files: zero new P0/P1 findings;

  • whole vault: no increase in broken source refs, unresolved links, missing required fields, or duplicate machine-owned dashboard blocks;

  • debt reduction claims: only from fresh full or explicitly scoped scans with paths, exclusions, and counts.

Dashboard rule

Replace repeated appended snapshots with one marker-bounded block per dashboard producer, keyed by producer and snapshot type. History lives in run receipts, not duplicated dashboard sections.

11. Target project layout

contracts/
  vault-contract.yaml
  ipc/worker-receipt.schema.json
  notes/source.schema.json
  notes/concept.schema.json
  notes/entity.schema.json
  notes/output.schema.json
workflows/
  obsidian-worker-flow-v8.1.yaml
tools/
  worker_flow/
    cli.py
    engine.py
    state.py
    transactions.py
    stages/
    validators/
  worker_flow_engine.py              # compatibility facade during migration
tests/
  contracts/
  integration/
  migration/
system/templates/
  template-source-v8.1.md
  template-concept-gold-standard-v8.1.md
  template-output-deliverable-v8.1.md

Vault runtime state:

system/runs/YYYY-MM/<run_id>/
  command-board.md
  state.json
  manifest.json
  receipts/
  staging/
  rollback.json
Legacy entry-point disposition
Current entry pointV8.1 role
tools/worker_flow_engine.pyCompatibility CLI that delegates to the new runtime until callers migrate
tools/run_30min_clippings_pipeline.pyDeprecated authoring path; retain only as a queue/runtime adapter during transition
tools/multi_agent_vault_team.pyReplace with the command board and bounded worker topology
tools/adapt_skills_to_vault.pyConvert to dry-run-first, hash-aware SOP publisher; no unconditional overwrite/log append
system/scripts/run-clippings-pipeline.ps1Keep as a minimal scan/archive/fail queue adapter; it does not decide semantic success
KPI/flywheel scriptsRead-only scanners plus marker-bounded derived-view updates

12. Migration sequence

PhaseChangeExit evidence
0. Blueprint approvalFreeze implementation and agree authority, template, rollout, and failure boundariesApproved architecture decision record
1. Contract unificationReconcile V7.2/V8 labels, merge the canonical concept schema/template, add hashes and vault fingerprintRepo/vault contract parity test
2. Runtime kernelAdd persisted state, command board, typed IPC, dry-run, leases, idempotency, and transaction manifestsResume/replay and no-op tests
3. Safe ingestImplement full-source preservation, identity dedupe, anchors, staged commit, and post-commit archiveFresh/duplicate/race/failure integration tests
4. Cognitive + graphReplace generic authoring with evidence-bounded semantic compilation; emit graph deltas; serialize shared integrationClaim-anchor and shared-writer tests
5. Real governanceImplement all deterministic touched-set checks, semantic understanding review, and no-regression baselineIntentional defect tests fail with correct status
6. Retrofit canaryUpgrade a small manifest of previously imported pages using the live template baseline plus V8.1 provenance gatesPage diffs, rollback test, zero new P0/P1 defects
7. Controlled rolloutExpand by domain batch; keep shadow mode and legacy compatibility adapters until two clean cyclesBatch receipts and after-action reviews
8. ConsolidationRetire duplicate orchestrators, align docs, publish SOP mirrors, and remove stale compatibility pathsEntry-point inventory and full contract suite

13. Acceptance test matrix

The implementation is not production-ready until these cases pass:

  1. Fresh clipping with complete metadata creates one immutable source and one supported concept.

  2. The same clipping rerun is a verified no-op and does not append a duplicate receipt.

  3. Two workers racing on the same canonical URL converge to one source.

  4. Missing author/date remains explicitly unknown; no field is fabricated.

  5. A broken source anchor blocks promotion and leaves the clipping unarchived.

  6. A concept containing an unresolved template token fails Governance.

  7. A changed MOC preimage blocks the graph commit and preserves both candidate and recovery state.

  8. A mid-run restart resumes from the last verified node without replaying completed writes.

  9. A Governance failure can roll back derived writes without deleting source evidence or receipts.

  10. Existing whole-vault debt does not block a clean touched set, but any regression does.

  11. Retrofit of an evidence-poor concept returns INSUFFICIENT_EVIDENCE rather than synthetic Gold-Standard prose.

  12. Dashboard refresh produces one current machine-owned snapshot and preserves historical receipts elsewhere.

  13. W5 does not run without an explicit output trigger.

  14. --audit reports actual YAML/link/block/source findings, scope, exit status, and reproducible paths.

Approve these defaults before implementation:

  1. Architecture: repository control plane + Obsidian canonical data plane + transactional runtime bridge.

  2. Authority: one merged V8.1 schema/template published with matching hashes; the live Gold-Standard template is the retrofit baseline, not an unversioned overwrite source.

  3. Topology: serial spine, semantic fan-out capped at 2 by default, one Integration Owner, independent Governance.

  4. Rollout: dry-run -> shadow -> one-domain retrofit canary -> bounded domain batches.

  5. Safety: archive only after post-commit verification; no fabricated provenance; touched-set zero-regression gate.

After approval, Phase 1 should begin with contract/template reconciliation and acceptance-test scaffolding. Live-vault content migration should not begin until Phases 1–5 are green in an isolated test vault.

15. Temporal and live-vault rollout amendment

The vault owner subsequently expanded the rollout to include maps/, sources/, system/, and wiki/. This does not weaken the transaction boundary:

  • time-sensitive claims carry freshness_tier, valid_as_of, last_verified, next_review, and freshness_status;

  • the same URL with changed content creates a new immutable snapshot linked to prior snapshots;

  • existing source bodies are never mechanically upgraded in place;

  • live rollout begins with a read-only inventory, then a system-contract deployment, one new project source/concept, and one evidence-restorable concept retrofit;

  • map changes remain marker-bounded and single-writer;

  • domain batches advance only when touched-set P0/P1 findings stay at zero and whole-vault debt does not regress.

The verified baseline and selected canary are recorded in docs/live-vault-v8.1-baseline-2026-08-16.md.

318 files · 7 not served here

Advantages

Limitations

  • Does not support dynamic or cyclic graphs; graph-engineering is bounded to static DAGs. evidence: README.md
  • Requires a specific transactional runtime for full functionality. evidence: AGENTS.md

Security

Risk level: Low risk

This brain runs

Agent instructions that run or fetch something (88)

  • AGENTS.md: V8.1 defines an explicit **5-Stage Worker Assembly Pipeline** in `workflows/worker-flows.md`, enforced by the canonical transactional runtime `python -m tools.worker_flow.cli`.
  • AGENTS.md: **loop-engineering** — Temporal-depth control through bounded Trigger → Execute → Verify → State loops, durable contracts, hard budgets, and stop/recovery rules.
  • AGENTS.md: `## Success Metrics` — minimum observable result for one successful run.
  • GEMINI.md: V8.1 defines a transactional **5-Stage Worker Assembly Pipeline** (`workflows/worker-flows.md`) enforced by `python -m tools.worker_flow.cli`.
  • skills/agent-teams-command/SKILL.md: <execute>
  • skills/agent-teams-command/SKILL.md: Run regression tests.
  • skills/agent-teams-command/SKILL.md: </execute>
  • skills/agentic-engineering/SKILL.md: Run the adoption gate: use an agent only when ambiguity/adaptation outweigh orchestration, verification, and maintenance cost.
  • skills/agentic-engineering/SKILL.md: <execute>
  • skills/agentic-engineering/SKILL.md: only host code may execute tools or decide continuation.
  • skills/agentic-engineering/SKILL.md: Run a thin loop: understand -> plan -> smallest change -> targeted test -> inspect diff/state -> broader check.
  • skills/agentic-engineering/SKILL.md: </execute>
  • skills/ai-six-sigma-property-os/SKILL.md: bounded agents execute and audit;
  • skills/ai-six-sigma-property-os/SKILL.md: <execute>
  • skills/ai-six-sigma-property-os/SKILL.md: </execute>
  • skills/anthropic-os/SKILL.md: Run Four-C in order: **Context** (truth/history), **Connections** (systems/accounts), **Capabilities** (skills/SOPs/evals), **Cadence** (triggers/reviews).
  • skills/anthropic-os/SKILL.md: <execute>
  • skills/anthropic-os/SKILL.md: Run dual prediction when useful: human and agent predict outcome independently;
  • skills/anthropic-os/SKILL.md: </execute>
  • skills/behavior-design/SKILL.md: <execute>
  • skills/behavior-design/SKILL.md: **H3 SOP:** write `trigger -> action -> evidence -> recovery -> stop` so a missed run has a next move.
  • skills/behavior-design/SKILL.md: </execute>
  • skills/behavior-design/SKILL.md: run a short observation period before optimizing.
  • skills/cognitive-compile/SKILL.md: <execute>
  • skills/cognitive-compile/SKILL.md: </execute>
  • skills/context-manager/SKILL.md: <execute>
  • skills/context-manager/SKILL.md: </execute>
  • skills/creativity-engine/SKILL.md: <execute>
  • skills/creativity-engine/SKILL.md: </execute>
  • skills/daily-okr/SKILL.md: Run one daily objective through seven linked Key Results.
  • skills/daily-okr/SKILL.md: <execute>
  • skills/daily-okr/SKILL.md: **Behavior:** execute one minimum behavior linked to the objective.
  • skills/daily-okr/SKILL.md: </execute>
  • skills/deep-research/SKILL.md: <execute>
  • skills/deep-research/SKILL.md: Run a broad discovery pass;
  • skills/deep-research/SKILL.md: Run a gap-fill pass only for decision-critical unknowns.
  • skills/deep-research/SKILL.md: Run an adversarial pass: strongest counterevidence, alternative mechanism, stale data, selection bias, and missing base rate.
  • skills/deep-research/SKILL.md: </execute>
  • skills/graph-engineering/SKILL.md: Run the admission gate before drawing a graph:
  • skills/graph-engineering/SKILL.md: Probe candidate independence with a small dry run.
  • skills/graph-engineering/SKILL.md: <execute>
  • skills/graph-engineering/SKILL.md: Write the JSON contract and run `scripts/validate_graph_contract.py <contract.json> --strict`.
  • skills/graph-engineering/SKILL.md: node success alone cannot certify graph success.
  • skills/graph-engineering/SKILL.md: </execute>
  • skills/graph-engineering/SKILL.md: run only independent ready nodes.
  • skills/harness-engineering/SKILL.md: Run the trace gate: the harness must be able to show what the agent saw, proposed, called, changed, and verified.
  • skills/harness-engineering/SKILL.md: <execute>
  • skills/harness-engineering/SKILL.md: The host decides whether to execute, continue, checkpoint, or escalate;
  • skills/harness-engineering/SKILL.md: </execute>
  • skills/harness-engineering/SKILL.md: Verify permissions with actual environment boundaries and run an independent end-to-end trace.
  • skills/harness-engineering/SKILL.md: A model emits plausible success text with a tool request: validate and execute the tool in host code, then verify its result;
  • skills/harness-engineering/SKILL.md: A maintenance run finds no eligible change: emit a verified `NO_OP` receipt and zero external outputs rather than creating notification or PR noise.
  • skills/harness-engineering/SKILL.md: The scheduler ran on time but the state store was stale: block mutation, mark the run failed, and recover from the last verified checkpoint.
  • skills/harness-engineering/SKILL.md: A Graph worker completes twice after lease expiry: deduplicate by node/run identity and release successors only from one verified transition.
  • skills/knowledge-ops/SKILL.md: <execute>
  • skills/knowledge-ops/SKILL.md: **Verify:** read after write, check links/source refs, rerun exact-identity search, and run representative retrieval queries.
  • skills/knowledge-ops/SKILL.md: Use idempotency keys for machine append operations: derive the key from operation, canonical source identity, target, and run/batch id;
  • skills/knowledge-ops/SKILL.md: </execute>
  • skills/knowledge-ops/SKILL.md: make no whole-vault claim.
  • skills/loop-engineering/SKILL.md: <skill_contract> <input>A repeatable task with inspectable state, finite budgets, permissions, and an independent verifier.</input> <output>A validated Trigger -> Execute -> Verify -> State contract plus resumable run receipts.</output> <done>The declared metric or stop condition is su …[+161 chars]
  • skills/loop-engineering/SKILL.md: **Goal:** run until a defined end state or cap.
  • skills/loop-engineering/SKILL.md: <execute>
  • skills/loop-engineering/SKILL.md: **Act:** execute one bounded action and capture artifact/diff/receipt.
  • skills/loop-engineering/SKILL.md: </execute>
  • skills/loop-engineering/SKILL.md: A scheduled job fired but produced no run receipt: status is triggered, not completed;
  • skills/project-flow-ops/SKILL.md: <execute>
  • skills/project-flow-ops/SKILL.md: Run the verification named in the definition of done.
  • skills/project-flow-ops/SKILL.md: </execute>
  • skills/session-learn/SKILL.md: <execute>
  • skills/session-learn/SKILL.md: **Pattern** — a reusable Trigger -> Execute -> Verify -> State sequence.
  • skills/session-learn/SKILL.md: </execute>
  • skills/startup-evaluation/SKILL.md: <execute>
  • skills/startup-evaluation/SKILL.md: </execute>
  • skills/verify-before-claim/SKILL.md: <execute>
  • skills/verify-before-claim/SKILL.md: Run the selected check after the final material change.
  • skills/verify-before-claim/SKILL.md: </execute>
  • skills/wiki-ingest/SKILL.md: record the identity query in the run ledger.
  • skills/wiki-ingest/SKILL.md: <execute>
  • skills/wiki-ingest/SKILL.md: Give every machine log entry an idempotency key derived from run/batch, operation, canonical source identity, and target;
  • skills/wiki-ingest/SKILL.md: **Verify:** run targeted link, source-ref, frontmatter, block-ref, empty-file, navigation, and post-write exact-identity checks over touched files.
  • skills/wiki-ingest/SKILL.md: </execute>
  • skills/wiki-lint/SKILL.md: make no content mutation unless separately authorized.
  • skills/wiki-lint/SKILL.md: <execute>
  • skills/wiki-lint/SKILL.md: Run twelve checks and preserve file-level evidence:
  • skills/wiki-lint/SKILL.md: </execute>
  • skills/wiki-lint/SKILL.md: If repair was authorized, run the relevant check again after each bounded repair.
  • skills/workflow-audit/SKILL.md: <execute> Extract a bounded list of distinct work candidates.
  • skills/workflow-audit/SKILL.md: </execute>

Install scripts (2)

  • install.ps1: pwsh install.ps1
  • install.sh: sh install.sh
  • Low risk: scripts-present (install.ps1)
  • Low risk: scripts-present (install.sh)

Attribution and licence

First committed by
GitHub avatar of Mark393295827Mark393295827
Publisher
Markk-gao (Community)
Source
Mark393295827/third-brain-v7-skills · commit 5a64514
Licence
MIT License (files served here)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Contributors
Mark393295827

AutoGineer is not affiliated with or endorsed by Mark393295827.

Install from source

7 of its files are not served here, so there is no ZIP. Mark393295827/third-brain-v7-skills at 5a64514