Commit Graph

18 Commits

Author SHA1 Message Date
Bo 6d5d111faf feat(skills): land four-vendor skill corpus (#803)
## Summary
- Lands the AgentOps skill corpus across source and Codex wrappers,
including Gemini image targets.
- Integrates the skill branch onto current origin/main and refreshes
generated manifests/catalogs.
- Normalizes local next-work queue enum drift and fixes shellcheck in
alias-collision validation.

## Validation
- bash scripts/regen-all.sh --check
- bash scripts/validate-skill-schema.sh
- bash tests/skills/test-token-budgets.sh
- bash tests/skills/run-all.sh
- bash scripts/audit-codex-parity.sh && bash
scripts/validate-codex-override-coverage.sh && bash
scripts/validate-codex-generated-artifacts.sh --scope worktree && bash
scripts/validate-codex-api-conformance.sh && bash
scripts/validate-codex-runtime-sections.sh && bash
scripts/lint-codex-native.sh
- bash skills/heal-skill/scripts/heal.sh --strict
- PRE_PUSH_SKIP_MKDOCS=1 bash scripts/pre-push-gate.sh --fast

MkDocs strict remains skipped locally via the documented
PRE_PUSH_SKIP_MKDOCS=1 override because the repo currently emits
repo-wide strict-link warnings unrelated to this landing; CI remains
authoritative.
2026-06-06 23:44:42 -04:00
Bo b4c6aec361 feat(skills)!: 3.0 consolidation — merge 4, cut 2, resolve 6 keep-flags (81→75) (#533)
## AgentOps 3.0 skill consolidation — reconcile-and-tighten

Resolves all 12 skills flagged `merge-review`/`cut-review` in
`docs/contracts/skill-dispositions.yaml` per the operator-approved
dispositions. **Zero capability loss** — every merged skill's content
lives in its target as a mode/section.

### MERGE (4) — content folded into target, source removed
| Source | Target | How |
|---|---|---|
| expert-council | council | `--mode=debate` (alias triggers documented
in council) |
| oss-docs | doc | `--mode=oss` (refs + `audit-oss-docs.sh` copied into
`doc/`) |
| readme | doc | `--mode=readme` (`readme-craft.md`; `bootstrap`
consumer repointed readme→doc) |
| pr-retro | post-mortem | `--scope=pr` (`pr-scope.md` + gh PR-outcome
mining) |

### CUT (2) — genuinely redundant, no live consumer
- **pr-plan** — folds into `/plan` + `/pr-research`; pr-* chain
repointed.
- **update** — install-script concern; refresh note added to
`using-agentops` + install one-liner.

### KEEP — resolved 6 flags (rationale in `skill-dispositions.yaml`)
`validate` + `curate` (designed-future canonical validator/miner; epic
`soc-cp7pv` GO/REVERT is a separate decision) · `security` (release-gate
driver, distinct from security-suite) · `converter` (packaging adapter
skill-builder consumes) · `knowledge-activation` (outer-loop
operationalization) · `grafana-platform-dashboard` (marketplace
specialization).

### Result
**81 → 75 skills** (65 user-facing + 10 internal). Trunk regenerated
once: skill-counts, skill-catalog, skill-domain-map, context-map,
registry, sku-catalog, codex hashes, embedded-sync. Evals repointed to
absorbed locations.

### Gates verified locally (all green)
lint-skills · heal.sh --strict · skill-schema · skill-frontmatter ·
skill-dependency-check · scenario-test-linkage ·
validate-context-map-drift · check-registry-drift · generate-registry
--check · skill-domain-map golden · validate-sku-catalog-drift ·
bounded-contexts-drift · ci-policy-parity · codex
parity/override-coverage/manifest/generated-artifacts/skill-parity/runtime-sections/backbone/lifecycle
· regen-codex-hashes --check · embedded-sync · validate-skill-count ·
markdownlint · shellcheck (--severity=error) · `cd cli && go build && go
vet && go test ./cmd/ao` (9126 passed).

Closes-scenario: ag-cons#consolidation
Bounded-context: BC1-Corpus
Evidence: .agents/discovery/2026-05-24-skill-consolidation-plan.md
2026-05-24 23:17:27 -04:00
Bo 9543207b5a fix(skills): sweep stale CLI snippets — hooks removed + ao corpus inject (ag-d0t) (#524)
## What

Sweep 16 stale CLI snippets across `skills/` and `skills-codex/` that
referenced commands/flags removed from the `ao` CLI. Unblocks the
release `skill-cli-snippet` gate —
`scripts/validate-skill-cli-snippets.sh` now reports **0 failures** (was
16).

## Three fix patterns (verified against the built `ao` binary)

1. **`ao init --hooks`** — the `--hooks` flag is gone (hooks removed).
`ao init` is hookless (only `--stealth`). Fixed snippets to `ao init`
and reframed surrounding prose: hooks are opt-in / author-it-yourself
via the `hooks-authoring` skill, not an `ao` command/flag.
2. **`ao hooks install --force` / `--full` / `ao hooks test`** — the `ao
hooks` command is gone entirely (`unknown command`). Removed the broken
snippets and reframed the quickstart troubleshooting "Optional Hooks"
sections to hookless (CI is the authoritative gate).
3. **`ao inject --query`** — wrong: `ao inject` uses `--context`; the
corpus-query command is **`ao corpus inject --query`**. Fixed
`using-gc/reference-city.md` (canonical + codex). For
`domain/context-compiler.md` the line also carries `--apply-decay
--max-tokens` (which live on `ao inject`, NOT `ao corpus inject`), so
the surgical fix there was `--query` → `--context` on the existing `ao
inject` command.

## Sites fixed (canonical + codex twins in lockstep)

- bootstrap: `SKILL.md` Step 6 + `references/related-runbooks.md` (×2
trees)
- quickstart: `SKILL.md` Hook-activation row +
`references/troubleshooting.md` (×2 trees)
- domain: `references/context-compiler.md` (canonical only — no codex
twin)
- using-gc: `references/reference-city.md` (×2 trees)

`regen-codex-hashes.sh` refreshed the affected
`.agentops-generated.json` + manifest.

## Gate results (all green)

- `scripts/validate-skill-cli-snippets.sh` → **passed, 0 failures**
- `tests/scripts/test-skill-cli-snippets.sh` → 4 PASS / 0 FAIL
- `skills/heal-skill/scripts/heal.sh --strict` → All clean
- `scripts/audit-codex-parity.sh --skill
{bootstrap,quickstart,using-gc,domain}` → all passed
- `scripts/regen-codex-hashes.sh --check` → All hashes up to date
- `cd cli && make build` → green
- markdownlint (cli2) on all changed `.md` → clean

Closes-scenario: ag-d0t#snippet-sweep
Bounded-context: BC1-Corpus
Evidence: scripts/validate-skill-cli-snippets.sh
2026-05-24 20:18:42 -04:00
Bo c1a46cee26 chore: scrub all jsm references — external ref only, patterns kept (soc-wnic7 #scrub-jsm) (#501)
## What

Operator directive (soc-wnic7): scrub ALL references to "jsm" from
AgentOps. jsm was only an external reference corpus we learned patterns
from. The absorbed **patterns stay** (skill-quality rubric, SELF-TEST
shape, system-tuning methodology, bug-hunt patterns, attribution
patterns, marketplace-export profile) — only the jsm **name**,
jsm-dedicated docs, and jsm export tooling are removed.

## Deleted (8 files)

- `docs/reference/jsm-agentops-gap-audit.md`
- `docs/reference/jsm-clean-room-extraction-policy.md`
- `docs/reference/jsm-cli-capability-map.md`
- `docs/reference/jsm-pilot-upgrade-backlog.md`
- `docs/reference/jsm-skill-absorption.md`
- `docs/reference/jsm-skill-standards.md`
- `scripts/check-jsm-export.sh`
- `scripts/inventory-jsm-skills.sh`

## Renamed (kept methodology, stripped jsm)

`skills/standards/references/jsm-attribution.md` →
`external-source-attribution.md` (+ skills-codex + cli/embedded
mirrors). The attribution methodology (Pattern A/B, choice rule, mkdocs
constraint, clean-room hygiene) is a kept pattern — renamed and de-named
rather than deleted, so the standards skill keeps a repoint target.

## Edited

- De-catalogued the 6 deleted docs from `docs/documentation-index.md`
and `docs/reference/index.md`; de-named the kept skill-quality-rubric
entries.
- Genericized every footer/credit per the scope rule:
- `Adapted from jsm / \`x\`` → `Adapted from an external skill corpus /
\`x\``
- `(jsm/ACFS skill corpus)` → `(ACFS skill corpus)` — **ACFS/gstack
credits left intact**
- jsm-only credits (system-tuning, hooks-authoring) → "external skill
corpus", keeping the methodology-only/no-verbatim hygiene clause
- Genericized: "JSM-Style/Marketplace Export Profile", hexagonal-map
adapter node, domain-evolution BDD/plan gherkin steps, CHANGELOG
entries, skill-auditor validation-terms tuple.
- Removed dead `check-jsm-export` blocks from 4 SELF-TEST.md files.

## Regen + gates (all green)

`make sync-hooks` · `regen-codex-hashes.sh` · `generate-registry.sh`
re-run. Verified: `grep -ri jsm` empty (per exclusions);
`regen-codex-hashes --check` OK; `generate-registry --check` OK;
`validate-embedded-sync` in sync; `validate-context-map-drift` OK;
`check-docs-learning-references` PASS; `heal.sh --strict` clean;
`audit-codex-parity` PASS; `go build ./...` OK; no dangling punctuation;
no broken links to deleted files.

Closes-scenario: soc-wnic7#scrub-jsm
Bounded-context: BC1-Corpus
Evidence: docs/documentation-index.md
2026-05-23 22:41:56 -04:00
Bo 0707cb21e8 feat(bootstrap): executable acceptance for idempotent project initialization (soc-d54om #bootstrap-hexagon) (#456)
soc-qk4b skill-hexagon-crank — peripheral skill. /bootstrap
(driving-adapter, consumes goals/product/readme/shared) lacked a
.feature.

- skills/bootstrap/references/bootstrap.feature (NEW): bare repo →
golden path; existing repo → fills gaps only (untouched existing);
idempotent (2nd run overwrites nothing)
- linked in SKILL.md; registry regenerated

consumes filled — acceptance-only (produces:[] defensible: seeds a
progressive scaffold set, not one artifact).

How tested: lint-skills ✓ bootstrap (271 lines); scenarios --lint 0
errors; codex parity passed; registry up to date.
Sibling: acceptance-only crank like /quickstart #455.

NOTE: claude-review infra-red (weekly limit, resets May 25) —
operator-authorized bypass when sole red.

Closes-scenario: soc-d54om#bootstrap-hexagon
Bounded-context: BC5-Runtime
Evidence: skills/bootstrap/references/bootstrap.feature
2026-05-23 06:19:05 -04:00
Boden Fuller b8c5a3761b feat(agentops): make 3.0 hookless-first
Add DDD skill-domain contracts, hook lease inventory, replacement ports, artifact-first RPI skill boundaries, and release exact-SHA validation. Demote ao inject to a compatibility adapter and remove prompt-only default hooks.
2026-05-16 09:43:08 -04:00
Boden Fuller 8c731aef64 fix(ci): make skill validate-contracts billboard-aware (clears 4 CI failures)
#275's billboard refactor thinned process-skill SKILL.md files and moved
detail into references/, but the validate contracts still grepped SKILL.md.

skill-lint + smoke-test: relax content-presence checks in crank/implement/
  post-mortem/swarm validate.sh to scan the skill as a unit (SKILL.md +
  references/); structural/identity checks stay SKILL.md-only. test-first-smoke
  updated to match relocated SPEC/TEST WAVE + Step 0/4 headings.
skill-lint line caps: trim flywheel 310 -> 286 (cap 300), using-agentops
  261 -> 239 (cap 250) by removing redundant prose, no content lost.
skill-integrity: link 3 orphaned references (crank/branch-isolation,
  validation/flags + release-readiness-gates).
codex parity: regenerate stale skills-codex source hashes (77 skills).

Local: run-all.sh PASS, heal.sh --strict clean, smoke-test PASS.
2026-05-15 16:30:32 -04:00
Boden Fuller b4927fcbee feat(practice): pass-3 backfill — 13 more practices: declarations + harvest
Adds practices: frontmatter to 13 next-batch skills: autodev, beads, bootstrap,
codex-team, compile, converter, deps, doc, dream, evolve, grafana-platform-dashboard,
heal-skill, hooks-authoring.

scripts/validate-practice-citations.sh:
  with practices field: 39 (was 26)
  missing practices field: 715 (was 728)
  invalid slug citations: 0

Pass-1 + pass-2 learnings applied: schema accepts practices, codex twins
untouched, .agents/ session artifacts not committed. next-work appended with
pass-4 candidates (uses valid post-mortem-finding source enum).

Local pre-push fast gate: green.

🤖 Generated via /evolve cycle 1.
2026-05-10 20:40:18 -04:00
Boden Fuller a7a51f2c16 feat(standards): codify skill tier caps and codex registration 2026-05-03 23:00:11 -04:00
Boden Fuller 256ff4868b feat(skills): absorb 9 jsm/ACFS Tier 1.5 patterns + new system-tuning skill
Pattern-adopted methodology from 9 jsm/ACFS skills (utility map score >=0.4)
into the AgentOps catalog as references on existing skills, one new top-level
skill, plus a build script and an operator runbook.

- skills/system-tuning/ - NEW utility skill (kill hierarchy, whack-a-mole
  anti-pattern, agent-swarm cleanup) with codex twin and skill-level LICENSE.md
  attribution. Distinct from skills/perf/ to avoid forward/backward methodology
  conflation.
- skills/bug-hunt/ - +2 refs (audit-fix-rescan cycle, convergence criteria)
- skills/research/ - +2 refs (onboarding methodology, data flow from entry
  points)
- skills/release/ - +3 refs (gh-actions CI patterns, release automation,
  changelog-as-research-artifact)
- skills/scope/ - +1 ref (destructive-command-guard patterns)
- skills/bootstrap/ - +1 ref (related runbooks index)
- skills/scaffold/ - +1 ref (forward-looking recommended-reading pointer
  including mcp-server-design with explicit absorption trigger)
- scripts/build-rg.sh + docs/rg-optimized.md - operator-build pattern for
  ripgrep with PCRE2
- docs/runbooks/path-rationalization.md - shell PATH audit and cleanup runbook

Catalog updates: skills/SKILL-TIERS.md adds system-tuning as utility-tier;
skills/using-agentops/SKILL.md catalog edit; sync-skill-counts and sync-hooks
ran for downstream PRODUCT.md, docs/SKILLS.md, docs/ARCHITECTURE.md, and
cli/embedded/skills/using-agentops/SKILL.md mirror.

Constraints honored:
- 4-runtime parity: every skills/ change has skills-codex/ counterpart
- Pattern-adoption only: NO verbatim phrases >5 consecutive words from jsm
  sources (one canonical pattern title "Whack-a-Mole Anti-Pattern" attributed
  via LICENSE.md)
- Per-file footer attribution for enhancement-only refs; skill-level LICENSE.md
  for system-tuning
- skills/perf/ untouched
- mcp-server-design content NOT absorbed (deferred to agentopsd MCP transport
  via discoverability pointer)

.gitignore now excludes .agents/ globally - workspace runtime state is no
longer git-tracked.

Validation: 7x audit-codex-parity PASS, heal-skill --strict clean,
sync-skill-counts PASS (62 user-facing + 9 internal = 71 codex), shellcheck
clean, pre-push-gate --fast passed.
2026-05-03 18:56:23 -04:00
Boden Fuller 39477a9533 feat(onboarding): unify repo seed golden path 2026-05-02 22:19:23 -04:00
Boden Fuller 557e4af9ec feat(codex): cap skills-codex description catalog and add --repair-shape audit
Adds a 2400-char aggregate budget for skills-codex/*/SKILL.md `description:`
fields in tests/skills/test-token-budgets.sh, then trims each skill's description
to fit (catalog now 2146/2400). Both Claude and Codex SKILL.md descriptions
are kept in sync; codex .agentops-generated.json hashes regenerated.

Adds --repair-shape to scripts/audit-codex-hooks.sh: when ~/.codex/hooks.json
is missing or in legacy-flat shape, rewrites it from hooks/codex-hooks.json
with the active plugin_root (read from .agentops-codex-install.json) and
backs up any prior file. Covered by new test_repairs_legacy_flat_shape.

Memory decay (4 .agents/ files) bumped by the SessionStart inject hook.
2026-04-30 15:16:59 -04:00
Boden Fuller 8b94f1461e feat(bootstrap): recommend (don't auto-install) bd in /bootstrap
Adds a Step 0.5 "Recommend bd" section to skills/bootstrap/SKILL.md (and
its codex variant). When `bd` is missing, /bootstrap reports a one-line
recommendation pointing at `scripts/install-bd.sh` and continues — it
never executes the installer on the user's behalf. Mirrors the existing
HAS_AO graceful-degrade pattern.

- HAS_BD probe added to Step 0
- External Tools subsection documents bd as optional/recommended
- Step 6 report row + Troubleshooting row for the new state
- skills/bootstrap/scripts/validate.sh: structural check that SKILL.md
  mentions install-bd.sh and probes bd
- tests/scripts/install-bd.bats: wiring assertion case (5/5 OK)
- skills-codex/bootstrap/ mirrored; codex hashes regenerated
2026-04-26 19:55:39 -04:00
Boden Fuller 0496441989 Reduce skill catalog context footprint 2026-04-24 00:52:27 -04:00
Boden Fuller 3eb679c6f6 feat(knowledge): rename athena → compile + add Karpathy-style knowledge compiler
Rename the athena skill to compile — a descriptive name that communicates
what it actually does. Extend with Karpathy's LLM Knowledge Bases architecture:

- New compile phase: LLM reads raw .agents/ artifacts and produces interlinked
  markdown wiki at .agents/compiled/ with index.md, log.md, backlinks
- New lint phase: detects contradictions, orphan pages, stale claims, coverage gaps
- Pluggable compute backend via AGENTOPS_COMPILE_RUNTIME (ollama|claude|openai)
- Hash-based incremental compilation (only recompile changed sources)
- compile.sh engine with security fixes (no shell injection, path traversal guard)
- Full rename across 93 files: skills, docs, CLI, tests, hooks, scripts, codex

Existing Mine → Grow → Defrag cycle preserved as phases within the larger
compile workflow. No vector DB — compiled wiki IS the retrieval layer.
2026-04-05 17:57:40 -04:00
Boden Fuller 98e581989c codex: retire stale artifact provenance metadata 2026-04-01 13:10:42 -04:00
Boden Fuller b247a133b9 fix(ci): resolve 4 pre-existing CI failures
- codex-runtime-sections: replace .claude/settings.json check with
  .git/hooks/ check in skills-codex/bootstrap/SKILL.md
- skill-lint: remove "bootstrap" trigger collision from scaffold skill,
  add bootstrap/design/harvest to codex-overrides catalog
- cli-docs-parity: regenerate COMMANDS.md (missing ao harvest docs)
- cli-integration: fix mawk-incompatible awk regex in athena-session-defrag
  hook (#{1,3} → ##?#? for portable h1-h3 matching)
2026-03-30 18:36:26 -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