oh-my-codex 0.16.3 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +5 -5
- package/Cargo.toml +1 -1
- package/README.md +3 -3
- package/dist/catalog/__tests__/generator.test.js +2 -0
- package/dist/catalog/__tests__/generator.test.js.map +1 -1
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js +9 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js.map +1 -1
- package/dist/cli/__tests__/cleanup.test.js +27 -0
- package/dist/cli/__tests__/cleanup.test.js.map +1 -1
- package/dist/cli/__tests__/codex-plugin-layout.test.js +7 -5
- package/dist/cli/__tests__/codex-plugin-layout.test.js.map +1 -1
- package/dist/cli/__tests__/doctor-warning-copy.test.js +175 -7
- package/dist/cli/__tests__/doctor-warning-copy.test.js.map +1 -1
- package/dist/cli/__tests__/index.test.js +147 -12
- package/dist/cli/__tests__/index.test.js.map +1 -1
- package/dist/cli/__tests__/mcp-serve.test.js +4 -0
- package/dist/cli/__tests__/mcp-serve.test.js.map +1 -1
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.js +2 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.js.map +1 -1
- package/dist/cli/__tests__/ralph.test.js +47 -0
- package/dist/cli/__tests__/ralph.test.js.map +1 -1
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js +10 -5
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js.map +1 -1
- package/dist/cli/__tests__/setup-install-mode.test.js +299 -27
- package/dist/cli/__tests__/setup-install-mode.test.js.map +1 -1
- package/dist/cli/__tests__/setup-refresh.test.js +85 -3
- package/dist/cli/__tests__/setup-refresh.test.js.map +1 -1
- package/dist/cli/__tests__/setup-scope.test.js +1 -1
- package/dist/cli/__tests__/setup-scope.test.js.map +1 -1
- package/dist/cli/__tests__/setup-skills-overwrite.test.js +2 -1
- package/dist/cli/__tests__/setup-skills-overwrite.test.js.map +1 -1
- package/dist/cli/__tests__/team.test.js +108 -0
- package/dist/cli/__tests__/team.test.js.map +1 -1
- package/dist/cli/__tests__/ultragoal.test.js +91 -0
- package/dist/cli/__tests__/ultragoal.test.js.map +1 -1
- package/dist/cli/__tests__/uninstall.test.js +54 -8
- package/dist/cli/__tests__/uninstall.test.js.map +1 -1
- package/dist/cli/cleanup.d.ts.map +1 -1
- package/dist/cli/cleanup.js +8 -4
- package/dist/cli/cleanup.js.map +1 -1
- package/dist/cli/codex-feature-probe.d.ts +9 -0
- package/dist/cli/codex-feature-probe.d.ts.map +1 -0
- package/dist/cli/codex-feature-probe.js +28 -0
- package/dist/cli/codex-feature-probe.js.map +1 -0
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +214 -23
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/index.d.ts +17 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +152 -24
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp-parity.js +8 -8
- package/dist/cli/mcp-parity.js.map +1 -1
- package/dist/cli/mcp-serve.d.ts.map +1 -1
- package/dist/cli/mcp-serve.js +4 -0
- package/dist/cli/mcp-serve.js.map +1 -1
- package/dist/cli/plugin-marketplace.d.ts +23 -0
- package/dist/cli/plugin-marketplace.d.ts.map +1 -1
- package/dist/cli/plugin-marketplace.js +203 -1
- package/dist/cli/plugin-marketplace.js.map +1 -1
- package/dist/cli/ralph.d.ts.map +1 -1
- package/dist/cli/ralph.js +21 -0
- package/dist/cli/ralph.js.map +1 -1
- package/dist/cli/setup-preferences.d.ts +4 -0
- package/dist/cli/setup-preferences.d.ts.map +1 -1
- package/dist/cli/setup-preferences.js +7 -0
- package/dist/cli/setup-preferences.js.map +1 -1
- package/dist/cli/setup.d.ts +5 -3
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +140 -51
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/ultragoal.d.ts +1 -1
- package/dist/cli/ultragoal.d.ts.map +1 -1
- package/dist/cli/ultragoal.js +70 -5
- package/dist/cli/ultragoal.js.map +1 -1
- package/dist/cli/uninstall.d.ts +2 -0
- package/dist/cli/uninstall.d.ts.map +1 -1
- package/dist/cli/uninstall.js +12 -3
- package/dist/cli/uninstall.js.map +1 -1
- package/dist/config/__tests__/codex-feature-flags.test.d.ts +2 -0
- package/dist/config/__tests__/codex-feature-flags.test.d.ts.map +1 -0
- package/dist/config/__tests__/codex-feature-flags.test.js +35 -0
- package/dist/config/__tests__/codex-feature-flags.test.js.map +1 -0
- package/dist/config/__tests__/codex-hooks.test.js +143 -9
- package/dist/config/__tests__/codex-hooks.test.js.map +1 -1
- package/dist/config/__tests__/generator-idempotent.test.js +85 -9
- package/dist/config/__tests__/generator-idempotent.test.js.map +1 -1
- package/dist/config/__tests__/generator-notify.test.js +116 -11
- package/dist/config/__tests__/generator-notify.test.js.map +1 -1
- package/dist/config/__tests__/wiki-config-contract.test.js +6 -3
- package/dist/config/__tests__/wiki-config-contract.test.js.map +1 -1
- package/dist/config/codex-feature-flags.d.ts +21 -0
- package/dist/config/codex-feature-flags.d.ts.map +1 -0
- package/dist/config/codex-feature-flags.js +56 -0
- package/dist/config/codex-feature-flags.js.map +1 -0
- package/dist/config/codex-hooks.d.ts +14 -13
- package/dist/config/codex-hooks.d.ts.map +1 -1
- package/dist/config/codex-hooks.js +108 -8
- package/dist/config/codex-hooks.js.map +1 -1
- package/dist/config/generator.d.ts +15 -3
- package/dist/config/generator.d.ts.map +1 -1
- package/dist/config/generator.js +233 -129
- package/dist/config/generator.js.map +1 -1
- package/dist/config/omx-first-party-mcp.d.ts +3 -1
- package/dist/config/omx-first-party-mcp.d.ts.map +1 -1
- package/dist/config/omx-first-party-mcp.js +9 -2
- package/dist/config/omx-first-party-mcp.js.map +1 -1
- package/dist/hooks/__tests__/design-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/design-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/design-skill.test.js +55 -0
- package/dist/hooks/__tests__/design-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/keyword-detector.test.js +92 -2
- package/dist/hooks/__tests__/keyword-detector.test.js.map +1 -1
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.js +125 -1
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.js.map +1 -1
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js +265 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js.map +1 -1
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.d.ts +2 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.js +84 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.js.map +1 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.js +41 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.js.map +1 -1
- package/dist/hooks/agents-overlay.js +2 -2
- package/dist/hooks/agents-overlay.js.map +1 -1
- package/dist/hooks/keyword-detector.d.ts +1 -0
- package/dist/hooks/keyword-detector.d.ts.map +1 -1
- package/dist/hooks/keyword-detector.js +12 -6
- package/dist/hooks/keyword-detector.js.map +1 -1
- package/dist/hooks/keyword-registry.d.ts.map +1 -1
- package/dist/hooks/keyword-registry.js +2 -0
- package/dist/hooks/keyword-registry.js.map +1 -1
- package/dist/hooks/prompt-guidance-contract.d.ts.map +1 -1
- package/dist/hooks/prompt-guidance-contract.js +47 -2
- package/dist/hooks/prompt-guidance-contract.js.map +1 -1
- package/dist/hud/__tests__/state.test.js +164 -0
- package/dist/hud/__tests__/state.test.js.map +1 -1
- package/dist/hud/state.d.ts.map +1 -1
- package/dist/hud/state.js +4 -5
- package/dist/hud/state.js.map +1 -1
- package/dist/mcp/__tests__/bootstrap.test.js +3 -0
- package/dist/mcp/__tests__/bootstrap.test.js.map +1 -1
- package/dist/mcp/__tests__/hermes-bridge.test.d.ts +2 -0
- package/dist/mcp/__tests__/hermes-bridge.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/hermes-bridge.test.js +374 -0
- package/dist/mcp/__tests__/hermes-bridge.test.js.map +1 -0
- package/dist/mcp/__tests__/state-paths.test.js +155 -11
- package/dist/mcp/__tests__/state-paths.test.js.map +1 -1
- package/dist/mcp/__tests__/state-server.test.js +166 -0
- package/dist/mcp/__tests__/state-server.test.js.map +1 -1
- package/dist/mcp/bootstrap.d.ts +1 -1
- package/dist/mcp/bootstrap.d.ts.map +1 -1
- package/dist/mcp/bootstrap.js +2 -0
- package/dist/mcp/bootstrap.js.map +1 -1
- package/dist/mcp/hermes-bridge.d.ts +81 -0
- package/dist/mcp/hermes-bridge.d.ts.map +1 -0
- package/dist/mcp/hermes-bridge.js +400 -0
- package/dist/mcp/hermes-bridge.js.map +1 -0
- package/dist/mcp/hermes-server.d.ts +269 -0
- package/dist/mcp/hermes-server.d.ts.map +1 -0
- package/dist/mcp/hermes-server.js +121 -0
- package/dist/mcp/hermes-server.js.map +1 -0
- package/dist/mcp/state-paths.d.ts.map +1 -1
- package/dist/mcp/state-paths.js +64 -11
- package/dist/mcp/state-paths.js.map +1 -1
- package/dist/modes/__tests__/base-session-scope.test.js +22 -0
- package/dist/modes/__tests__/base-session-scope.test.js.map +1 -1
- package/dist/modes/__tests__/base-tmux-pane.test.js +88 -27
- package/dist/modes/__tests__/base-tmux-pane.test.js.map +1 -1
- package/dist/modes/base.d.ts.map +1 -1
- package/dist/modes/base.js +5 -0
- package/dist/modes/base.js.map +1 -1
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.d.ts +2 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.d.ts.map +1 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js +316 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js.map +1 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.d.ts +2 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.d.ts.map +1 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.js +481 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.js.map +1 -0
- package/dist/planning/__tests__/artifacts.test.js +533 -4
- package/dist/planning/__tests__/artifacts.test.js.map +1 -1
- package/dist/planning/__tests__/context-pack-status.test.js +524 -0
- package/dist/planning/__tests__/context-pack-status.test.js.map +1 -1
- package/dist/planning/__tests__/markdown-structure.test.d.ts +2 -0
- package/dist/planning/__tests__/markdown-structure.test.d.ts.map +1 -0
- package/dist/planning/__tests__/markdown-structure.test.js +459 -0
- package/dist/planning/__tests__/markdown-structure.test.js.map +1 -0
- package/dist/planning/__tests__/ready-context-pack-role-refs.test.js +523 -1
- package/dist/planning/__tests__/ready-context-pack-role-refs.test.js.map +1 -1
- package/dist/planning/artifacts.d.ts +1 -1
- package/dist/planning/artifacts.d.ts.map +1 -1
- package/dist/planning/artifacts.js +227 -28
- package/dist/planning/artifacts.js.map +1 -1
- package/dist/planning/context-pack-status.d.ts +25 -0
- package/dist/planning/context-pack-status.d.ts.map +1 -1
- package/dist/planning/context-pack-status.js +272 -31
- package/dist/planning/context-pack-status.js.map +1 -1
- package/dist/planning/markdown-structure.d.ts +20 -0
- package/dist/planning/markdown-structure.d.ts.map +1 -0
- package/dist/planning/markdown-structure.js +137 -0
- package/dist/planning/markdown-structure.js.map +1 -0
- package/dist/ralph/__tests__/completion-audit.test.d.ts +2 -0
- package/dist/ralph/__tests__/completion-audit.test.d.ts.map +1 -0
- package/dist/ralph/__tests__/completion-audit.test.js +121 -0
- package/dist/ralph/__tests__/completion-audit.test.js.map +1 -0
- package/dist/ralph/completion-audit.d.ts +8 -0
- package/dist/ralph/completion-audit.d.ts.map +1 -0
- package/dist/ralph/completion-audit.js +99 -0
- package/dist/ralph/completion-audit.js.map +1 -0
- package/dist/scripts/__tests__/codex-native-hook.test.js +407 -15
- package/dist/scripts/__tests__/codex-native-hook.test.js.map +1 -1
- package/dist/scripts/__tests__/notify-dispatcher.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.js +126 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.js.map +1 -0
- package/dist/scripts/codex-native-hook.d.ts +1 -0
- package/dist/scripts/codex-native-hook.d.ts.map +1 -1
- package/dist/scripts/codex-native-hook.js +177 -71
- package/dist/scripts/codex-native-hook.js.map +1 -1
- package/dist/scripts/codex-native-pre-post.d.ts.map +1 -1
- package/dist/scripts/codex-native-pre-post.js +4 -2
- package/dist/scripts/codex-native-pre-post.js.map +1 -1
- package/dist/scripts/notify-dispatcher.js +30 -1
- package/dist/scripts/notify-dispatcher.js.map +1 -1
- package/dist/scripts/notify-hook/tmux-injection.d.ts.map +1 -1
- package/dist/scripts/notify-hook/tmux-injection.js +91 -2
- package/dist/scripts/notify-hook/tmux-injection.js.map +1 -1
- package/dist/scripts/notify-hook.js +3 -1
- package/dist/scripts/notify-hook.js.map +1 -1
- package/dist/state/__tests__/workflow-transition.test.js +102 -27
- package/dist/state/__tests__/workflow-transition.test.js.map +1 -1
- package/dist/state/mode-state-context.d.ts +2 -0
- package/dist/state/mode-state-context.d.ts.map +1 -1
- package/dist/state/mode-state-context.js +21 -0
- package/dist/state/mode-state-context.js.map +1 -1
- package/dist/state/operations.d.ts.map +1 -1
- package/dist/state/operations.js +9 -3
- package/dist/state/operations.js.map +1 -1
- package/dist/state/skill-active.d.ts +7 -0
- package/dist/state/skill-active.d.ts.map +1 -1
- package/dist/state/skill-active.js +25 -8
- package/dist/state/skill-active.js.map +1 -1
- package/dist/state/workflow-transition-reconcile.d.ts +1 -0
- package/dist/state/workflow-transition-reconcile.d.ts.map +1 -1
- package/dist/state/workflow-transition-reconcile.js +22 -15
- package/dist/state/workflow-transition-reconcile.js.map +1 -1
- package/dist/state/workflow-transition.js +3 -3
- package/dist/state/workflow-transition.js.map +1 -1
- package/dist/team/__tests__/approved-execution.test.js +39 -0
- package/dist/team/__tests__/approved-execution.test.js.map +1 -1
- package/dist/team/__tests__/runtime.test.js +5 -0
- package/dist/team/__tests__/runtime.test.js.map +1 -1
- package/dist/team/__tests__/scaling.test.js +497 -2
- package/dist/team/__tests__/scaling.test.js.map +1 -1
- package/dist/team/__tests__/state-root.test.js +1 -1
- package/dist/team/__tests__/state-root.test.js.map +1 -1
- package/dist/team/__tests__/worker-bootstrap.test.js +8 -0
- package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
- package/dist/team/approved-execution.d.ts.map +1 -1
- package/dist/team/approved-execution.js +3 -0
- package/dist/team/approved-execution.js.map +1 -1
- package/dist/team/scaling.d.ts.map +1 -1
- package/dist/team/scaling.js +43 -0
- package/dist/team/scaling.js.map +1 -1
- package/dist/team/state-root.d.ts.map +1 -1
- package/dist/team/state-root.js +4 -0
- package/dist/team/state-root.js.map +1 -1
- package/dist/team/state.d.ts.map +1 -1
- package/dist/team/state.js +2 -6
- package/dist/team/state.js.map +1 -1
- package/dist/ultragoal/__tests__/artifacts.test.js +245 -1
- package/dist/ultragoal/__tests__/artifacts.test.js.map +1 -1
- package/dist/ultragoal/__tests__/docs-contract.test.js +21 -0
- package/dist/ultragoal/__tests__/docs-contract.test.js.map +1 -1
- package/dist/ultragoal/artifacts.d.ts +52 -2
- package/dist/ultragoal/artifacts.d.ts.map +1 -1
- package/dist/ultragoal/artifacts.js +301 -15
- package/dist/ultragoal/artifacts.js.map +1 -1
- package/dist/utils/__tests__/paths.test.js +31 -1
- package/dist/utils/__tests__/paths.test.js.map +1 -1
- package/dist/utils/paths.d.ts +6 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +18 -0
- package/dist/utils/paths.js.map +1 -1
- package/dist/wiki/lifecycle.js +4 -4
- package/dist/wiki/lifecycle.js.map +1 -1
- package/package.json +1 -1
- package/plugins/oh-my-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/oh-my-codex/.mcp.json +13 -5
- package/plugins/oh-my-codex/skills/analyze/SKILL.md +0 -2
- package/plugins/oh-my-codex/skills/autopilot/SKILL.md +2 -2
- package/plugins/oh-my-codex/skills/code-review/SKILL.md +1 -3
- package/plugins/oh-my-codex/skills/deep-interview/SKILL.md +5 -7
- package/plugins/oh-my-codex/skills/design/SKILL.md +180 -0
- package/plugins/oh-my-codex/skills/doctor/SKILL.md +2 -2
- package/plugins/oh-my-codex/skills/omx-setup/SKILL.md +3 -3
- package/plugins/oh-my-codex/skills/pipeline/SKILL.md +3 -3
- package/plugins/oh-my-codex/skills/plan/SKILL.md +3 -6
- package/plugins/oh-my-codex/skills/ralph/SKILL.md +9 -10
- package/plugins/oh-my-codex/skills/skill/SKILL.md +2 -1
- package/plugins/oh-my-codex/skills/ultragoal/SKILL.md +36 -3
- package/plugins/oh-my-codex/skills/ultraqa/SKILL.md +175 -64
- package/plugins/oh-my-codex/skills/ultrawork/SKILL.md +8 -8
- package/plugins/oh-my-codex/skills/visual-ralph/SKILL.md +2 -2
- package/plugins/oh-my-codex/skills/wiki/SKILL.md +13 -13
- package/skills/analyze/SKILL.md +0 -2
- package/skills/ask-claude/SKILL.md +5 -3
- package/skills/ask-gemini/SKILL.md +5 -3
- package/skills/autopilot/SKILL.md +2 -2
- package/skills/code-review/SKILL.md +1 -3
- package/skills/deep-interview/SKILL.md +5 -7
- package/skills/design/SKILL.md +180 -0
- package/skills/doctor/SKILL.md +2 -2
- package/skills/ecomode/SKILL.md +105 -1
- package/skills/frontend-ui-ux/SKILL.md +6 -24
- package/skills/git-master/SKILL.md +2 -4
- package/skills/omx-setup/SKILL.md +3 -3
- package/skills/pipeline/SKILL.md +3 -3
- package/skills/plan/SKILL.md +3 -6
- package/skills/ralph/SKILL.md +9 -10
- package/skills/skill/SKILL.md +2 -1
- package/skills/swarm/SKILL.md +5 -3
- package/skills/tdd/SKILL.md +95 -1
- package/skills/ultragoal/SKILL.md +36 -3
- package/skills/ultraqa/SKILL.md +175 -64
- package/skills/ultrawork/SKILL.md +8 -8
- package/skills/visual-ralph/SKILL.md +2 -2
- package/skills/web-clone/SKILL.md +348 -1
- package/skills/wiki/SKILL.md +13 -13
- package/src/scripts/__tests__/codex-native-hook.test.ts +437 -14
- package/src/scripts/__tests__/notify-dispatcher.test.ts +153 -0
- package/src/scripts/codex-native-hook.ts +205 -61
- package/src/scripts/codex-native-pre-post.ts +4 -1
- package/src/scripts/notify-dispatcher.ts +40 -1
- package/src/scripts/notify-hook/tmux-injection.ts +110 -3
- package/src/scripts/notify-hook.ts +3 -1
- package/templates/catalog-manifest.json +9 -2
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ultraqa
|
|
3
|
-
description: QA
|
|
3
|
+
description: Adversarial dynamic e2e QA workflow - generate hostile scenarios, test, verify, fix, report, and clean up
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# UltraQA Skill
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Operating Contract
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
- Use outcome-first framing with concise, evidence-dense progress and completion reporting.
|
|
11
|
+
- Treat newer user updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.
|
|
12
|
+
- If the user says `continue`, advance the current verified next step instead of restarting discovery.
|
|
13
|
+
- UltraQA is not satisfied by a shallow build/lint/typecheck/test checklist. It must exercise the requested behavior through adversarial dynamic e2e scenarios whenever the target can be run, simulated, or harnessed safely.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
[ULTRAQA ACTIVATED - ADVERSARIAL DYNAMIC E2E QA CYCLING]
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
## Overview
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
UltraQA finds real behavior failures by combining normal verification commands with generated end-to-end scenarios, hostile user modeling, temporary harnesses when useful, and a structured evidence report. The workflow repeats test → diagnose → fix → retest until the goal is met, a bounded stop condition is reached, or a safety boundary blocks further execution.
|
|
19
20
|
|
|
20
21
|
## Goal Parsing
|
|
21
22
|
|
|
@@ -23,121 +24,231 @@ Parse the goal from arguments. Supported formats:
|
|
|
23
24
|
|
|
24
25
|
| Invocation | Goal Type | What to Check |
|
|
25
26
|
|------------|-----------|---------------|
|
|
26
|
-
| `/ultraqa --tests` | tests |
|
|
27
|
-
| `/ultraqa --build` | build | Build succeeds
|
|
28
|
-
| `/ultraqa --lint` | lint |
|
|
29
|
-
| `/ultraqa --typecheck` | typecheck |
|
|
30
|
-
| `/ultraqa --custom "pattern"` | custom | Custom success pattern
|
|
27
|
+
| `/ultraqa --tests` | tests | Existing tests plus adversarial dynamic e2e scenarios for the changed behavior |
|
|
28
|
+
| `/ultraqa --build` | build | Build succeeds and generated smoke/e2e probes still run against the built artifact when applicable |
|
|
29
|
+
| `/ultraqa --lint` | lint | Lint passes and no generated harness/test artifact violates project hygiene |
|
|
30
|
+
| `/ultraqa --typecheck` | typecheck | Typecheck passes and generated typed harnesses compile when applicable |
|
|
31
|
+
| `/ultraqa --custom "pattern"` | custom | Custom success pattern is verified against behavior, not trusted as misleading success output |
|
|
32
|
+
| `/ultraqa --interactive` | interactive | CLI/service behavior is tested with generated hostile and edge-case interactions |
|
|
33
|
+
|
|
34
|
+
If no structured goal is provided, interpret the argument as a custom behavior goal and derive a runnable e2e strategy from repository context.
|
|
35
|
+
|
|
36
|
+
## Required Scenario Matrix
|
|
37
|
+
|
|
38
|
+
Before declaring success, create and maintain a scenario matrix. Each row must include: scenario id, intent, user/attacker model, setup, command or harness, expected signal, actual result, fixes applied, evidence, and cleanup status.
|
|
39
|
+
|
|
40
|
+
The matrix must include normal-path coverage plus adversarial dynamic e2e scenarios selected from the current goal and codebase. Unless clearly irrelevant or impossible, include these hostile and edge-case classes:
|
|
41
|
+
|
|
42
|
+
1. **Malformed input**: invalid JSON, missing fields, invalid flags, oversized strings, unusual Unicode, path traversal-like values, and corrupted state files.
|
|
43
|
+
2. **Repeated interruptions**: repeated `continue`, stop/cancel/abort wording, interrupted command output, and retries after partial progress.
|
|
44
|
+
3. **Prompt injection attempts**: user text that tries to override instructions, exfiltrate secrets, skip verification, delete state, or claim false success.
|
|
45
|
+
4. **Cancel/resume behavior**: active state cleanup, resume detection, stale in-progress state, and cancellation followed by a fresh run.
|
|
46
|
+
5. **Stale state**: old `.omx/state` files, mismatched sessions, missing timestamps, and contradictory phase metadata.
|
|
47
|
+
6. **Dirty worktree**: pre-existing modifications, untracked generated files, and verification that UltraQA does not hide or overwrite unrelated work.
|
|
48
|
+
7. **Hung or long-running commands**: bounded timeout handling, killed child processes, and recovery notes.
|
|
49
|
+
8. **Flaky tests**: rerun strategy, failure clustering, quarantine evidence, and avoiding false green from a single lucky pass.
|
|
50
|
+
9. **Misleading success output**: output containing success phrases with non-zero exits, hidden failures, skipped tests, or partial command logs.
|
|
31
51
|
|
|
32
|
-
|
|
52
|
+
## Dynamic E2E and Temporary Harness Rules
|
|
53
|
+
|
|
54
|
+
- Generate temporary tests, scripts, fixtures, or harnesses when they materially improve behavioral confidence and no existing e2e surface covers the scenario.
|
|
55
|
+
- Prefer project-native test tools and small throwaway harnesses under a temporary directory or clearly named test fixture.
|
|
56
|
+
- Record every generated artifact in the scenario matrix, including whether it was committed intentionally or removed during cleanup.
|
|
57
|
+
- Use bounded runtimes and explicit timeouts for commands that can hang.
|
|
58
|
+
- Validate exit codes and output semantics; do not trust success-looking text alone.
|
|
59
|
+
- Do not delete, rewrite, or mask unrelated user work. Capture dirty-worktree evidence before and after generated harness work.
|
|
33
60
|
|
|
34
61
|
## Cycle Workflow
|
|
35
62
|
|
|
36
63
|
### Cycle N (Max 5)
|
|
37
64
|
|
|
38
|
-
1. **
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- `--
|
|
65
|
+
1. **PLAN ADVERSARIAL QA**
|
|
66
|
+
- Restate the goal, success criteria, safety bounds, and stop condition.
|
|
67
|
+
- Inspect repository context enough to identify runnable surfaces, test commands, state files, and cleanup paths.
|
|
68
|
+
- Build or update the required scenario matrix before running commands.
|
|
69
|
+
|
|
70
|
+
2. **RUN BASELINE VERIFICATION**
|
|
71
|
+
- `--tests`: Run the project's test command.
|
|
72
|
+
- `--build`: Run the project's build command.
|
|
73
|
+
- `--lint`: Run the project's lint command.
|
|
74
|
+
- `--typecheck`: Run the project's type check command.
|
|
75
|
+
- `--custom`: Run the appropriate command and check the pattern plus exit status and failure markers.
|
|
76
|
+
- `--interactive`: Use qa-tester or an equivalent CLI/service harness:
|
|
45
77
|
```
|
|
46
|
-
|
|
78
|
+
Use `/prompts:qa-tester` with:
|
|
47
79
|
Goal: [describe what to verify]
|
|
48
80
|
Service: [how to start]
|
|
49
|
-
Test cases: [
|
|
81
|
+
Test cases: [normal, hostile, malformed, interruption, resume, stale-state, dirty-worktree, hung-command, flaky, and misleading-output scenarios]
|
|
50
82
|
```
|
|
51
83
|
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
84
|
+
3. **RUN ADVERSARIAL DYNAMIC E2E SCENARIOS**
|
|
85
|
+
- Execute the scenario matrix using existing e2e tests, generated temporary tests, or generated harnesses.
|
|
86
|
+
- Model malicious/hostile user behavior explicitly, including prompt injection and attempts to bypass safety or verification.
|
|
87
|
+
- Exercise malformed input, repeated interruptions, cancel/resume, stale state, dirty worktree handling, hung commands, flaky tests, and misleading success output when relevant.
|
|
88
|
+
- Capture commands, exit codes, important output excerpts, artifacts, and cleanup status.
|
|
89
|
+
|
|
90
|
+
4. **CHECK RESULT**
|
|
91
|
+
- **YES** only if baseline verification and adversarial e2e scenarios passed, generated artifacts are cleaned up or intentionally tracked, and the report has complete evidence.
|
|
92
|
+
- **NO** if any scenario failed, was skipped without justification, left debris, relied on misleading output, or lacked evidence. Continue to step 5.
|
|
55
93
|
|
|
56
|
-
|
|
94
|
+
5. **ARCHITECT DIAGNOSIS**
|
|
57
95
|
```
|
|
58
|
-
|
|
59
|
-
Goal: [goal type]
|
|
60
|
-
|
|
61
|
-
|
|
96
|
+
Use `/prompts:architect` with:
|
|
97
|
+
Goal: [goal type and behavior]
|
|
98
|
+
Scenario matrix: [rows, commands, failures, evidence]
|
|
99
|
+
Output: [test/build/e2e/harness output]
|
|
100
|
+
Provide root cause, safety implications, and specific fix recommendations.
|
|
62
101
|
```
|
|
63
102
|
|
|
64
|
-
|
|
103
|
+
6. **FIX ISSUES**
|
|
65
104
|
```
|
|
66
|
-
|
|
105
|
+
Use `/prompts:executor` with:
|
|
67
106
|
Issue: [architect diagnosis]
|
|
68
107
|
Files: [affected files]
|
|
69
|
-
|
|
108
|
+
Constraints: preserve unrelated dirty work, clean temporary harnesses, keep safety bounds
|
|
109
|
+
Apply the fix precisely as recommended.
|
|
70
110
|
```
|
|
71
111
|
|
|
72
|
-
|
|
112
|
+
7. **CLEAN UP AND ROLLBACK**
|
|
113
|
+
- Remove temporary harnesses, fixtures, logs, spawned processes, and state files unless they are intentional deliverables.
|
|
114
|
+
- Roll back failed experimental edits that are not part of the final fix.
|
|
115
|
+
- Re-check the worktree and record remaining intentional changes or residual debris.
|
|
116
|
+
|
|
117
|
+
8. **REPEAT**
|
|
118
|
+
- Go back to step 1 with the updated scenario matrix and failure history.
|
|
119
|
+
|
|
120
|
+
## Safety Bounds
|
|
121
|
+
|
|
122
|
+
UltraQA must stay inside these safety bounds:
|
|
123
|
+
|
|
124
|
+
- No destructive commands such as force resets, broad deletes, secret exfiltration, credential dumping, production writes, or unbounded process spawning.
|
|
125
|
+
- No reading or printing secrets beyond the minimum metadata needed to verify absence of leakage.
|
|
126
|
+
- No network or external-production side effects unless the user explicitly authorized them.
|
|
127
|
+
- No unbounded waits: use timeouts, retries with caps, and clear hung-command diagnostics.
|
|
128
|
+
- No hiding unrelated dirty work or generated debris.
|
|
129
|
+
- If a required scenario would violate these bounds, mark it blocked in the report with the safe substitute used.
|
|
73
130
|
|
|
74
131
|
## Exit Conditions
|
|
75
132
|
|
|
76
133
|
| Condition | Action |
|
|
77
134
|
|-----------|--------|
|
|
78
|
-
| **Goal Met** | Exit with success:
|
|
79
|
-
| **Cycle 5 Reached** | Exit with diagnosis:
|
|
80
|
-
| **Same Failure 3x** | Exit early:
|
|
81
|
-
| **
|
|
135
|
+
| **Goal Met** | Exit with success: `ULTRAQA COMPLETE: Goal met after N cycles` plus the structured report |
|
|
136
|
+
| **Cycle 5 Reached** | Exit with diagnosis: `ULTRAQA STOPPED: Max cycles` plus failures, fixes attempted, residual risks, and evidence |
|
|
137
|
+
| **Same Failure 3x** | Exit early: `ULTRAQA STOPPED: Same failure detected 3 times` plus root cause, safety notes, and next owner |
|
|
138
|
+
| **Safety Boundary** | Exit: `ULTRAQA BLOCKED: [destructive/credentialed/external-production/unbounded action]` plus safe substitute evidence |
|
|
139
|
+
| **Environment Error** | Exit: `ULTRAQA ERROR: [tmux/port/dependency/hung command issue]` plus cleanup status |
|
|
140
|
+
|
|
141
|
+
## Structured Report
|
|
142
|
+
|
|
143
|
+
Every terminal UltraQA result must include this report shape:
|
|
144
|
+
|
|
145
|
+
```markdown
|
|
146
|
+
# UltraQA Report
|
|
147
|
+
|
|
148
|
+
## Goal and success criteria
|
|
149
|
+
- Goal:
|
|
150
|
+
- Stop condition:
|
|
151
|
+
- Safety bounds applied:
|
|
152
|
+
|
|
153
|
+
## Scenario matrix
|
|
154
|
+
| ID | User/attacker model | Scenario | Command/harness | Expected signal | Actual result | Status | Evidence | Cleanup |
|
|
155
|
+
|----|---------------------|----------|-----------------|-----------------|---------------|--------|----------|---------|
|
|
156
|
+
|
|
157
|
+
## Commands run
|
|
158
|
+
- `[exit code] command` — purpose, duration/timeout, key output evidence
|
|
159
|
+
|
|
160
|
+
## Failures found
|
|
161
|
+
- Scenario ID, failure signal, root cause, user impact, safety impact
|
|
162
|
+
|
|
163
|
+
## Fixes applied
|
|
164
|
+
- Files changed, rationale, linked failing scenario(s), regression evidence
|
|
165
|
+
|
|
166
|
+
## Cleanup and rollback
|
|
167
|
+
- Generated artifacts removed or intentionally kept
|
|
168
|
+
- State/process cleanup performed
|
|
169
|
+
- Worktree status before/after
|
|
170
|
+
|
|
171
|
+
## Residual risks
|
|
172
|
+
- Untested or blocked scenarios with reasons and safe substitutes
|
|
173
|
+
|
|
174
|
+
## Evidence
|
|
175
|
+
- Test output, e2e logs, harness output, screenshots/transcripts when relevant, and rerun/flake evidence
|
|
176
|
+
```
|
|
82
177
|
|
|
83
178
|
## Observability
|
|
84
179
|
|
|
85
180
|
Output progress each cycle:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
[ULTRAQA Cycle 1/5]
|
|
89
|
-
[ULTRAQA Cycle 1/5]
|
|
90
|
-
[ULTRAQA Cycle 1/5]
|
|
91
|
-
[ULTRAQA Cycle
|
|
92
|
-
[ULTRAQA Cycle
|
|
181
|
+
|
|
182
|
+
```text
|
|
183
|
+
[ULTRAQA Cycle 1/5] Planning adversarial scenario matrix...
|
|
184
|
+
[ULTRAQA Cycle 1/5] Running baseline tests...
|
|
185
|
+
[ULTRAQA Cycle 1/5] Running ADV-E2E-003 prompt-injection harness...
|
|
186
|
+
[ULTRAQA Cycle 1/5] FAILED - stale state resume accepted misleading success output
|
|
187
|
+
[ULTRAQA Cycle 1/5] Architect diagnosing scenario ADV-E2E-003...
|
|
188
|
+
[ULTRAQA Cycle 1/5] Fixing: src/hooks/... - validate exit code before success phrase
|
|
189
|
+
[ULTRAQA Cycle 1/5] Cleaning temporary harnesses and state...
|
|
190
|
+
[ULTRAQA Cycle 2/5] PASSED - baseline + 9 adversarial scenarios pass
|
|
93
191
|
[ULTRAQA COMPLETE] Goal met after 2 cycles
|
|
94
192
|
```
|
|
95
193
|
|
|
96
194
|
## State Tracking
|
|
97
195
|
|
|
98
|
-
Use `
|
|
196
|
+
Use the CLI-first state surface (`omx state ... --json`) for UltraQA lifecycle state. If explicit MCP compatibility tools are already available, equivalent `omx_state` calls are optional compatibility, not the default.
|
|
99
197
|
|
|
100
198
|
- **On start**:
|
|
101
|
-
`
|
|
199
|
+
`omx state write --input '{"mode":"ultraqa","active":true,"current_phase":"planning","iteration":1,"started_at":"<now>","scenario_matrix":[]}' --json`
|
|
102
200
|
- **On each cycle**:
|
|
103
|
-
`
|
|
201
|
+
`omx state write --input '{"mode":"ultraqa","current_phase":"qa","iteration":<cycle>,"scenario_matrix":"<updated matrix path or summary>"}' --json`
|
|
202
|
+
- **On adversarial e2e transition**:
|
|
203
|
+
`omx state write --input '{"mode":"ultraqa","current_phase":"adversarial-e2e"}' --json`
|
|
104
204
|
- **On diagnose/fix transitions**:
|
|
105
|
-
`
|
|
106
|
-
`
|
|
205
|
+
`omx state write --input '{"mode":"ultraqa","current_phase":"diagnose"}' --json`
|
|
206
|
+
`omx state write --input '{"mode":"ultraqa","current_phase":"fix"}' --json`
|
|
207
|
+
- **On cleanup transition**:
|
|
208
|
+
`omx state write --input '{"mode":"ultraqa","current_phase":"cleanup"}' --json`
|
|
107
209
|
- **On completion**:
|
|
108
|
-
`
|
|
210
|
+
`omx state write --input '{"mode":"ultraqa","active":false,"current_phase":"complete","completed_at":"<now>"}' --json`
|
|
109
211
|
- **For resume detection**:
|
|
110
|
-
`
|
|
111
|
-
|
|
212
|
+
`omx state read --input '{"mode":"ultraqa"}' --json`
|
|
112
213
|
|
|
113
214
|
## Scenario Examples
|
|
114
215
|
|
|
115
|
-
**Good:** The user says `continue` after the workflow already has a clear next step. Continue the current branch of work
|
|
216
|
+
**Good:** The user says `continue` after the workflow already has a clear next step. Continue the current branch of work, rerun the relevant adversarial scenario, and update the report instead of restarting discovery.
|
|
116
217
|
|
|
117
218
|
**Good:** The user changes only the output shape or downstream delivery step (for example `make a PR`). Preserve earlier non-conflicting workflow constraints and apply the update locally.
|
|
118
219
|
|
|
220
|
+
**Good:** A CLI prints `SUCCESS` while exiting 1. Mark the misleading success output scenario failed, fix the parser or reporting path, and rerun the generated harness.
|
|
221
|
+
|
|
222
|
+
**Bad:** The workflow runs only `npm test`, `npm run build`, `npm run lint`, or `npm run typecheck`, sees green output, and declares UltraQA complete without adversarial dynamic e2e coverage.
|
|
223
|
+
|
|
224
|
+
**Bad:** A generated harness leaves untracked files, state, or a child process behind and the final report omits cleanup status.
|
|
225
|
+
|
|
119
226
|
**Bad:** The user says `continue`, and the workflow restarts discovery or stops before the missing verification/evidence is gathered.
|
|
120
227
|
|
|
121
228
|
## Cancellation
|
|
122
229
|
|
|
123
|
-
User can cancel with `/cancel
|
|
230
|
+
User can cancel with `/cancel`, which clears UltraQA state. Cancellation itself should be tested in cancel/resume scenarios when relevant, but UltraQA must not block an explicit user cancellation.
|
|
124
231
|
|
|
125
232
|
## Important Rules
|
|
126
233
|
|
|
127
|
-
1. **
|
|
128
|
-
2. **
|
|
129
|
-
3. **
|
|
130
|
-
4. **
|
|
131
|
-
5. **
|
|
234
|
+
1. **ADVERSARIAL E2E REQUIRED** - Baseline build/lint/typecheck/test commands are necessary evidence, not sufficient completion proof.
|
|
235
|
+
2. **SCENARIO MATRIX REQUIRED** - Track normal, hostile, malformed, interruption, injection, cancel/resume, stale-state, dirty-worktree, hung-command, flaky, and misleading-output coverage.
|
|
236
|
+
3. **GENERATE HARNESSES WHEN USEFUL** - Create temporary tests or harnesses when they materially improve behavioral confidence, then clean them up or commit them intentionally.
|
|
237
|
+
4. **PARALLEL WHEN SAFE** - Run independent diagnostics while preparing potential fixes; do not parallelize commands that mutate the same state or worktree.
|
|
238
|
+
5. **TRACK FAILURES** - Record each failure to detect patterns and avoid false greens.
|
|
239
|
+
6. **EARLY EXIT ON PATTERN** - 3x same failure = stop and surface with root cause and residual risk.
|
|
240
|
+
7. **CLEAR OUTPUT** - User should always know current cycle, scenario, command, status, and evidence.
|
|
241
|
+
8. **CLEAN UP** - Clear UltraQA state and temporary artifacts on completion, cancellation, or early stop.
|
|
242
|
+
9. **SAFETY FIRST** - Never exfiltrate secrets, run destructive cleanup, write to production, or wait indefinitely to satisfy a scenario.
|
|
132
243
|
|
|
133
244
|
## STATE CLEANUP ON COMPLETION
|
|
134
245
|
|
|
135
246
|
When goal is met OR max cycles reached OR exiting early, run `$cancel` or call:
|
|
136
247
|
|
|
137
|
-
`
|
|
248
|
+
`omx state clear --input '{"mode":"ultraqa"}' --json`
|
|
138
249
|
|
|
139
|
-
Use
|
|
250
|
+
Use CLI state cleanup rather than deleting files directly. Also remove temporary e2e harnesses, fixtures, and logs unless they are intentional artifacts listed in the report.
|
|
140
251
|
|
|
141
252
|
---
|
|
142
253
|
|
|
143
|
-
Begin ULTRAQA cycling now. Parse the goal and start cycle 1.
|
|
254
|
+
Begin ULTRAQA cycling now. Parse the goal, build the adversarial dynamic e2e scenario matrix, and start cycle 1.
|
|
@@ -81,16 +81,16 @@ Sequential task execution wastes time when tasks are independent. Ultrawork keep
|
|
|
81
81
|
|
|
82
82
|
## State Management
|
|
83
83
|
|
|
84
|
-
Use `
|
|
84
|
+
Use the CLI-first state surface (`omx state ... --json`) for ultrawork lifecycle state. If explicit MCP compatibility tools are already available, equivalent `omx_state` calls are optional compatibility, not the default.
|
|
85
85
|
|
|
86
86
|
- **On start**:
|
|
87
|
-
`
|
|
87
|
+
`omx state write --input '{"mode":"ultrawork","active":true,"reinforcement_count":1,"started_at":"<now>"}' --json`
|
|
88
88
|
- **On each reinforcement/loop step**:
|
|
89
|
-
`
|
|
89
|
+
`omx state write --input '{"mode":"ultrawork","reinforcement_count":<current>}' --json`
|
|
90
90
|
- **On completion**:
|
|
91
|
-
`
|
|
91
|
+
`omx state write --input '{"mode":"ultrawork","active":false}' --json`
|
|
92
92
|
- **On cancellation/cleanup**:
|
|
93
|
-
run `$cancel` (which should call `
|
|
93
|
+
run `$cancel` (which should call `omx state clear --input '{"mode":"ultrawork"}' --json`)
|
|
94
94
|
|
|
95
95
|
<Examples>
|
|
96
96
|
<Good>
|
|
@@ -105,7 +105,7 @@ Direct-tool lane:
|
|
|
105
105
|
- update `skills/ultrawork/SKILL.md`
|
|
106
106
|
|
|
107
107
|
Background evidence lane:
|
|
108
|
-
-
|
|
108
|
+
- use /prompts:test-engineer for this scoped task
|
|
109
109
|
```
|
|
110
110
|
Why good: Context is grounded first, acceptance criteria are explicit, and the direct-tool lane runs alongside a bounded evidence lane.
|
|
111
111
|
</Good>
|
|
@@ -122,8 +122,8 @@ Why good: Shared-file work stays local; independent evidence work fans out.
|
|
|
122
122
|
<Bad>
|
|
123
123
|
Parallelizing before the task is grounded:
|
|
124
124
|
```
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
use /prompts:executor for this scoped task
|
|
126
|
+
use /prompts:test-engineer for this scoped task
|
|
127
127
|
```
|
|
128
128
|
Why bad: No context snapshot, no pass/fail target, and delegation starts before the work is shaped.
|
|
129
129
|
</Bad>
|
|
@@ -27,7 +27,7 @@ This is an orchestration skill. It composes existing skills and must not add run
|
|
|
27
27
|
|
|
28
28
|
## Do not use when
|
|
29
29
|
|
|
30
|
-
- The user only wants design
|
|
30
|
+
- The user only wants repo-wide design guidance, product/design context, or a DESIGN.md source of truth; use `$design` or a designer lane.
|
|
31
31
|
- The task is a non-visual backend/API implementation with no UI reference target.
|
|
32
32
|
- The user already supplied a final static reference image and only needs comparison/fixes; hand directly to `$ralph` with Visual Ralph verdict guidance.
|
|
33
33
|
- The requested output is a deterministic SVG/vector/code-native asset rather than a raster reference.
|
|
@@ -117,7 +117,7 @@ Record final diff evidence with the reference/screenshot artifacts so the result
|
|
|
117
117
|
|
|
118
118
|
### 7. Build a reproducible design system
|
|
119
119
|
|
|
120
|
-
The implementation is incomplete unless the visual match is encoded in repo-native reusable artifacts. Depending on the project, this may mean CSS variables, theme tokens, Tailwind config, component variants, Storybook stories,
|
|
120
|
+
The implementation is incomplete unless the visual match is encoded in repo-native reusable artifacts. Depending on the project, this may mean CSS variables, theme tokens, Tailwind config, component variants, Storybook stories, updates that align with DESIGN.md, or existing equivalents.
|
|
121
121
|
|
|
122
122
|
Capture at least the applicable:
|
|
123
123
|
- colors,
|
|
@@ -11,31 +11,31 @@ Persistent, self-maintained markdown knowledge base for project and session know
|
|
|
11
11
|
## Operations
|
|
12
12
|
|
|
13
13
|
### Ingest
|
|
14
|
-
```
|
|
15
|
-
wiki_ingest
|
|
14
|
+
```bash
|
|
15
|
+
omx wiki wiki_ingest --input '{"title":"Auth Architecture","content":"...","tags":["auth","architecture"],"category":"architecture"}' --json
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
### Query
|
|
19
|
-
```
|
|
20
|
-
wiki_query
|
|
19
|
+
```bash
|
|
20
|
+
omx wiki wiki_query --input '{"query":"authentication","tags":["auth"],"category":"architecture"}' --json
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Lint
|
|
24
|
-
```
|
|
25
|
-
wiki_lint
|
|
24
|
+
```bash
|
|
25
|
+
omx wiki wiki_lint --json
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Quick Add
|
|
29
|
-
```
|
|
30
|
-
wiki_add
|
|
29
|
+
```bash
|
|
30
|
+
omx wiki wiki_add --input '{"title":"Page Title","content":"...","tags":["tag1"],"category":"decision"}' --json
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### List / Read / Delete
|
|
34
|
-
```
|
|
35
|
-
wiki_list
|
|
36
|
-
wiki_read
|
|
37
|
-
wiki_delete
|
|
38
|
-
wiki_refresh
|
|
34
|
+
```bash
|
|
35
|
+
omx wiki wiki_list --json
|
|
36
|
+
omx wiki wiki_read --input '{"page":"auth-architecture"}' --json
|
|
37
|
+
omx wiki wiki_delete --input '{"page":"outdated-page"}' --json
|
|
38
|
+
omx wiki wiki_refresh --json
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Categories
|
package/skills/analyze/SKILL.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ask-claude
|
|
3
|
-
description:
|
|
3
|
+
description: Deprecated compatibility shim for Claude advisor requests
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Ask Claude
|
|
6
|
+
# Ask Claude compatibility shim
|
|
7
7
|
|
|
8
|
-
Hard-deprecated. Do not invoke or route this skill
|
|
8
|
+
Hard-deprecated. Do not invoke or route this skill for new work.
|
|
9
|
+
|
|
10
|
+
Use `$ask claude <question>` or `omx ask claude "<question>"` directly for Claude advisor workflows. This file exists only to preserve the public/catalog-visible `ask-claude` skill contract while the canonical `$ask` workflow owns provider selection.
|
|
9
11
|
|
|
10
12
|
Task: {{ARGUMENTS}}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ask-gemini
|
|
3
|
-
description:
|
|
3
|
+
description: Deprecated compatibility shim for Gemini advisor requests
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Ask Gemini
|
|
6
|
+
# Ask Gemini compatibility shim
|
|
7
7
|
|
|
8
|
-
Hard-deprecated. Do not invoke or route this skill
|
|
8
|
+
Hard-deprecated. Do not invoke or route this skill for new work.
|
|
9
|
+
|
|
10
|
+
Use `$ask gemini <question>` or `omx ask gemini "<question>"` directly for Gemini advisor workflows. This file exists only to preserve the public/catalog-visible `ask-gemini` skill contract while the canonical `$ask` workflow owns provider selection.
|
|
9
11
|
|
|
10
12
|
Task: {{ARGUMENTS}}
|
|
@@ -75,7 +75,7 @@ Before Phase `ralplan` starts or resumes:
|
|
|
75
75
|
</Execution_Policy>
|
|
76
76
|
|
|
77
77
|
<State_Management>
|
|
78
|
-
Use
|
|
78
|
+
Use the CLI-first state surface (`omx state ... --json`) for Autopilot lifecycle state. State must be session-aware when a session id exists. If the explicit MCP compatibility surface is already available, equivalent `omx_state` tool calls remain acceptable but are not required.
|
|
79
79
|
|
|
80
80
|
Required fields:
|
|
81
81
|
|
|
@@ -99,7 +99,7 @@ Required fields:
|
|
|
99
99
|
}
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
- **On start**: `
|
|
102
|
+
- **On start**: `omx state write --input '{"mode":"autopilot","active":true,"current_phase":"ralplan","iteration":1,"review_cycle":0,"state":{"phase_cycle":["ralplan","ralph","code-review"],"handoff_artifacts":{"context_snapshot_path":"<snapshot-path>","ralplan":null,"ralph":null,"code_review":null},"review_verdict":null,"return_to_ralplan_reason":null}}' --json`
|
|
103
103
|
- **On ralplan -> ralph**: set `current_phase:"ralph"`, persist the plan/test-spec paths under `handoff_artifacts.ralplan`.
|
|
104
104
|
- **On ralph -> code-review**: set `current_phase:"code-review"`, persist implementation/test evidence under `handoff_artifacts.ralph`.
|
|
105
105
|
- **On clean review**: set `active:false`, `current_phase:"complete"`, persist `review_verdict:{recommendation:"APPROVE", architectural_status:"CLEAR", clean:true}` and `completed_at`.
|
|
@@ -141,9 +141,7 @@ The code-reviewer agent SHOULD consult Codex for cross-validation.
|
|
|
141
141
|
- Small, isolated changes
|
|
142
142
|
|
|
143
143
|
### Tool Usage
|
|
144
|
-
|
|
145
|
-
Use `mcp__x__ask_codex` with `agent_role: "code-reviewer"`.
|
|
146
|
-
If ToolSearch finds no MCP tools, fall back to the `code-reviewer` agent.
|
|
144
|
+
Prefer native `code-reviewer` agent consultation or CLI-backed `ask_codex` surfaces when available. Optional MCP compatibility ask tools may be used only when already enabled. If consultation tools are unavailable, fall back to the `code-reviewer` agent.
|
|
147
145
|
|
|
148
146
|
**Note:** Codex calls can take up to 1 hour. Consider the review timeline before consulting.
|
|
149
147
|
|
|
@@ -72,7 +72,7 @@ If no flag is provided, use **Standard**.
|
|
|
72
72
|
- Do not hand off to execution while ambiguity remains above threshold unless user explicitly opts to proceed with warning
|
|
73
73
|
- Do not crystallize or hand off while `Non-goals` or `Decision Boundaries` remain unresolved, even if the weighted ambiguity threshold is met
|
|
74
74
|
- Treat early exit as a safety valve, not the default success path
|
|
75
|
-
- Persist mode state for resume safety (`state_write` / `state_read`
|
|
75
|
+
- Persist mode state for resume safety with CLI-first state commands (`omx state write/read --input '<json>' --json`); use `state_write` / `state_read` only when explicit MCP compatibility is enabled
|
|
76
76
|
</Execution_Policy>
|
|
77
77
|
|
|
78
78
|
<Steps>
|
|
@@ -101,7 +101,7 @@ If no flag is provided, use **Standard**.
|
|
|
101
101
|
2. Detect project context:
|
|
102
102
|
- Run `explore` to classify **brownfield** (existing codebase target) vs **greenfield**.
|
|
103
103
|
- For brownfield, collect relevant codebase context before questioning.
|
|
104
|
-
3. Initialize state via `
|
|
104
|
+
3. Initialize state via `omx state write --input '{"mode":"deep-interview","active":true}' --json`:
|
|
105
105
|
|
|
106
106
|
```json
|
|
107
107
|
{
|
|
@@ -286,7 +286,7 @@ Readiness gate:
|
|
|
286
286
|
Show weighted breakdown table, readiness-gate status (`Non-goals`, `Decision Boundaries`), and the next focus dimension.
|
|
287
287
|
|
|
288
288
|
### 2e) Persist state
|
|
289
|
-
Append round result and updated scores via `state_write
|
|
289
|
+
Append round result and updated scores via `omx state write --input '<json>' --json`; use `state_write` only when explicit MCP compatibility is enabled.
|
|
290
290
|
|
|
291
291
|
### 2f) Round controls
|
|
292
292
|
- Do not offer early exit before the first explicit assumption probe and one persistent follow-up have happened
|
|
@@ -428,7 +428,7 @@ Preserve `$ralph` for persistent single-owner execution/verification and `$team`
|
|
|
428
428
|
- From attached-tmux Bash/tool paths, call it as `OMX_QUESTION_RETURN_PANE=$TMUX_PANE omx question ...` unless an explicit `%pane` return target is already known
|
|
429
429
|
- If the current runtime is outside tmux and cannot render `omx question`, use native structured input when available; otherwise ask exactly one concise plain-text question and wait for the answer
|
|
430
430
|
- After `omx question` returns JSON, prefer `answers[0].answer` / `answers[]`; use legacy `answer` only as a fallback for older records
|
|
431
|
-
- Use `state_write` / `state_read`
|
|
431
|
+
- Use `omx state write/read --input '<json>' --json` for resumable mode state; `state_write` / `state_read` are explicit MCP compatibility fallbacks only
|
|
432
432
|
- If the interview cannot ask a required `omx question` round, persist the blocker as terminal state with `active: false` and `current_phase: "blocked"`; do not write a terminal blocked phase with `active: true`
|
|
433
433
|
- Read/write context snapshots under `.omx/context/`
|
|
434
434
|
- Record whether the oversized-context summary gate is not needed, pending, or satisfied before any scoring or handoff step
|
|
@@ -475,7 +475,7 @@ enableChallengeModes = true
|
|
|
475
475
|
|
|
476
476
|
## Resume
|
|
477
477
|
|
|
478
|
-
If interrupted, rerun `$deep-interview`. Resume from persisted mode state via `
|
|
478
|
+
If interrupted, rerun `$deep-interview`. Resume from persisted mode state via `omx state read --input '{"mode":"deep-interview"}' --json`.
|
|
479
479
|
|
|
480
480
|
## Recommended 3-Stage Pipeline
|
|
481
481
|
|
|
@@ -487,5 +487,3 @@ deep-interview -> ralplan -> autopilot
|
|
|
487
487
|
- Stage 2 (ralplan): feasibility + architecture gate
|
|
488
488
|
- Stage 3 (autopilot): execution + QA + validation gate
|
|
489
489
|
</Advanced>
|
|
490
|
-
|
|
491
|
-
Task: {{ARGUMENTS}}
|