@open-agent-toolkit/cli 0.2.51 → 0.2.53

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.
Files changed (218) hide show
  1. package/assets/bundle-metadata.json +1 -1
  2. package/assets/docs/cli-utilities/bootstrap.md +6 -2
  3. package/assets/docs/cli-utilities/tool-packs.md +87 -33
  4. package/assets/docs/provider-sync/commands.md +30 -2
  5. package/assets/docs/provider-sync/config.md +19 -0
  6. package/assets/docs/provider-sync/manifest-and-drift.md +37 -0
  7. package/assets/docs/provider-sync/providers.md +69 -2
  8. package/assets/docs/provider-sync/scope-and-surface.md +44 -0
  9. package/assets/docs/reference/cli-reference.md +1 -0
  10. package/assets/docs/reference/oat-directory-structure.md +11 -4
  11. package/assets/docs/workflows/projects/evidence-layers.md +110 -1
  12. package/assets/docs/workflows/projects/implementation-execution.md +13 -0
  13. package/assets/docs/workflows/projects/orchestration-model.md +18 -0
  14. package/assets/public-package-versions.json +4 -4
  15. package/assets/skills/oat-dispatch-subagents/SKILL.md +57 -1
  16. package/assets/skills/oat-dispatch-subagents/references/record-schema.md +77 -1
  17. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +1 -1
  18. package/assets/skills/oat-project-dispatch-subagents/SKILL.md +24 -1
  19. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +1 -1
  20. package/assets/skills/oat-project-implement/references/dispatch-and-dry-run.md +11 -0
  21. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +1 -1
  22. package/assets/skills/oat-project-plan-writing/SKILL.md +12 -1
  23. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +1 -1
  24. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +1 -1
  25. package/assets/skills/oat-project-review-provide/SKILL.md +12 -1
  26. package/assets/skills/oat-project-review-provide-remote/SKILL.md +12 -1
  27. package/dist/agents/canonical/index.d.ts +2 -0
  28. package/dist/agents/canonical/index.d.ts.map +1 -1
  29. package/dist/agents/canonical/index.js +1 -0
  30. package/dist/agents/canonical/resolve.d.ts +45 -0
  31. package/dist/agents/canonical/resolve.d.ts.map +1 -0
  32. package/dist/agents/canonical/resolve.js +175 -0
  33. package/dist/commands/decision/agents-guidance.d.ts +2 -2
  34. package/dist/commands/decision/agents-guidance.d.ts.map +1 -1
  35. package/dist/commands/decision/agents-guidance.js +1 -4
  36. package/dist/commands/decision/index.d.ts.map +1 -1
  37. package/dist/commands/decision/index.js +25 -6
  38. package/dist/commands/docs/init/index.d.ts +7 -1
  39. package/dist/commands/docs/init/index.d.ts.map +1 -1
  40. package/dist/commands/docs/init/index.js +53 -20
  41. package/dist/commands/doctor/index.d.ts +8 -2
  42. package/dist/commands/doctor/index.d.ts.map +1 -1
  43. package/dist/commands/doctor/index.js +157 -46
  44. package/dist/commands/init/index.d.ts +8 -3
  45. package/dist/commands/init/index.d.ts.map +1 -1
  46. package/dist/commands/init/index.js +66 -28
  47. package/dist/commands/init/tools/index.d.ts +12 -12
  48. package/dist/commands/init/tools/index.d.ts.map +1 -1
  49. package/dist/commands/init/tools/index.js +430 -99
  50. package/dist/commands/init/tools/install-state.d.ts +2 -0
  51. package/dist/commands/init/tools/install-state.d.ts.map +1 -1
  52. package/dist/commands/init/tools/install-state.js +11 -0
  53. package/dist/commands/init/tools/project-guidance.d.ts +49 -0
  54. package/dist/commands/init/tools/project-guidance.d.ts.map +1 -0
  55. package/dist/commands/init/tools/project-guidance.js +144 -0
  56. package/dist/commands/init/tools/workflows/index.d.ts +7 -0
  57. package/dist/commands/init/tools/workflows/index.d.ts.map +1 -1
  58. package/dist/commands/init/tools/workflows/index.js +160 -7
  59. package/dist/commands/pjm/index.d.ts.map +1 -1
  60. package/dist/commands/pjm/index.js +28 -3
  61. package/dist/commands/pjm/init.d.ts +5 -0
  62. package/dist/commands/pjm/init.d.ts.map +1 -1
  63. package/dist/commands/pjm/init.js +19 -3
  64. package/dist/commands/project/dispatch/index.d.ts +10 -0
  65. package/dist/commands/project/dispatch/index.d.ts.map +1 -0
  66. package/dist/commands/project/dispatch/index.js +137 -0
  67. package/dist/commands/project/dispatch/record.d.ts +91 -0
  68. package/dist/commands/project/dispatch/record.d.ts.map +1 -0
  69. package/dist/commands/project/dispatch/record.js +402 -0
  70. package/dist/commands/project/index.d.ts.map +1 -1
  71. package/dist/commands/project/index.js +2 -0
  72. package/dist/commands/providers/inspect/inspect.d.ts +8 -1
  73. package/dist/commands/providers/inspect/inspect.d.ts.map +1 -1
  74. package/dist/commands/providers/inspect/inspect.js +146 -26
  75. package/dist/commands/providers/list/list.d.ts +8 -1
  76. package/dist/commands/providers/list/list.d.ts.map +1 -1
  77. package/dist/commands/providers/list/list.js +139 -23
  78. package/dist/commands/providers/providers.types.d.ts +25 -1
  79. package/dist/commands/providers/providers.types.d.ts.map +1 -1
  80. package/dist/commands/providers/set/index.d.ts +9 -1
  81. package/dist/commands/providers/set/index.d.ts.map +1 -1
  82. package/dist/commands/providers/set/index.js +43 -33
  83. package/dist/commands/remove/skill/remove-skill.d.ts.map +1 -1
  84. package/dist/commands/remove/skill/remove-skill.js +11 -0
  85. package/dist/commands/shared/agents-md.d.ts +42 -14
  86. package/dist/commands/shared/agents-md.d.ts.map +1 -1
  87. package/dist/commands/shared/agents-md.js +364 -70
  88. package/dist/commands/status/index.d.ts +8 -3
  89. package/dist/commands/status/index.d.ts.map +1 -1
  90. package/dist/commands/status/index.js +149 -37
  91. package/dist/commands/sync/apply.d.ts.map +1 -1
  92. package/dist/commands/sync/apply.js +220 -29
  93. package/dist/commands/sync/dry-run.d.ts.map +1 -1
  94. package/dist/commands/sync/dry-run.js +30 -6
  95. package/dist/commands/sync/index.d.ts +17 -2
  96. package/dist/commands/sync/index.d.ts.map +1 -1
  97. package/dist/commands/sync/index.js +108 -43
  98. package/dist/commands/sync/sync.types.d.ts +39 -2
  99. package/dist/commands/sync/sync.types.d.ts.map +1 -1
  100. package/dist/commands/sync/sync.utils.d.ts +5 -1
  101. package/dist/commands/sync/sync.utils.d.ts.map +1 -1
  102. package/dist/commands/sync/sync.utils.js +73 -0
  103. package/dist/commands/tools/info/info-tool.d.ts +2 -0
  104. package/dist/commands/tools/info/info-tool.d.ts.map +1 -1
  105. package/dist/commands/tools/info/info-tool.js +34 -12
  106. package/dist/commands/tools/install/index.d.ts.map +1 -1
  107. package/dist/commands/tools/install/index.js +19 -3
  108. package/dist/commands/tools/list/list-tools.d.ts +2 -0
  109. package/dist/commands/tools/list/list-tools.d.ts.map +1 -1
  110. package/dist/commands/tools/list/list-tools.js +36 -7
  111. package/dist/commands/tools/remove/index.d.ts.map +1 -1
  112. package/dist/commands/tools/remove/index.js +150 -21
  113. package/dist/commands/tools/remove/remove-tools.d.ts +20 -0
  114. package/dist/commands/tools/remove/remove-tools.d.ts.map +1 -1
  115. package/dist/commands/tools/remove/remove-tools.js +122 -1
  116. package/dist/commands/tools/shared/format-pack-inventory.d.ts +19 -0
  117. package/dist/commands/tools/shared/format-pack-inventory.d.ts.map +1 -1
  118. package/dist/commands/tools/shared/format-pack-inventory.js +109 -0
  119. package/dist/commands/tools/shared/pack-evidence.d.ts +66 -0
  120. package/dist/commands/tools/shared/pack-evidence.d.ts.map +1 -0
  121. package/dist/commands/tools/shared/pack-evidence.js +132 -0
  122. package/dist/commands/tools/shared/pack-inventory.d.ts +1 -0
  123. package/dist/commands/tools/shared/pack-inventory.d.ts.map +1 -1
  124. package/dist/commands/tools/shared/pack-lifecycle-outcome.d.ts +44 -0
  125. package/dist/commands/tools/shared/pack-lifecycle-outcome.d.ts.map +1 -0
  126. package/dist/commands/tools/shared/pack-lifecycle-outcome.js +91 -0
  127. package/dist/commands/tools/update/index.d.ts.map +1 -1
  128. package/dist/commands/tools/update/index.js +74 -4
  129. package/dist/commands/tools/update/update-tools.d.ts +5 -0
  130. package/dist/commands/tools/update/update-tools.d.ts.map +1 -1
  131. package/dist/commands/tools/update/update-tools.js +64 -2
  132. package/dist/config/oat-config.d.ts +5 -0
  133. package/dist/config/oat-config.d.ts.map +1 -1
  134. package/dist/config/oat-config.js +17 -5
  135. package/dist/config/user-sync-config.d.ts +1 -0
  136. package/dist/config/user-sync-config.d.ts.map +1 -1
  137. package/dist/config/user-sync-config.js +8 -0
  138. package/dist/drift/detector.d.ts +2 -2
  139. package/dist/drift/detector.d.ts.map +1 -1
  140. package/dist/drift/detector.js +18 -0
  141. package/dist/drift/strays.d.ts.map +1 -1
  142. package/dist/drift/strays.js +5 -0
  143. package/dist/engine/collection-sync.d.ts +14 -0
  144. package/dist/engine/collection-sync.d.ts.map +1 -0
  145. package/dist/engine/collection-sync.js +282 -0
  146. package/dist/engine/compute-plan.d.ts +8 -1
  147. package/dist/engine/compute-plan.d.ts.map +1 -1
  148. package/dist/engine/compute-plan.js +303 -12
  149. package/dist/engine/engine.types.d.ts +61 -0
  150. package/dist/engine/engine.types.d.ts.map +1 -1
  151. package/dist/engine/execute-plan.d.ts +22 -2
  152. package/dist/engine/execute-plan.d.ts.map +1 -1
  153. package/dist/engine/execute-plan.js +459 -27
  154. package/dist/engine/index.d.ts +1 -1
  155. package/dist/engine/index.d.ts.map +1 -1
  156. package/dist/engine/index.js +1 -1
  157. package/dist/engine/provider-path-safety.d.ts +1 -0
  158. package/dist/engine/provider-path-safety.d.ts.map +1 -1
  159. package/dist/engine/provider-path-safety.js +15 -0
  160. package/dist/engine/scanner.d.ts +9 -2
  161. package/dist/engine/scanner.d.ts.map +1 -1
  162. package/dist/engine/scanner.js +58 -4
  163. package/dist/fs/io.d.ts +67 -0
  164. package/dist/fs/io.d.ts.map +1 -1
  165. package/dist/fs/io.js +536 -3
  166. package/dist/manifest/index.d.ts +2 -2
  167. package/dist/manifest/index.d.ts.map +1 -1
  168. package/dist/manifest/index.js +1 -1
  169. package/dist/manifest/manager.d.ts +2 -2
  170. package/dist/manifest/manager.d.ts.map +1 -1
  171. package/dist/manifest/manager.js +20 -3
  172. package/dist/manifest/manifest.types.d.ts +704 -13
  173. package/dist/manifest/manifest.types.d.ts.map +1 -1
  174. package/dist/manifest/manifest.types.js +131 -15
  175. package/dist/providers/codex/codec/sync-extension.d.ts +1 -1
  176. package/dist/providers/codex/codec/sync-extension.d.ts.map +1 -1
  177. package/dist/providers/codex/codec/sync-extension.js +48 -17
  178. package/dist/providers/cursor/codec/sync-extension.d.ts +1 -1
  179. package/dist/providers/cursor/codec/sync-extension.d.ts.map +1 -1
  180. package/dist/providers/cursor/codec/sync-extension.js +52 -23
  181. package/dist/providers/identity/absolute-paths.d.ts +68 -0
  182. package/dist/providers/identity/absolute-paths.d.ts.map +1 -0
  183. package/dist/providers/identity/absolute-paths.js +144 -0
  184. package/dist/providers/identity/claude-runtime-observation.d.ts +105 -0
  185. package/dist/providers/identity/claude-runtime-observation.d.ts.map +1 -0
  186. package/dist/providers/identity/claude-runtime-observation.fixtures.d.ts +40 -0
  187. package/dist/providers/identity/claude-runtime-observation.fixtures.d.ts.map +1 -0
  188. package/dist/providers/identity/claude-runtime-observation.fixtures.js +146 -0
  189. package/dist/providers/identity/claude-runtime-observation.js +229 -0
  190. package/dist/providers/identity/codex-runtime-observation.d.ts +75 -0
  191. package/dist/providers/identity/codex-runtime-observation.d.ts.map +1 -0
  192. package/dist/providers/identity/codex-runtime-observation.fixtures.d.ts +37 -0
  193. package/dist/providers/identity/codex-runtime-observation.fixtures.d.ts.map +1 -0
  194. package/dist/providers/identity/codex-runtime-observation.fixtures.js +539 -0
  195. package/dist/providers/identity/codex-runtime-observation.js +255 -0
  196. package/dist/providers/identity/generic-dispatch-record.d.ts +313 -0
  197. package/dist/providers/identity/generic-dispatch-record.d.ts.map +1 -0
  198. package/dist/providers/identity/generic-dispatch-record.js +539 -0
  199. package/dist/providers/identity/oat-dispatch-record.d.ts +1964 -0
  200. package/dist/providers/identity/oat-dispatch-record.d.ts.map +1 -0
  201. package/dist/providers/identity/oat-dispatch-record.js +691 -0
  202. package/dist/providers/identity/runtime-observation.d.ts +100 -0
  203. package/dist/providers/identity/runtime-observation.d.ts.map +1 -0
  204. package/dist/providers/identity/runtime-observation.js +169 -0
  205. package/dist/providers/shared/index.d.ts +2 -0
  206. package/dist/providers/shared/index.d.ts.map +1 -1
  207. package/dist/providers/shared/index.js +1 -0
  208. package/dist/providers/shared/materialization-extension.d.ts +12 -0
  209. package/dist/providers/shared/materialization-extension.d.ts.map +1 -1
  210. package/dist/providers/shared/registry.d.ts +69 -0
  211. package/dist/providers/shared/registry.d.ts.map +1 -0
  212. package/dist/providers/shared/registry.js +252 -0
  213. package/dist/providers/shared/restart-adviser.d.ts +26 -0
  214. package/dist/providers/shared/restart-adviser.d.ts.map +1 -0
  215. package/dist/providers/shared/restart-adviser.js +96 -0
  216. package/dist/shared/types.d.ts +4 -0
  217. package/dist/shared/types.d.ts.map +1 -1
  218. package/package.json +2 -2
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Codex rollout metadata parsing.
3
+ *
4
+ * Field paths here are taken from captured Codex 0.152.1 rollouts, not from
5
+ * assumption; see `codex-runtime-observation.fixtures.ts` for the sanitized
6
+ * captures the tests run against.
7
+ *
8
+ * Four accepted paths are UNVERIFIED against any captured rollout and appear
9
+ * zero times in the operator's local corpus (1,596 rollouts spanning cli_version
10
+ * 0.142.4-0.152.x, as of 2026-09-02, on the capturing operator's machine): `turn_context.service_tier`,
11
+ * `turn_context.serviceTier`, `turn_context.reasoning_effort`, and
12
+ * `session_meta.request_id`. They are retained as forward-compatible readers
13
+ * and all fail closed to `null`, so no Codex rollout observed to date reports a
14
+ * service tier, and Codex request correlation is caller-asserted in practice.
15
+ * They are labelled here for the same reason `CLAUDE_INIT_KEYS` is labelled:
16
+ * an unverified path must not read as a captured one. An earlier revision of this parser read
17
+ * `payload.parent_id` and `payload.role`, which Codex does not emit, so every
18
+ * subagent was misreported as a root with no role while hand-written fixtures
19
+ * agreed with the parser instead of with the world.
20
+ *
21
+ * The parser reads session and turn metadata only. Entries are classified by
22
+ * their `type` discriminator alone, and the payload of any entry outside
23
+ * {@link CODEX_METADATA_ENTRY_TYPES} is never touched, so conversation content,
24
+ * instructions, and tool output cannot be reached from here. Every extracted
25
+ * value is a short provider identifier validated against a closed shape before
26
+ * it can become durable evidence.
27
+ *
28
+ * Everything this module produces is per-run, non-authoritative corroboration.
29
+ * A failed or partial parse yields `not-reported`; it never falls back to the
30
+ * configured invocation, so a requested value cannot masquerade as an
31
+ * observation.
32
+ */
33
+ /** Entry types whose payloads are metadata rather than conversation content. */
34
+ export declare const CODEX_METADATA_ENTRY_TYPES: readonly ['session_meta', 'turn_context'];
35
+ export declare const CODEX_OBSERVATION_SOURCE = "codex-rollout-metadata";
36
+ export interface CodexRuntimeMetadata {
37
+ childLineage: string;
38
+ role: string | null;
39
+ model: string | null;
40
+ effort: string | null;
41
+ serviceTier: string | null;
42
+ /** Request correlation declared by the session itself, when present. */
43
+ requestId: string | null;
44
+ /** Raw `thread_source`; `user` for a root session, `subagent` for a child. */
45
+ threadSource: string | null;
46
+ /**
47
+ * Raw `forked_from_id`. Recorded without interpretation: a subagent commonly
48
+ * carries it alongside `parent_thread_id`, so it does not by itself identify
49
+ * a user fork. See the module tests for what could and could not be
50
+ * established about fork shapes.
51
+ */
52
+ forkedFromId: string | null;
53
+ }
54
+ /**
55
+ * Extract the applicable child's metadata from Codex rollout entries.
56
+ *
57
+ * The applicable session is the *first* `session_meta`: a rollout's own header
58
+ * is written at ordinal 0, and any embedded parent history follows it.
59
+ */
60
+ export declare function extractCodexRuntimeMetadata(entries: readonly unknown[]): CodexRuntimeMetadata | null;
61
+ /**
62
+ * Neutral observation facts for the cross-provider projection.
63
+ *
64
+ * Nothing of the rollout's own shape escapes this module: the caller receives
65
+ * only the closed fact set owned by `runtime-observation.ts`.
66
+ */
67
+ export declare function observeCodexRuntimeFacts(entries: readonly unknown[]): {
68
+ lineage: string | null;
69
+ role: string | null;
70
+ model: string | null;
71
+ effort: string | null;
72
+ serviceTier: string | null;
73
+ correlation: string | null;
74
+ } | null;
75
+ //# sourceMappingURL=codex-runtime-observation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex-runtime-observation.d.ts","sourceRoot":"","sources":["../../../src/providers/identity/codex-runtime-observation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,YACrC,cAAc,EACd,cAAc,CACN,CAAC;AAIX,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AAKjE,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,wEAAwE;IACxE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAkLD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,OAAO,EAAE,GAC1B,oBAAoB,GAAG,IAAI,CAyD7B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG;IACrE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,GAAG,IAAI,CAWP"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Captured Codex rollout metadata, sanitized.
3
+ *
4
+ * These fixtures are derived from three real Codex 0.152.1 rollouts produced by
5
+ * one live nested dispatch on the capturing operator's machine, 2026-09-02: a root `exec` session, a depth-1
6
+ * subagent, and a depth-2 subagent. They replaced hand-written fixtures that
7
+ * had been constructed from assumption — those fixtures passed while the parser
8
+ * did not work against any real rollout, which is exactly the failure mode
9
+ * captured evidence prevents.
10
+ *
11
+ * Sanitization is allowlist-based, so a new upstream field cannot silently
12
+ * appear here. Only `session_meta` and `turn_context` payloads are retained,
13
+ * restricted to lineage, identity, and selection keys. Every non-metadata entry
14
+ * keeps its `type` and `ordinal` and carries no payload at all. Dropped
15
+ * outright: `base_instructions`, `git`, `cwd`, `workspace_roots`,
16
+ * `sandbox_policy`, `permission_profile`, and `collaboration_mode` — that is,
17
+ * every instruction, conversation, absolute-path, and repository-identifying
18
+ * field.
19
+ *
20
+ * Structural facts these fixtures preserve, each load-bearing for the parser:
21
+ * - A root declares `thread_source: "user"`, a plain string `source`, and no
22
+ * `parent_thread_id`.
23
+ * - A subagent declares `thread_source: "subagent"`, a tagged
24
+ * `source.subagent.thread_spawn` object with an authoritative `depth`, and a
25
+ * `parent_thread_id` at both the top level and inside `thread_spawn`.
26
+ * - On a subagent, `session_id` is the *root's* id, not its own. Only `id`
27
+ * identifies the session itself.
28
+ * - The depth-1 rollout embeds its parent's history: its own `session_meta` is
29
+ * first at ordinal 0, the parent's `session_meta` follows, and the parent's
30
+ * `turn_context` (`gpt-5.6-sol`) precedes its own (`gpt-5.6-terra`).
31
+ * `subagent_history_start_ordinal` marks where its own records begin.
32
+ * - No real `turn_context` carries a service tier.
33
+ */
34
+ export declare const ROOT_ROLLOUT: readonly unknown[];
35
+ export declare const DEPTH_1_ROLLOUT: readonly unknown[];
36
+ export declare const DEPTH_2_ROLLOUT: readonly unknown[];
37
+ //# sourceMappingURL=codex-runtime-observation.fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex-runtime-observation.fixtures.d.ts","sourceRoot":"","sources":["../../../src/providers/identity/codex-runtime-observation.fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,eAAO,MAAM,YAAY,EAAE,SAAS,OAAO,EA2K1C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAsO7C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAsG7C,CAAC"}
@@ -0,0 +1,539 @@
1
+ /**
2
+ * Captured Codex rollout metadata, sanitized.
3
+ *
4
+ * These fixtures are derived from three real Codex 0.152.1 rollouts produced by
5
+ * one live nested dispatch on the capturing operator's machine, 2026-09-02: a root `exec` session, a depth-1
6
+ * subagent, and a depth-2 subagent. They replaced hand-written fixtures that
7
+ * had been constructed from assumption — those fixtures passed while the parser
8
+ * did not work against any real rollout, which is exactly the failure mode
9
+ * captured evidence prevents.
10
+ *
11
+ * Sanitization is allowlist-based, so a new upstream field cannot silently
12
+ * appear here. Only `session_meta` and `turn_context` payloads are retained,
13
+ * restricted to lineage, identity, and selection keys. Every non-metadata entry
14
+ * keeps its `type` and `ordinal` and carries no payload at all. Dropped
15
+ * outright: `base_instructions`, `git`, `cwd`, `workspace_roots`,
16
+ * `sandbox_policy`, `permission_profile`, and `collaboration_mode` — that is,
17
+ * every instruction, conversation, absolute-path, and repository-identifying
18
+ * field.
19
+ *
20
+ * Structural facts these fixtures preserve, each load-bearing for the parser:
21
+ * - A root declares `thread_source: "user"`, a plain string `source`, and no
22
+ * `parent_thread_id`.
23
+ * - A subagent declares `thread_source: "subagent"`, a tagged
24
+ * `source.subagent.thread_spawn` object with an authoritative `depth`, and a
25
+ * `parent_thread_id` at both the top level and inside `thread_spawn`.
26
+ * - On a subagent, `session_id` is the *root's* id, not its own. Only `id`
27
+ * identifies the session itself.
28
+ * - The depth-1 rollout embeds its parent's history: its own `session_meta` is
29
+ * first at ordinal 0, the parent's `session_meta` follows, and the parent's
30
+ * `turn_context` (`gpt-5.6-sol`) precedes its own (`gpt-5.6-terra`).
31
+ * `subagent_history_start_ordinal` marks where its own records begin.
32
+ * - No real `turn_context` carries a service tier.
33
+ */
34
+ export const ROOT_ROLLOUT = [
35
+ {
36
+ ordinal: 0,
37
+ type: 'session_meta',
38
+ payload: {
39
+ session_id: '01a06402-2861-7421-821a-137187a03f7f',
40
+ id: '01a06402-2861-7421-821a-137187a03f7f',
41
+ thread_source: 'user',
42
+ originator: 'codex_exec',
43
+ cli_version: '0.152.1',
44
+ model_provider: 'openai',
45
+ history_mode: 'paginated',
46
+ source: 'exec',
47
+ },
48
+ },
49
+ {
50
+ ordinal: 1,
51
+ type: 'event_msg',
52
+ },
53
+ {
54
+ ordinal: 2,
55
+ type: 'response_item',
56
+ },
57
+ {
58
+ ordinal: 3,
59
+ type: 'response_item',
60
+ },
61
+ {
62
+ ordinal: 4,
63
+ type: 'response_item',
64
+ },
65
+ {
66
+ ordinal: 5,
67
+ type: 'response_item',
68
+ },
69
+ {
70
+ ordinal: 6,
71
+ type: 'world_state',
72
+ },
73
+ {
74
+ ordinal: 7,
75
+ type: 'turn_context',
76
+ payload: {
77
+ turn_id: '01a06402-2a15-75a2-b365-0d732121aad8',
78
+ model: 'gpt-5.6-sol',
79
+ effort: 'medium',
80
+ summary: 'auto',
81
+ approval_policy: 'never',
82
+ current_date: '2026-09-02',
83
+ timezone: 'America/Chicago',
84
+ personality: 'pragmatic',
85
+ multi_agent_version: 'v2',
86
+ realtime_active: false,
87
+ },
88
+ },
89
+ {
90
+ ordinal: 8,
91
+ type: 'response_item',
92
+ },
93
+ {
94
+ ordinal: 9,
95
+ type: 'event_msg',
96
+ },
97
+ {
98
+ ordinal: 10,
99
+ type: 'event_msg',
100
+ },
101
+ {
102
+ ordinal: 11,
103
+ type: 'response_item',
104
+ },
105
+ {
106
+ ordinal: 12,
107
+ type: 'response_item',
108
+ },
109
+ {
110
+ ordinal: 13,
111
+ type: 'event_msg',
112
+ },
113
+ {
114
+ ordinal: 14,
115
+ type: 'response_item',
116
+ },
117
+ {
118
+ ordinal: 15,
119
+ type: 'event_msg',
120
+ },
121
+ {
122
+ ordinal: 16,
123
+ type: 'world_state',
124
+ },
125
+ {
126
+ ordinal: 17,
127
+ type: 'event_msg',
128
+ },
129
+ {
130
+ ordinal: 18,
131
+ type: 'response_item',
132
+ },
133
+ {
134
+ ordinal: 19,
135
+ type: 'response_item',
136
+ },
137
+ {
138
+ ordinal: 20,
139
+ type: 'event_msg',
140
+ },
141
+ {
142
+ ordinal: 21,
143
+ type: 'event_msg',
144
+ },
145
+ {
146
+ ordinal: 22,
147
+ type: 'response_item',
148
+ },
149
+ {
150
+ ordinal: 23,
151
+ type: 'event_msg',
152
+ },
153
+ {
154
+ ordinal: 24,
155
+ type: 'inter_agent_communication_metadata',
156
+ },
157
+ {
158
+ ordinal: 25,
159
+ type: 'response_item',
160
+ },
161
+ {
162
+ ordinal: 26,
163
+ type: 'event_msg',
164
+ },
165
+ {
166
+ ordinal: 27,
167
+ type: 'response_item',
168
+ },
169
+ {
170
+ ordinal: 28,
171
+ type: 'response_item',
172
+ },
173
+ {
174
+ ordinal: 29,
175
+ type: 'response_item',
176
+ },
177
+ {
178
+ ordinal: 30,
179
+ type: 'event_msg',
180
+ },
181
+ {
182
+ ordinal: 31,
183
+ type: 'event_msg',
184
+ },
185
+ {
186
+ ordinal: 32,
187
+ type: 'response_item',
188
+ },
189
+ {
190
+ ordinal: 33,
191
+ type: 'event_msg',
192
+ },
193
+ {
194
+ ordinal: 34,
195
+ type: 'response_item',
196
+ },
197
+ {
198
+ ordinal: 35,
199
+ type: 'event_msg',
200
+ },
201
+ {
202
+ ordinal: 36,
203
+ type: 'event_msg',
204
+ },
205
+ ];
206
+ export const DEPTH_1_ROLLOUT = [
207
+ {
208
+ ordinal: 0,
209
+ type: 'session_meta',
210
+ payload: {
211
+ session_id: '01a06402-2861-7421-821a-137187a03f7f',
212
+ id: '01a06402-4d66-74f1-a706-f69cde1516f6',
213
+ parent_thread_id: '01a06402-2861-7421-821a-137187a03f7f',
214
+ forked_from_id: '01a06402-2861-7421-821a-137187a03f7f',
215
+ thread_source: 'subagent',
216
+ originator: 'codex_exec',
217
+ cli_version: '0.152.1',
218
+ agent_role: 'oat-phase-implementer-gpt-5-6-terra-high',
219
+ agent_nickname: 'Mencius',
220
+ agent_path: '/root/depth_1_lineage_test',
221
+ model_provider: 'openai',
222
+ history_mode: 'paginated',
223
+ subagent_history_start_ordinal: 10,
224
+ multi_agent_version: 'v2',
225
+ source: {
226
+ subagent: {
227
+ thread_spawn: {
228
+ parent_thread_id: '01a06402-2861-7421-821a-137187a03f7f',
229
+ depth: 1,
230
+ agent_path: '/root/depth_1_lineage_test',
231
+ agent_nickname: 'Mencius',
232
+ agent_role: 'oat-phase-implementer-gpt-5-6-terra-high',
233
+ },
234
+ },
235
+ },
236
+ },
237
+ },
238
+ {
239
+ ordinal: 1,
240
+ type: 'session_meta',
241
+ payload: {
242
+ session_id: '01a06402-2861-7421-821a-137187a03f7f',
243
+ id: '01a06402-2861-7421-821a-137187a03f7f',
244
+ thread_source: 'user',
245
+ originator: 'codex_exec',
246
+ cli_version: '0.152.1',
247
+ model_provider: 'openai',
248
+ history_mode: 'paginated',
249
+ source: 'exec',
250
+ },
251
+ },
252
+ {
253
+ ordinal: 2,
254
+ type: 'event_msg',
255
+ },
256
+ {
257
+ ordinal: 3,
258
+ type: 'response_item',
259
+ },
260
+ {
261
+ ordinal: 4,
262
+ type: 'response_item',
263
+ },
264
+ {
265
+ ordinal: 5,
266
+ type: 'world_state',
267
+ },
268
+ {
269
+ ordinal: 6,
270
+ type: 'turn_context',
271
+ payload: {
272
+ turn_id: '01a06402-2a15-75a2-b365-0d732121aad8',
273
+ model: 'gpt-5.6-sol',
274
+ effort: 'medium',
275
+ summary: 'auto',
276
+ approval_policy: 'never',
277
+ current_date: '2026-09-02',
278
+ timezone: 'America/Chicago',
279
+ personality: 'pragmatic',
280
+ multi_agent_version: 'v2',
281
+ realtime_active: false,
282
+ },
283
+ },
284
+ {
285
+ ordinal: 7,
286
+ type: 'response_item',
287
+ },
288
+ {
289
+ ordinal: 8,
290
+ type: 'response_item',
291
+ },
292
+ {
293
+ ordinal: 9,
294
+ type: 'response_item',
295
+ },
296
+ {
297
+ ordinal: 10,
298
+ type: 'event_msg',
299
+ },
300
+ {
301
+ ordinal: 11,
302
+ type: 'event_msg',
303
+ },
304
+ {
305
+ ordinal: 12,
306
+ type: 'response_item',
307
+ },
308
+ {
309
+ ordinal: 13,
310
+ type: 'response_item',
311
+ },
312
+ {
313
+ ordinal: 14,
314
+ type: 'world_state',
315
+ },
316
+ {
317
+ ordinal: 15,
318
+ type: 'turn_context',
319
+ payload: {
320
+ turn_id: '01a06402-4e7a-7ee1-8e69-3dcb7174f9f3',
321
+ model: 'gpt-5.6-terra',
322
+ effort: 'high',
323
+ summary: 'auto',
324
+ approval_policy: 'never',
325
+ current_date: '2026-09-02',
326
+ timezone: 'America/Chicago',
327
+ personality: 'pragmatic',
328
+ multi_agent_version: 'v2',
329
+ realtime_active: false,
330
+ },
331
+ },
332
+ {
333
+ ordinal: 16,
334
+ type: 'inter_agent_communication_metadata',
335
+ },
336
+ {
337
+ ordinal: 17,
338
+ type: 'response_item',
339
+ },
340
+ {
341
+ ordinal: 18,
342
+ type: 'event_msg',
343
+ },
344
+ {
345
+ ordinal: 19,
346
+ type: 'response_item',
347
+ },
348
+ {
349
+ ordinal: 20,
350
+ type: 'response_item',
351
+ },
352
+ {
353
+ ordinal: 21,
354
+ type: 'event_msg',
355
+ },
356
+ {
357
+ ordinal: 22,
358
+ type: 'response_item',
359
+ },
360
+ {
361
+ ordinal: 23,
362
+ type: 'event_msg',
363
+ },
364
+ {
365
+ ordinal: 24,
366
+ type: 'world_state',
367
+ },
368
+ {
369
+ ordinal: 25,
370
+ type: 'event_msg',
371
+ },
372
+ {
373
+ ordinal: 26,
374
+ type: 'event_msg',
375
+ },
376
+ {
377
+ ordinal: 27,
378
+ type: 'response_item',
379
+ },
380
+ {
381
+ ordinal: 28,
382
+ type: 'event_msg',
383
+ },
384
+ {
385
+ ordinal: 29,
386
+ type: 'inter_agent_communication_metadata',
387
+ },
388
+ {
389
+ ordinal: 30,
390
+ type: 'response_item',
391
+ },
392
+ {
393
+ ordinal: 31,
394
+ type: 'event_msg',
395
+ },
396
+ {
397
+ ordinal: 32,
398
+ type: 'response_item',
399
+ },
400
+ {
401
+ ordinal: 33,
402
+ type: 'response_item',
403
+ },
404
+ {
405
+ ordinal: 34,
406
+ type: 'response_item',
407
+ },
408
+ {
409
+ ordinal: 35,
410
+ type: 'event_msg',
411
+ },
412
+ {
413
+ ordinal: 36,
414
+ type: 'event_msg',
415
+ },
416
+ {
417
+ ordinal: 37,
418
+ type: 'response_item',
419
+ },
420
+ {
421
+ ordinal: 38,
422
+ type: 'event_msg',
423
+ },
424
+ {
425
+ ordinal: 39,
426
+ type: 'response_item',
427
+ },
428
+ {
429
+ ordinal: 40,
430
+ type: 'event_msg',
431
+ },
432
+ {
433
+ ordinal: 41,
434
+ type: 'event_msg',
435
+ },
436
+ ];
437
+ export const DEPTH_2_ROLLOUT = [
438
+ {
439
+ ordinal: 0,
440
+ type: 'session_meta',
441
+ payload: {
442
+ session_id: '01a06402-2861-7421-821a-137187a03f7f',
443
+ id: '01a06402-65ec-7f21-97e4-f49ad8600c84',
444
+ parent_thread_id: '01a06402-4d66-74f1-a706-f69cde1516f6',
445
+ thread_source: 'subagent',
446
+ originator: 'codex_exec',
447
+ cli_version: '0.152.1',
448
+ agent_role: 'oat-reviewer-gpt-5-6-luna-high',
449
+ agent_nickname: 'Pascal',
450
+ agent_path: '/root/depth_1_lineage_test/depth_2_lineage_test',
451
+ model_provider: 'openai',
452
+ history_mode: 'paginated',
453
+ multi_agent_version: 'v2',
454
+ source: {
455
+ subagent: {
456
+ thread_spawn: {
457
+ parent_thread_id: '01a06402-4d66-74f1-a706-f69cde1516f6',
458
+ depth: 2,
459
+ agent_path: '/root/depth_1_lineage_test/depth_2_lineage_test',
460
+ agent_nickname: 'Pascal',
461
+ agent_role: 'oat-reviewer-gpt-5-6-luna-high',
462
+ },
463
+ },
464
+ },
465
+ },
466
+ },
467
+ {
468
+ ordinal: 1,
469
+ type: 'event_msg',
470
+ },
471
+ {
472
+ ordinal: 2,
473
+ type: 'response_item',
474
+ },
475
+ {
476
+ ordinal: 3,
477
+ type: 'response_item',
478
+ },
479
+ {
480
+ ordinal: 4,
481
+ type: 'response_item',
482
+ },
483
+ {
484
+ ordinal: 5,
485
+ type: 'response_item',
486
+ },
487
+ {
488
+ ordinal: 6,
489
+ type: 'world_state',
490
+ },
491
+ {
492
+ ordinal: 7,
493
+ type: 'turn_context',
494
+ payload: {
495
+ turn_id: '01a06402-6667-7432-956b-16fe6a47d981',
496
+ model: 'gpt-5.6-luna',
497
+ effort: 'high',
498
+ summary: 'auto',
499
+ approval_policy: 'never',
500
+ current_date: '2026-09-02',
501
+ timezone: 'America/Chicago',
502
+ personality: 'pragmatic',
503
+ multi_agent_version: 'v2',
504
+ realtime_active: false,
505
+ },
506
+ },
507
+ {
508
+ ordinal: 8,
509
+ type: 'inter_agent_communication_metadata',
510
+ },
511
+ {
512
+ ordinal: 9,
513
+ type: 'response_item',
514
+ },
515
+ {
516
+ ordinal: 10,
517
+ type: 'event_msg',
518
+ },
519
+ {
520
+ ordinal: 11,
521
+ type: 'response_item',
522
+ },
523
+ {
524
+ ordinal: 12,
525
+ type: 'event_msg',
526
+ },
527
+ {
528
+ ordinal: 13,
529
+ type: 'response_item',
530
+ },
531
+ {
532
+ ordinal: 14,
533
+ type: 'event_msg',
534
+ },
535
+ {
536
+ ordinal: 15,
537
+ type: 'event_msg',
538
+ },
539
+ ];