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
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.
| Folder | Role | Files |
|---|---|---|
| .github | agent-config | 5 |
| assets | attachments | 5 |
| commands | agent-instructions | 4 |
| docs | docs | 21 |
| examples | examples | 10 |
| hooks | hooks | 1 |
| skills | agent-instructions | 40 |
| sources | raw-sources | 13 |
| tests | tests | 8 |
| tools | scripts | 51 |
| adapters | folder | 2 |
| artifacts | folder | 28 |
| contracts | folder | 18 |
| core | folder | 6 |
| experiments | folder | 7 |
| maps | folder | 1 |
| outreach | folder | 46 |
| system | folder | 33 |
| workflows | folder | 1 |
Requirements
Works with: Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Amp, Cline, JetBrains Junie, Devin (ex-Windsurf)
Set it up
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.ps1install.sh:sh install.sh
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 5a645148a108d71c76521715117b737ae60b1423Claude Code reads CLAUDE.md from this folder automatically.
cd third-brain-v7-skills && claude
AutoGineer scanned these files at commit 5a64514.
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/kernelWindows 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
| Scenario | Before | After |
|---|---|---|
| Research PDF | Summarized once, then forgotten | wiki-ingest: source notes, concept pages, linked wiki |
| Coding session | Agent: "I fixed it" (no proof) | verify-before-claim: requires test output + exit code before any claim |
| Daily work | Tasks and ideas scatter across chat | daily-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 -> VerificationThe 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
| Skill | What it does |
|---|---|
| wiki-ingest | Preserve an immutable source, compile linked understanding, enforce promotion boundaries, and verify every touched file. |
| verify-before-claim | Iron rule: no completion claim without fresh, scope-matched evidence; consequential actions also require independent verification, approval, and rollback. |
📅 Daily Loop
| Skill | What it does |
|---|---|
| daily-okr | Execute a 7-KR cycle: Input → Cognition → Wiki → Behavior → Creativity → Output → Feedback, with an artifact or receipt for every completed KR. |
🎯 Behavior & Creativity
| Skill | What it does |
|---|---|
| behavior-design | Turn outcomes into observable minimum behavior, cues, SOPs, recovery, evidence, and review. |
| creativity-engine | Generate mechanism-diverse options, rank evidence gaps, and define three bounded minimum experiments. |
🔬 Research & Quality
| Skill | What it does |
|---|---|
| deep-research | STOW-compatible research harness with evidence trails, source/claim ledgers, privacy checks, and direct handoff to wiki-ingest. |
| session-learn | Extract knowledge patterns from sessions — concepts, entities, corrections, patterns, ideas, decisions, gaps. Closure protocol ensures learning feeds back into the wiki. |
📊 Context & Engineering
| Skill | What it does |
|---|---|
| context-manager | Derive budgets at runtime, checkpoint state, compact with KEEP/SUMMARIZE/DROP/RETRIEVE, and route by capability. |
| loop-engineering | Control temporal depth: turn repeatable work into a bounded Trigger -> Execute -> Verify -> State loop with durable state, finite budgets, and explicit stop/recovery rules. |
| graph-engineering | Control dependency width: validate bounded static DAGs with explicit dependencies, independent branches, typed joins, and node-local recovery. |
| agentic-engineering | Design agent workflows as spec-driven macro actions with quality ceilings, verification gates, delegated-action boundaries, and state checkpoints. |
| harness-engineering | Provide the runtime scheduler, permissions, leases, tools, provenance, and observability needed to execute agent workflows safely. |
| agent-teams-command | Admit 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 reviewknowledge-ops— Multi-layer knowledge management: classify, deduplicate, preserve evidence hierarchy, vector + Markdown retrievalwiki-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 closeoutcognitive-compile— 8-section framework: Question → Facts → Concepts → Pattern Recognition → Conflict Detection → Hypothesis Generation
🎨 Behavior & Creativity
behavior-design— Outcome → minimum behavior → cue → SOP → evidence → reviewcreativity-engine— Mechanism-diverse combinations, scoring, and falsifiable minimum tests
🔬 Research & Quality
deep-research— STOW-compatible research harness, evidence trails, source/claim ledgersverify-before-claim— Fresh scope-matched evidence, independent checks, approval, rollback
🔄 Learning & Flow
session-learn— 7 signal types: concepts, entities, corrections, patterns, ideas, decisions, gapsproject-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 rulesgraph-engineering— Dependency width through bounded static DAGs, explicit branches, typed joins, and node-local recoveryagentic-engineering— Spec-driven macro actions, quality ceilings, verification gates, state checksharness-engineering— Runtime scheduler, permissions, system-call tools, delegated gates, provenance, observabilityagent-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 economicsanthropic-os— Governed operating-system experiments: Four-C, 3B, prediction errors, permission ladderai-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
| Layer | Principle | Skills |
|---|---|---|
| 🧠 Knowledge OS | Capture, structure, lint, and promote knowledge over time | wiki-ingest, knowledge-ops, wiki-lint |
| ⚡ Daily Loop | Close the knowledge-to-action cycle every day | daily-okr, cognitive-compile |
| 🎯 Behavior & Creativity | Turn knowledge into habits and novel ideas | behavior-design, creativity-engine |
| 🔬 Research & Quality | Verify before claiming, research with rigor | deep-research, verify-before-claim |
| 🔄 Continuous Learning | Extract patterns from every session | session-learn, project-flow-ops |
| 📊 Context | Manage hot context, durable checkpoints, and runtime budgets | context-manager |
| 🏗️ Engineering | Design bounded loops, static dependency graphs, harnesses, agent workflows, and multi-agent systems | loop-engineering, graph-engineering, agentic-engineering, harness-engineering, agent-teams-command |
| 💼 Strategy & Operations | Evaluate startups, design AI quality systems | startup-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.
| Stage | Core Skills | Unlock When |
|---|---|---|
| Week 1 | wiki-ingest + verify-before-claim | You can ingest 1 source/day + every claim has fresh evidence |
| Weeks 2-4 | + daily-okr + session-learn | Daily artifacts and verified learnings feed back to the wiki |
| Month 2+ | + cognitive-compile + behavior-design + creativity-engine | Wiki has 50+ pages or repeated decisions need synthesis |
| Month 3+ | + knowledge-ops + loop-engineering + harness-engineering + agentic-engineering | Retrieval, looping reliability, permissions, or delegated actions become bottlenecks |
| Dependency graph | + graph-engineering after loop-engineering | Explicit dependencies, independent branches, typed joins, or node-local recovery create more value than orchestration and review cost |
| Multi-agent | + agent-teams-command + project-flow-ops | Work splits into separate owners with clear integration gates |
| Strategy | + startup-evaluation + anthropic-os + deep-research | Need startup health, market, operating-system decisions |
| Operations | + ai-six-sigma-property-os | Need measurable service quality, dispatch, evidence loops |
Installation
For Codex CLI (Primary host/kernel)
# Personal skills (available across all projects)
bash install.sh codexFor Cursor
bash install.sh cursorFor Windsurf
bash install.sh windsurfCompatibility adapters: Claude Code / Gemini CLI
bash install.sh claude
bash install.sh geminiFull guide: GUIDE.md
Example Workflows
Each workflow is copyable into your agent. See examples/ for complete, verified examples:
3-minute quickstart — Fastest path to useful output
Research PDF to wiki — Turn a source into linked pages
Verified code session — Use verification gates before claiming a fix
Daily knowledge loop — Run a compact daily OKR workflow
Startup evaluation sprint — Turn an idea into validated assumptions
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, runsTools & References
| Resource | Purpose |
|---|---|
| tools/index.html | V8.1 visual skill navigator |
| tools/token-calculator.html | Historical V5 cost-model calculator; not a runtime authority |
| GUIDE.md | Full installation & troubleshooting |
| V7 最大潜力使用手册(历史参考) | Earlier profile、知识飞轮、Agent 工程、治理和 30 天采用路径 |
| CLAUDE.md | Claude Code setup |
| CONTRIBUTING.md | How 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:
Verification first: No "done" without proof. No claims without evidence. Expected value over confidence.
Knowledge compounds: Every session should improve the wiki, not scatter across chat history.
Closed loops: Ingest → Process → Learn → Scale → Verify. No loose ends.
Related Work
Agent Skills Format — Open specification for agent skills
llm-wiki-agent — Original STOW pattern implementation by SamurAIGPT
Karpathy LLM OS — Conceptual framework
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.
experiments/graph-engineering/benchmark.py
Shown as plain text.
#!/usr/bin/env python3
"""Bounded local verification of two static Loop-vs-Graph fixtures."""
from __future__ import annotations
import argparse
import ast
import hashlib
import json
import math
import platform
import statistics
import threading
import time
from concurrent.futures import ThreadPoolExecutor, wait
from datetime import datetime, timezone
from pathlib import Path
from typing import Any, Dict, List, Optional, Set, Tuple
EXPERIMENT_ROOT = Path(__file__).resolve().parent
DEFAULT_FIXTURE = EXPERIMENT_ROOT / "fixtures" / "architecture_tasks.json"
DEFAULT_RECEIPT = EXPERIMENT_ROOT / "receipts" / "loop-vs-graph-receipt.json"
SUPPORTED_BRANCH_OPERATIONS = {"sum", "unique_sorted", "checksum"}
SUPPORTED_SEQUENCE_OPERATIONS = {"add", "multiply", "subtract", "square"}
class BudgetExceeded(RuntimeError):
"""Raised when a declared finite time budget is exhausted."""
class TransientNodeFailure(RuntimeError):
"""Injected retryable failure used by the static-diamond fixture."""
class IntermediateVerificationError(RuntimeError):
"""Raised when a dependency-chain step differs from its expected output."""
def _sha256_file(path: Path) -> str:
return hashlib.sha256(path.read_bytes()).hexdigest()
def _semantic_fixture_hash(fixture: Dict[str, Any]) -> str:
payload = {
key: value for key, value in fixture.items() if not key.startswith("_fixture_")
}
encoded = json.dumps(
payload,
ensure_ascii=False,
separators=(",", ":"),
sort_keys=True,
).encode("utf-8")
return hashlib.sha256(encoded).hexdigest()
def _positive_number(value: Any, field: str, allow_zero: bool = False) -> None:
if isinstance(value, bool) or not isinstance(value, (int, float)):
raise ValueError("%s must be a finite number" % field)
if not math.isfinite(value):
raise ValueError("%s must be finite" % field)
if allow_zero and value < 0:
raise ValueError("%s must be greater than or equal to zero" % field)
if not allow_zero and value <= 0:
raise ValueError("%s must be greater than zero" % field)
def _require_integer(value: Any, field: str) -> None:
if isinstance(value, bool) or not isinstance(value, int):
raise ValueError("%s must be an integer" % field)
def validate_fixture(fixture: Dict[str, Any]) -> None:
"""Validate finite budgets and the exact two-fixture experiment contract."""
budgets = fixture.get("budgets")
if not isinstance(budgets, dict):
raise ValueError("budgets must be an object")
for field in (
"max_total_wall_time_seconds",
"max_task_wall_time_seconds",
"max_concurrency",
"max_nodes",
"max_review_load_units",
"trials",
):
_positive_number(budgets.get(field), field)
for field in ("max_retries_per_node", "external_side_effect_limit"):
_positive_number(budgets.get(field), field, allow_zero=True)
for field in (
"max_retries_per_node",
"max_concurrency",
"max_nodes",
"max_review_load_units",
"external_side_effect_limit",
"trials",
):
_require_integer(budgets[field], field)
if budgets["external_side_effect_limit"] != 0:
raise ValueError("external_side_effect_limit must be zero")
policy = fixture.get("admission_policy")
if not isinstance(policy, dict):
raise ValueError("admission_policy must be an object")
_positive_number(
policy.get("minimum_independent_width"),
"minimum_independent_width",
)
_positive_number(
policy.get("minimum_critical_path_payback_seconds"),
"minimum_critical_path_payback_seconds",
)
_positive_number(
policy.get("max_additional_review_load_units"),
"max_additional_review_load_units",
allow_zero=True,
)
_require_integer(
policy["minimum_independent_width"],
"minimum_independent_width",
)
_require_integer(
policy["max_additional_review_load_units"],
"max_additional_review_load_units",
)
task_a = fixture.get("task_a")
if not isinstance(task_a, dict) or not isinstance(task_a.get("branches"), list):
raise ValueError("task_a.branches must be a list")
branches = task_a["branches"]
if not branches:
raise ValueError("task_a.branches must not be empty")
if len(branches) + 2 > budgets["max_nodes"]:
raise ValueError("task_a static diamond exceeds max_nodes")
if budgets["max_concurrency"] < len(branches):
raise ValueError(
"task_a requires max_concurrency for every static diamond branch"
)
branch_ids = [branch.get("id") for branch in branches]
if any(not isinstance(node_id, str) or not node_id for node_id in branch_ids):
raise ValueError("every task_a branch needs a non-empty id")
if len(branch_ids) != len(set(branch_ids)):
raise ValueError("task_a branch ids must be unique")
if set(task_a.get("expected", {})) != set(branch_ids):
raise ValueError("task_a.expected keys must match branch ids")
for branch in branches:
node_id = branch["id"]
if branch.get("operation") not in SUPPORTED_BRANCH_OPERATIONS:
raise ValueError("unsupported task_a operation: %s" % branch.get("operation"))
_positive_number(branch.get("work_seconds"), "%s.work_seconds" % node_id)
fail_attempts = branch.get("fail_attempts")
_require_integer(fail_attempts, "%s.fail_attempts" % node_id)
if fail_attempts < 0:
raise ValueError("%s.fail_attempts must not be negative" % node_id)
if fail_attempts > budgets["max_retries_per_node"]:
raise ValueError(
"%s.fail_attempts exceeds max_retries_per_node" % node_id
)
failing_branches = [
branch for branch in branches if branch["fail_attempts"] > 0
]
if len(failing_branches) != 1:
raise ValueError("task_a requires exactly one injected failing branch")
failing_node = failing_branches[0]["id"]
if task_a.get("transient_failure_node") != failing_node:
raise ValueError(
"task_a.transient_failure_node must match the exactly one failing branch"
)
task_b = fixture.get("task_b")
if not isinstance(task_b, dict) or not isinstance(task_b.get("steps"), list):
raise ValueError("task_b.steps must be a list")
steps = task_b["steps"]
if not steps:
raise ValueError("task_b.steps must not be empty")
step_ids = [step.get("id") for step in steps]
if len(step_ids) != len(set(step_ids)):
raise ValueError("task_b step ids must be unique")
seen = set() # type: Set[str]
for index, step in enumerate(steps):
node_id = step.get("id")
if not isinstance(node_id, str) or not node_id:
raise ValueError("every task_b step needs a non-empty id")
if step.get("operation") not in SUPPORTED_SEQUENCE_OPERATIONS:
raise ValueError("unsupported task_b operation: %s" % step.get("operation"))
_positive_number(step.get("work_seconds"), "%s.work_seconds" % node_id)
if "expected_output" not in step:
raise ValueError("%s.expected_output is required" % node_id)
dependencies = step.get("depends_on")
if not isinstance(dependencies, list):
raise ValueError("%s.depends_on must be a list" % node_id)
if any(dependency not in seen for dependency in dependencies):
raise ValueError("%s has a dangling or forward dependency" % node_id)
if index > 0 and step_ids[index - 1] not in dependencies:
raise ValueError("task_b must remain dependency-heavy and sequential")
seen.add(node_id)
if steps[-1]["expected_output"] != task_b.get("expected"):
raise ValueError("task_b final expected output must match the last step")
branch_work = [
branch["work_seconds"] * (branch["fail_attempts"] + 1)
for branch in branches
]
loop_worst_case = sum(branch_work)
graph_worst_case = max(branch_work)
sequence_worst_case = sum(step["work_seconds"] for step in steps)
if max(loop_worst_case, graph_worst_case, sequence_worst_case) >= budgets[
"max_task_wall_time_seconds"
]:
raise ValueError("declared worst-case workload must fit the task time budget")
total_worst_case = budgets["trials"] * (
loop_worst_case + graph_worst_case
) + sequence_worst_case
if total_worst_case >= budgets["max_total_wall_time_seconds"]:
raise ValueError(
"declared worst-case benchmark must fit the total time budget"
)
def load_fixture(path: Path) -> Dict[str, Any]:
fixture = json.loads(path.read_text(encoding="utf-8"))
validate_fixture(fixture)
fixture["_fixture_source"] = {
"absolute_path": str(path.resolve()),
"sha256": _sha256_file(path),
"semantic_sha256": _semantic_fixture_hash(fixture),
}
return fixture
def _fixture_provenance(fixture: Dict[str, Any]) -> Dict[str, str]:
source = fixture.get("_fixture_source")
if not isinstance(source, dict):
raise ValueError("fixture provenance is absent; load it with load_fixture")
source_path = Path(source["absolute_path"])
current_file_hash = _sha256_file(source_path)
if current_file_hash != source["sha256"]:
raise ValueError("fixture file changed after load")
if _semantic_fixture_hash(fixture) != source["semantic_sha256"]:
raise ValueError("in-memory fixture differs from its loaded source")
try:
relative_path = source_path.resolve().relative_to(EXPERIMENT_ROOT.resolve())
display_path = str(relative_path).replace("\\", "/")
except ValueError:
display_path = source_path.name
return {
"algorithm": "sha256",
"path": display_path,
"sha256": current_file_hash,
}
def _canonical_checksum(values: List[int]) -> str:
payload = json.dumps(values, separators=(",", ":")).encode("utf-8")
return hashlib.sha256(payload).hexdigest()
def _run_branch_operation(operation: str, values: List[int]) -> Any:
if operation == "sum":
return sum(values)
if operation == "unique_sorted":
return sorted(set(values))
if operation == "checksum":
return _canonical_checksum(values)
raise ValueError("unsupported branch operation: %s" % operation)
def _check_deadline(deadline: float, scope: str, budget_name: str) -> None:
if time.perf_counter() >= deadline:
raise BudgetExceeded("%s exceeded %s" % (scope, budget_name))
def _check_total_deadline(
deadline: float,
boundary: str,
checked_boundaries: List[str],
) -> None:
checked_boundaries.append(boundary)
_check_deadline(deadline, boundary, "max_total_wall_time_seconds")
def _run_branch_with_retry(
branch: Dict[str, Any],
values: List[int],
max_retries: int,
deadline: float,
attempts: Dict[str, int],
retry_events: List[Dict[str, Any]],
shared_lock: threading.Lock,
activity: Dict[str, int],
start_barrier: Optional[threading.Barrier] = None,
) -> Tuple[str, Any]:
node_id = branch["id"]
allowed_attempts = max_retries + 1
while True:
_check_deadline(deadline, node_id, "max_task_wall_time_seconds")
with shared_lock:
attempts[node_id] = attempts.get(node_id, 0) + 1
attempt = attempts[node_id]
activity["active"] += 1
activity["peak"] = max(activity["peak"], activity["active"])
try:
if attempt == 1 and start_barrier is not None:
remaining = max(0.0, deadline - time.perf_counter())
try:
start_barrier.wait(timeout=remaining)
except threading.BrokenBarrierError:
raise BudgetExceeded(
"%s could not enter the bounded concurrency barrier"
% node_id
)
time.sleep(branch["work_seconds"])
result = _run_branch_operation(branch["operation"], values)
if attempt <= branch["fail_attempts"]:
raise TransientNodeFailure(
"injected transient failure at %s attempt %s"
% (node_id, attempt)
)
_check_deadline(deadline, node_id, "max_task_wall_time_seconds")
return node_id, result
except TransientNodeFailure as error:
with shared_lock:
retry_events.append(
{
"node": node_id,
"failed_attempt": attempt,
"signature": "INJECTED_TRANSIENT_FAILURE",
"diagnosis": str(error),
"next_action": "RETRY_NODE_LOCALLY",
}
)
if attempt >= allowed_attempts:
raise
finally:
with shared_lock:
activity["active"] -= 1
def _correctness_receipt(
observed: Dict[str, Any],
expected: Dict[str, Any],
) -> Dict[str, Any]:
mismatches = {
key: {"expected": expected.get(key), "observed": observed.get(key)}
for key in sorted(set(expected) | set(observed))
if expected.get(key) != observed.get(key)
}
return {
"passed": not mismatches,
"verifier": "exact deterministic equality at the static-diamond join",
"expected": expected,
"observed": observed,
"mismatches": mismatches,
}
def _task_a_review_proxy(task: Dict[str, Any]) -> Dict[str, Any]:
branch_count = len(task["branches"])
retry_count = sum(branch["fail_attempts"] for branch in task["branches"])
loop_units = branch_count + retry_count + 1 + 1
graph_units = branch_count + retry_count + 1 + branch_count + 1
return {
"is_proxy": True,
"not_measured_human_review": True,
"unit_definition": (
"one proxy unit per branch artifact, retry diagnosis, join check, "
"and architecture-control check"
),
"loop_units": loop_units,
"graph_units": graph_units,
"additional_units": graph_units - loop_units,
}
def _task_b_review_proxy(task: Dict[str, Any]) -> Dict[str, Any]:
step_count = len(task["steps"])
edge_count = sum(len(step["depends_on"]) for step in task["steps"])
loop_units = step_count + 1 + 1
graph_units = loop_units + edge_count
return {
"is_proxy": True,
"not_measured_human_review": True,
"unit_definition": (
"one proxy unit per step check, final check, admission check, "
"and graph edge contract"
),
"loop_units": loop_units,
"graph_units": graph_units,
"additional_units": graph_units - loop_units,
}
def _sequence_topology_metrics(
task: Dict[str, Any],
) -> Tuple[int, float, float]:
levels = {} # type: Dict[str, int]
longest_paths = {} # type: Dict[str, float]
widths = {} # type: Dict[int, int]
serial_seconds = 0.0
for step in task["steps"]:
dependencies = step["depends_on"]
duration = step["work_seconds"]
serial_seconds += duration
level = (
0
if not dependencies
else 1 + max(levels[dependency] for dependency in dependencies)
)
levels[step["id"]] = level
widths[level] = widths.get(level, 0) + 1
longest_paths[step["id"]] = duration + (
0.0
if not dependencies
else max(longest_paths[dependency] for dependency in dependencies)
)
return max(widths.values()), serial_seconds, max(longest_paths.values())
def decide_architecture(
task: Dict[str, Any],
budgets: Dict[str, Any],
policy: Dict[str, Any],
topology: str,
) -> Dict[str, Any]:
"""Apply one bounded admission gate to either static fixture topology."""
started = time.perf_counter()
if topology == "static_diamond":
durations = [
branch["work_seconds"] * (branch["fail_attempts"] + 1)
for branch in task["branches"]
]
independent_width = min(len(durations), budgets["max_concurrency"])
sequential_seconds = sum(durations)
graph_critical_path_seconds = max(durations)
review_proxy = _task_a_review_proxy(task)
elif topology == "sequence":
(
independent_width,
sequential_seconds,
graph_critical_path_seconds,
) = _sequence_topology_metrics(task)
review_proxy = _task_b_review_proxy(task)
else:
raise ValueError("unsupported topology: %s" % topology)
payback_seconds = max(0.0, sequential_seconds - graph_critical_path_seconds)
reason_codes = [] # type: List[str]
if independent_width < policy["minimum_independent_width"]:
reason_codes.append("INSUFFICIENT_INDEPENDENT_WIDTH")
if payback_seconds < policy["minimum_critical_path_payback_seconds"]:
reason_codes.append("INSUFFICIENT_CRITICAL_PATH_PAYBACK")
if (
review_proxy["additional_units"]
> policy["max_additional_review_load_units"]
):
reason_codes.append("ADDITIONAL_REVIEW_PROXY_EXCEEDS_BOUND")
return {
"selected": "LOOP" if reason_codes else "GRAPH",
"topology": topology,
"reason_codes": reason_codes or ["STATIC_FIXTURE_GATE_PASSED"],
"metrics": {
"independent_width": independent_width,
"estimated_sequential_seconds": round(sequential_seconds, 6),
"estimated_graph_critical_path_seconds": round(
graph_critical_path_seconds,
6,
),
"estimated_critical_path_payback_seconds": round(
payback_seconds,
6,
),
"review_load_proxy": review_proxy,
},
"thresholds": policy,
"claim_scope": "only the declared static fixture",
"gate_wall_time_seconds": round(time.perf_counter() - started, 6),
}
def evaluate_retry_contract(
task: Dict[str, Any],
recovery: Dict[str, Any],
) -> Dict[str, Any]:
"""Verify that only the declared transient node was replayed."""
failing = [
branch for branch in task["branches"] if branch["fail_attempts"] > 0
]
if len(failing) != 1:
return {
"passed": False,
"node_local_only": False,
"failing_node_attempts_match": False,
"all_unaffected_nodes_single_attempt": False,
"retry_count_matches": False,
"reason": "task does not declare exactly one failing branch",
}
failing_branch = failing[0]
failing_node = failing_branch["id"]
expected_attempts = {
branch["id"]: 1 + branch["fail_attempts"] for branch in task["branches"]
}
actual_attempts = recovery.get("attempts", {})
replayed_nodes = sorted(recovery.get("replayed_nodes", []))
events = recovery.get("events", [])
node_local_only = (
replayed_nodes == [failing_node]
and len(events) == failing_branch["fail_attempts"]
and all(event.get("node") == failing_node for event in events)
)
failing_node_attempts_match = (
actual_attempts.get(failing_node) == expected_attempts[failing_node]
)
all_unaffected_nodes_single_attempt = all(
actual_attempts.get(branch["id"]) == 1
for branch in task["branches"]
if branch["id"] != failing_node
)
retry_count_matches = (
recovery.get("retry_count") == failing_branch["fail_attempts"]
)
passed = all(
(
node_local_only,
failing_node_attempts_match,
all_unaffected_nodes_single_attempt,
retry_count_matches,
)
)
return {
"passed": passed,
"node_local_only": node_local_only,
"failing_node_attempts_match": failing_node_attempts_match,
"all_unaffected_nodes_single_attempt": all_unaffected_nodes_single_attempt,
"retry_count_matches": retry_count_matches,
"failing_node": failing_node,
"expected_attempts": expected_attempts,
"actual_attempts": actual_attempts,
}
def run_task_a_architecture(
task: Dict[str, Any],
budgets: Dict[str, Any],
architecture: str,
) -> Dict[str, Any]:
"""Run one serial Loop baseline or one concurrent static-Graph trial."""
architecture = architecture.lower()
if architecture not in {"loop", "graph"}:
raise ValueError("architecture must be 'loop' or 'graph'")
started = time.perf_counter()
deadline = started + budgets["max_task_wall_time_seconds"]
attempts = {} # type: Dict[str, int]
retry_events = [] # type: List[Dict[str, Any]]
results = {} # type: Dict[str, Any]
shared_lock = threading.Lock()
activity = {"active": 0, "peak": 0}
overhead = {
"scheduler_setup_seconds": 0.0,
"dispatch_seconds": 0.0,
"result_collection_seconds": 0.0,
"scheduler_cleanup_seconds": 0.0,
}
if architecture == "loop":
for branch in task["branches"]:
check_started = time.perf_counter()
_check_deadline(
deadline,
task["id"],
"max_task_wall_time_seconds",
)
overhead["dispatch_seconds"] += time.perf_counter() - check_started
node_id, value = _run_branch_with_retry(
branch,
task["input"],
budgets["max_retries_per_node"],
deadline,
attempts,
retry_events,
shared_lock,
activity,
None,
)
collect_started = time.perf_counter()
results[node_id] = value
overhead["result_collection_seconds"] += (
time.perf_counter() - collect_started
)
else:
setup_started = time.perf_counter()
executor = ThreadPoolExecutor(
max_workers=min(budgets["max_concurrency"], len(task["branches"])),
thread_name_prefix="graph-node",
)
overhead["scheduler_setup_seconds"] = time.perf_counter() - setup_started
futures = {}
start_barrier = threading.Barrier(len(task["branches"]))
try:
dispatch_started = time.perf_counter()
for branch in task["branches"]:
future = executor.submit(
_run_branch_with_retry,
branch,
task["input"],
budgets["max_retries_per_node"],
deadline,
attempts,
retry_events,
shared_lock,
activity,
start_barrier,
)
futures[future] = branch["id"]
overhead["dispatch_seconds"] = time.perf_counter() - dispatch_started
remaining = max(0.0, deadline - time.perf_counter())
done, not_done = wait(futures, timeout=remaining)
if not_done:
for future in not_done:
future.cancel()
raise BudgetExceeded(
"%s exceeded max_task_wall_time_seconds" % task["id"]
)
collect_started = time.perf_counter()
completed = {future: future.result() for future in done}
future_by_node = {
node_id: future for future, node_id in futures.items()
}
for branch in task["branches"]:
node_id, value = completed[future_by_node[branch["id"]]]
results[node_id] = value
overhead["result_collection_seconds"] = (
time.perf_counter() - collect_started
)
finally:
cleanup_started = time.perf_counter()
executor.shutdown(wait=True)
overhead["scheduler_cleanup_seconds"] = (
time.perf_counter() - cleanup_started
)
wall_time = time.perf_counter() - started
if wall_time > budgets["max_task_wall_time_seconds"]:
raise BudgetExceeded(
"%s exceeded max_task_wall_time_seconds" % task["id"]
)
retry_events.sort(key=lambda event: (event["node"], event["failed_attempt"]))
replayed_nodes = sorted({event["node"] for event in retry_events})
correctness = _correctness_receipt(results, task["expected"])
recovery = {
"injected_failure_node": task["transient_failure_node"],
"retry_count": len(retry_events),
"attempts": {key: attempts[key] for key in sorted(attempts)},
"replayed_nodes": replayed_nodes,
"events": retry_events,
}
recovery["contract"] = evaluate_retry_contract(task, recovery)
recovery["recovered"] = (
correctness["passed"] and recovery["contract"]["passed"]
)
review_proxy = _task_a_review_proxy(task)
review_proxy = dict(review_proxy)
review_proxy["units"] = review_proxy[
"loop_units" if architecture == "loop" else "graph_units"
]
measured_overhead = sum(overhead.values())
return {
"architecture": architecture.upper(),
"correctness": correctness,
"wall_time_seconds": round(wall_time, 6),
"retry_recovery": recovery,
"review_load_proxy": review_proxy,
"orchestration_overhead": {
**{key: round(value, 6) for key, value in overhead.items()},
"measured_seconds": round(measured_overhead, 6),
"operation_proxy": 1
if architecture == "loop"
else len(task["branches"]) + 1,
"definition": (
"scheduler setup, dispatch, result collection, and cleanup; "
"worker wait time is excluded"
),
},
"observed_peak_concurrency": activity["peak"],
"budget_status": {
"within_task_time_limit": True,
"within_retry_limit": max(attempts.values()) - 1
<= budgets["max_retries_per_node"],
"within_concurrency_limit": activity["peak"]
<= budgets["max_concurrency"],
"within_review_proxy_limit": review_proxy["units"]
<= budgets["max_review_load_units"],
},
}
def _run_sequence_operation(step: Dict[str, Any], value: int) -> int:
operation = step["operation"]
if operation == "add":
return value + step["operand"]
if operation == "multiply":
return value * step["operand"]
if operation == "subtract":
return value - step["operand"]
if operation == "square":
return value * value
raise ValueError("unsupported sequence operation: %s" % operation)
def run_task_b(
task: Dict[str, Any],
budgets: Dict[str, Any],
policy: Dict[str, Any],
) -> Dict[str, Any]:
"""Reject the static dependency chain to Loop and verify every step."""
started = time.perf_counter()
deadline = started + budgets["max_task_wall_time_seconds"]
decision = decide_architecture(
task,
budgets,
policy,
topology="sequence",
)
if decision["selected"] != "LOOP":
raise RuntimeError("task_b fixture must be rejected to Loop")
value = task["initial_value"]
step_receipts = [] # type: List[Dict[str, Any]]
for step in task["steps"]:
_check_deadline(
deadline,
task["id"],
"max_task_wall_time_seconds",
)
before = value
time.sleep(step["work_seconds"])
value = _run_sequence_operation(step, value)
expected_output = step["expected_output"]
verified = value == expected_output
mismatch = (
None
if verified
else {"expected": expected_output, "observed": value}
)
step_receipt = {
"node": step["id"],
"input": before,
"output": value,
"expected_output": expected_output,
"verified": verified,
"mismatch": mismatch,
}
step_receipts.append(step_receipt)
if not verified:
raise IntermediateVerificationError(
"intermediate verification failed at %s: expected %s, observed %s"
% (step["id"], expected_output, value)
)
_check_deadline(
deadline,
task["id"],
"max_task_wall_time_seconds",
)
wall_time = time.perf_counter() - started
if wall_time > budgets["max_task_wall_time_seconds"]:
raise BudgetExceeded(
"%s exceeded max_task_wall_time_seconds" % task["id"]
)
correctness = (
all(receipt["verified"] for receipt in step_receipts)
and value == task["expected"]
)
review_proxy = dict(decision["metrics"]["review_load_proxy"])
review_proxy["units"] = review_proxy["loop_units"]
return {
"admission_decision": decision,
"correctness": {
"passed": correctness,
"verifier": "exact equality at every declared intermediate and final output",
"expected": task["expected"],
"observed": value,
"step_receipts": step_receipts,
},
"measured_wall_time_seconds": round(wall_time, 6),
"retry_recovery": {
"retry_count": 0,
"recovered": False,
"reason": "no failure is injected into Task B",
},
"review_load_proxy": review_proxy,
"orchestration_overhead": {
"admission_gate_seconds": decision["gate_wall_time_seconds"],
"graph_scheduler_invocations": 0,
"graph_execution_skipped": True,
"avoided_graph_operation_proxy": len(task["steps"]) + 1,
},
"budget_status": {
"within_task_time_limit": True,
"within_review_proxy_limit": review_proxy["units"]
<= budgets["max_review_load_units"],
},
}
def _median(values: List[float]) -> float:
return round(statistics.median(values), 6)
def _source_capability_audit(path: Path) -> Dict[str, Any]:
source = path.read_text(encoding="utf-8")
tree = ast.parse(source, filename=str(path))
imported_roots = set() # type: Set[str]
dynamic_execution_calls = [] # type: List[str]
for node in ast.walk(tree):
if isinstance(node, ast.Import):
imported_roots.update(alias.name.split(".")[0] for alias in node.names)
elif isinstance(node, ast.ImportFrom) and node.module:
imported_roots.add(node.module.split(".")[0])
elif isinstance(node, ast.Call) and isinstance(node.func, ast.Name):
if node.func.id in {"eval", "exec", "__import__"}:
dynamic_execution_calls.append(node.func.id)
forbidden_roots = {
"boto3",
"ftplib",
"http",
"paramiko",
"requests",
"smtplib",
"socket",
"subprocess",
"urllib",
}
forbidden_found = sorted(imported_roots & forbidden_roots)
passed = not forbidden_found and not dynamic_execution_calls
return {
"method": "DESIGN_AND_SOURCE_AUDIT",
"runtime_instrumented": False,
"source_audit_passed": passed,
"result": (
"NO_EXTERNAL_EFFECT_CAPABILITY_FOUND_IN_AUDITED_SOURCE"
if passed
else "EXTERNAL_EFFECT_CAPABILITY_FOUND"
),
"imported_module_roots": sorted(imported_roots),
"forbidden_import_roots_found": forbidden_found,
"dynamic_execution_calls_found": sorted(dynamic_execution_calls),
"declared_boundary": (
"no network, subprocess, credential, or external-system API paths; "
"the selected receipt is the only durable write"
),
"limitation": (
"This is a design and source audit, not runtime syscall, filesystem, "
"or network instrumentation."
),
}
def run_experiment(
fixture: Dict[str, Any],
trials: Optional[int] = None,
) -> Dict[str, Any]:
"""Run both fixtures and return evidence for an independent reviewer."""
validate_fixture(fixture)
fixture_provenance = _fixture_provenance(fixture)
budgets = fixture["budgets"]
policy = fixture["admission_policy"]
trial_count = budgets["trials"] if trials is None else trials
if isinstance(trial_count, bool) or not isinstance(trial_count, int):
raise ValueError("trials must be an integer")
if trial_count <= 0 or trial_count > budgets["trials"]:
raise ValueError("trials must be positive and no greater than the fixture cap")
experiment_started = time.perf_counter()
total_deadline = (
experiment_started + budgets["max_total_wall_time_seconds"]
)
deadline_boundaries = [] # type: List[str]
loop_trials = [] # type: List[Dict[str, Any]]
graph_trials = [] # type: List[Dict[str, Any]]
task_a_admission = decide_architecture(
fixture["task_a"],
budgets,
policy,
topology="static_diamond",
)
if task_a_admission["selected"] != "GRAPH":
raise RuntimeError("task_a fixture must be positively admitted to Graph")
for index in range(trial_count):
trial_number = index + 1
_check_total_deadline(
total_deadline,
"before_trial_%s" % trial_number,
deadline_boundaries,
)
order = ("loop", "graph") if index % 2 == 0 else ("graph", "loop")
for architecture in order:
_check_total_deadline(
total_deadline,
"before_task_a_%s_trial_%s" % (architecture, trial_number),
deadline_boundaries,
)
result = run_task_a_architecture(
fixture["task_a"],
budgets,
architecture=architecture,
)
if architecture == "loop":
loop_trials.append(result)
else:
graph_trials.append(result)
_check_total_deadline(
total_deadline,
"after_task_a_%s_trial_%s" % (architecture, trial_number),
deadline_boundaries,
)
_check_total_deadline(
total_deadline,
"after_trial_%s" % trial_number,
deadline_boundaries,
)
_check_total_deadline(
total_deadline,
"before_task_b",
deadline_boundaries,
)
task_b = run_task_b(fixture["task_b"], budgets, policy=policy)
_check_total_deadline(
total_deadline,
"after_task_b",
deadline_boundaries,
)
loop_times = [trial["wall_time_seconds"] for trial in loop_trials]
graph_times = [trial["wall_time_seconds"] for trial in graph_trials]
loop_median = _median(loop_times)
graph_median = _median(graph_times)
speedup_ratio = round(loop_median / graph_median, 3)
retry_contracts = [
evaluate_retry_contract(
fixture["task_a"],
trial["retry_recovery"],
)
for trial in graph_trials
]
task_a_correct = all(
trial["correctness"]["passed"] for trial in loop_trials + graph_trials
)
graph_recovered = all(
trial["retry_recovery"]["recovered"] for trial in graph_trials
)
node_local_only = all(
contract["node_local_only"] for contract in retry_contracts
)
failing_attempts_match = all(
contract["failing_node_attempts_match"] for contract in retry_contracts
)
unaffected_single_attempt = all(
contract["all_unaffected_nodes_single_attempt"]
for contract in retry_contracts
)
retry_count_matches = all(
contract["retry_count_matches"] for contract in retry_contracts
)
max_task_time = max(
loop_times + graph_times + [task_b["measured_wall_time_seconds"]]
)
max_retry_count = max(
trial["retry_recovery"]["retry_count"]
for trial in loop_trials + graph_trials
)
max_concurrency = max(
trial["observed_peak_concurrency"]
for trial in loop_trials + graph_trials
)
max_review_proxy = max(
[
trial["review_load_proxy"]["units"]
for trial in loop_trials + graph_trials
]
+ [task_b["review_load_proxy"]["units"]]
)
source_audit = _source_capability_audit(Path(__file__).resolve())
_check_total_deadline(
total_deadline,
"before_receipt",
deadline_boundaries,
)
total_wall_time = time.perf_counter() - experiment_started
within_limits = all(
(
total_wall_time <= budgets["max_total_wall_time_seconds"],
max_task_time <= budgets["max_task_wall_time_seconds"],
max_retry_count <= budgets["max_retries_per_node"],
max_concurrency <= budgets["max_concurrency"],
max_review_proxy <= budgets["max_review_load_units"],
)
)
task_a_review = _task_a_review_proxy(fixture["task_a"])
task_a_receipt = {
"id": fixture["task_a"]["id"],
"admission_decision": task_a_admission,
"selected_architecture_executed": (
task_a_admission["selected"] == "GRAPH"
and len(graph_trials) == trial_count
),
"graph_scheduler_invocations": len(graph_trials),
"loop_execution_role": "serial comparison baseline only",
"correctness": {
"passed": task_a_correct,
"loop_all_trials_passed": all(
trial["correctness"]["passed"] for trial in loop_trials
),
"graph_all_trials_passed": all(
trial["correctness"]["passed"] for trial in graph_trials
),
"verifier": "exact deterministic equality at every static join",
},
"measured_wall_time_seconds": {
"loop": {"trials": loop_times, "median": loop_median},
"graph": {"trials": graph_times, "median": graph_median},
"graph_speedup_ratio_for_these_fixtures_only": speedup_ratio,
},
"retry_recovery": {
"injected_node": fixture["task_a"]["transient_failure_node"],
"graph_all_trials_recovered": graph_recovered,
"node_local_only": node_local_only,
"failing_node_attempts_match": failing_attempts_match,
"all_unaffected_nodes_single_attempt": unaffected_single_attempt,
"retry_count_matches": retry_count_matches,
"graph_contracts": retry_contracts,
"graph_attempts": [
trial["retry_recovery"]["attempts"] for trial in graph_trials
],
"graph_replayed_nodes": [
trial["retry_recovery"]["replayed_nodes"] for trial in graph_trials
],
},
"review_load_proxy": task_a_review,
"orchestration_overhead": {
"loop_measured_seconds_median": _median(
[
trial["orchestration_overhead"]["measured_seconds"]
for trial in loop_trials
]
),
"graph_measured_seconds_median": _median(
[
trial["orchestration_overhead"]["measured_seconds"]
for trial in graph_trials
]
),
"definition": graph_trials[-1]["orchestration_overhead"]["definition"],
},
"observed_peak_concurrency": {
"loop": max(
trial["observed_peak_concurrency"] for trial in loop_trials
),
"graph": max(
trial["observed_peak_concurrency"] for trial in graph_trials
),
},
}
evidence_criteria = {
"task_a_positively_admitted_to_graph": task_a_admission["selected"]
== "GRAPH",
"task_a_selected_graph_executed": task_a_receipt[
"selected_architecture_executed"
],
"task_a_correct": task_a_correct,
"task_a_graph_node_local_only": node_local_only,
"task_a_failing_node_attempts_match": failing_attempts_match,
"task_a_unaffected_nodes_single_attempt": unaffected_single_attempt,
"task_a_retry_count_matches": retry_count_matches,
"task_b_rejected_to_loop": task_b["admission_decision"]["selected"]
== "LOOP",
"task_b_graph_scheduler_skipped": task_b["orchestration_overhead"][
"graph_scheduler_invocations"
]
== 0,
"task_b_all_intermediate_outputs_verified": all(
receipt["verified"]
for receipt in task_b["correctness"]["step_receipts"]
),
"all_runtime_budgets_respected": within_limits,
"source_audit_boundary_passed": source_audit["source_audit_passed"],
}
evidence_gate_passed = all(evidence_criteria.values())
implementation_path = Path(__file__).resolve()
return {
"schema_version": "1.1",
"experiment": {
"id": fixture["experiment_id"],
"verification_class": "LOCAL_ARCHITECTURAL_VERIFICATION",
"claim_scope": fixture["claim_scope"],
"universal_performance_claim": False,
"production_claim": False,
"workloads": "deterministic local sleeps and pure transformations",
"timestamp_utc": datetime.now(timezone.utc).isoformat(),
"runtime": {
"python": platform.python_version(),
"platform": platform.system(),
"minimum_supported_python": "3.8",
},
},
"provenance": {
"fixture": fixture_provenance,
"implementation": {
"algorithm": "sha256",
"path": "benchmark.py",
"sha256": _sha256_file(implementation_path),
},
},
"budgets": {
"configured": budgets,
"observed": {
"total_wall_time_seconds": round(total_wall_time, 6),
"max_single_task_wall_time_seconds": round(max_task_time, 6),
"max_retries_per_node": max_retry_count,
"max_concurrency": max_concurrency,
"max_nodes": len(fixture["task_a"]["branches"]) + 2,
"max_review_load_proxy_units": max_review_proxy,
},
"within_limits": within_limits,
"total_deadline_boundaries_checked": deadline_boundaries,
},
"task_a": task_a_receipt,
"task_b": task_b,
"external_side_effect_boundary": source_audit,
"independent_review_handoff": {
"decision": "DEFERRED_TO_INDEPENDENT_REVIEW",
"agent_recommendation": "NONE",
"artifact_status": (
"EVIDENCE_COMPLETE"
if evidence_gate_passed
else "EVIDENCE_INCOMPLETE"
),
"evidence_gate_passed": evidence_gate_passed,
"criteria": evidence_criteria,
"review_scope": "only the two declared static fixtures",
"promotion_authority": "independent reviewer",
"excluded_claims": [
"universal Graph performance superiority",
"dynamic or cyclic graph safety",
"production scalability",
"model-token or cost improvement",
"runtime proof of external-side-effect absence",
"measured human review effort",
],
},
"local_artifacts": {
"durable_write": (
"the caller-selected receipt path, constrained to this "
"experiment directory"
)
},
}
def _path_is_within(target: Path, root: Path) -> bool:
try:
target.relative_to(root)
return True
except ValueError:
return False
def write_receipt(
receipt: Dict[str, Any],
output: Path,
experiment_root: Path = EXPERIMENT_ROOT,
) -> None:
root = experiment_root.resolve()
receipts_root = (root / "receipts").resolve()
target = output.resolve()
if not _path_is_within(target, receipts_root):
raise ValueError(
"receipt path must stay inside experiment receipts directory"
)
if target.suffix.lower() != ".json":
raise ValueError("receipt output must be a JSON file")
target.parent.mkdir(parents=True, exist_ok=True)
temporary = target.with_suffix(target.suffix + ".tmp")
try:
temporary.write_text(
json.dumps(receipt, indent=2, sort_keys=True, allow_nan=False) + "\n",
encoding="utf-8",
)
temporary.replace(target)
finally:
if temporary.exists():
temporary.unlink()
def _parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(
description=(
"Run bounded local evidence for two static Loop-vs-Graph fixtures. "
"The artifact defers all promotion decisions to independent review."
)
)
parser.add_argument("--fixture", type=Path, default=DEFAULT_FIXTURE)
parser.add_argument("--receipt", type=Path, default=DEFAULT_RECEIPT)
parser.add_argument(
"--trials",
type=int,
default=None,
help="Override trial count without exceeding the fixture cap.",
)
return parser.parse_args()
def main() -> int:
args = _parse_args()
fixture = load_fixture(args.fixture)
receipt = run_experiment(fixture, trials=args.trials)
write_receipt(receipt, args.receipt)
print(json.dumps(receipt, indent=2, sort_keys=True, allow_nan=False))
return (
0
if receipt["independent_review_handoff"]["artifact_status"]
== "EVIDENCE_COMPLETE"
else 2
)
if __name__ == "__main__":
raise SystemExit(main())
318 files · 7 not served here
- .gitattributes
- .github/ISSUE_TEMPLATE/bug_report.yml
- .github/ISSUE_TEMPLATE/config.yml
- .github/ISSUE_TEMPLATE/skill_request.yml
- .github/PULL_REQUEST_TEMPLATE.md
- .github/workflows/quality.yml
- .gitignore
- AGENTS.md
- ATTRIBUTION.md
- AUTOGINEER-RUNS.md
- CHANGELOG.md
- CLAUDE.md
- CONTRIBUTING.md
- FINAL_VERIFICATION_RECEIPT.md
- GEMINI.md
- GUIDE.md
- LICENSE
- README.md
- SECURITY.md
- SUBSTANCE.md
- adapters/cursor/third-brain-skills.mdc
- adapters/windsurf/third-brain-skills.md
- artifacts/agent-team/agentic-os-demo-alignment-20260820/command-board.md
- artifacts/agent-team/agentic-os-demo-alignment-20260820/final-receipt.md
- artifacts/agent-team/agentic-os-demo-alignment-20260820/requirements-matrix.md
- artifacts/agent-team/agentic-os-demo-alignment-20260820/shared-interface.md
- artifacts/agent-team/agentic-os-demo-alignment-20260820/token-ledger.json
- artifacts/agent-team/scratch-governance-20260820/cache-preimage.json
- artifacts/agent-team/scratch-governance-20260820/command-board.md
- artifacts/agent-team/scratch-governance-20260820/execution-receipt.md
- artifacts/agent-team/scratch-governance-20260820/integration-receipt.md
- artifacts/agent-team/scratch-governance-20260820/inventory-receipt.md
- artifacts/agent-team/scratch-governance-20260820/protected-tree-baseline.json
- artifacts/agent-team/scratch-governance-20260820/protected-tree-drift-event.md
- artifacts/agent-team/scratch-governance-20260820/quarantine/README.md
- artifacts/agent-team/scratch-governance-20260820/sol-plan.md
- artifacts/agent-team/scratch-governance-20260820/token-ledger.json
- artifacts/agent-team/scratch-governance-20260820/verification-receipt.md
- artifacts/agent-team/tb-v81-unification-20260820/baseline-receipt.md
- artifacts/agent-team/tb-v81-unification-20260820/command-board.md
- artifacts/agent-team/tb-v81-unification-20260820/token-ledger.json
- artifacts/agentic-os-command-center-live.png (not served here)
- artifacts/agentic-os-live-state/receipts/18884e6e4cb5468e9b8df461fc9d1bda.json
- artifacts/agentic-os-live-state/receipts/sync-vault-codex-20260820T120136207382Z.json
- artifacts/architecture/third-brain-v8.1-actual-system-architecture.png (not served here)
- artifacts/architecture/third-brain-v8.1-actual-system-architecture.svg
- artifacts/architecture/third-brain-v8.1-architecture.png (not served here)
- artifacts/architecture/third-brain-v8.1-architecture.svg
- artifacts/release/v8.1-canary-audit-manifest.json
- artifacts/third-brain-agentic-os-v8.1.zip (not served here)
- assets/hero.svg
- assets/install-demo.svg
- assets/third-brain-v5-system-architecture.png (not served here)
- assets/third-brain-v8.1-actual-system-architecture.png (not served here)
- assets/third-brain-v8.1-actual-system-architecture.svg
- commands/daily-okr.md
- commands/session-learn.md
- commands/token-cost-tracker.md
- commands/wiki-lint.md
- contracts/agentic-os/action-receipt.schema.json
- contracts/agentic-os/action-registry.json
- contracts/agentic-os/registry.schema.json
- contracts/agentic-os/snapshot.schema.json
- contracts/automation-loop-contract.md
- contracts/freshness-policy.json
- contracts/ipc/worker-receipt.schema.json
- contracts/notes/concept.schema.json
- contracts/notes/entity.schema.json
- contracts/notes/map.schema.json
- contracts/notes/output.schema.json
- contracts/notes/source.schema.json
- contracts/notes/system.schema.json
- contracts/runtime/obsidian-pipeline-envelope.json
- contracts/runtime/obsidian-pipeline-plan.md
- contracts/system-bundle.json
- contracts/templates/placeholder-registry.json
- contracts/vault-contract.json
- core/ooda/act.js
- core/ooda/decide.js
- core/ooda/index.js
- core/ooda/observe.js
- core/ooda/ooda_loop.test.js
- core/ooda/orient.js
- dashboard.html
- docs/agent-skills-standard.md
- docs/agentic-engineering-principles.md
- docs/agentic-os-command-center.md
- docs/community-discovery.md
- docs/compatibility.md
- docs/guides/concept-gold-standard-v8.1-authoring-guide.md
- docs/live-vault-v8.1-baseline-2026-08-16.md
- docs/obsidian-v8.1-operator-guide.md
- docs/release-notes-v5.1.md
- docs/release-notes-v6.md
- docs/release-notes-v7.md
- docs/release-playbook.md
- docs/skill-template.md
- docs/third-brain-exponential-potential-guide-zh.md
- docs/third-brain-standard-execution-manual-zh.md
- docs/third-brain-v8.1-system-architecture-zh.md
- docs/v7-max-potential-guide-zh.md
- docs/v8.1-canary-safety-repair-2026-08-16.md
- docs/v8.1-current-model-obsidian-blueprint.md
- docs/wiki-promotion-audit-2026-08-09.md
- docs/worker-flows-guide-zh.md
- examples/3-minute-quickstart.md
- examples/README.md
- examples/daily-knowledge-loop.md
- examples/deep-research-stow-handoff.md
- examples/llm-skills-obsidian-architecture.md
- examples/obsidian-entry-note.md
- examples/one-click-test-prompt.md
- examples/research-pdf-to-wiki.md
- examples/startup-evaluation-sprint.md
- examples/verified-code-session.md
- experiments/graph-engineering/README.md
- experiments/graph-engineering/benchmark.py
- experiments/graph-engineering/fixtures/architecture_tasks.json
- experiments/graph-engineering/receipts/loop-vs-graph-receipt.json
- experiments/graph-engineering/receipts/tdd-green-receipt.json
- experiments/graph-engineering/receipts/tdd-red-receipt.json
- experiments/graph-engineering/tests/test_benchmark.py
- hooks/README.md
- install.ps1
- install.sh
- maps/antifragile-system-design.md
- outreach/awesome-lists/awesome-candidates.json
- outreach/awesome-lists/awesome-pr-runbook.json
- outreach/awesome-lists/awesome-pr-runbook.md (not served here)
- outreach/awesome-lists/awesome-pr-targets.md
- outreach/awesome-lists/awesome-pr-template.md
- outreach/growth-reports/2026-05-19.json
- outreach/growth-reports/2026-05-19.md
- outreach/growth-reports/2026-05-25-growth-loop.md
- outreach/growth-reports/2026-05-26-growth-loop.md
- outreach/growth-reports/2026-05-27-growth-loop.md
- outreach/growth-reports/2026-05-28-growth-loop.md
- outreach/growth-reports/2026-05-29-growth-loop.md
- outreach/growth-reports/2026-05-30-growth-loop.md
- outreach/growth-reports/2026-05-30.json
- outreach/growth-reports/2026-05-30.md
- outreach/growth-reports/2026-05-31.json
- outreach/growth-reports/2026-05-31.md
- outreach/growth-reports/2026-06-01.json
- outreach/growth-reports/2026-06-01.md
- outreach/growth-reports/2026-06-02.json
- outreach/growth-reports/2026-06-02.md
- outreach/growth-reports/2026-06-03.json
- outreach/growth-reports/2026-06-03.md
- outreach/growth-reports/2026-06-04.json
- outreach/growth-reports/2026-06-04.md
- outreach/growth-reports/2026-06-05.json
- outreach/growth-reports/2026-06-05.md
- outreach/growth-reports/2026-06-06.json
- outreach/growth-reports/2026-06-06.md
- outreach/growth-reports/2026-06-07.json
- outreach/growth-reports/2026-06-07.md
- outreach/growth-reports/2026-06-08.json
- outreach/growth-reports/2026-06-08.md
- outreach/growth-reports/2026-06-11.json
- outreach/growth-reports/2026-06-11.md
- outreach/growth-reports/2026-06-12.json
- outreach/growth-reports/2026-06-12.md
- outreach/growth-reports/2026-06-13.json
- outreach/growth-reports/2026-06-13.md
- outreach/growth-reports/2026-06-14.json
- outreach/growth-reports/2026-06-14.md
- outreach/launch/devto-article-outline.md
- outreach/launch/product-hunt.md
- outreach/launch/reddit-post.md
- outreach/launch/show-hn.md
- outreach/launch/x-thread.md
- skills/agent-teams-command/SKILL.md
- skills/agent-teams-command/references/classic-campaigns.md
- skills/agent-teams-command/references/ender-palantir-command-patterns.md
- skills/agentic-engineering/SKILL.md
- skills/ai-six-sigma-property-os/SKILL.md
- skills/ai-six-sigma-property-os/references/property-control-model.md
- skills/anthropic-os/SKILL.md
- skills/anthropic-os/references/operating-system-playbook.md
- skills/behavior-design/SKILL.md
- skills/cognitive-compile/SKILL.md
- skills/context-manager/SKILL.md
- skills/creativity-engine/SKILL.md
- skills/daily-okr/SKILL.md
- skills/deep-research/SKILL.md
- skills/deep-research/references/research-ledgers.md
- skills/graph-engineering/SKILL.md
- skills/graph-engineering/agents/openai.yaml
- skills/graph-engineering/references/diamond-graph-example.json
- skills/graph-engineering/references/graph-contract.md
- skills/graph-engineering/scripts/validate_graph_contract.py
- skills/harness-engineering/SKILL.md
- skills/harness-engineering/references/runtime-control-patterns.md
- skills/harness-engineering/references/runtime-envelope-example.json
- skills/harness-engineering/references/runtime-envelope-plan.md
- skills/harness-engineering/scripts/validate_runtime_envelope.py
- skills/knowledge-ops/SKILL.md
- skills/knowledge-ops/references/storage-governance.md
- skills/loop-engineering/SKILL.md
- skills/loop-engineering/agents/openai.yaml
- skills/loop-engineering/references/ci-repair-loop-example.md
- skills/loop-engineering/scripts/validate_loop_contract.py
- skills/project-flow-ops/SKILL.md
- skills/session-learn/SKILL.md
- skills/startup-evaluation/SKILL.md
- skills/startup-evaluation/references/evaluation-rubric.md
- skills/verify-before-claim/SKILL.md
- skills/wiki-ingest/SKILL.md
- skills/wiki-ingest/references/stow-contract.md
- skills/wiki-lint/SKILL.md
- skills/workflow-audit/SKILL.md
- sources/2026-05-18-karpathy-llm-wiki-schema.md
- sources/2026-05-20-google-io-26-agentic-stack.md
- sources/2026-05-24-startup-health-framework-digest.md
- sources/2026-05-27-karpathy-wiki-skill-audit-digest.md
- sources/2026-05-27-wiki-ingest-governance-digest.md
- sources/2026-06-01-ai-workflow-skill-iteration-digest.md
- sources/2026-06-01-chatgpt-deep-research-stow-digest.md
- sources/2026-06-01-github-deep-research-top5-digest.md
- sources/src-20260522-decision-questions-science.md
- sources/src-20260608-agent-era-antifragile-system-design-playbook.md
- sources/src-20260608-bernstein-military-antifragile-synthesis.md
- sources/src-20260608-minimal-investing-military-theory-research.md
- sources/src-20260625-loop-engineering-overview.md
- system/agent-wiki-flywheel-report.md
- system/agentic-os-command-center.md
- system/assets/README.md
- system/auto-update-loop.md
- system/claude.md
- system/codex.md
- system/config.md
- system/daily-knowledge-loop.md
- system/daily/2026-05-13-daily-okr.md
- system/dataview-queries.md
- system/governance-dashboard.md
- system/knowledge-loop.md
- system/lint-report.md
- system/log.md
- system/migration-checklist.md
- system/project-portfolio.md
- system/review-queue.md
- system/run-history-index.md
- system/schema.md
- system/scripts/run-worker-flow-v8.1.ps1
- system/system-evolution-backlog.md
- system/tag-taxonomy.md
- system/templates/template-concept-gold-standard-v8.1.md
- system/templates/template-concept-gold-standard.md
- system/templates/template-output-deliverable-v8.1.md
- system/templates/template-output-deliverable.md
- system/templates/template-source-v8.1.md
- system/templates/template-source-v8.md
- system/templates/template-worker-task.md
- system/templates/vault-agent-navigation-v8.1.md
- system/v5-architecture-evaluation.md
- system/vault-navigation.md
- system/workflow-registry.md
- tests/__init__.py
- tests/test_agentic_os_command_center.py
- tests/test_agentic_os_navigation.py
- tests/test_agentic_os_runtime.py
- tests/test_template_contracts.py
- tests/test_worker_flow_transaction_safety.py
- tests/test_worker_flow_v81.py
- tests/test_worker_flow_v81_deployment.py
- tools/adapt_skills_to_vault.py
- tools/agentic_os.py
- tools/agentic_os_runtime.py
- tools/agentic_os_server.py
- tools/architecture-v4.html
- tools/auto_heal_vault.py
- tools/index.html
- tools/install_skills.py
- tools/legacy_compat.py
- tools/lint-agent-skills.py
- tools/multi_agent_vault_team.py
- tools/package_agentic_os.py
- tools/pipeline-cost-calculator.html
- tools/run_30min_clippings_pipeline.py
- tools/sync_vault_codex.py
- tools/test_adapt_skills_to_vault.py
- tools/test_install_ps1.py
- tools/test_install_sh.py
- tools/test_install_skills.py
- tools/test_lint_agent_skills.py
- tools/test_multi_agent_vault_team.py
- tools/test_promoted_skill_contracts.py
- tools/test_repository_governance.py
- tools/test_run_30min_clippings_pipeline.py
- tools/test_validate_graph_contract.py
- tools/test_validate_loop_contract.py
- tools/test_validate_runtime_envelope.py
- tools/test_worker_flow_engine.py
- tools/token-calculator.html
- tools/upgrade_skills_v81.py
- tools/v5.1-simplified.html
- tools/worker_flow/__init__.py
- tools/worker_flow/__main__.py
- tools/worker_flow/cli.py
- tools/worker_flow/contracts.py
- tools/worker_flow/deployment.py
- tools/worker_flow/freshness.py
- tools/worker_flow/frontmatter.py
- tools/worker_flow/governance.py
- tools/worker_flow/graph.py
- tools/worker_flow/ingest.py
- tools/worker_flow/inventory.py
- tools/worker_flow/locking.py
- tools/worker_flow/runtime.py
- tools/worker_flow/schema.py
- tools/worker_flow/state.py
- tools/worker_flow/template_render.py
- tools/worker_flow/transaction.py
- tools/worker_flow/utils.py
- tools/worker_flow/wikilinks.py
- tools/worker_flow_engine.py
- workflows/worker-flows.md
Advantages
- Enforces verification gates to prevent agents from making unverified claims. evidence: README.md
- Provides a durable, structured knowledge base that compounds over time. evidence: README.md
- Supports multi-agent orchestration with typed IPC and isolated write scopes. evidence: README.md
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.ps1install.sh:sh install.sh
- Low risk: scripts-present (install.ps1)
- Low risk: scripts-present (install.sh)
Attribution and licence
- First committed by
Mark393295827
- 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