Skip to content
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
dan-pettyPublic archive

About

Agentic Hopes, Dreams, Hallucinations, and Nightmares

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

vibes ✨

The Living Showcase, Open Collection & Artifact Repository of Agentic Software Engineering

License: Apache 2.0 Status: Active Archive Pillars: 7 Case Study: devops--cli

"Vibe coding" was coined to describe casual, prompt-and-pray programming. vibes is the counterweight: an open, curated, and living exhibition of what happens when autonomous AI agents are held to rigorous architectural invariants, test-driven contracts, formal state machines, and zero-trust engineering standards.

TLDR: vibes is an open-source exhibition and living laboratory showcasing rigorous, test-driven, and invariant-gated agentic software engineering as the professional counterweight to casual "vibe coding".

ELI:7b: This repository is a museum and playground showing how to make AI coders reliable by giving them strict rules, automated tests, and safety guardrails, instead of just crossing your fingers and hoping the AI gets it right.


🏛️ Welcome to the Exhibition

vibes is an open-source repository designed to serve as a showpiece, educational laboratory, and living archive for the emergent discipline of agentic software engineering.

Here you will find:

  1. Empirical Field Observations: Case studies of how autonomous agents behave, fail, adapt, and succeed when building software (headlined by the development of devops-cli). Some cite recorded issues, commits and measurements; others are labeled illustrative scenarios or describe simulations.
  2. Autonomous Engineering Patterns: Practical architectural strategies—from CEGIS-style debugging (an analogy to counterexample-guided inductive synthesis) to FIFO Pull Request Shepherding and Self-Hardening Instructions.
  3. Inspectable Artifacts: Prompt harnesses, a FastMCP tool manifest schema, a multi-persona review prompt, application contract templates, and structured task specification templates, several adapted from devops-cli rules and formats.
  4. Foundational Theory & Taxonomy: The vocabulary and mental models needed to reason about agentic state, context budgeting, and verification loops.
  5. Living Agent Instructions (AGENTS.md): An instruction framework that lets autonomous agents read, curate, and contribute new findings to this repository through pull requests.
  6. The Dummy's Guide to Agentic Engineering: Core fundamentals explained in plain English without technical mumbo jumbo, complete with "TLDR" and "ELI:7b" header summaries.
  7. Empirical Foundations & Critical Synthesis: Grounding in external literature (26 sources, 18 of them peer-reviewed papers), counter-evidence analysis, and code samples examining where invariants succeed and where they break down.

🔬 Featured Case Study: The devops-cli Laboratory

The headline exhibition in vibes is drawn from the autonomous development of devops-cli—a complex, multi-cloud, container-orchestrating, AI-integrated developer CLI. In October 2026, when these studies were written, it had about 5,500 test functions, a $90%$ coverage floor, and 10 check steps in CI.

🧭 Master Observation Index: For the comprehensive cross-domain synthesis and comparative matrix of all 76 observations, see Consolidated Field Observations & Architectural Synthesis.

Exhibition Piece Core Observation & Breakthrough
01. TDD as Living Contract How writing executable tests first turns stochastic LLM token generation into progress that a test run can check.
02. Architectural Invariants & Complexity Caps A pre-commit AST check blocked nesting deeper than 5. Cyclomatic complexity $\le 10$ was measured but not enforced: in October 2026, 240 functions were over that cap.
03. Autonomous Project Governance Reducing agent amnesia and drift by grounding sessions in GitHub Projects v2, atomic issue cards, and task files. Most commits trace to an issue; some pull requests had none.
04. Zero-Trust Egress & Sanitization Reducing homelab IP and credential leaks with example.com and RFC 5737 test data under a written agent rule, narrow tests, and a private-key pre-commit hook. One scrub of leaked hostnames and paths came before the rule.
05. Harness Slots & Sub-Agent Offloading "Big decides, small types, big checks": Partitioning reasoning from symbol extraction so that cheap local work replaces frontier tokens. The 85% offload share was a design target, not a measured saving.
06. Rate Limits & Anti-Brittle Heuristics Pacing API calls by the server's remaining quota and replacing brittle partial string matches with real parsers. Quota exhaustion and brittle subset lists still occurred after the rule.
07. Proactive Headroom & Recursive Feedback Loops Why hard caps are insufficient: using headroom analysis ($M$ in [7, 10]) and SDLC backlog export to refactor functions before they hit invariant ceilings.
08. Closed-Loop Feedback Inversion & Autonomous Quality Elevation How clearing high-priority defects shifts agent focus from reactive bug-fixing to proactive contract completion (docstrings and type annotations). Functions without docstrings remained afterward.
09. Mechanical AST Rewriting & Automated Refactoring Convergence Rule-based AST refactoring (table dispatch, guard flattening, predicate extraction) driven by SDLC feedback to reduce complexity without an LLM. It checks syntax and metrics, not behavior: the guard-clause transform can change return values.
10. Negative Tool Contract Assertions & Prescriptive Prompt Synthesis Rejecting hallucinated tool parameters with negative assertions (additionalProperties: false) and prescriptive error prompts that give the model what it needs to correct the call. No model was run, so no self-correction rate exists.
11. Assertion Density & Structural Tuple Consolidation Cutting test complexity under assert-counting scanners ($M \le 10$) by consolidating linear assertion sprawl into one tuple-equality assert, which keeps pytest's index-level diff (all(...) does not).
12. Polyglot CST Boundary Guards & Symlink Containment Preventing OOM crashes and circular symlink loops (ELOOP) during multi-language AST crawling with pre-flight file size caps (5 MiB, later 50 MiB) and workspace boundary checks. No OOM count was recorded.
21. Milestone Horizon Expansion & Scope Cascades How milestone 36 grew to 196 items in 9 days, and a proposed remedy: convergence tracking ($C_R \ge 1.2$) and a three-phase air-lock in the vibes tool tools/milestone_governor.py, which devops-cli never adopted.
22. The Verification Horizon & Validation Latency Cliffs How growing test suites slow the agent's inner loop, and a tiered verification pyramid that runs fast checks (AST sentinels, focused slices, structural tuples) before the full suite. The tier latencies are target budgets; nothing was measured.


🔬 Polyglot & Systems Case Studies

Agentic coding manifests differently across languages, compiler architectures, and infrastructure topologies:

Exhibition Piece Domain & Focus Core Observation
Rust Type-State Invariants Rust (Affine Types) How the type-state pattern and zero-sized marker types make a call that is invalid in the current state fail to compile. No bug-reduction rate was measured.
TypeScript CST & Type Gymnastics TypeScript (CST & Generics) Recommended practice, not measured: give the agent resolved type signatures from the type checker, and use lint gates that ban any and @ts-ignore.
Go Goroutine Leakage & Context Lifecycles Go Concurrency & Memory Finding goroutines left blocked on channel sends or on contexts they never check, by comparing goroutine counts at test teardown and dumping the stacks on a mismatch.
Distributed Telemetry & Agent Waterfalls Distributed Systems (OTel) Reducing the agent black box with W3C traceparent propagation, OpenTelemetry span hierarchies, and waterfall analysis.
Subprocess Test Harness Instrumentation Tax Systems & DevEx How unpruned workspace test plugins (xdist/cov/logfire) add seconds of start-up cost to each iterative test run, and how selective bypass removes most of it (5.2 s to 1.3 s in a 2026-11-19 re-run).
Event-Driven File Watchers & Continuous Invariant Loops Systems & DevEx A standard-library polling file watcher that reruns invariant and test checks after a change, detecting it within one polling interval (default 1.0 s).
Content-Addressed Caching & Embedding Drift Audits Distributed Caching & Math Content-addressed SHA-256 caching (L1 memory + L2 Valkey RESP) and a cosine-distance check ($D_C \le 0.05$) over shape, operator and identifier-name features, which does not detect behavior change.
Rootless Container Sandboxing & Process Group Containment Container Security & POSIX Rootless container execution, POSIX process-group termination (os.killpg: SIGTERM, then SIGKILL), docker kill or podman kill of a timed-out container by its name, and output truncated to 65,536 characters. The default policy passes 8 of 8 checks on the example's own control list, a check of the declaration, not of the run.
Multi-Agent Concurrency & Workspace Hazards Concurrency & Swarm Dynamics Separate git worktrees and data directories remove working tree collisions and coverage-file unlink races; oldest-first (FIFO) PR handling reduces rebase churn. No rates were measured.
Agentic Project Self-Documentation Systems & Governance Reducing the phantom architecture trap, where agents document imagined features, by deriving docs from AST reflection and schema extraction in a 4-tier living documentation architecture. No impact was measured.
Post-Harness Recursive Self-Improvement Systems & Governance Operational rules for agent-driven self-improvement of a repository: deterministic checks that cost less than generation (an analogy to $P$ vs $NP$, not a result about it), plus outward landscape surveys.
Epistemic Drift & The Unreliable Teacher Multi-Agent Verification Separating mitigation from refutation, and keeping a false-positive catalog from learning from model verdicts, with tripartite verification and an epistemic seam (devops-cli fixes #523 to #525).
Kinetic Falsification & Exploit Harnesses Verification & Security Replacing rhetorical verifier debate with minimal executable probes run as child processes, and reading each probe's exit code as evidence that is only as good as the probe.
Instruction Ratchet Bloat & JIT Ablation Context & Governance Addressing monolithic prompt bloat and lost-in-the-middle attention decay with two-tier JIT prompt envelopes and a static audit of instruction sections; a true counterfactual ablation is described but not implemented.
Differential Polyglot AST Mutation Fuzzing Polyglot (Boundary Testing) Grammatical mutation fuzzing of boundary parsers: only Python mutants reach a parser (ast.parse), the size bound is a string-length check, and a real symlink cycle tests ELOOP containment. Not differential testing.
Typed Epistemic Seams & Subagent Handshakes Multi-Agent Epistemics Detecting delegation drift with content-addressed invariant envelopes and negative schema checks. An unkeyed hash detects change; it is not a signature.
eBPF LSM Kernel Gates & Dynamic Containment Fuzzing Kernel Security & Invariants How in-kernel BPF LSM hooks can deny an agent's syscall synchronously (-EPERM) before it takes effect. The reference example simulates those decisions in Python, with 35 boundary probes derived partly from the policy (not syzkaller).
3-Way AST Semantic Reconciliation & Collision Arbitration Multi-Agent Concurrency & Git Merging concurrent agent changes by top-level symbol and import set instead of by line, so separate additions do not conflict. The merged file loses its comments; no benchmark was run.
WASI Component Models & Capability-Based Tool Sandboxing Systems & Runtime Sandboxing WASI 0.2 runtimes give a guest no ambient authority and can meter its fuel. The reference example simulates capability checks and an instruction budget in Python and runs no WebAssembly.
Real-Time AST-CRDTs & Multi-Agent Swarms Multi-Agent Concurrency & CRDTs Replicating AST nodes instead of characters, with Lamport clocks, to avoid character-level interleaving under concurrent edits. The reference example converges under causal delivery, also for concurrent moves.
Graph-Ranked AST Context Optimizer Context & Graph Centrality Personalized PageRank over an AST symbol graph ranks prompt context, and whole symbols are packed into a token budget. Each packed snippet parses as Python on its own.
Contract-Driven Template Ecosystems & In-Place Updates Systems & Application Scaffolding Decoupling contract boundaries from hand-written domain logic via AST-reconciled in-place updates, so regeneration keeps hand-written handlers and the dispatch table, schema and tests stay in step.
Polyglot Token Normalization & Clone Quantification Systems & Smell Quantification Type-2 regex token normalization (standard-library tokenizer) and cross-language clone detection with normalized MI metrics, closing the last open build gap in the landscape survey.
Sycophantic Compliance & Mechanical Refusal Oracles Systems & Agent Alignment Argues that deterministic mechanical oracles, not the model, must refuse the bad ideas, test deletions and prompt injections that a sycophantic model accepts. No rates were measured.
Closed-Loop PR Review Thread Synchronization Agent Orchestration & Review Lifecycle A design that maps each review thread to current code, verifies the fix mechanically, and only then replies and resolves through GraphQL. The reference tool finds the function of a complexity, nesting or docstring thread by name and fails the thread when it cannot find that function; its sanitization check reads the whole file.
Biological Autopoiesis & Homeostatic Damping Systems Biology & Observability Feeding telemetry back to agents through deadband thresholds limits code churn, and killing stuck worker process groups limits leaked processes. The biological terms are analogies; nothing was measured.

🛠️ Reusable Engineering Patterns

Patterns distilled from autonomous agent sessions:

flowchart TD
    A[User Request / Defect] --> B[CEGIS: Formulate Falsifiable Hypothesis]
    B --> C[Author Failing Counterexample Test]
    C --> D[Autonomous Patch Synthesis]
    D --> E{CI & Invariant Gates}
    E -- Fail --> C
    E -- Pass --> F[Root-Cause Remediation]
    F --> G[Self-Hardening: Update AGENTS.md]
    G --> H[FIFO Pull Request Shepherding]
Loading
  • CEGIS & Hypothesis Debugging: Why single-shot bug fixing fails, and how a loop that keeps every failing test as a counterexample (an analogy to counterexample-guided inductive synthesis) stops a later patch from silently reintroducing an earlier bug.
  • FIFO Pull Request Shepherding: How handling pull requests oldest first, rebasing each onto main before merge, reduces cascading merge conflicts and PR starvation in agent swarms.
  • Root-Cause Hardening: The self-updating instruction loop—never fixing a bug in code without updating AGENTS.md to prevent recurrence.
  • Epistemic Hygiene & Context Pruning: Human-like cognitive information foraging, multi-scale outlines, and bounded string caps ($\le 256$ chars).
  • Zero-Trust Sandboxing & Distributed Observability: Defense-in-depth pairing rootless, capability-dropped sandboxes and SSRF egress blocking with real-time OTLP span streaming.
  • Adaptive Headless Web Crawling: Two-tier dynamic escalation, SPA shell detection, noise/modal pruning, and persistent domain strategy memory.
  • Autonomous SDLC Project Management: Deterministic multi-dimensional prioritization, a dependency cycle check (which the ranking does not yet call), and prescriptive agent next-action dispatch.
  • Iterative Resource Refinement Loop: Closed-loop Scan -> Run -> Review -> Feedback -> Iterate engine generating actionable improvement feedback, backlog tasks, and delta tracking before commit.
  • Deterministic Mechanical Oracles & Feedback Inversion: Binding stochastic LLM tokens to mechanical invariant gates (table dispatch, structural tuple assertions, negative tool schemas, process groups, boundary caps) and inverting feedback from reactive bug-fixing to proactive headroom elevation.
  • Multi-Agent Codebase Concurrency: Architectural spatial isolation, partitioned data tiers, and centralized resource arbitration that reduce collisions when a multi-agent swarm works on a single codebase.
  • Multi-Tier Living Documentation: Decoupling deterministic AST extraction from constrained generative narrative synthesis, backed by fail-closed oracles and active compaction.
  • Invariant-Grounded Recursive Self-Improvement: Anchoring recursive agent self-improvement in deterministic AST invariant gates, an accumulating corpus of counterexample tests, and outward landscape surveys.
  • Epistemic Seam & Mitigated Defect Auditing: Reducing silent defect drops and catalog drift by giving every finding one of three verdicts (confirmed, refuted with a line citation, mitigated with a named mechanism) and letting false-positive catalogs learn only from deterministic checks or human review.
  • Kinetic Exploit Probes & Invariant Leashing: Replacing rhetorical verifier debate with executable reproducing probes run as time- and memory-bounded child processes, whose exit codes give a verdict only as good as the probe (a probe that crashes is inconclusive, not refuted), paired with invariant leashes that list the probes to re-run when a perimeter file changes.
  • Just-In-Time Instruction Decomposition & Ablation: Reducing instruction ratchet bloat and lost-in-the-middle attention loss with a two-tier JIT prompt governor and a rule attribution matrix. Its ablation step is a static heuristic, not a counterfactual experiment.
  • Collision-Free Worktree Fleet Allocation: Ephemeral leased git worktrees with bounded TTL, bounded lock polling, POSIX process group containment, and automated stale pruning.
  • Synthetic Chaos & Invariant Convergence Testing: Deterministic chaos injection perturbing mechanical invariants, with file rollback and a repair ratio computed from counts the caller supplies.
  • Kernel-Enforced LSM Sandbox Containment: Denying unauthorized execution, socket egress and privilege escalation at the BPF LSM boundary before the operation completes, and testing containment with mutation probes (not syzkaller). The reference example is a Python simulation; the Tetragon policy it generates sends Sigkill for blocked binaries, paths and egress.
  • 3-Way AST Semantic Reconciliation: Merging by name-keyed AST symbol maps and import-set unions to avoid line-based false conflicts when concurrent agents add separate symbols at the same place in a file.
  • Capability-Based Wasm Sandboxing: Executing untrusted agent tools inside WASI 0.2 components with capability handles, deterministic gas metering, and linear memory limits. The reference example simulates these checks in Python and runs no WebAssembly.
  • AST-CRDTs for Real-Time Agent Collaboration: Replicating Abstract Syntax Tree nodes as first-class distributed entities with Lamport timestamps and sibling position keys, so concurrent edits cannot interleave characters inside a token. The reference example applies concurrent moves in timestamp order with undo and redo, so its replicas converge under causal delivery.
  • AST Graph Relevance Ranking & Context Packing: Ranking context with Personalized PageRank over AST symbol graphs and packing whole AST nodes into a token budget at a chosen fidelity.
  • Contract Template Ecosystem and In-Place Updates: Decoupling contract layer schemas and dispatch tables from hand-written domain logic with AST-reconciled in-place upgrades and automatic stub synthesis.
  • Polyglot Token Normalization and Clone Quantification: Language-agnostic Type-2 token normalization erasing identifiers and literals to generic placeholders, computing cross-language clone detection and normalized Maintainability Index without native compiler dependencies.
  • Milestone Scope Air-Lock & Triage Ratchet Governance: Three-phase milestone lifecycle ratchet (INTAKE → AIR_LOCKED → FROZEN) in the vibes tool tools/milestone_governor.py, with a convergence ratio warning below $C_R = 1.2$ and a list of rollover candidates, to detect release live-locks.
  • Tiered Verification Pyramid & Sub-Second Oracles: Tiered testing hierarchy partitioning fast in-memory checks from full regression suites, providing fast feedback oracles (sub-second target budgets) and structural tuple equality assertions so that agents do not wait on the full suite in the inner loop.
  • Sycophantic Compliance & Mechanical Refusal: Decoupling refusal authority from stochastic model psychology using deterministic AST sentinels, negative schema contracts, coverage floors, and network isolation.
  • Closed-Loop PR Review Thread Synchronization: Mapping PR review threads to AST symbols, verifying fixes against deterministic invariant oracles, and printing one reply-and-resolve GraphQL mutation request per thread (not a transaction) with OASIS SARIF 2.1.0 output. The reference tool takes the symbol name from the thread payload or its diff hunk, and uses GitHub's line number only when neither shows a name.

📜 The Disciplined Agentic Manifesto & Retrospective

What separates unstructured prompt tinkering from serious agentic engineering? Read the full Manifesto and Retrospective Analysis:

  1. Tests are Executable Contracts, Not Afterthoughts.
  2. Architectural Invariants Must Be Mechanically Enforced.
  3. Zero Zombie Code & Clean Solutions Over Legacy Remnants.
  4. Grounded Project Tracking (Zero Invisible Agent Actions).
  5. Self-Healing Instructions (Fix Root Causes, Not Symptoms).
  6. Invariant-Grounded Recursive Self-Improvement & Continuous Co-Evolution.
  7. The Sovereign Human Core & Autonomous Invariant Discovery.

💻 Executable Sample Applications (examples/)

Runnable reference implementations demonstrating core agentic engineering mechanics in action. Sample apps stay close to the standard library so a reader can copy one file and run it; the repository's own tooling under tools/ adopts established open source instead, per the dependency policy in AGENTS.md:

Sample Application Mechanics Demonstrated Automated Test Suite
AST Invariant Sentinel Python AST NodeVisitor measuring cyclomatic complexity ($M \le 10$), nesting depth ($\le 5$), and private (RFC 1918) IP literals, while RFC 5737 documentation addresses pass. pytest test_sentinel.py
FastMCP Token-Bucket Gateway Client-side rate limiter and tool dispatcher with burst capacity, token refills, and jittered backoff protecting external APIs. It does not use FastMCP or speak MCP; "FastMCP" is only part of its name. pytest test_gateway.py
CEGIS Debugging Workbench Debugging loop modeled on CEGIS: hand-written candidate patches are checked against input/output tests, and each failure is kept as a constraint. It synthesizes nothing, so the name is an analogy. pytest test_workbench.py
Agent Waterfall Trace Generator Generator of simulated agent-session spans in OpenTelemetry shape (no OpenTelemetry SDK), rendering ASCII waterfalls and tracking token spend across model tiers. pytest test_generator.py
Adaptive Web Crawler Two-tier adaptive crawler detecting SPA shells, escalating to a headless tier (a stub unless you pass a fetcher such as a Playwright wrapper), persisting learned domain strategies, and emitting Markdown shaped for a prompt — fenced code, resolved links, escaped page text. pytest examples/adaptive-web-crawler/
Prompt Mutation Fuzzer Template-based prompt perturbation (fixed snippets inserted, appended or cut) and multi-provider model driver (Mock, OpenAI, Anthropic, Ollama, REST) evaluating agent code invariant resilience. pytest examples/prompt-mutation-fuzzer/test_fuzzer.py
Tool Contract Verifier Runtime check of tool calls against its own parameter contracts (type, required, bounds, maxLength, no extra keys), with export to JSON Schema 2020-12. It runs no JSON Schema validator. pytest examples/tool-contract-verifier/test_verifier.py
Valkey L2 Repomap Cache & Drift Auditor Two-tier AST symbol cache with a standard-library RESP client, SHA-256 content addressing, LRU eviction in L1, and cosine-distance drift checks. With no Valkey server, or after a failed command, it falls back to an in-process dict, logs one warning, and reports each hit from the dict as L2_FALLBACK. pytest examples/valkey-l2-repomap-cache/test_repomap_cache.py
Ephemeral Container Sandbox Runs payloads in docker or podman as an unprivileged user with --network none (it does not check that the runtime is rootless), checks eight controls modeled on the CIS Docker Benchmark, and has a container-less fallback confined by an unprivileged seccomp-BPF filter. Reports what the engine enforces beside what the policy declares. pytest examples/ephemeral-container-sandbox/
Polyglot CST Ingestion Engine Symbol and complexity ($M$) extractor: Python through the standard ast module, Rust, Go, TS and Bash through line-anchored regular expressions, with pre-flight size and symlink guards. It builds no concrete syntax tree. pytest examples/polyglot-cst-parser/test_cst_parser.py
Go Goroutine Leak Sentinel Small Go reimplementation of part of go.uber.org/goleak, plus a Python goroutine-dump classifier. The classifier finds runtime goroutines by their entry function, as the Go runtime does, so a blocked user goroutine in a GOTRACEBACK=system dump counts as a leak. pytest examples/go-leak-sentinel/test_go_leak_sentinel.py
Agent Experience Evaluator Static analysis measuring agent usability, cognitive impedance ($M \le 6$, depth $\le 3$), and strict negative tool schemas with SARIF export. pytest examples/agent-experience-evaluator/test_ax_evaluator.py
Differential Polyglot Mutation Fuzzer Structural mutation fuzzer: Python mutants go through ast.parse; Rust, Go, TS and Bash mutants get only length and line checks. Not differential fuzzing (it compares no implementations). Also checks ELOOP symlink loop containment. pytest examples/polyglot-mutation-fuzzer/test_polyglot_fuzzer.py
Worktree Swarm Arbiter Creates isolated git worktrees for concurrent subagents and models lease heartbeats, index-lock waits, and process group cleanup. The caller holds the lease state. pytest examples/worktree-swarm-arbiter/test_worktree_arbiter.py
Typed Context Handshake SHA-256 content-addressed context envelopes with negative schema checks and epistemic loss auditing. A content hash detects change; it is not a signature. pytest examples/epistemic-context-handshake/test_context_handshake.py
Chaos Invariant Injector Deterministic chaos engineering engine perturbing complexity, nesting, and egress invariants and computing a repair ratio from counts the caller supplies. pytest examples/chaos-invariant-monkey/test_chaos_monkey.py
eBPF LSM Kernel Gate Python simulation of BPF LSM policy decisions with path normalization, 35 boundary probes derived partly from the policy (not syzkaller), and an enforcing Tetragon export. It loads no BPF program and ships no BPF C; the Tetragon policy it generates sends Sigkill for blocked binaries, paths and egress. pytest examples/ebpf-lsm-kernel-gate/test_lsm_gate.py
AST Semantic Reconciler 3-way merge by top-level symbol and by class member that avoids some line-based false conflicts and unifies import sets, with SARIF export. It keeps from __future__ imports first, compiles the merged code and reports a collision if the compile fails. pytest examples/ast-semantic-reconciler/test_reconciler.py
Wasm Capability Sandbox Python simulation of a WASI 0.2-style capability sandbox (capability handles, WIT-like interface checks, gas counting). It runs no WebAssembly and isolates nothing from the host. pytest examples/wasm-capability-sandbox/test_wasm_sandbox.py
AST-CRDT Collaborative Editor In-process simulation of concurrent AST edits with Lamport clocks and cycle checks. Moves apply in timestamp order with undo and redo, so replicas converge under causal delivery. pytest examples/ast-crdt-collaborative-editor/test_ast_crdt.py

🌐 Infrastructure & Observability Resources (resources/)

Example infrastructure configurations, container sandboxes, and observability pipelines for agent swarms. They pass static checks, nothing in this repository deploys them, and some wiring is incomplete (see each subdirectory's README):

Category Key Resources Description
Observability Mesh otel-collector-config.yaml
prometheus.yaml
prometheus-agent-alerts.yaml
grafana/agent-telemetry-dashboard.json
OTel Collector pipeline with batching and a memory limiter (it deletes secret-bearing HTTP header attributes), Prometheus config and alert rules for token burn spikes and invariant failures, and a Grafana dashboard with its provisioning files. The rules and the dashboard read vibes_agent_* metrics that no code here emits.
Kubernetes Manifests sandbox-pod.yaml
network-policy.yaml
resource-quota.yaml
otel-collector-deployment.yaml
Unprivileged sandbox pod spec that meets the Restricted Pod Security Standard (no namespace label enforces it), an egress NetworkPolicy that excludes RFC 1918 and metadata addresses from public egress, namespace quotas, and in-cluster OTel/Jaeger/Valkey. The sandbox reaches the collector in its other namespace, and Valkey takes its password from a valkey-auth Secret that you create.
Docker Compose Stack docker-compose.yml
.env.example
6-service local evaluation environment (jaeger, otel-collector, prometheus, valkey, grafana, agent-sandbox) started with docker compose up -d. Prometheus loads the alert rules and scrapes the collector. Grafana provisions the dashboard and a default Prometheus data source.

Read the full Resources Guide (resources/README.md).


🏆 Multi-Agent Benchmark Suite (benchmarks/)

A deterministic scorecard with four tracks. No track runs an AI agent or calls a model: each scores fixed inputs from this repository, so every run gives the same scores. It shows how the scoring works; it does not compare coding assistants:

python3 benchmarks/benchmark_runner.py
Evaluation Track Focus Metric Passing Threshold
Complexity Refactoring Cyclomatic complexity reduction on procedural code $M \le 10$ and $\ge 50%$ complexity reduction
CEGIS Convergence Rounds a simulated CEGIS-style loop takes over hand-written candidate patches Converged within $\le 6$ iterative rounds
Token Economy Token savings computed from hard-coded token counts for local subagent slot offloading $\ge 70%$ cloud token reduction
Rust Type-State Pattern Compile-time state machine invariant enforcement and zero-cost abstractions cargo test passes (the cargo tests assert zero-sized state markers), and a text search finds no unsafe

Read the full Benchmark Suite Guide (benchmarks/README.md).


🗺️ Strategic Roadmap

Follow our multi-milestone evolution from foundational case studies to polyglot testbeds, multi-agent benchmark suites, and autonomous self-curating swarms:

  • v0.1.0 — Foundations & Retrospective (✅ Completed): Architecture, Manifesto, Taxonomy, 6 devops-cli Case Studies, 4 Core Patterns, and FastMCP schemas.
  • v0.2.0 — Interactive Testbeds & Reference Apps (✅ Completed): AST Sentinel, FastMCP Gateway, CEGIS Workbench, CI matrix, Project Tooling, and Autonomous GitHub Workflows.
  • v0.3.0 — Benchmark Suites & Observability Mesh (✅ Completed): Multi-Agent Benchmark Runner, Waterfall Trace Generator, Prompt Mutation Fuzzing, Tool Contract Verification, AST Conditional Refactorer, and Valkey L2 Repomap Cache.
  • v0.4.0 — Polyglot Invariants & Ephemeral Sandboxes (✅ Completed): Go Goroutine Leak Sentinel, Rust Type-State Track, Rootless Docker Container Sandboxes, and a polyglot symbol extractor (Python ast and regular expressions, no tree-sitter).
  • v0.5.0 — Autonomous Swarm Orchestration (✅ Completed, not released): Closed-loop PR Triage Bot, Conversation-to-Case-Study Synthesizer, and a Multi-Model Cost-per-Invariant Index that scores supplied run records.
  • v1.0.0 — Enterprise Governance & Living Standard (✅ Completed, not released): AIBOM Supply-Chain Scanner, Prompt Injection Egress Validator, and Certified Living Standard.

Read the complete Strategic Roadmap (docs/ROADMAP.md) including the prioritized Value vs. Effort matrix and Living Research Queue.


🤖 Autonomous Recursive Development Cycle & Tooling

vibes operates on a positive recursive development cycle designed for autonomous operation. A person still reviews and merges each pull request:

flowchart LR
    Issue[Issue / Goal] --> Intake["Roadmap intake<br>(one type/ label)"]
    Intake --> AgentDev[Agent TDD Implementation]
    AgentDev --> PRSentinel["pr-sentinel.yml<br>(AST Invariant Gate)"]
    PRSentinel --> Merge[Merge PR]
    Merge -->|"needs-guardrail"| Hardening["recursive-hardening.yml<br>(AGENTS.md Audit)"]
    Hardening --> Next[Self-Hardened Knowledge Base]
Loading

Tooling & Automated Workflows:

  • JIT Instruction Governor & Ablation Engine (tools/instruction_governor.py): Targets instruction ratchet bloat and lost-in-the-middle attention decay by parsing instructions into token-weighted sections, mapping mechanical gate codes to rule sections (Rule Attribution Matrix), synthesizing lean two-tier JIT prompt envelopes ($\le 2$k kernel + targeted overlays), and flagging ablation candidates with a static heuristic. It runs no counterfactual experiment.
  • Project Tooling CLI (tools/project_tooling.py): Self-hardening audit (verify-hardening) that recursive-hardening.yml runs on the diff of a merged pull request.
  • SDLC Project Manager CLI (tools/sdlc_project_manager.py): Deterministic multi-dimensional priority scoring, a dependency cycle check (not yet called by the ranking), and agent next-action dispatch. It reads and writes local JSON files and does not call the GitHub API.
  • Resource Iteration Workbench (tools/resource_iteration_workbench.py): Continuous Scan -> Run -> Review -> Feedback -> Iterate engine computing quality scores, proactive refactoring opportunities, and automated SDLC backlog tasks.
  • Automated AST Conditional Refactorer (tools/ast_refactorer.py): Mechanical AST rewriting engine auto-decomposing branching ladders ($M \ge 7$) and nesting depth into table dispatch mappings, early-return guard clauses, pure predicate helpers, and consolidated assertion tuples. It re-parses each result and confirms that complexity and nesting depth did not rise; it does not check behavior, and the guard-clause transform can change return values.
  • Documentation Syntax & Link Validator (tools/docs_validator.py): Documentation validator checking nested code fences, Mermaid declarations and label quoting, markdown table column alignments, local anchor slugs, and embedded snippet syntax.
  • CEGIS Invariant Repair Engine (tools/cegis_engine.py): Verification loop named after counterexample-guided inductive synthesis. It checks a supplied sequence of candidate programs against AST invariants, keeps each violation as a negative constraint, and flags repeated violations, cycles, and regressions. It does not synthesize candidates: classic CEGIS pairs a solver-based synthesizer with a verifier, and here the candidates come from outside.
  • Context Rot Auditor & Compactor (tools/context_rot_auditor.py): Attention dilution and context rot inspector calculating the Attention Dilution Index (ADI, an uncalibrated heuristic), flagging invariant-bearing messages in the middle of a transcript (ROT002), and compacting context by masking long tool output and re-pinning the last three invariant messages at the end.
  • C++ RAII & Lifetime Invariant Sentinel (tools/cpp_lifetime_sentinel.py): Line-oriented regular-expression scanner of C++ source code for memory deallocation violations (CPP001), dangling view lifetimes over temporaries (CPP002), Rule of Five incompleteness (CPP003), unmanaged raw pointers (CPP004), and use-after-move hazards (CPP005) with OASIS SARIF 2.1.0 telemetry export.
  • eBPF Process Tracing & Sandbox Introspection Oracle (tools/ebpf_tracer.py): Auditor of recorded syscall event logs: flat JSON records, native Tetragon process_exec and process_kprobe records, and Falco JSON alerts. It parses logs; it attaches no probe and loads no BPF program. It flags unauthorized binary execution (EBPF001), private network egress (EBPF002), sensitive file access below absolute paths and the ~/ paths of the --home-dir directories (EBPF003), privilege escalation (EBPF004), and anti-debugging evasion (EBPF005). It writes a Tetragon TracingPolicy (sys_execve and sys_execveat kprobes that match the path that the caller gives, and a security_bprm_check kprobe that matches the opened file, also for fexecve; each sends Sigkill for the disallowed binaries in the sandbox pods that its podSelector matches) and OASIS SARIF 2.1.0 exports.
  • Dynamic Multi-Model Router & Speculative Cascade Oracle (tools/model_router.py): Routing simulator. It scores a caller-supplied task complexity vector and the Shannon entropy of caller-supplied answer-cluster probabilities, and picks a Local (7B), Fast (32B/Haiku), or Frontier (Sonnet/GPT-4o) tier. Its speculative cascade checks a supplied draft against AST invariant oracles ($M \le 10, d \le 5$, zero RFC 1918) and escalates on failure. It calls no model, and its costs are table estimates.
  • Semantic Graph AST Code Memory & Symbol Indexer (tools/code_memory.py): Persistent AST symbol index and directed call graph memory maintaining def-use chains, signature stability (SGM002), circular dependency detection (SGM003), and static transitive blast radius analysis across multi-file refactoring sessions with OASIS SARIF 2.1.0 exports and WCAG AA Mermaid visualizations.
  • Application Factory (tools/app_factory.py): A contract declaring an application's operations and their argument types becomes a runnable application — dispatch table, JSON Schema with additionalProperties: false, prescriptive rejections listing every breach at once, timed invocations, CLI, contract tests and a structured README. What makes it a factory for this repository is the acceptance test: the emitted application passes the AST invariant sentinel, ruff, mypy, the documentation validator and its own generated suite with no edit, and tests/test_app_factory.py runs those real gates over the real output. handlers.py is written once and never regenerated, because a factory that owns the domain logic becomes a framework nobody can leave. A contract may declare variables and collect their values interactively, from --set, or from a recorded answers file — always with a default, so it still resolves when nobody is watching, and never prompting when stdin is not a terminal.
  • Portfolio Balance (tools/portfolio_balance.py): Reports what the repository has against where its recent lines went. The drift it exists to surface is invisible from inside any single change — every tooling commit is defensible and the aggregate is not. Counts added lines rather than touched files, because a repository-wide lint sweep touches many locations and builds nothing: on the window that prompted this, touches read 52/48 and lines read 7/93. Steers, never gates.
  • Finding Baseline (tools/finding_baseline.py): Records a codebase's existing findings so a gate can be turned on before the codebase passes it — the most-cited gap in the landscape survey, held by lizard, vulture, wily and promptfoo. Operates on normalized SARIF results, so one baseline covers every oracle and composes with any SARIF-emitting tool. Entries are pruned when their finding is fixed, because a suppression file that never shrinks goes on hiding a defect that was repaired and later reintroduced. This repository's own baseline is empty and a test keeps it that way.
  • Instrument Fuzzer (tools/fuzz_harness.py): Turns the oracles on themselves. Generates and mutates Python modules, Markdown documents, roadmaps and manifests, then asserts four mechanically decidable properties of each instrument — that it raises nothing it has not declared, answers identically for identical input across hash seeds, converges when it repairs, and finishes. Every input that breaks one is minimized by delta debugging and kept in artifacts/fuzz-corpus/, which is replayed as a gate; the random search runs on a schedule, where a lucky run is a finding rather than a red build.
  • Milestone Scope Governor & Release Air-Lock Oracle (tools/milestone_governor.py): Detects the Milestone Horizon Inflation Trap and scope cascades in autonomous AI agent workflows. Models a 3-phase milestone lifecycle (INTAKE → AIR_LOCKED → FROZEN), computes rolling Scope Injection Velocity ($V_{\text{scope}}$), Burn Velocity ($V_{\text{burn}}$), and the Convergence Ratio ($C_R$, with a warning below 1.2), and lists retained P0 blockers vs. vNext rollover candidates with OASIS SARIF 2.1.0 telemetry export. It edits no issue, and devops-cli never adopted it.
  • Conversation-to-Case-Study Synthesizer (tools/conversation_synthesizer.py): Automated pipeline ingesting raw agent trajectory logs (JSONL transcripts), enforcing zero-trust redaction (RFC 5737 IPs, example.com hostnames, secret masking, user path generalization), extracting quantitative telemetry and AST complexity metrics, and drafting structured 5-section observation reports with Mermaid diagrams.
  • Continuous Quality Gate (.github/workflows/ci.yml): Multi-version Python test matrix and AST Invariant Sentinel validation.
  • PR Architectural Sentinel (.github/workflows/pr-sentinel.yml): Runs the AST invariant sentinel on the Python files a pull request changes and fails on complexity creep or private IP literals.
  • Recursive Self-Hardening (.github/workflows/recursive-hardening.yml): After a pull request labeled needs-guardrail merges, opens a follow-up issue labeled type/docs if the pull request added no line to AGENTS.md. Apply the label to a defect fix that a written rule would have prevented; the type/bug label alone starts no audit. It does not block the merge.
  • Scheduled Instrument Fuzzing (.github/workflows/fuzz.yml): Daily exploration and cross-hash-seed determinism check, publishing minimized inputs as artifacts rather than committing them.

🤝 Contributing & Submitting Artifacts

Contributing an experience from your own agent sessions? Start with the Agentic Experience Contribution Harness — five staged prompts that extract a publishable observation from a real session, or establish that the session does not contain one. Most do not, and the harness is built to say so.

We invite AI researchers, agent engineers, and developers to contribute notable observations, prompt harnesses, benchmark findings, and case studies:


📄 License

This repository is distributed under the terms of the Apache License, Version 2.0.


🧭 Directory Map

├── .github/
│   ├── CODEOWNERS                     # Requests @dan-petty to review pull requests
│   ├── ISSUE_TEMPLATE/                # Issue templates for observations and artifacts
│   ├── PULL_REQUEST_TEMPLATE.md       # Pull request template with sanitization rubric
│   ├── copilot-instructions.md        # Pointer that sends GitHub Copilot to AGENTS.md
│   ├── labels.yml                     # Scope and repository labels (template)
│   ├── project-template.json          # Declarative GitHub Projects v2 schema template
│   ├── renovate.json                  # Renovate update PRs: actions, hooks, pip floors, npm packages, images
│   └── workflows/                     # Autonomous recursive CI/CD workflows
│       ├── ci.yml                     # Multi-version test & AST invariant certification
│       ├── fuzz.yml                   # Daily instrument fuzzing & hash-seed determinism check
│       ├── pr-sentinel.yml            # Automated PR diff invariant gate & certification
│       ├── pr-title.yml               # PR title check: calls the reusable workflow of infra
│       └── recursive-hardening.yml    # Closed-loop AGENTS.md hardening audit
│
├── AGENTS.md                          # Foundational agent operating instructions for vibes
├── CHANGELOG.md                       # Structured release history
├── CLAUDE.md                          # Pointer that loads AGENTS.md into Claude Code
├── CONTRIBUTING.md                    # Contributor entry point, local gates, and conventions
├── GEMINI.md                          # Pointer that loads AGENTS.md into Gemini CLI
├── LICENSE                            # Apache 2.0 open-source license
├── README.md                          # Repository homepage and exhibition tour (this file)
├── pyproject.toml                     # Project metadata and the single Python dependency manifest
├── pytest.ini                         # Isolated test config preventing parent plugin discovery
├── package.json                       # Node packages of the Mermaid render gate
├── package-lock.json                  # Locked Node packages that CI installs with npm ci
│
├── github/                            # GitHub settings baseline that `devops repos onboard` applies
│
├── openspec/                          # OpenSpec project config for planned changes
│
├── docs/                              # Foundational theory, taxonomy, and curation standards
│   ├── MANIFESTO.md                   # Beyond "Vibe Coding": The Disciplined Agentic Manifesto
│   ├── TAXONOMY.md                    # Structured taxonomy of agentic architectures & failure modes
│   ├── RETROSPECTIVE.md               # Empirical retrospective on autonomous dynamics & mechanical oracles
│   ├── CURATION_GUIDELINES.md         # Guidelines for submitting & sanitizing artifacts
│   ├── EMPIRICAL_FOUNDATIONS.md       # Critical synthesis cross-examining assertions against external literature
│   ├── agent/                         # Autonomous agent task tracking and project boards
│   ├── archive/                       # Delivered roadmap scope, retained for provenance
│   ├── dummysguide/                   # Beginner-friendly fundamentals without technical mumbo jumbo
│   ├── landscape/                     # Comparable-project survey: manifest, facts snapshot, report
│   ├── reliability/                   # Committed error budget ledger (one shard per iteration)
│   └── ROADMAP.md                     # Strategic high-density product roadmap & milestones
│
├── observations/                      # Empirical field studies & engineering breakthroughs
│   ├── README.md                      # Consolidated field observations & architectural synthesis
│   ├── devops-cli/                    # In-depth case studies from the devops-cli project
│   │   ├── 01-tdd-as-living-contract.md
│   │   ├── 02-architectural-invariants-and-complexity-caps.md
│   │   ├── 03-autonomous-project-governance.md
│   │   ├── 04-zero-trust-egress-and-sanitization.md
│   │   ├── 05-harness-slots-and-subagent-offloading.md
│   │   ├── 06-rate-limits-and-anti-brittle-heuristics.md
│   │   ├── 07-proactive-headroom-and-recursive-feedback-loops.md
│   │   ├── 08-closed-loop-feedback-inversion-and-autonomous-quality-elevation.md
│   │   ├── 09-mechanical-ast-rewriting-and-automated-refactoring-convergence.md
│   │   ├── 10-negative-tool-contract-assertions-and-prescriptive-prompt-synthesis.md
│   │   ├── 11-assertion-density-and-structural-tuple-consolidation.md
│   │   ├── 12-polyglot-cst-boundary-guards-and-symlink-containment.md
│   │   ├── 13-streaming-reasoning-token-parsers-and-think-block-sanitization.md
│   │   ├── 14-binary-search-ast-context-packing-and-token-budgeting.md
│   │   ├── 15-llm-structured-output-repair-and-schema-reconciliation.md
│   │   ├── 16-ci-staleness-and-milestone-freeze-anti-pattern.md
│   │   ├── 17-semantic-validators-vs-structural-position-oracles.md
│   │   ├── 18-tool-cardinality-saturation-and-schema-context-taxation.md
│   │   ├── 19-context-accumulation-drift-and-lossy-reflection-truncation.md
│   │   ├── 20-model-failover-capability-cliffs-and-one-way-degradation-ratchets.md
│   │   ├── 21-milestone-horizon-expansion-and-autonomous-scope-cascades.md
│   │   └── 22-the-verification-horizon-and-validation-latency-cliffs.md
│   ├── polyglot/                      # Cross-language agentic engineering observations
│   │   ├── 01-rust-type-state-invariants.md
│   │   ├── 02-typescript-cst-and-type-gymnastics.md
│   │   ├── 03-go-goroutine-leakage-and-context-lifecycles.md
│   │   ├── 04-cpp-raii-and-lifetime-invariants-under-llm-synthesis.md
│   │   └── 05-differential-ast-mutation-fuzzing-for-polyglot-boundary-parsers.md
│   └── systems/                       # Distributed systems & observability field studies
│       ├── 01-distributed-telemetry-and-agent-waterfalls.md
│       ├── 02-subprocess-test-harness-instrumentation-tax.md
│       ├── 03-event-driven-file-watchers-and-continuous-invariant-loops.md
│       ├── 04-content-addressed-two-tier-caching-and-embedding-drift-audits.md
│       ├── 05-rootless-container-sandboxing-and-process-group-containment.md
│       ├── 06-multi-agent-concurrency-shared-workspace-hazards-and-swarm-coordination.md
│       ├── 07-agentic-ide-protocols-and-lsp-mcp-convergence.md
│       ├── 08-convention-to-mechanical-enforcement-inversion.md
│       ├── 09-multi-agent-epistemic-loss-and-delegation-boundary-distortion.md
│       ├── 10-mcp-protocol-boundaries-and-stateless-transport-constraints.md
│       ├── 11-silent-certification-failure-and-gate-integrity.md
│       ├── 12-gates-catch-their-author-first.md
│       ├── 13-verify-the-finding-before-you-fix-it.md
│       ├── 14-defect-shaped-loops-and-the-feature-blind-spot.md
│       ├── 15-a-count-is-not-a-cost.md
│       ├── 16-the-prioritizer-is-not-under-test.md
│       ├── 17-a-fuzzers-first-report-is-about-the-fuzzer.md
│       ├── 18-a-correction-inherits-the-frame-it-corrects.md
│       ├── 19-self-consistency-is-not-conformance.md
│       ├── 20-internet-grounded-information-foraging-and-self-improvement-loops.md
│       ├── 21-hierarchical-subagent-slot-offloading-and-epistemic-loss.md
│       ├── 22-self-correction-loops-vs-cegis-constraint-accumulation.md
│       ├── 23-attention-dilution-context-rot-and-active-compaction.md
│       ├── 24-ebpf-process-tracing-for-agent-sandbox-introspection.md
│       ├── 25-multi-model-capability-boundaries-and-dynamic-routing-oracles.md
│       ├── 26-semantic-graph-ast-code-memory-and-persistent-symbol-indexing.md
│       ├── 27-agentic-project-self-documentation-and-the-phantom-architecture-trap.md
│       ├── 28-recursive-self-improvement-and-the-post-harness-mandate.md
│       ├── 29-epistemic-drift-and-the-unreliable-teacher-in-autonomous-verification.md
│       ├── 30-kinetic-falsification-and-the-ephemeral-exploit-harness.md
│       ├── 31-instruction-ratchet-bloat-and-counterfactual-agent-ablation.md
│       ├── 32-dual-first-class-consumers-and-bi-directional-agentic-feedback-loops.md
│       ├── 33-typed-epistemic-seams-and-lossless-subagent-handshakes.md
│       ├── 34-ebpf-lsm-kernel-gates-and-dynamic-containment-fuzzing.md
│       ├── 35-3-way-ast-semantic-reconciliation-and-worktree-collision-arbitration.md
│       ├── 36-wasi-component-models-and-capability-based-tool-sandboxing.md
│       ├── 37-real-time-ast-crdts-and-concurrent-multi-agent-swarms.md
│       ├── 38-graph-ranked-ast-context-optimization-and-personalized-pagerank.md
│       ├── 39-test-harness-integration-and-zero-overhead-goroutine-leak-sentinels.md
│       ├── 40-configurable-prose-style-guides-and-inclusive-terminology-gates.md
│       ├── 41-radon-block-complexity-ranking-in-code-smell-quantification.md
│       ├── 42-language-server-protocol-and-automated-ast-invariant-repair.md
│       ├── 43-contract-driven-template-ecosystems-and-in-place-updates.md
│       ├── 44-polyglot-token-normalization-and-multi-language-code-smell-quantification.md
│       ├── 45-sycophantic-compliance-and-mechanical-refusal-oracles.md
│       ├── 46-closed-loop-pr-review-thread-synchronization-and-atomic-resolution.md
│       ├── 47-biological-autopoiesis-homeostatic-damping-and-afferent-observability.md
│       ├── 48-the-improv-axiom-and-generative-headroom-elevation.md
│       └── 49-dissipative-structures-and-allometric-metabolism-in-agentic-swarms.md
│
├── patterns/                          # Operational playbooks for human-agent collaboration
│   ├── 3-way-ast-semantic-reconciliation.md
│   ├── adaptive-headless-web-crawling.md
│   ├── agentic-ide-lifecycle-hooks-and-lsp-oracles.md
│   ├── ast-crdts-for-real-time-agent-collaboration.md
│   ├── ast-graph-relevance-ranking-and-context-packing.md
│   ├── autonomous-sdlc-project-management.md
│   ├── bi-directional-metric-feedback-and-ax-scoring.md
│   ├── binary-search-context-packing.md
│   ├── capability-based-wasm-sandboxing.md
│   ├── cegis-and-hypothesis-debugging.md
│   ├── closed-loop-pr-review-thread-synchronization.md
│   ├── collision-free-worktree-fleet-allocation.md
│   ├── configurable-prose-style-and-terminology-gates.md
│   ├── contract-template-ecosystem-and-in-place-updates.md
│   ├── deterministic-oracles-and-feedback-inversion.md
│   ├── dissipative-entropy-reduction-and-allometric-swarm-routing.md
│   ├── epistemic-hygiene-and-context-pruning.md
│   ├── epistemic-seam-and-mitigated-defect-auditing.md
│   ├── error-budget-driven-feedback-inversion.md
│   ├── fifo-pull-request-shepherding.md
│   ├── findings-must-carry-their-own-falsification.md
│   ├── gate-integrity-and-total-input-coverage.md
│   ├── invariant-grounded-recursive-self-improvement.md
│   ├── iterative-resource-refinement-loop.md
│   ├── just-in-time-instruction-decomposition-and-ablation.md
│   ├── kernel-enforced-lsm-sandbox-containment.md
│   ├── kinetic-exploit-probes-and-invariant-leashing.md
│   ├── lsp-diagnostics-and-automated-invariant-repair.md
│   ├── milestone-airlock-and-scope-freeze-governance.md
│   ├── multi-agent-codebase-concurrency.md
│   ├── multi-tier-living-documentation.md
│   ├── polyglot-token-normalization-and-clone-quantification.md
│   ├── post-v1-deprecation-lifecycle.md
│   ├── radon-block-complexity-ranking-and-smell-quantification.md
│   ├── root-cause-hardening.md
│   ├── streaming-reasoning-isolation-and-token-budgeting.md
│   ├── structural-position-oracles.md
│   ├── structure-driven-ci-directory-contracts.md
│   ├── sycophantic-compliance-and-mechanical-refusal.md
│   ├── synthetic-chaos-and-invariant-convergence-testing.md
│   ├── test-harness-concurrency-leak-sentinel.md
│   ├── the-harold-multi-agent-swarm-orchestration.md
│   ├── the-improv-axiom-and-generative-headroom-elevation.md
│   ├── tiered-verification-pyramid-and-sub-second-oracles.md
│   ├── tool-cardinality-budget-management.md
│   └── zero-trust-sandboxing-and-observability.md
│
├── artifacts/                         # Prompts, harnesses, contracts, and schemas
│   ├── prompts/
│   │   ├── multi-persona-code-reviewer.md
│   │   ├── architectural-invariant-sentinel.md
│   │   └── experience-contribution-harness.md
│   ├── task-harnesses/
│   │   ├── structured-task-spec-template.md
│   │   └── sample-completed-task-spec.md
│   ├── contracts/                     # Application contracts the factory builds from
│   ├── finding-baseline.json          # Findings this repository accepts; empty, and tested so
│   ├── fuzz-corpus/                   # Inputs that broke an instrument; replayed as a gate
│   └── schemas/
│       ├── fastmcp-agent-tool-manifest-spec.json
│       └── sarif-schema-2.1.0.json     # OASIS SARIF 2.1.0 schema: the code scanning oracle
│
├── resources/                         # Infrastructure & Observability configurations
│   ├── observability/                 # OTel Collector, Prometheus alerts, Grafana dashboard
│   ├── k8s/                           # Hardened sandbox pod, NetworkPolicy, OTel manifests
│   └── docker-compose/                # 6-service local evaluation environment
│
├── examples/                          # Executable reference sample applications
│   ├── adaptive-web-crawler/          # Two-tier adaptive crawler with domain strategy memory
│   ├── agent-experience-evaluator/    # Agent Experience (AX) evaluator & cognitive impedance auditor
│   ├── agent-telemetry-trace-generator/ # OpenTelemetry waterfall trace generator
│   ├── agentic-ide-hook-sentinel/     # IDE lifecycle hook egress & process group guard
│   ├── ast-crdt-collaborative-editor/ # Simulated concurrent AST editor (timestamp-ordered moves)
│   ├── ast-invariant-sentinel/        # AST complexity <= 10 & IP leak analyzer
│   ├── ast-relevance-context-ranker/  # Personalized PageRank AST context optimizer & relevance packer
│   ├── ast-semantic-reconciler/        # Autonomous 3-way AST semantic reconciler & conflict arbitrator
│   ├── binary-search-context-packer/  # Binary search AST prompt context packer
│   ├── cegis-debugging-workbench/     # CEGIS-style debugging loop (analogy; no synthesis)
│   ├── chaos-invariant-monkey/        # Chaos injection & repair-ratio scorer
│   ├── code-smell-quantifier/         # Deterministic smell measurement (MI, clones, LCOM4)
│   ├── deprecation-lifecycle-sentinel/ # Post-1.0 deprecation contract & removal deadline gate
│   ├── ebpf-lsm-kernel-gate/          # Python simulation of BPF LSM policy & Tetragon export
│   ├── ephemeral-container-sandbox/   # Container sandbox & CIS-Docker-modeled policy checker
│   ├── epistemic-context-handshake/   # Typed context envelope protocol & loss auditor
│   ├── fastmcp-token-bucket-gateway/  # Paced tool gateway with jittered backoff
│   ├── go-leak-sentinel/              # Go concurrency runtime trace analyzer & leak sentinel
│   ├── polyglot-cst-parser/           # Multi-language CST/AST engine with boundary containment guards
│   ├── polyglot-mutation-fuzzer/      # Structural mutation & boundary fuzzer
│   ├── prompt-mutation-fuzzer/        # Template-based prompt perturbation & drift testbed
│   ├── streaming-reasoning-sanitizer/ # Streaming reasoning FSM parser & bounded stream sanitizer
│   ├── tool-contract-verifier/        # Tool-call contract checks & negative assertion gate
│   ├── valkey-l2-repomap-cache/       # Valkey L2 AST cache & structural drift auditor
│   ├── wasm-capability-sandbox/       # Python simulation of a WASI 0.2-style capability sandbox
│   └── worktree-swarm-arbiter/        # Git worktree fleet broker & lease manager
│
├── benchmarks/                        # Deterministic scorecard (no agent or model runs)
│   ├── README.md                      # Benchmark suite overview and scoring methodology
│   ├── benchmark_runner.py            # Standardized runner (Complexity, CEGIS, Token Economy)
│   └── test_benchmark_runner.py       # Automated benchmark certification tests
│
├── tools/                             # Autonomous project management tooling
│   ├── verification_pyramid_auditor.py # Verification pyramid auditor, latency scaling & assertion sprawl oracle
│   ├── instruction_governor.py        # JIT instruction governor, rule attribution & counterfactual ablation
│   ├── kinetic_probe.py               # Kinetic counterexample probe engine & invariant leash registry
│   ├── code_memory.py                 # Semantic graph AST code memory, symbol indexer & blast radius oracle
│   ├── model_router.py                # Model-routing simulator (calls no model) with SARIF export
│   ├── ebpf_tracer.py                 # Audits recorded syscall event logs (no probes) with SARIF export
│   ├── cpp_lifetime_sentinel.py       # C++ RAII & lifetime invariant sentinel with SARIF export
│   ├── context_rot_auditor.py         # Attention dilution & context rot auditor with active compactor
│   ├── cegis_engine.py                # CEGIS-style candidate verification loop (no synthesis)
│   ├── aibom_scanner.py               # AI Bill of Materials (AIBOM) & supply-chain security scanner
│   ├── prompt_injection_scanner.py    # Adversarial prompt injection & CWE-200 egress security scanner
│   ├── deprecation_protocol.py        # Enterprise change management & version deprecation protocol
│   ├── living_standard_certifier.py   # Seven-pillar certificate; each pillar runs an existing instrument
│   ├── project_tooling.py             # CLI for the self-hardening audit of merged pull requests
│   ├── pr_triage_bot.py               # Closed-Loop PR Triage & Invariant Review Bot
│   ├── pr_thread_sync.py              # PR review thread synchronizer; prints reply-and-resolve mutations
│   ├── conversation_synthesizer.py    # Autonomous conversation-to-case-study synthesizer
│   ├── model_leaderboard.py           # Scores supplied or sample run records (calls no model)
│   ├── subagent_orchestrator.py       # Hierarchical subagent slot offloading orchestrator
│   ├── sdlc_project_manager.py        # SDLC resource prioritization & Kanban engine
│   ├── resource_iteration_workbench.py # Automated Scan-Run-Review-Iterate workbench
│   ├── ast_refactorer.py              # Automated AST conditional refactorer
│   ├── milestone_governor.py          # Milestone scope governor, convergence ratio & release air-lock oracle
│   ├── doc_core.py                    # Shared finding types and fenced-block extraction
│   ├── doc_rules_mermaid.py           # Mermaid label, diagram type, and WCAG contrast rules
│   ├── doc_rules_polyglot.py          # Multi-format doc parsing and polyglot snippet validation
│   ├── doc_rules_structure.py         # Observation structure and directory map oracles
│   ├── doc_rules_style.py             # Prose style, terminology, and inclusive language rules
│   ├── docs_validator.py              # Documentation syntax, code fence, Mermaid, and link validator
│   ├── reliability_slo.py             # SLO objectives, error budgets, and loop phase policy
│   ├── roadmap_ingest.py              # Parses roadmap deliverables into the SDLC backlog
│   ├── app_factory.py                 # Contract in, gate-clean runnable application out
│   ├── contract_variables.py          # Shared: contract questions, answers and safe rendering
│   ├── landscape_survey.py            # Maturity, feature comparison and gap-to-roadmap survey
│   ├── portfolio_balance.py           # What the repository builds against what it judges
│   ├── roadmap_emit.py                # Shared: machine findings to idempotent roadmap proposals
│   ├── finding_baseline.py            # Accepts existing findings so a gate can be adopted
│   ├── fuzz_core.py                   # Shared: corpus generation, mutation and delta shrinking
│   ├── fuzz_harness.py                # Fuzzes the instruments themselves; replays what broke them
│   ├── metric_reference.py            # One row per metric: who computes it, and why not us
│   ├── sarif_report.py                # Every oracle's findings as one schema-valid SARIF log
│   ├── semconv_snapshot.py            # Derives the GenAI semantic conventions from upstream
│   ├── seccomp_synthesizer.py         # Automated Seccomp BPF profile synthesizer for agent tools
│   ├── supply_chain_audit.py          # Dependency, action, package and egress audit with fixes
│   ├── sanitization_policy.py         # Single definition of addresses code and docs may name
│   ├── upstream_facts.py              # Shared: GitHub repository facts and maturity scoring
│   ├── source_tree_policy.py          # Single definition of which paths are repository source
│   ├── example_loader.py              # Single definition of how tools import an example module
│   └── verify_mermaid.mjs             # Mermaid render gate using the real engine under jsdom
│
└── tests/                             # Automated test suites for tools and harnesses
    ├── test_empirical_foundations.py  # Unit tests for empirical foundations & critical synthesis
    ├── test_verification_pyramid_auditor.py # Unit tests for verification pyramid auditor & assertion density
    ├── test_instruction_governor.py   # Unit tests for JIT instruction governor & ablation engine
    ├── test_milestone_governor.py     # Unit tests for milestone scope governor and air-lock oracle
    ├── test_kinetic_probe.py          # Unit tests for kinetic probe execution & invariant leashes
    ├── test_code_memory.py            # Unit tests for code memory, call graph invariants & SARIF
    ├── test_model_router.py           # Unit tests for multi-model router, speculative cascade & SARIF
    ├── test_ebpf_tracer.py            # Unit tests for eBPF tracer, Tetragon/Falco policy & SARIF
    ├── test_cpp_lifetime_sentinel.py  # Unit tests for C++ lifetime sentinel, Rule of Five & SARIF
    ├── test_context_rot_auditor.py    # Unit tests for context rot auditor, ADI scoring & compactor
    ├── test_cegis_engine.py           # Unit tests for CEGIS engine, negative constraints & convergence
    ├── test_aibom_scanner.py          # Unit tests for AIBOM and model supply-chain security scanner
    ├── test_prompt_injection_scanner.py # Unit tests for prompt injection and CWE-200 egress scanner
    ├── test_deprecation_protocol.py   # Unit tests for deprecation protocol & tool schema migrator
    ├── test_living_standard_certifier.py # Scratch repositories: each broken rule fails its pillar
    ├── test_app_factory.py            # Runs the real gates over the factory's own output
    ├── test_contract_variables.py     # Contract questions, answer coercion and safe rendering
    ├── test_semconv_snapshot.py       # Deriving the GenAI convention table from upstream
    ├── test_seccomp_synthesizer.py    # Unit tests for Seccomp BPF profile synthesis and OCI output
    ├── test_address_policy_agreement.py # Five copies of one address policy, compared
    ├── test_metric_reference.py       # Who computes each metric, and the witnesses why
    ├── test_portfolio_balance.py      # Unit tests for portfolio and investment ratios
    ├── test_project_tooling.py        # Unit tests for autonomous project engine
    ├── test_pr_triage_bot.py          # Unit tests for multi-persona PR triage and review bot
    ├── test_pr_thread_sync.py         # Unit tests for closed-loop PR review thread synchronizer
    ├── test_conversation_synthesizer.py # Unit tests for conversation synthesizer & telemetry
    ├── test_model_leaderboard.py      # Unit tests for multi-model leaderboard and cost-per-invariant index
    ├── test_subagent_orchestrator.py  # Unit tests for hierarchical subagent slot offloading orchestrator
    ├── test_resources_validation.py   # Unit tests verifying K8s, Docker, and OTel resources
    ├── test_sdlc_project_manager.py   # Unit tests for SDLC project manager & scoring engine
    ├── test_resource_iteration_workbench.py # Unit tests for iteration workbench engine
    ├── test_ast_refactorer.py         # Unit tests for AST conditional refactoring engine
    ├── test_reliability_slo.py        # Unit tests for SLO error budgets and phase policy
    ├── test_roadmap_ingest.py         # Unit tests for roadmap deliverable ingestion
    ├── test_sdlc_sync.py              # Unit tests for backlog reconciliation and promotion
    ├── test_landscape_survey.py       # Unit tests for maturity scoring and gap-to-roadmap emission
    ├── test_finding_baseline.py       # Unit tests for baseline acceptance, staleness and pruning
    ├── test_fuzz_core.py              # Unit tests for input generation, mutation and shrinking
    ├── test_fuzz_harness.py           # Asserts every fuzzing property fires on a broken instrument
    ├── test_sarif_report.py           # Unit tests for SARIF emission and schema conformance
    ├── test_source_tree_policy.py     # Unit tests pinning one corpus definition across instruments
    ├── test_example_loader.py         # Unit tests pinning one example loader across the tools
    ├── test_supply_chain_audit.py     # Unit tests for dependency inventory, risk and mechanical fixes
    ├── test_upstream_facts.py         # Unit tests for repository facts and maturity scoring
    ├── test_docs_validator.py         # Unit tests for documentation syntax and link validation
    ├── test_workflow_contracts.py     # Resolves every workflow's commands against the real CLIs
    └── test_gate_manifest.py          # Asserts every documented quality gate is wired into CI

About

Agentic Hopes, Dreams, Hallucinations, and Nightmares

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages