mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
ao-pre-reduction@5b334a13f
3 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1601467387 |
chore(docs): gut dead-mechanism context poison from agent-facing docs (ag-sjz8 #gut-poison) (#764)
## What Gut **context poison** — agent-facing docs that route a working agent at DEAD mechanisms. This poisoned a live fleet-operating session (the bo driver building the go-dark supervisor) into proposing `ao rpi` as a continuity-loop worker. Found via a 5-way parallel poison fan-out. **Scope: operational-surgical** (Bo's explicit call). Gut the agent-facing *operational* guidance + *factual* errors; **LEAVE** the README/`docs/3.0.md` product narrative (Gas-City-as-reference-substrate is coherent, ADR-backed product design — a different altitude from Bo's live fleet). ## Changes (10 files, surgical) **Tier A — operational guidance (the poison that bit me):** - `CLAUDE.md` Session Constraints: "route multi-phase work through `ao rpi`" → the live substrate (NTM + MCP Agent Mail + `continuity-loop`); `gc` reframed as optional-out-of-session, **not** the live substrate. Kept the accurate "bridge REMOVED" + "load-bearing legacy" lines. - `AGENTS.md`: dropped the deleted "scheduling daemon" (ADR-0009). - `AGENTS-RUNTIME.md`: `ao rpi serve --help` → the real `ao` command surface. **Tier B — hookless-factual** (3.0 installs no hooks by default): hookless banners on `ARCHITECTURE.md` + `reference.md` (surgical vs. rewriting diagram internals); corrected SessionStart-hook prose in `context-packet.md` + `vs-claude-flow.md`. **Tier C — retired `/dream` shown as live:** marked retired in `evolve`/`harvest`/`using-agentops` (compounding moved to Gas City). `curate` **intentionally left** — its `--mode=dream` is the forward replacement, not poison. ## Guardrails - Does **not** claim `ao rpi` was deleted — the command still compiles (`loop`/`phased`/`serve` exist); only its role as the *live workflow* is corrected. - registry.json unaffected (skill **bodies** only; `generate-registry.sh --check` = OK). ## Evidence `bash scripts/generate-registry.sh --check` → OK. Diff is 20 insertions / 16 deletions across 10 files. Bounded-context: BC1-Corpus (agent-facing context docs) Evidence: this PR diff + the parallel fan-out inventory Closes: ag-sjz8 🤖 Generated with [Claude Code](https://claude.com/claude-code) |
||
|
|
e431339c40 |
feat(hookless)!: remove all hooks — skills + CLI only (soc-57b7f #remove-all-hooks) (#511)
## What AgentOps 3.0 goes **fully hookless**. This removes the entire hook product surface — the product is now skills + the `ao` CLI with **zero hooks**. CI is the authoritative gate. ## Deleted - `hooks/` — 46 hook scripts + `hooks.json` + examples (whole directory) - `cli/embedded/hooks/` + embedded `hooks.json` + `embedded/lib/hook-helpers.sh` - `lib/hook-helpers.sh` - `ao hooks` CLI command: `cli/cmd/ao/hooks.go`, `hooks_run.go` + 5 hook test files; `cli/internal/bridge/hooks.go`; `cli/internal/doctor/fix_hooks.go` + test - Codex hook manifest (`hooks/codex-hooks.json`) + handler/audit scripts (`scripts/audit-codex-hooks.sh`, `install-dev-hooks.sh`, `test-hooks-output.sh`, `test-codex-hookless-lifecycle.sh`, `test-hookless-rpi-phased.sh`) - Hook lease surface: `docs/contracts/hook-lease-*`, `schemas/hook-lease.v1.schema.json`, `scripts/check-hook-lease-inventory.sh`, `check-hook-port-replacements.sh`, `generate-hook-lease-inventory.py` - Hook docs: `docs/HOOKS.md`, `cli/docs/HOOKS.md`, `docs/architecture/hook-noise-audit.md`, `docs/contracts/hook-runtime-contract.md` - `tests/hooks/` (whole dir) + hook test scripts; 5 hook eval suites + fixtures ## CI gates removed `hook-preflight`, `validate-hooks-doc-parity`, `hook-output-schema-lint` (+ scripts/bats), the hook eval suites, the `test-runtime-codex-smoke` / `test-codex-native-install` / `test-codex-plugin-install` hook-handler assertions, the cli-integration hook-lifecycle steps, the bats `tests/hooks/*` glob + orphan-hooks audit, and the `--with-hooks` install path. `embedded-sync` now validates only lib/skills. Both summary `needs:` lists + the summary echo + `docs/contracts/ci-jobs.yaml` updated; `validate-ci-policy-parity` passes (66 rows). `.codex-plugin/plugin.json` drops the "Hooks" capability. ## Load-bearing PRESERVED (reported, not forced) - **`cli/cmd/ao/codex_runtime.go`** — the codex runtime *lifecycle profile* (`HookCapable`/`HookConfigured` detection) is a runtime-capability abstraction used by 6 `validate-codex-*` CI gates, distinct from the hook product. Deleting it is a separate refactor. - **`hooks-authoring` skill** + `schemas/hooks-manifest.v1.schema.json` — reframed as an opt-in "author your own hooks" guide. Deleting the skill cascades into catalog/domain-map/dispositions/context-map golden files (skill-count sync), out of scope for the hook-product removal. - **`scripts/pre-push-gate.sh`** — retired local gate (not in CI); self-skips deleted hook scripts via `[[ -x ]]` guards; its 55 bats tests still pass. - Domain-enforcement audit keeps the `enforced`-mode schema for backward-compatible JSON readers, but the hookless resolver only returns `audited`/`unavailable`. ## Verification `go build` / `go vet` clean; `go test ./...` = **11849 passed, 0 failed** (68 pkgs). gofmt clean on all touched files. Green: registry `--check` (0 hooks), `regen-codex-hashes --check`, `validate-ci-policy-parity`, `check-wiring-closure`, `validate-embedded-sync`, `validate-manifests`, `validate-agents-split`, `doc-release` (0 broken links), `generate-cli-reference --check`, `heal.sh --strict`, codex/claude/plugin smoke tests, baseline-audit (0 stale). Diff: 231 files, +354 / −39803. Closes-scenario: soc-57b7f#remove-all-hooks Bounded-context: BC5-Runtime Evidence: .github/workflows/validate.yml |
||
|
|
5dfe1c9194 |
feat(docs): tiered AGENTS.md split — orientation + 4 siblings (soc-vuu6.3 #agents-md-tiered-split) (#387)
## Summary Split the 580-line monolithic AGENTS.md into five tiered files so cold-start sessions pay ≤250 lines for orientation, with operational detail one hop away. | File | Lines | Owner area | |---|---:|---| | `AGENTS.md` | 97 | Orientation + Quick Reference + sibling pointer table + 1-release deprecation footer | | `AGENTS-WORKFLOW.md` | 292 | Workflow phases · Branch/PR shape · Multi-agent discipline · Provenance · Doctrine altitudes · Local Pre-Push · Releasing · Landing the Plane · bd Tracking · Session Completion | | `AGENTS-CI.md` | 127 | CI intro · Advisory Triage SLAs · DEFERRED Hardening matrix · CI Jobs table (67 rows) · Nightly | | `AGENTS-CODEX.md` | 52 | CLI Skill-Map Refresh + Codex Skill Maintenance | | `AGENTS-RUNTIME.md` | 59 | Canonical Root and Worktrees + Key Constraints | ## Mechanical enforcement - `scripts/validate-agents-split.sh` — 14 checks: AGENTS.md exists, ≤250 lines, each sibling exists, bidirectional links. - CI gate `validate-agents-split` (required) — wired into `validate.yml` `needs:` arrays + summary echo + `docs/contracts/ci-jobs.yaml` manifest. - `scripts/generate-ci-jobs-table.sh` `AGENTS_PATH` default flipped from `AGENTS.md` to `AGENTS-CI.md`; 67-row table regenerated. - 7-case bats coverage at `tests/scripts/validate-agents-split.bats`. ## Fitness delta Cold-start orientation budget: **580 → 97 lines (-83%)**. Total docs across the split: 580 → 627 lines (+47 lines of sibling pointers and deprecation footer — the overhead of the contract). ## Deferred to follow-up beads - **Operating-loop ASCII spine** — `docs/architecture/operating-loop.md` 12-line flowchart prefix; orthogonal authoring task. - **Universal init prompt wiring** — `ao session bootstrap` referenced in AGENTS.md but blocked on soc-vuu6.25. ## Verification ```bash bash scripts/validate-agents-split.sh # validate-agents-split: scanned 14 checks # PASS — AGENTS.md (97 lines) + 4 siblings, links bidirectional. bats tests/scripts/validate-agents-split.bats # 1..7 (all pass) bash tests/docs/validate-doc-release.sh # PASS: doc-release gate succeeded bash scripts/validate-ci-policy-parity.sh # CI_JOBS_TABLE: PASS (67 rows) ``` ## Sibling patterns CI gate shape follows `scripts/check-finding-registry.sh`. Manifest entry follows the validate-* row shape. Bats fixtures match `tests/scripts/validate-sovereignty-proof-citations.bats`. Closes-scenario: soc-vuu6.3#agents-md-tiered-split Bounded-context: BC1-Corpus Evidence: AGENTS.md Evidence: AGENTS-WORKFLOW.md Evidence: AGENTS-CI.md Evidence: AGENTS-CODEX.md Evidence: AGENTS-RUNTIME.md Evidence: scripts/validate-agents-split.sh Evidence: tests/scripts/validate-agents-split.bats Evidence: .github/workflows/validate.yml Evidence: docs/contracts/ci-jobs.yaml |