sinapse-ai 7.7.2 → 7.7.4

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 (56) hide show
  1. package/.claude/hooks/enforce-git-push-authority.sh +34 -2
  2. package/.claude/rules/safe-collaboration.md +12 -1
  3. package/.codex/catalog.json +157 -0
  4. package/.codex/command-registry.json +441 -0
  5. package/.codex/scripts/generate-codex-greeting.js +101 -0
  6. package/.codex/scripts/resolve-codex-command.js +147 -0
  7. package/.codex/skills/sinapse-analyst/SKILL.md +5 -4
  8. package/.codex/skills/sinapse-architect/SKILL.md +5 -4
  9. package/.codex/skills/sinapse-data-engineer/SKILL.md +5 -4
  10. package/.codex/skills/sinapse-dev/SKILL.md +5 -4
  11. package/.codex/skills/sinapse-devops/SKILL.md +5 -4
  12. package/.codex/skills/sinapse-orqx/SKILL.md +10 -15
  13. package/.codex/skills/sinapse-pm/SKILL.md +5 -4
  14. package/.codex/skills/sinapse-po/SKILL.md +4 -3
  15. package/.codex/skills/sinapse-qa/SKILL.md +12 -11
  16. package/.codex/skills/sinapse-sm/SKILL.md +5 -4
  17. package/.codex/skills/sinapse-squad-creator/SKILL.md +5 -4
  18. package/.codex/skills/sinapse-ux-design-expert/SKILL.md +5 -4
  19. package/.codex/tasks/convene-sinapse-council.md +28 -0
  20. package/.codex/tasks/create-sinapse-strategic-brief.md +29 -0
  21. package/.codex/tasks/onboard-sinapse-codex.md +34 -0
  22. package/.codex/tasks/plan-sinapse-initiative.md +33 -0
  23. package/.codex/tasks/resolve-sinapse-conflict.md +28 -0
  24. package/.codex/tasks/route-sinapse-request.md +33 -0
  25. package/.codex/tasks/status-sinapse-capabilities.md +28 -0
  26. package/.sinapse-ai/core-config.yaml +1 -1
  27. package/.sinapse-ai/data/entity-registry.yaml +903 -805
  28. package/.sinapse-ai/data/registry-update-log.jsonl +10 -0
  29. package/.sinapse-ai/infrastructure/scripts/codex-parity/catalog.js +123 -0
  30. package/.sinapse-ai/infrastructure/scripts/codex-skills-sync/index.js +60 -11
  31. package/.sinapse-ai/infrastructure/scripts/codex-skills-sync/validate.js +44 -16
  32. package/.sinapse-ai/infrastructure/scripts/sync-codex-local-first.js +156 -0
  33. package/.sinapse-ai/infrastructure/scripts/validate-codex-command-registry.js +264 -0
  34. package/.sinapse-ai/infrastructure/scripts/validate-codex-integration.js +15 -6
  35. package/.sinapse-ai/infrastructure/scripts/validate-codex-sync.js +156 -0
  36. package/.sinapse-ai/infrastructure/scripts/validate-parity.js +3 -1
  37. package/.sinapse-ai/infrastructure/scripts/validate-paths.js +8 -10
  38. package/.sinapse-ai/infrastructure/templates/safe-collab/README.md +52 -17
  39. package/.sinapse-ai/infrastructure/templates/safe-collab/apply.sh +85 -0
  40. package/.sinapse-ai/infrastructure/templates/safe-collab/safe-collaboration-rule.md +11 -0
  41. package/.sinapse-ai/install-manifest.yaml +41 -21
  42. package/.sinapse-ai/project-config.yaml +1 -1
  43. package/bin/utils/collab-start.js +267 -0
  44. package/bin/utils/git-branch-guard.js +76 -0
  45. package/bin/utils/pre-push-safety.js +110 -0
  46. package/bin/utils/staged-secret-scan.js +108 -0
  47. package/docs/ORQX-PLAN.md +3 -2
  48. package/docs/codex-parity-program.md +670 -0
  49. package/docs/codex-total-parity-orchestration-plan.md +301 -0
  50. package/docs/codex-workflow-task-parity.md +87 -0
  51. package/docs/collaboration-autonomy-plan.md +243 -0
  52. package/docs/guides/framework-contributor-mode.md +310 -0
  53. package/docs/guides/parallel-collaboration-source-of-truth.md +481 -0
  54. package/package.json +11 -3
  55. package/packages/installer/tests/unit/entity-registry-bootstrap.test.js +2 -2
  56. package/scripts/ensure-manifest.js +9 -0
@@ -0,0 +1,670 @@
1
+ # Codex Parity Program
2
+
3
+ ## Goal
4
+
5
+ Bring SINAPSE on Codex as close as possible to the Cloud/Claude experience in:
6
+
7
+ - agent activation
8
+ - orqx naming and invocation
9
+ - squad routing and handoff behavior
10
+ - skills and command exposure
11
+ - task and workflow execution
12
+ - MCP-backed capability access
13
+ - validation, guardrails, and operator ergonomics
14
+
15
+ The default rule is strict isolation:
16
+
17
+ - improve Codex first
18
+ - preserve Cloud/Claude behavior
19
+ - touch shared surfaces only when necessary
20
+ - prove no-regression before any shared change is accepted
21
+
22
+ ## Definition Of Success
23
+
24
+ Codex parity is considered high quality when all of the following are true:
25
+
26
+ - `@sinapse-orqx` and all supported orqx activate reliably with the expected identity, naming, and command surface
27
+ - `/skills` exposes the same practical entry points needed for daily SINAPSE use
28
+ - Codex can route through orqx -> squad -> specialist patterns with minimal manual glue
29
+ - tasks and workflows required by the agent system are reachable and documented for Codex operators
30
+ - MCP setup is repeatable and validated for Codex users
31
+ - validators can detect drift, broken activation, missing skills, and incomplete Codex setup early
32
+ - the resulting Codex experience is consistent enough that Cloud/Claude is not required for normal framework use
33
+
34
+ ## Hard Boundaries
35
+
36
+ These surfaces are Codex-first and safe to evolve as the primary delivery area:
37
+
38
+ - `AGENTS.md`
39
+ - `.codex/**`
40
+ - Codex-specific validation scripts
41
+ - Codex-specific docs
42
+ - project-level `.mcp.json`
43
+ - global `~/.sinapse/mcp` bootstrap and linking guidance for Codex users
44
+
45
+ These surfaces are shared and must be treated as high risk:
46
+
47
+ - `.sinapse-ai/development/agents/**`
48
+ - `.sinapse-ai/development/scripts/**`
49
+ - `.sinapse-ai/core/**`
50
+ - `.claude/**`
51
+
52
+ Shared-surface changes only happen when all three conditions are true:
53
+
54
+ 1. the Codex gap cannot be solved in Codex-only surfaces
55
+ 2. the change improves or preserves Claude/Cloud behavior
56
+ 3. the change passes explicit no-regression review
57
+
58
+ ## Known Baseline Gaps
59
+
60
+ Current baseline issues observed in this repository:
61
+
62
+ 1. Canonical/source-of-truth split
63
+ The official Codex sync reads `.sinapse-ai/development/agents`, but the richer Codex catalog already lives in `.codex/agents`.
64
+
65
+ 2. Broken canonical `sinapse-orqx`
66
+ The shared greeting pipeline currently falls back because `.sinapse-ai/development/agents/sinapse-orqx.md` contains YAML that does not parse.
67
+
68
+ 3. Codex validation drift
69
+ Resolved for the Codex local-first path in Story `7.7.6`.
70
+ `validate:codex-sync`, `validate:codex-skills`, `validate:codex-integration`, and `validate:paths`
71
+ now pass against the expanded Codex contract. Remaining parity failures are shared or non-Codex.
72
+
73
+ 4. Incomplete MCP reality
74
+ This project currently has no `.mcp.json`, and the global SINAPSE MCP config is not yet bootstrapped in `~/.sinapse/mcp`.
75
+
76
+ 5. Path validation mismatch
77
+ Resolved in Story `7.7.6` by teaching the validator about expanded Codex source prefixes,
78
+ fallback activation paths, and Codex-specific greeting adapters.
79
+
80
+ 6. Platform limits
81
+ Codex does not fully replicate Claude lifecycle hooks. Some parity must come from instructions, validations, wrappers, and workflow discipline rather than true runtime parity.
82
+
83
+ ## Program Principles
84
+
85
+ - Documentation first
86
+ - Codex-only first
87
+ - Zero accidental Claude regression
88
+ - One task at a time
89
+ - Dual review on every task
90
+ - No hidden source-of-truth splits
91
+ - No parity claim without validation
92
+
93
+ ## Operating Mode
94
+
95
+ This program must run in maintainer-safe mode:
96
+
97
+ - prefer isolated feature branches and worktrees
98
+ - avoid touching files already in motion from parallel maintainer sessions unless required
99
+ - prefer additive Codex-only changes over shared refactors
100
+ - stop when a change would require speculative shared-runtime surgery
101
+
102
+ ## Target Architecture
103
+
104
+ The recommended architecture for high Codex parity is not "make Codex act like Claude internally".
105
+ It is a Codex-only compatibility layer that reproduces the practical SINAPSE experience as closely as possible.
106
+
107
+ ### Codex Catalog Layer
108
+
109
+ Purpose:
110
+ Represent the full usable Codex catalog of orqx, squads, and specialists.
111
+
112
+ Requirements:
113
+
114
+ - one explicit catalog source for Codex parity
115
+ - no dependence on the current 12-agent canonical subset for full Codex export
116
+ - traceability from each exported Codex artifact back to its upstream source
117
+
118
+ ### Codex Skill Export Layer
119
+
120
+ Purpose:
121
+ Generate `.codex/skills` from the real Codex catalog, not from an incomplete upstream subset.
122
+
123
+ Requirements:
124
+
125
+ - full orqx coverage
126
+ - key framework agent coverage
127
+ - stable aliases and activation instructions
128
+ - validators aware of the expanded catalog
129
+
130
+ ### Codex Activation Adapter
131
+
132
+ Purpose:
133
+ Make Codex activation resilient and predictable without destabilizing the shared runtime.
134
+
135
+ Requirements:
136
+
137
+ - tolerate current upstream parse issues through Codex-side fallback paths
138
+ - preserve agent identity, aliases, and starter commands
139
+ - keep Codex activation behavior explicit in `.codex/**` and `AGENTS.md`
140
+
141
+ ### Codex MCP Bootstrap
142
+
143
+ Purpose:
144
+ Make MCP capability on Codex reproducible, validated, and documented.
145
+
146
+ Requirements:
147
+
148
+ - global `sinapse mcp setup`
149
+ - project `sinapse mcp link`
150
+ - Codex-ready `.mcp.json` strategy
151
+ - minimal and full presets
152
+
153
+ ### Codex Parity Validator
154
+
155
+ Purpose:
156
+ Measure Codex against the intended Codex contract instead of the current partial assumptions.
157
+
158
+ Requirements:
159
+
160
+ - understand expanded Codex catalog
161
+ - validate skills, activation, and MCP baseline
162
+ - fail on drift relevant to Codex users
163
+
164
+ ## Delivery Protocol Per Task
165
+
166
+ Every Codex parity task must follow the same sequence:
167
+
168
+ 1. Define the task and acceptance criteria
169
+ 2. Map affected surfaces and identify whether they are Codex-only or shared
170
+ 3. Design the smallest change that improves Codex without touching Claude/Cloud
171
+ 4. Implement
172
+ 5. Review A: structural review
173
+ Review architecture, source-of-truth, file ownership, and unintended coupling
174
+ 6. Review B: parity and regression review
175
+ Review Cloud/Claude safety, Codex UX quality, and validation coverage
176
+ 7. Run the relevant smoke checks and validators
177
+ 8. Update story checklist and file list
178
+ 9. Only then start the next task
179
+
180
+ If either review fails, the task returns to implementation and does not advance.
181
+
182
+ ## Workstreams
183
+
184
+ ### W0. Safety Baseline
185
+
186
+ Purpose:
187
+ Create the safety rails for the entire program.
188
+
189
+ Outputs:
190
+
191
+ - parity story and program plan
192
+ - explicit Codex-only vs shared-surface policy
193
+ - review protocol
194
+ - no-regression checklist
195
+
196
+ ### W1. Activation And Greeting Parity
197
+
198
+ Purpose:
199
+ Make agent activation, identity, and greeting behavior reliable in Codex.
200
+
201
+ Focus:
202
+
203
+ - fix canonical `sinapse-orqx` parsing
204
+ - verify greeting pipeline behavior in Codex
205
+ - ensure `@agent` and `/skills` entry points feel consistent
206
+
207
+ ### W2. Catalog And Source-Of-Truth Parity
208
+
209
+ Purpose:
210
+ Resolve the split between the short canonical agent set and the large Codex catalog.
211
+
212
+ Focus:
213
+
214
+ - define the real source of truth for Codex parity
215
+ - export the full catalog cleanly
216
+ - prevent future drift
217
+
218
+ ### W3. Skills Parity
219
+
220
+ Purpose:
221
+ Ensure all needed orqx and key framework agents are available through Codex skills with correct activation instructions.
222
+
223
+ Focus:
224
+
225
+ - local-first `.codex/skills`
226
+ - full orqx coverage
227
+ - clean validation
228
+ - no duplicate global/local skill confusion
229
+
230
+ ### W4. Command, Task, And Workflow Parity
231
+
232
+ Purpose:
233
+ Expose the same practical working surface available in Cloud/Claude.
234
+
235
+ Focus:
236
+
237
+ - commands shown in Codex activation
238
+ - workflow discoverability
239
+ - task routing from agent persona to task artifacts
240
+ - operator instructions when runtime hooks are unavailable
241
+
242
+ Current state after Story `7.7.7`:
243
+
244
+ - a Codex-only command registry now maps the critical workflow agents to concrete tasks/resources
245
+ - Codex has a resolver CLI for `command -> task/workflow` lookup
246
+ - Codex has a validator that fails on missing targets/resources, missing minimum coverage, and alias collisions
247
+ - Imperator now has Codex-only tasks for `onboard`, `route`, `plan`, `status`, `brief`, `resolve`, and `council`
248
+ - repo-wide quality gates currently show `lint` and `typecheck` green, while `npm test` still has unrelated shared drift in `wizard/report-generator` and `validate-publish`
249
+
250
+ ### W5. Orchestration And Delegation Parity
251
+
252
+ Purpose:
253
+ Bring Codex as close as possible to real multi-agent orchestration behavior.
254
+
255
+ Focus:
256
+
257
+ - orqx -> squad -> specialist routing model
258
+ - handoff artifacts and context rules
259
+ - Codex-compatible delegation patterns
260
+ - minimum-manual-glue execution model
261
+
262
+ Execution detail is now formalized in `docs/codex-total-parity-orchestration-plan.md`.
263
+
264
+ Current recommended implementation story:
265
+
266
+ - Story `7.7.8` - Codex delegation and handoff parity
267
+
268
+ Immediate next slice:
269
+
270
+ - Story `7.7.8`: Codex orchestration and delegation parity
271
+ - execution plan recorded in `docs/codex-total-parity-orchestration-plan.md`
272
+
273
+ ### W6. MCP Parity
274
+
275
+ Purpose:
276
+ Make Codex MCP setup repeatable, validated, and production-ready.
277
+
278
+ Focus:
279
+
280
+ - global `sinapse mcp setup`
281
+ - project `sinapse mcp link`
282
+ - project `.mcp.json` strategy
283
+ - preset guidance for minimal/full Codex operation
284
+
285
+ ### W7. Validation And Drift Control
286
+
287
+ Purpose:
288
+ Make Codex parity measurable and enforceable.
289
+
290
+ Focus:
291
+
292
+ - sync validators
293
+ - skills validators
294
+ - integration validators
295
+ - parity report
296
+ - Codex health checks
297
+
298
+ ### W8. Cross-IDE Improvement Loop
299
+
300
+ Purpose:
301
+ Allow Cloud/Claude and Codex to improve each other safely without regression.
302
+
303
+ Focus:
304
+
305
+ - Codex-side docs for using Claude/Cloud to audit Codex
306
+ - strict boundary rules for shared files
307
+ - reproducible comparison and review workflow
308
+
309
+ ## Handoff Matrix
310
+
311
+ This program should use the SINAPSE ecosystem itself as the operating model.
312
+
313
+ Primary orchestration:
314
+
315
+ - `@sinapse-orqx`: executive routing, cross-workstream prioritization, and final synthesis
316
+
317
+ Specialist orchestration roles:
318
+
319
+ - `@claude-orqx`: Claude/Cloud parity analysis, hook-gap mitigation, Codex-compatible replacements
320
+ - `@swarm-orqx`: multi-agent topology, handoff protocol, orchestration process design
321
+ - `@devops`: validation, CI safety, branch discipline, release-safe guardrails
322
+ - `@architect`: source-of-truth decisions, shared-vs-Codex boundary design
323
+ - `@developer`: implementation of Codex-only artifacts, sync logic, validators, docs glue
324
+ - `@quality-gate`: parity review, regression review, test and validation gatekeeping
325
+ - `@analyst`: gap mapping, benchmark of actual operator journeys, documentation clarity checks
326
+
327
+ Domain squads can be consulted to validate their own Codex activators:
328
+
329
+ - `@brand-orqx`
330
+ - `@content-orqx`
331
+ - `@copy-orqx`
332
+ - `@research-orqx`
333
+ - `@product-orqx`
334
+ - `@design-orqx`
335
+ - `@animations-orqx`
336
+ - `@claude-orqx`
337
+ - `@swarm-orqx`
338
+
339
+ ## Initial Execution Order
340
+
341
+ The recommended first sequence is:
342
+
343
+ 1. W0: safety baseline and formal program docs
344
+ 2. W1: repair `sinapse-orqx` activation/greeting parity
345
+ 3. W2: resolve Codex source-of-truth and export strategy
346
+ 4. W3: restore clean Codex skills parity for orqx and core agents
347
+ 5. W7: make validators reflect the intended Codex reality
348
+ 6. W6: establish reliable MCP bootstrap for Codex users
349
+ 7. W4: tighten command/task/workflow exposure in Codex
350
+ 8. W5: deepen orchestration and delegation parity
351
+ 9. W8: add the Cloud/Claude-assisted improvement loop
352
+
353
+ ## Phase Model
354
+
355
+ ### Phase 0 - Governance Boundary
356
+
357
+ Objective:
358
+ Freeze the Codex-only perimeter and define what must not regress in Claude/Cloud.
359
+
360
+ Primary handoffs:
361
+
362
+ - `@sinapse-orqx` -> `@architect` -> `@devops`
363
+
364
+ Exit criteria:
365
+
366
+ - every relevant repo area is classified as `Codex-only`, `shared`, or `Claude-only`
367
+ - no-regression rule is documented
368
+ - protected/shared surfaces are explicit
369
+
370
+ ### Phase 1 - Baseline And Parity Contract
371
+
372
+ Objective:
373
+ Turn the Claude/Cloud reference behavior into a verifiable Codex contract.
374
+
375
+ Primary handoffs:
376
+
377
+ - `@claude-orqx` -> `@quality-gate` -> `@product-lead`
378
+
379
+ Exit criteria:
380
+
381
+ - parity checklist exists for activation, commands, orchestration, workflows, MCP, handoffs, stories, and epics
382
+ - current Codex baseline gaps are documented
383
+
384
+ ### Phase 2 - Activation And Catalog Parity
385
+
386
+ Objective:
387
+ Align activation paths, naming, greeting, orqx catalog, and source-of-truth rules.
388
+
389
+ Primary handoffs:
390
+
391
+ - `@architect` -> `@developer` -> `@quality-gate`
392
+
393
+ Exit criteria:
394
+
395
+ - `sinapse-orqx` activation is reliable in Codex
396
+ - catalog export is deterministic
397
+ - no ambiguous split remains between intended source and exported Codex catalog
398
+
399
+ Current state after Story `7.7.6`:
400
+
401
+ - `@sinapse-orqx` greeting is recovered in Codex via `.codex/scripts/generate-codex-greeting.js`
402
+ - the expanded Codex catalog is explicit in `.codex/catalog.json`
403
+ - Codex local-first sync is isolated from the legacy multi-IDE sync pipeline
404
+ - Codex validators now validate the expanded contract instead of the 12-agent assumption
405
+ - remaining red status in `validate:parity` is outside Codex scope and currently comes from Claude sync plus compatibility-contract drift for other IDEs
406
+
407
+ ### Phase 3 - Commands, Skills, And Orchestration Parity
408
+
409
+ Objective:
410
+ Make Imperator and the squad orchestrators behave consistently in Codex.
411
+
412
+ Primary handoffs:
413
+
414
+ - `@sinapse-orqx` -> `@swarm-orqx` -> `@developer` -> `@quality-gate`
415
+
416
+ Exit criteria:
417
+
418
+ - commands matrix exists
419
+ - delegation matrix exists
420
+ - core orqx handoff smoke tests pass
421
+
422
+ ### Phase 4 - Workflow, Task, Story, And Epic Parity
423
+
424
+ Objective:
425
+ Bring the process rigor of stories, subtasks, checklists, and workflow chains into Codex operation.
426
+
427
+ Primary handoffs:
428
+
429
+ - `@product-lead` -> `@sprint-lead` -> `@sinapse-orqx` -> `@quality-gate`
430
+
431
+ Exit criteria:
432
+
433
+ - critical workflows exercised end-to-end
434
+ - story lifecycle in Codex respects constitution, handoffs, and validation
435
+
436
+ ### Phase 5 - MCP And Tooling Parity
437
+
438
+ Objective:
439
+ Make Codex MCP setup reproducible and dependable.
440
+
441
+ Primary handoffs:
442
+
443
+ - `@devops` -> `@claude-orqx` -> `@quality-gate`
444
+
445
+ Exit criteria:
446
+
447
+ - reproducible setup on a clean machine
448
+ - MCP health checks documented and passing
449
+ - fallback rules are explicit
450
+
451
+ ### Phase 6 - Hardening, CI, And Release Safety
452
+
453
+ Objective:
454
+ Prevent silent drift and make Codex parity safe to evolve.
455
+
456
+ Primary handoffs:
457
+
458
+ - `@devops` -> `@quality-gate` -> `@sinapse-orqx`
459
+
460
+ Exit criteria:
461
+
462
+ - Codex-only validation pipeline exists
463
+ - golden output checks exist for critical flows
464
+ - release checklist exists
465
+
466
+ ## Phase 1 Backlog
467
+
468
+ Phase 1 is the foundation phase. It should improve confidence and operator safety before deeper parity work begins.
469
+
470
+ ### Task 1.1 - Baseline And Boundaries
471
+
472
+ Goal:
473
+ Freeze the initial Codex parity contract and the non-regression rules.
474
+
475
+ Outputs:
476
+
477
+ - story
478
+ - parity program doc
479
+ - Codex-only boundary rules
480
+ - review protocol
481
+
482
+ Review focus:
483
+
484
+ - structural completeness
485
+ - shared-surface risk audit
486
+
487
+ ### Task 1.2 - Catalog Baseline Audit
488
+
489
+ Goal:
490
+ Map the real Codex catalog, its upstreams, and current drift.
491
+
492
+ Outputs:
493
+
494
+ - inventory of `.codex/agents`
495
+ - inventory of `.codex/skills`
496
+ - inventory of canonical sync sources
497
+ - gap matrix between exported Codex artifacts and official sync assumptions
498
+
499
+ Review focus:
500
+
501
+ - source-of-truth clarity
502
+ - export traceability
503
+
504
+ ### Task 1.3 - `sinapse-orqx` Activation Recovery
505
+
506
+ Goal:
507
+ Restore reliable Codex activation for Imperator with the smallest safe blast radius.
508
+
509
+ Preferred path:
510
+
511
+ - Codex-only fallback or wrapper first
512
+ - shared canonical repair only if required and proven safe
513
+
514
+ Success checks:
515
+
516
+ - `sinapse-orqx` greeting path works predictably for Codex
517
+ - fallback path is documented
518
+ - no `.claude/**` changes required
519
+
520
+ ### Task 1.4 - Full Orqx Skill Coverage
521
+
522
+ Goal:
523
+ Ensure every squad orchestrator and key framework agent is reachable in Codex through the intended activation paths.
524
+
525
+ Outputs:
526
+
527
+ - skill coverage matrix
528
+ - export rules for orqx and core agents
529
+ - clean local-first `.codex/skills` state
530
+
531
+ Success checks:
532
+
533
+ - no missing critical orqx skills
534
+ - no duplicate/confusing activation paths
535
+ - validator reflects intended Codex reality
536
+
537
+ ### Task 1.5 - Codex Validation Reset
538
+
539
+ Goal:
540
+ Make the Codex validation suite measure the right thing.
541
+
542
+ Outputs:
543
+
544
+ - corrected Codex validation assumptions
545
+ - smoke test contract for critical agents
546
+ - documented validation workflow
547
+
548
+ Success checks:
549
+
550
+ - validators no longer assume the full Codex catalog equals the 12-agent canonical subset
551
+ - validation errors point to real operator-impacting drift
552
+
553
+ ## Review Pairing Model
554
+
555
+ Each task should explicitly assign two review perspectives.
556
+
557
+ Recommended pairings:
558
+
559
+ - architecture + quality-gate
560
+ - claude-orqx + developer
561
+ - swarm-orqx + quality-gate
562
+ - devops + quality-gate
563
+
564
+ This keeps every task checked for both structure and practical operator parity.
565
+
566
+ ## Mandatory Gates Per Task
567
+
568
+ - Gate A: scope, blast radius, and rollback are documented
569
+ - Gate B: implementation stays inside approved surfaces
570
+ - Gate C: automatic validations for the task pass
571
+ - Gate D: structural review passes
572
+ - Gate E: parity and regression review passes
573
+ - Gate F: manual smoke test for the affected operator flow passes
574
+ - Gate G: handoff artifact for the next task is recorded
575
+
576
+ No task advances if any gate is red.
577
+
578
+ ## Mandatory Validation Set
579
+
580
+ The baseline validation suite for Codex parity is:
581
+
582
+ - `npm run validate:codex-sync`
583
+ - `npm run validate:codex-integration`
584
+ - `npm run validate:codex-skills`
585
+ - `npm run validate:paths`
586
+ - `npm run validate:parity`
587
+
588
+ Additional flow smoke tests should be run per task for:
589
+
590
+ - activation
591
+ - greeting
592
+ - handoff
593
+ - workflow execution
594
+ - MCP bootstrap
595
+ - fallback behavior
596
+
597
+ ## Cloud-Assisted Improvement Loop
598
+
599
+ The user also wants Claude/Cloud to help improve Codex safely.
600
+
601
+ Recommended loop:
602
+
603
+ 1. define a Codex parity task in story form
604
+ 2. implement in Codex-safe surfaces
605
+ 3. ask Claude/Cloud to audit the task against the reference experience
606
+ 4. import only validated recommendations
607
+ 5. re-run Codex validators and smoke tests
608
+
609
+ This allows Cloud/Claude to act as a reference system without making Cloud/Claude the execution target for Codex-specific changes.
610
+
611
+ ## Review Checklists
612
+
613
+ ### Review A: Structural
614
+
615
+ - Is the change confined to Codex-only surfaces where possible?
616
+ - Did we avoid creating a second hidden source of truth?
617
+ - Are generated artifacts traceable to a canonical upstream?
618
+ - Did we reduce drift rather than relocate it?
619
+
620
+ ### Review B: Parity And Regression
621
+
622
+ - Does this make Codex meaningfully closer to Cloud/Claude?
623
+ - Did we preserve existing Cloud/Claude semantics?
624
+ - Are there explicit validation steps for the new parity claim?
625
+ - Is the operator experience clear when Codex platform limits apply?
626
+
627
+ ## Non-Regression Policy
628
+
629
+ The following rules apply to every parity task:
630
+
631
+ - never edit `.claude/**` for a Codex-only improvement unless explicitly required
632
+ - never degrade an existing Claude/Cloud capability in exchange for Codex convenience
633
+ - never claim parity based only on docs; parity must be validated
634
+ - never let generated Codex artifacts outrun their documented source of truth
635
+
636
+ ## Definition Of Ready
637
+
638
+ A Codex parity task is ready to implement only when:
639
+
640
+ - the task has acceptance criteria
641
+ - affected surfaces are classified
642
+ - review expectations are explicit
643
+ - the no-regression check is defined
644
+
645
+ ## Definition Of Done
646
+
647
+ A Codex parity task is done only when:
648
+
649
+ - implementation is complete
650
+ - Review A passed
651
+ - Review B passed
652
+ - relevant validators and smoke checks passed
653
+ - docs/story checklist and file list are updated
654
+
655
+ ## Global Done Criteria
656
+
657
+ The overall Codex parity initiative is only considered successful when:
658
+
659
+ - the user can use the same agent names, orqx names, aliases, and practical activation patterns expected from Claude
660
+ - Imperator delegates and orchestrates predictably under the constitution
661
+ - the Codex catalog is regenerable and validated
662
+ - MCP setup is reproducible
663
+ - Claude/Cloud Code shows no functional regression caused by the initiative
664
+
665
+ ## Execution Artifacts
666
+
667
+ Execution planning for the next delivery wave is now formalized in:
668
+
669
+ - `docs/codex-total-parity-orchestration-plan.md`
670
+ - Story `7.7.8` for delegation and handoff parity