From bb815cc274546d26f94dd069dfb08decb17e63df Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 30 May 2026 19:12:12 +0900 Subject: [PATCH] docs(omo-codex): batch 75 (7 files) --- .../ulw-loop/test/fixtures/.gitkeep | 0 .../test/fixtures/codex-goal-snapshot.json | 1 + .../ulw-loop/test/fixtures/sample-brief.md | 5 + .../ulw-loop/test/fixtures/sample-plan.json | 108 ++++++++++++++++++ .../test/fixtures/sample-quality-gate.json | 18 +++ .../test/fixtures/steering-proposal.json | 8 ++ .../test/fixtures/user-prompt-submit.json | 10 ++ 7 files changed, 150 insertions(+) create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/.gitkeep create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/codex-goal-snapshot.json create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-brief.md create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-plan.json create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-quality-gate.json create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/steering-proposal.json create mode 100644 packages/omo-codex/plugin/components/ulw-loop/test/fixtures/user-prompt-submit.json diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/.gitkeep b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/codex-goal-snapshot.json b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/codex-goal-snapshot.json new file mode 100644 index 000000000..ba0932eb9 --- /dev/null +++ b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/codex-goal-snapshot.json @@ -0,0 +1 @@ +{ "goal": { "objective": "Complete the durable ulw-loop plan", "status": "active" } } diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-brief.md b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-brief.md new file mode 100644 index 000000000..e7c653e35 --- /dev/null +++ b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-brief.md @@ -0,0 +1,5 @@ +# Auth service feature brief + +- Build the JWT auth endpoint +- Add IP rate limiting on login +- Write the integration test suite diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-plan.json b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-plan.json new file mode 100644 index 000000000..61378785a --- /dev/null +++ b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-plan.json @@ -0,0 +1,108 @@ +{ + "version": 1, + "createdAt": "2026-05-23T00:00:00.000Z", + "codexGoalMode": "aggregate", + "codexObjective": "Complete the durable ulw-loop plan in .omo/ulw-loop/goals.json...", + "codexObjectiveAliases": [], + "goals": [ + { + "id": "G001", + "title": "Build auth service", + "objective": "Implement JWT auth endpoint", + "status": "pending", + "successCriteria": [ + { + "id": "C001", + "scenario": "valid login returns 200", + "userModel": "happy", + "expectedEvidence": "curl /login -d '{...}' returns 200 + token", + "capturedEvidence": null, + "status": "pending" + }, + { + "id": "C002", + "scenario": "invalid creds return 401", + "userModel": "edge", + "expectedEvidence": "curl /login -d '{bad}' returns 401", + "capturedEvidence": null, + "status": "pending" + }, + { + "id": "C003", + "scenario": "no regression in /health", + "userModel": "regression", + "expectedEvidence": "GET /health returns 200 OK after auth merge", + "capturedEvidence": null, + "status": "pending" + } + ] + }, + { + "id": "G002", + "title": "Add rate limiting", + "objective": "Throttle login by IP", + "status": "in_progress", + "successCriteria": [ + { + "id": "C001", + "scenario": "limit kicks at N reqs", + "userModel": "happy", + "expectedEvidence": "100 reqs from same IP -> last is 429", + "capturedEvidence": null, + "status": "pending" + }, + { + "id": "C002", + "scenario": "different IPs not affected", + "userModel": "edge", + "expectedEvidence": "concurrent 2 IPs both succeed", + "capturedEvidence": null, + "status": "pending" + }, + { + "id": "C003", + "scenario": "limiter does not block /health", + "userModel": "regression", + "expectedEvidence": "/health unaffected during throttle", + "capturedEvidence": null, + "status": "pending" + } + ] + }, + { + "id": "G003", + "title": "Integration tests", + "objective": "End-to-end suite", + "status": "complete", + "successCriteria": [ + { + "id": "C001", + "scenario": "all int tests green", + "userModel": "happy", + "expectedEvidence": "npm run test:integration exit 0", + "capturedEvidence": "npm run test:integration exit 0, 12/12 tests", + "status": "pass", + "capturedAt": "2026-05-23T00:30:00.000Z" + }, + { + "id": "C002", + "scenario": "no flaky 3x rerun", + "userModel": "edge", + "expectedEvidence": "3 reruns all green", + "capturedEvidence": "3 reruns all green, no flakes", + "status": "pass", + "capturedAt": "2026-05-23T00:31:00.000Z" + }, + { + "id": "C003", + "scenario": "no new console errors", + "userModel": "regression", + "expectedEvidence": "0 errors in build log", + "capturedEvidence": "no console errors", + "status": "pass", + "capturedAt": "2026-05-23T00:32:00.000Z" + } + ] + } + ] +} diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-quality-gate.json b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-quality-gate.json new file mode 100644 index 000000000..fb63bbb92 --- /dev/null +++ b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-quality-gate.json @@ -0,0 +1,18 @@ +{ + "aiSlopCleaner": { "status": "passed", "evidence": "no slop detected after cleaner run" }, + "verification": { + "status": "passed", + "commands": ["npm test", "npm run build"], + "evidence": "all tests pass + build green" + }, + "codeReview": { + "recommendation": "APPROVE", + "architectStatus": "CLEAR", + "evidence": "review synthesis: ship it" + }, + "criteriaCoverage": { + "totalCriteria": 9, + "passCount": 9, + "adversarialClassesCovered": ["malformed_input", "prompt_injection", "stale_state"] + } +} diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/steering-proposal.json b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/steering-proposal.json new file mode 100644 index 000000000..7a1e567d6 --- /dev/null +++ b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/steering-proposal.json @@ -0,0 +1,8 @@ +{ + "kind": "add_subgoal", + "title": "Investigate auth blocker", + "objective": "Validate the blocker, capture evidence, and report findings.", + "evidence": "log/test output showing the blocker", + "rationale": "blocker materially changes safe execution order", + "source": "cli" +} diff --git a/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/user-prompt-submit.json b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/user-prompt-submit.json new file mode 100644 index 000000000..e10a28fe1 --- /dev/null +++ b/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/user-prompt-submit.json @@ -0,0 +1,10 @@ +{ + "cwd": "/repo", + "hook_event_name": "UserPromptSubmit", + "model": "gpt-5.5", + "permission_mode": "default", + "prompt": "OMO_ULW_LOOP_STEER: {\"kind\":\"annotate_ledger\",\"source\":\"user_prompt_submit\",\"evidence\":\"test note\",\"rationale\":\"testing hook\"}", + "session_id": "s1", + "transcript_path": "/tmp/transcript.log", + "turn_id": "t1" +}