38 Commits

Author SHA1 Message Date
Boden Fuller cc6750c4e8 feat(docs,skills): rebuild Pages site with MkDocs Material + harden RPI orchestrator delegation contract
## Docs site — boshu2.github.io/agentops

- Replace Jekyll minima with MkDocs Material (slate dark palette default)
- Landing hero scoped to .landing-hero (no gradient bleed on inner pages)
- Section landings (getting-started, architecture, reference, contracts, levels) with narrative ledes
- Generate skill catalog + per-skill pages from skills/*/SKILL.md at build
- Generate CLI reference from cli/docs/ at build (fails build on missing source)
- Fix every internal link via one-shot migration (scripts/migrations/2026-04-19-fix-docs-links.py)
- Wire mkdocs build --strict into pre-push gate (Check 25a)
- Replace .github/workflows/pages.yml with .github/workflows/docs.yml (actions/deploy-pages)
- README + docs/CONTRIBUTING updated with docs-build toolchain on-ramp
- tests/docs/validate-links.sh patched to understand mkdocs-generated paths

## RPI orchestrator strict-delegation contract

- Strict sub-skill delegation is now the default for /rpi, /discovery, /validation. No --full flag — always on.
- Canonical contract in skills/shared/references/strict-delegation-contract.md (plus Codex mirror)
- Forged learning with detection phrases + corrective actions (ao-inject-ready)
- Rename --no-lifecycle -> --no-scaffold in /discovery (Claude + Codex) with deprecation alias through v2.40.0
- Harden inline-work hotspots with orchestrator-owned markers in /crank STEPS 3a.3, 6.5, 8.7 + Inline Work Policy footer
- Flag consistency: --auto and --interactive scopes documented; --complexity syntax formalized
- CHANGELOG [Unreleased] documents + scaffolds; runtime hook enforcement explicitly deferred

## fix(hooks): go-test-precommit skips when no Go files staged

- Previously ran go vet + go build unconditionally, blocking non-Go commits when Go toolchain was missing or at a different version
- Now checks staged diff and exits cleanly if no *.go or go.{mod,sum,work} files are staged
- Applied to both hooks/ (source) and cli/embedded/hooks/ (synced)

Provenance: full RPI lifecycle with strict delegation at every phase boundary (Phase 1 Skill(discovery) -> Phase 2 Skill(crank) -> Phase 3 Skill(validation) -> Skill(vibe), Skill(post-mortem), Skill(retro)).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 10:37:58 -04:00
Boden Fuller a8cca4d15c chore(skills): refresh llm wiki artifacts 2026-04-11 22:36:24 -04:00
Boden Fuller a1a58bfb28 docs(skills): add autodev contract skill 2026-04-11 21:57:03 -04:00
Boden Fuller 765d0891cb feat(skills): ship dream interactive surface 2026-04-10 09:04:21 -04:00
Boden Fuller 8adb8b7773 docs: align README-linked docs with current framing 2026-04-09 23:03:30 -04:00
Boden Fuller aef1efab3f feat(validation): add Stage 4 behavioral validation — holdout scenarios + satisfaction scoring
Add the missing validation tier between council/vibe (Stage 3) and production
(Stage 5). Inspired by StrongDM's Digital Twin Universe and Shield AI's
SITL/HITL/VITL fidelity ladder.

New capabilities:
- Holdout isolation hook: PreToolUse gate blocks agent access to .agents/holdout/
  unless AGENTOPS_HOLDOUT_EVALUATOR=1 (prevents reward hacking)
- Scenario schema: schemas/scenario.v1.schema.json defines holdout scenario format
- Verdict extension: satisfaction_score (0.0-1.0) and satisfaction_breakdown added
  as optional fields to verdict schema (v4)
- Scenario skill: /scenario for authoring and managing holdout scenarios
- Validation pipeline: STEP 1.8 inserted for behavioral validation
- Vibe exposure: weighted_score now exposed as satisfaction_score
- CLI commands: ao scenario init|list|validate with 11 passing tests
- Planning rule: schema wave ordering for additionalProperties:false
2026-04-05 08:35:31 -04:00
Boden Fuller 1074636493 feat(skills): add /red-team skill — persona-based adversarial validation (ag-fwd)
Thin orchestrator that spawns context-restricted agents to probe whether
docs and skills actually work when someone with constraints tries to use
them. Complements /council (expert judgment) and /vibe (code quality)
with consumer-side usability testing.

- Add skills/red-team/ with SKILL.md (336L) and 4 reference docs
- Add red-team preset to council personas (4 personas: OnCall, NewHire, Agent, Consumer)
- Add /red-team to using-agentops catalog and SKILL-TIERS.md
- Sync skill counts to 65 across all docs
- stability=experimental, v1 surfaces: docs + skills only

Codex gpt-5.4 reviewed discovery plan; all 5 critiques addressed in v2.
2026-04-02 11:39:01 -04:00
Bo 69630a8de0 feat: add knowledge activation skill and CLI surfaces (#87)
* feat: add knowledge activation skill and CLI surfaces

* chore: sync embedded skills and codex artifact hashes

* test: cover quality signals hook in bats suite
2026-04-01 20:53:17 -04:00
Boden Fuller 0030790283 feat(skills): encode evidence-driven anti-patterns, unify flywheel metrics, add normalization defect detection
- Create global ~/.agents/MEMORY.md with 7 universal principles and top patterns
- Unify sigma/rho/delta definitions across skills/docs/code (code is truth)
- Add normalization defect scan to Athena defrag (placeholder, stacked frontmatter, bundled, dupes)
- Add anti-pattern pre-flight to /plan (dead infra, brainstorm-as-plan, 40% context, commit cadence)
- Expand pre-mortem from top-5 to top-8 FAIL patterns (dead infra activation, rollback maps, four-surface closure)
- Add 4 new forge uncaptured lesson categories (normalization defects, promotion pipeline, taxonomy, stale contradictions)
- Add normalization defect check to post-mortem four-surface closure
- Fix pre-existing broken link in flywheel-diagnostics.md (regex in code block)
- Sync all changes to skills-codex with Codex-specific adaptations preserved
2026-03-30 15:27:49 -04:00
Boden Fuller e2feefac0e feat(cli): add ao harvest for cross-rig knowledge consolidation
New `ao harvest` command walks all .agents/ directories across the
workspace, extracts learnings/patterns/research, deduplicates by
content hash, and promotes high-confidence items to the global hub.

- cli/internal/harvest: walker, extract, catalog packages (25 tests)
- cli/cmd/ao/harvest.go: cobra command with --roots, --promote-to,
  --min-confidence, --dry-run, --json flags
- skills/harvest: /harvest skill with governance reference
- skills-codex/harvest: codex parity
- config: HarvestRoots field in PathsConfig
- docs: skill counts synced to 61 (52 user-facing)
2026-03-30 11:01:49 -04:00
Boden Fuller 03a97978c5 fix(docs): align ASCII box-drawing diagrams across 23 files
Fix right-side │ border alignment in box diagrams. Three fix types:
- Trailing space adjustment for border alignment
- Box border widening for content that exceeded width
- Bottom border dash count matching top border
2026-03-29 07:55:25 -04:00
Boden Fuller b41bcda083 feat(skills): add 6 lifecycle skills and wire cross-references
Add test, review, refactor, deps, perf, and scaffold skills to fill
gaps in the developer lifecycle for engineers working with coding agents.

New skills:
- /test: test generation, coverage analysis, TDD workflow
- /review: incoming PR and agent output review (SCORED checklist)
- /refactor: safe, verified refactoring with regression testing
- /deps: dependency audit, update, vulnerability scan, license check
- /perf: profiling, benchmarking, regression detection, optimization
- /scaffold: project scaffolding, component generation, CI setup

Wired 8 existing skills to reference the new ones:
- complexity → /refactor (next step for CC > 20 targets)
- security → /deps (OWASP A06 dep vuln scanning)
- vibe → /test, /perf (coverage gaps and perf review)
- release → /deps (pre-flight vuln check)
- evolve → /test, /refactor, /deps, /perf (work generators)
- implement → /test (TDD accelerator)
- bug-hunt → /refactor, /perf (complex/perf bug escalation)
- quickstart → /scaffold (new project next step)

Skill count: 45 → 51 user-facing (60 total with 9 internal).
2026-03-27 19:18:10 -04:00
Boshu2 b3b9fc12e9 fix: dedupe codex native skill installs 2026-03-12 19:54:34 -04:00
Boshu2 d6aafb4bf2 docs: update skill descriptions for v2.24.0 capabilities
Add v2.24.0 feature descriptions to README, docs/SKILLS.md,
docs/ARCHITECTURE.md, using-agentops catalog, and docs/CHANGELOG.md.
Fixes CI doc-release-gate failure (missing docs/CHANGELOG.md entry).
2026-03-12 16:10:38 -04:00
Boshu2 029f3ecb08 docs: fix broken links and orphaned docs from README restructure
- GLOSSARY: fix broken anchor #knowledge-flywheel → #pillar-4-knowledge-flywheel
- GLOSSARY: update #the-rpi-workflow → #the-phased-lifecycle
- ARCHITECTURE: rename "The RPI Workflow" → "The Phased Lifecycle"
- INDEX: add evolve-setup.md, ENV-VARS.md, SKILL-ROUTER.md, and 5 other orphaned docs
- context-lifecycle: fix source column to self-reference instead of README
2026-03-11 17:47:54 -04:00
Boshu2 0c1d4f6308 docs: align lifecycle docs with primitive chain audit 2026-03-11 12:37:24 -04:00
Boshu2 7cee74c1f2 feat(skills): decompose /rpi into /discovery + /validation phase orchestrators
Create 3-layer skill architecture: primitives → phase orchestrators → thin /rpi wrapper.

New skills:
- /discovery: brainstorm → ao search → research → plan → pre-mortem (gate)
- /validation: vibe → post-mortem → retro → forge (flywheel)

/rpi rewritten from 393-line monolith to ~200-line thin wrapper that delegates
to /discovery → /crank → /validation with complexity classification, --from
routing, and optional loop.

Pre-mortem: 4-judge deep council → WARN, all HIGH findings fixed.
2026-03-10 12:23:43 -04:00
Boden Fuller 18c0db867c Hotfix Codex install docs and Athena metadata 2026-03-07 15:30:07 -05:00
Boden Fuller 4abd2a69be docs(context): sweep remaining ao inject references across docs/tests/scripts
Wave 3 of context-enforcement-phase3: replace ao inject workflow
guidance with ao lookup across documentation, test fixtures, and
scripts. Remaining 32 references are legitimate (inject command
implementation, CHANGELOG history, CLI reference tables, test
fixtures for command detection).

Files updated:
- 11 core docs (context-packet, seed-definition, leverage-points, etc.)
- 7 workflow diagram docs (brief, system-map, cli-skills-map, HOOKS, etc.)
- 4 scripts (proof-run, test-flywheel, check-skill-flag-refs, etc.)
- 3 shell tests (proof-run e2e, token-budgets, no-compaction)
- 1 Go test (json_validity_test.go)
- Production code: metrics_nudge.go, metrics_flywheel.go, hooks.go
2026-03-07 11:59:18 -05:00
Boden Fuller b68a739331 feat(context): replace ao inject with signpost network + on-demand ao lookup
Kill the pre-loaded inject blob pattern. Context is now delivered via:
- AGENTS.md signpost files in .agents/ subdirectories (navigation)
- ao lookup --query for on-demand learnings retrieval
- session-start.sh emits a pointer instead of a blob

Issues 1-8 of context-enforcement-phase3 plan:
1. Root .agents/AGENTS.md signpost + .gitignore restructure
2. Six directory signposts (learnings, patterns, plans, council, handoff, rpi)
3. session-start.sh and worktree-setup.sh no longer call ao inject
4. Skills updated: recover, evolve, crank, swarm, council, SKILL-TIERS
5. CLAUDE.md zero-context startup references .agents/AGENTS.md
6. context-contract-check hook deleted + CI/BATS refs removed
7. ao inject stderr deprecation notice + ao lookup help improved
8. Flywheel docs updated (ARCHITECTURE.md, knowledge-flywheel.md)
2026-03-07 11:03:13 -05:00
Boden Fuller e7d06a0ab3 feat(skills): redesign post-mortem as knowledge lifecycle processor (na-9zz)
Post-mortem evolves from 2-step wrapper (council + retro) to 6-phase
knowledge lifecycle: council → extract → process → activate → retire → harvest.

Key changes:
- Post-mortem SKILL.md: 588→983 lines with Phases 2-5 (backlog processing,
  activation to MEMORY.md, stale learning retirement)
- Retro SKILL.md: 406→106 lines, slimmed to quick-capture only
- Session-start hook: 275→193 lines, stripped to manual-only mode
- New references: backlog-processing.md, activation-policy.md
- Migrated references: context-gathering.md, output-templates.md (retro→post-mortem)
- Updated 7 catalog/doc files for retro→post-mortem routing
- Codex mirrors and embedded copies synced

Net -937 lines. All validation gates pass.
2026-03-03 20:52:01 -05:00
Boden Fuller 96b62f20fb chore: stage council V2 contract wiring and skill-codex updates
Wire 6-judge analytics recommendations into skill contracts, add push
skill, sync embedded hooks, and update docs/product metadata.
2026-03-02 06:48:56 -05:00
Boden Fuller 420aac444c feat(athena): Wave 1 — ao mine, ao defrag, /athena skill (ag-co7.1–3)
Implements the first three issues of the Athena Knowledge Intelligence Engine:

- ao mine: extracts knowledge signal from git history, .agents/research/
  orphans, and code complexity hotspots. Outputs JSON to .agents/mine/.
  Supports --sources, --since (26h/7d/etc), --output, --quiet, --dry-run.

- ao defrag: prunes orphan learnings, deduplicates near-duplicates via
  trigram overlap, sweeps oscillating evolve goals from cycle-history.jsonl.
  Outputs JSON to .agents/defrag/. All operations non-destructive by default.

- /athena skill: orchestrates Mine → Grow → Defrag cycle with LLM-driven
  validation of existing learnings against current code, cross-domain
  synthesis, gap identification, and report generation.

Also: adds mine+defrag to cobra command registration test, syncs skill
counts from 50→51 across all docs, updates embedded skill copy.

Pre-mortem fixes applied: SinceSeconds as int64 (not time.Duration),
co-change algorithm clarified as files-in-≥3-commits sorted by frequency.
2026-03-01 08:08:01 -05:00
Boden Fuller e97ca84c58 docs: sync injection philosophy, fix OpenCode typo, trim redundant sentence
- ARCHITECTURE.md: update SessionStart header to match README philosophy
- FAQ.md: "Open Code" → "OpenCode"
- newcomer-guide.md: cut redundant trailing sentence in source-of-truth section
2026-02-27 22:47:43 -05:00
Boden Fuller 9da36b33f5 refactor: remove npx skills — replace with native curl installers
skills/update/SKILL.md: bash <(curl .../install.sh) replaces npx
skills-codex/update/SKILL.md: curl install-codex.sh for Codex
scripts/install.sh: git archive download, no npm required
scripts/extract-release-notes.sh: remove npx from update hint
cli/cmd/ao/doctor.go: update "no skills found" message
cli/cmd/ao/seed.go: update skills install reference
skills/quickstart/SKILL.md: update troubleshooting command
skills/quickstart/references/troubleshooting.md: same
skills-codex/quickstart/references/troubleshooting.md: same
validate.sh (both): grep for install.sh instead of npx
All docs/AGENTS.md/README.md/CLAUDE.md: replace npx references
2026-02-27 09:15:00 -05:00
Boden Fuller 489c21cba7 Add Grafana dashboard skill and make codex sync idempotent 2026-02-26 14:38:04 -05:00
Boden Fuller 4fd2512c87 refactor: flatten CLI namespace and liquidate debt
Remove 5 namespace parent commands (know, work, quality, settings, start)
and register all 49 leaf commands directly on rootCmd. Flat namespace is
simpler for users; GroupID-based help provides visual grouping without
requiring namespace tokens.

Namespace flattening (184 files):
- Delete know.go, work.go, quality.go, settings.go, start.go
- Invert deprecatedCommands map (old namespace paths → flat paths)
- Update 127 consumer files (hooks, skills, docs, scripts, tests)

Debt liquidation (7 items from post-mortem):
- Fix 62 broken smoke test invocations
- Delete 118 LOC dead deprecatedAlias code
- Widen doctor scan to docs/, scripts/, and subdirectories
- Expand expectedCmds test to all 49 commands (floor 45)
- Add bidirectional expectedCmds sync check
- Create sweep-namespace-references.sh automation
- Fix EXPECTED_COMMANDS array to list flat commands
- Escape sed variables in sweep script

All Go tests pass (36s). All conformance checks pass.
2026-02-26 09:27:38 -05:00
Boden Fuller a539546d33 codex installer: ship no-clone install flow and docs sync 2026-02-26 06:24:21 -05:00
Boden Fuller a852ce1d45 fix(docs): sync skill counts and fix broken links after consolidation
Wave 3 of ag-lhb: Remove deleted skill entries from SKILL-TIERS.md,
sync counts to 49 total (40 user-facing, 9 internal), fix broken
GLOSSARY.md link to deleted extract skill, fix heal.sh dead xrefs.
2026-02-25 21:56:10 -05:00
Boden Fuller ce431db0f9 fix: unify install scripts — shallow clone, symlinks, consistent UX
- Codex installer: --depth 1 clone, symlinks instead of copies,
  find -L verification, consistent "git pull" update message
- OpenCode installer: --depth 1 clone, find -L fix for skill count
- All docs updated to curl one-liner pattern for both runtimes
- CI dangerous-pattern scan excludes install-codex.sh
2026-02-25 21:49:04 -05:00
Boden Fuller f8e365ff14 docs: update documentation and converter for v2.18 release
- CHANGELOG.md: comprehensive v2.18.0 section
- AGENTS.md, README.md, docs/: sync doc updates for new commands/features
- skills/converter: enhance Codex conversion script
- tests/hooks/test-hooks.sh: add test cases for new hook features
2026-02-25 08:44:19 -05:00
Boden Fuller 922e8d4f74 feat(inject): two-phase knowledge injection with ao lookup (ag-mrr)
Phase 1 — index at startup: ao inject --index-only renders a compact
table (~200 tokens) instead of full content (~800 tokens). Enabled via
AGENTOPS_INDEX_INJECT=1 feature flag in session-start.sh.

Phase 2 — on-demand pull: ao lookup <id> fetches full content by ID,
ao lookup --query "topic" searches by relevance, ao lookup --bead ag-xyz
filters by source bead lineage. Records "pulled" citations for MemRL.

Also: remove 3 unused test helpers (writeGoalsMD, setupRatchetChain,
setupAgentsDirs) to fix lint, add prune policies for evolve/vibe/crank/
brainstorm/local-ci directories, update skills and docs.
2026-02-24 21:19:46 -05:00
Boden Fuller 0e7f2b6bf2 fix: replace symlinks with copies, sync skill counts for inbox
- Replace 22 reference symlinks with real file copies (plugin-load-test)
- Add inbox to SKILL-TIERS.md, sync counts to 53 across all docs
2026-02-23 13:58:28 -05:00
Boden Fuller 9d6b9f3f7e fix: sync skill counts (52 total, 42 user-facing, 10 internal) 2026-02-22 20:30:53 -05:00
Boden Fuller 35db3ed2d7 remove Agent Mail and distributed mode
Agent Mail was an experimental coordination layer for tmux-based
distributed workers. Local mode (native teams) covers all production
use cases. Removing to simplify the codebase before evolving remote
dispatch via bushido.

Deleted: inbox skill, agent-mail-protocol, 3 distributed-mode
reference docs, 2 test files. Edited 15 files to remove references.
2026-02-22 20:27:58 -05:00
Boden Fuller 0743fc35d1 docs: document two-tier execution model, compaction resilience, and evolve overnight validation
Update README, PRODUCT.md, ARCHITECTURE.md, and how-it-works.md to
reflect production learnings from the 116-cycle overnight evolve run:

- Two-tier execution model: orchestrators stay visible, workers fork
- Compaction-proof disk-backed state with hard-gated verification
- Evolve example updated with real overnight metrics
- PRODUCT.md strengthened with production validation data
2026-02-22 08:34:43 -05:00
Boden Fuller 98f0656dd6 docs: explain custom agents and sync embedded skill copies
- Add Custom Agents section to ARCHITECTURE.md explaining agentops:researcher
  and agentops:code-reviewer purpose vs Explore and general-purpose agents
- Add collapsible custom agents section to README.md
- Sync embedded copies of enhanced go.md, common-standards.md, and SKILL.md
2026-02-22 07:58:01 -05:00
Boden Fuller 37d4b5b2ae Merge branch 'codex/rpi-supervisor-cli' into main 2026-02-21 19:41:50 -05:00