Skip to content

Commit bc7a18d

Browse files
committed
fix: align codex skill runtime docs
1 parent b57f635 commit bc7a18d

File tree

6 files changed

+30
-68
lines changed

6 files changed

+30
-68
lines changed

skills-codex/.agentops-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@
658658
"name": "post-mortem",
659659
"source_skill": "skills/post-mortem",
660660
"source_hash": "fbbedf5eb3b7883680a8a538748816756c7daa1d6d80b450dc2830af3fa9da17",
661-
"generated_hash": "3d1b1850b2d8d15ecc129f7438a1d809bb97c989e9d47da1d84926c2515f40c1"
661+
"generated_hash": "530bb54713d3b06576418e4c74630e71e886b97299ffa9d10d0a0247cb50647d"
662662
},
663663
{
664664
"name": "pr-implement",
@@ -826,7 +826,7 @@
826826
"name": "using-agentops",
827827
"source_skill": "skills/using-agentops",
828828
"source_hash": "4416cf30a11c6486e3962e9ed2e44067fab2b17bcc498b759d15beb6f1ae504c",
829-
"generated_hash": "ac7744194ca5f75d2b34bc83bc9e5dec25b5c64893b74e9501724a1134616919"
829+
"generated_hash": "a3466b4aaa05e2c126783bc26156d7fdaf0876a6493cad2c9dd058f770da1c21"
830830
},
831831
{
832832
"name": "validation",

skills-codex/post-mortem/.agentops-generated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"source_skill": "skills/post-mortem",
44
"layout": "modular",
55
"source_hash": "fbbedf5eb3b7883680a8a538748816756c7daa1d6d80b450dc2830af3fa9da17",
6-
"generated_hash": "3d1b1850b2d8d15ecc129f7438a1d809bb97c989e9d47da1d84926c2515f40c1"
6+
"generated_hash": "530bb54713d3b06576418e4c74630e71e886b97299ffa9d10d0a0247cb50647d"
77
}

skills-codex/post-mortem/SKILL.md

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ $post-mortem --process-only # skip council+extraction, run Phase 3-5 on back
3030
$post-mortem --skip-activate # extract + process but don't write MEMORY.md
3131
$post-mortem --deep recent # thorough council review
3232
$post-mortem --mixed epic-123 # cross-vendor (Claude + Codex)
33-
$post-mortem --explorers=2 epic-123 # deep investigation before judging
34-
$post-mortem --debate epic-123 # two-round adversarial review
3533
$post-mortem --skip-checkpoint-policy epic-123 # skip ratchet chain validation
3634
```
3735

@@ -44,7 +42,7 @@ ao codex stop
4442
ao codex status
4543
```
4644

47-
`ao codex stop` resolves the latest Codex transcript or history fallback, queues/persists learnings safely, and runs close-loop maintenance without depending on runtime hooks.
45+
`ao codex stop` uses the latest transcript or history fallback to queue/persist learnings and run close-loop maintenance without runtime hooks.
4846

4947
---
5048

@@ -988,40 +986,28 @@ $rpi "<highest-priority enhancement>"
988986
**User says:** `$post-mortem`
989987
990988
**What happens:**
991-
1. Agent scans recent commits (last 7 days)
992-
2. Runs `$council --deep --preset=retrospective validate recent`
993-
3. 3 judges (plan-compliance, tech-debt, learnings) review
994-
4. Extracts learnings inline (Phase 2: context gathering, classification, writing)
995-
5. Processes backlog (Phase 3: scores, deduplicates, flags stale)
996-
6. Activates high-value learnings (Phase 4: promotes to MEMORY.md)
997-
7. Retires stale knowledge (Phase 5)
998-
8. Synthesizes process improvement proposals
999-
9. Harvests next-work items to `.agents/rpi/next-work.jsonl`
1000-
10. Feeds learnings to knowledge flywheel via `ao forge`
1001-
1002-
**Result:** Post-mortem report with learnings, tech debt identified, knowledge lifecycle stats, and suggested next `$rpi` command.
989+
1. Agent scans recent commits.
990+
2. Runs `$council --deep validate recent`.
991+
3. Extracts learnings, processes backlog, and promotes items.
992+
4. Harvests next-work to `.agents/rpi/next-work.jsonl`.
1003993
1004-
### Other Modes
994+
**Result:** Report with learnings, stats, and a suggested `$rpi` command.
1005995
1006-
- **Epic-specific:** `$post-mortem ag-5k2` — loads plan, council reviews vs plan, full Phase 2-6 lifecycle
1007-
- **Quick capture:** `$post-mortem --quick "insight"` — writes directly to `.agents/learnings/`, no council
1008-
- **Process-only:** `$post-mortem --process-only` — skip council/extraction, run Phase 3-5 on backlog
1009-
- **Cross-vendor:** `$post-mortem --mixed ag-3b7` — 3 Claude + 3 Codex judges for broader coverage
996+
### Other Modes
1010997
1011-
**Result:** Higher confidence validation with cross-vendor review before closing epic.
998+
- **Epic-specific:** `$post-mortem ag-5k2` — review against the target plan
999+
- **Quick capture:** `$post-mortem --quick "insight"` — write a learning without council
1000+
- **Process-only:** `$post-mortem --process-only` — run backlog processing only
1001+
- **Cross-vendor:** `$post-mortem --mixed ag-3b7` — broaden judgment coverage
10121002
10131003
## Troubleshooting
10141004
10151005
| Problem | Cause | Solution |
10161006
|---------|-------|----------|
10171007
| Council times out | Epic too large or too many files changed | Split post-mortem into smaller reviews or increase timeout |
10181008
| No next-work items harvested | Council found no tech debt or improvements | Flywheel stable — write entry with empty items array to next-work.jsonl |
1019-
| Schema validation failed | Harvested item missing required field or has invalid enum value | Drop invalid item, log error, proceed with valid items only |
10201009
| Checkpoint-policy preflight blocks | Prior FAIL verdict in ratchet chain without fix | Resolve prior failure (fix + re-vibe) or skip checkpoint-policy via `--skip-checkpoint-policy` |
10211010
| Metadata verification fails | Plan vs actual files mismatch or missing cross-references | Include failures in council packet as `context.metadata_failures` — judges assess severity |
1022-
| Phase 3 finds zero learnings | last-processed marker is very recent or no learnings exist | Reset marker: `date -v-30d +%Y-%m-%dT%H:%M:%S > .agents/ao/last-processed` |
1023-
| Phase 4 promotion duplicates | MEMORY.md already has the insight | Grep-based dedup should catch this; if not, manually deduplicate MEMORY.md |
1024-
| Phase 5 archives too aggressively | 30-day window too short for slow-cadence projects | Adjust the staleness threshold in `references/backlog-processing.md` |
10251011
10261012
---
10271013
@@ -1074,4 +1060,3 @@ $rpi "<highest-priority enhancement>"
10741060
- `scripts/preflight-refs.sh`
10751061
- `scripts/validate.sh`
10761062
- `scripts/write-evidence-only-closure.sh`
1077-

skills-codex/using-agentops/.agentops-generated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"source_skill": "skills/using-agentops",
44
"layout": "modular",
55
"source_hash": "4416cf30a11c6486e3962e9ed2e44067fab2b17bcc498b759d15beb6f1ae504c",
6-
"generated_hash": "ac7744194ca5f75d2b34bc83bc9e5dec25b5c64893b74e9501724a1134616919"
6+
"generated_hash": "a3466b4aaa05e2c126783bc26156d7fdaf0876a6493cad2c9dd058f770da1c21"
77
}

skills-codex/using-agentops/SKILL.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ AgentOps has three runtime modes. Do not assume hook automation exists everywher
168168

169169
| Mode | When it applies | Start path | Closeout path | Guarantees |
170170
|------|-----------------|------------|---------------|------------|
171-
| `hook-capable` | Claude/OpenCode with lifecycle hooks installed | Runtime hook or `ao inject` / `ao lookup` | Runtime hook or `ao forge transcript` + `ao flywheel close-loop` | Automatic startup/context injection and session-end maintenance when hooks are installed |
172171
| `codex-hookless-fallback` | Codex Desktop / Codex CLI without hook surfaces | `ao codex start` | `ao codex stop` | Explicit startup context, citation tracking, transcript fallback, and close-loop metrics without hooks |
173-
| `manual` | No hooks and no Codex-native runtime detection | `ao inject` / `ao lookup` | `ao forge transcript` + `ao flywheel close-loop` | Works everywhere, but lifecycle actions are operator-driven |
172+
| `manual` | Codex cannot resolve repo/runtime state automatically | `ao inject` / `ao lookup` | `ao forge transcript` + `ao flywheel close-loop` | Works everywhere, but lifecycle actions are operator-driven |
174173

175174
## Issue Tracking
176175

@@ -187,20 +186,13 @@ bd vc status # Inspect Dolt state if needed (JSONL auto-sync is automat
187186

188187
### Startup Context Loading
189188

190-
**Hook-capable runtimes**
191-
1. `session-start.sh` (or equivalent) can run at session start.
192-
2. In `manual` mode, MEMORY.md is auto-loaded and the hook points to on-demand retrieval (`ao search`, `ao lookup`).
193-
3. In `lean` mode, the hook extracts pending knowledge and injects prior learnings with a reduced token budget.
194-
4. This skill can be injected automatically into session context.
195-
196-
**Codex hookless fallback**
197-
1. Run `ao codex start`.
189+
1. Run `ao codex start` when Codex is detected without hooks.
198190
2. AgentOps inspects `.agents/`, runs safe close-loop maintenance, syncs MEMORY.md, and writes `.agents/ao/codex/startup-context.md`.
199191
3. Surfaced learnings, patterns, and findings are cited as `retrieved`.
200-
4. Use `ao lookup` for automatic citations during work, or `ao search --cite retrieved|reference|applied` when a search result is actually adopted.
192+
4. Use `ao lookup` for automatic citations during work, or `ao search --cite retrieved|reference|applied` when a search result is adopted.
201193
5. End the session with `ao codex stop`, then verify loop health with `ao codex status`.
202194

203-
**Result:** The agent gets the RPI workflow, prior context, and a citation path in both modes. The difference is whether lifecycle work is hook-driven or command-driven.
195+
**Result:** In hookless Codex mode, the agent still gets prior context, citations, and closeout without hidden hooks.
204196

205197
### Workflow Reference During Planning
206198

@@ -229,4 +221,3 @@ bd vc status # Inspect Dolt state if needed (JSONL auto-sync is automat
229221
### scripts/
230222

231223
- `scripts/validate.sh`
232-

skills/post-mortem/SKILL.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ Six phases:
4343
/post-mortem --skip-activate # extract + process but don't write MEMORY.md
4444
/post-mortem --deep recent # thorough council review
4545
/post-mortem --mixed epic-123 # cross-vendor (Claude + Codex)
46-
/post-mortem --explorers=2 epic-123 # deep investigation before judging
47-
/post-mortem --debate epic-123 # two-round adversarial review
4846
/post-mortem --skip-checkpoint-policy epic-123 # skip ratchet chain validation
4947
```
5048

@@ -57,7 +55,7 @@ ao codex stop
5755
ao codex status
5856
```
5957

60-
`ao codex stop` resolves the latest Codex transcript or history fallback, queues/persists learnings safely, and runs close-loop maintenance without depending on runtime hooks.
58+
`ao codex stop` uses the latest transcript or history fallback to queue/persist learnings and run close-loop maintenance without runtime hooks.
6159

6260
---
6361

@@ -980,40 +978,28 @@ Ship it
980978
**User says:** `/post-mortem`
981979
982980
**What happens:**
983-
1. Agent scans recent commits (last 7 days)
984-
2. Runs `/council --deep --preset=retrospective validate recent`
985-
3. 3 judges (plan-compliance, tech-debt, learnings) review
986-
4. Extracts learnings inline (Phase 2: context gathering, classification, writing)
987-
5. Processes backlog (Phase 3: scores, deduplicates, flags stale)
988-
6. Activates high-value learnings (Phase 4: promotes to MEMORY.md)
989-
7. Retires stale knowledge (Phase 5)
990-
8. Synthesizes process improvement proposals
991-
9. Harvests next-work items to `.agents/rpi/next-work.jsonl`
992-
10. Feeds learnings to knowledge flywheel via `ao forge`
993-
994-
**Result:** Post-mortem report with learnings, tech debt identified, knowledge lifecycle stats, and suggested next `/rpi` command.
981+
1. Agent scans recent commits.
982+
2. Runs `/council --deep validate recent`.
983+
3. Extracts learnings, processes backlog, and promotes items.
984+
4. Harvests next-work to `.agents/rpi/next-work.jsonl`.
995985
996-
### Other Modes
986+
**Result:** Report with learnings, stats, and a suggested `/rpi` command.
997987
998-
- **Epic-specific:** `/post-mortem ag-5k2` — loads plan, council reviews vs plan, full Phase 2-6 lifecycle
999-
- **Quick capture:** `/post-mortem --quick "insight"` — writes directly to `.agents/learnings/`, no council
1000-
- **Process-only:** `/post-mortem --process-only` — skip council/extraction, run Phase 3-5 on backlog
1001-
- **Cross-vendor:** `/post-mortem --mixed ag-3b7` — 3 Claude + 3 Codex judges for broader coverage
988+
### Other Modes
1002989
1003-
**Result:** Higher confidence validation with cross-vendor review before closing epic.
990+
- **Epic-specific:** `/post-mortem ag-5k2` — review against the target plan
991+
- **Quick capture:** `/post-mortem --quick "insight"` — write a learning without council
992+
- **Process-only:** `/post-mortem --process-only` — run backlog processing only
993+
- **Cross-vendor:** `/post-mortem --mixed ag-3b7` — broaden judgment coverage
1004994
1005995
## Troubleshooting
1006996
1007997
| Problem | Cause | Solution |
1008998
|---------|-------|----------|
1009999
| Council times out | Epic too large or too many files changed | Split post-mortem into smaller reviews or increase timeout |
10101000
| No next-work items harvested | Council found no tech debt or improvements | Flywheel stable — write entry with empty items array to next-work.jsonl |
1011-
| Schema validation failed | Harvested item missing required field or has invalid enum value | Drop invalid item, log error, proceed with valid items only |
10121001
| Checkpoint-policy preflight blocks | Prior FAIL verdict in ratchet chain without fix | Resolve prior failure (fix + re-vibe) or skip checkpoint-policy via `--skip-checkpoint-policy` |
10131002
| Metadata verification fails | Plan vs actual files mismatch or missing cross-references | Include failures in council packet as `context.metadata_failures` — judges assess severity |
1014-
| Phase 3 finds zero learnings | last-processed marker is very recent or no learnings exist | Reset marker: `date -v-30d +%Y-%m-%dT%H:%M:%S > .agents/ao/last-processed` |
1015-
| Phase 4 promotion duplicates | MEMORY.md already has the insight | Grep-based dedup should catch this; if not, manually deduplicate MEMORY.md |
1016-
| Phase 5 archives too aggressively | 30-day window too short for slow-cadence projects | Adjust the staleness threshold in `references/backlog-processing.md` |
10171003
10181004
---
10191005

0 commit comments

Comments
 (0)