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,301 @@
1
+ # Codex Total Parity Orchestration Plan
2
+
3
+ ## Mission
4
+
5
+ Drive SINAPSE-AI in Codex to the closest practical equivalent of the Claude Code experience while preserving:
6
+
7
+ - the same squad and orqx names
8
+ - the same specialist naming model
9
+ - the same starred command surface
10
+ - the same skills entry points
11
+ - the same workflow/task availability
12
+ - the same MCP-backed capability model where Codex can support it
13
+
14
+ Hard constraint:
15
+
16
+ - no regression in `.claude/**`
17
+ - no speculative shared-runtime surgery
18
+ - prefer Codex-only compatibility layers until a shared change is provably required
19
+
20
+ ## Truth Constraint
21
+
22
+ Exact runtime identity with Claude Code is not mechanically achievable in every area because Codex does not expose the same lifecycle hooks.
23
+
24
+ The working target is therefore:
25
+
26
+ - exact naming parity
27
+ - exact command discoverability
28
+ - exact catalog availability
29
+ - exact practical workflow reachability
30
+ - equivalent operator outcomes for normal usage
31
+ - explicit Codex replacements wherever runtime parity is impossible
32
+
33
+ ## Current Baseline
34
+
35
+ Already in place:
36
+
37
+ - expanded Codex catalog in `.codex/catalog.json`
38
+ - local-first Codex skill/export path
39
+ - Codex greeting fallback for `sinapse-orqx`
40
+ - validated command/task registry for the core workflow agents
41
+ - Codex-only Imperator tasks for `onboard`, `route`, `plan`, `status`, `brief`, `resolve`, and `council`
42
+
43
+ Still missing for practical total parity:
44
+
45
+ - true delegation parity for orqx -> squad -> specialist execution
46
+ - full specialist routing contract across the expanded catalog
47
+ - Codex-ready MCP bootstrap and health verification
48
+ - golden-journey validation for end-to-end operator flows
49
+ - cross-IDE diffing between Codex outputs and Claude reference behavior
50
+
51
+ ## Phases
52
+
53
+ ### Phase 1 - Delegation Matrix Parity
54
+
55
+ Objective:
56
+ Make `sinapse-orqx` and the squad orqx delegate predictably in Codex using explicit, validator-backed handoff contracts.
57
+
58
+ Outputs:
59
+
60
+ - Codex delegation matrix
61
+ - handoff artifact format
62
+ - resolver-backed orqx -> workflow -> specialist routing rules
63
+ - smoke tests for the master workflow agents
64
+
65
+ Primary owner:
66
+
67
+ - `@swarm-orqx`
68
+
69
+ Supporting handoffs:
70
+
71
+ - `@sinapse-orqx` -> orchestration priorities and final routing policy
72
+ - `@architect` -> Codex-only versus shared-surface boundary
73
+ - `@developer` -> delegation artifacts and resolver/runtime glue
74
+ - `@quality-gate` -> parity and regression review
75
+
76
+ Exit criteria:
77
+
78
+ - Codex can route from `sinapse-orqx` to the correct orqx and workflow path without manual file hunting
79
+ - direct specialist routing rules are explicit and validated where supported
80
+ - unsupported delegation paths degrade clearly instead of silently failing
81
+
82
+ ### Phase 2 - Specialist Activation Parity
83
+
84
+ Objective:
85
+ Close the gap between the expanded `.codex/agents` catalog and the practical activation surface available to Codex operators.
86
+
87
+ Outputs:
88
+
89
+ - specialist coverage matrix
90
+ - specialist activation rules by squad
91
+ - explicit fallback policy for specialists without validator-backed execution paths
92
+
93
+ Primary owner:
94
+
95
+ - `@architect`
96
+
97
+ Supporting handoffs:
98
+
99
+ - `@brand-orqx`, `@content-orqx`, `@copy-orqx`, `@research-orqx`, `@product-orqx`, `@design-orqx`, `@animations-orqx`, `@cyber-orqx`, `@finance-orqx`, `@paidmedia-orqx`, `@growth-orqx`, `@commercial-orqx`, `@courses-orqx`, `@cloning-orqx`, `@storytelling-orqx`, `@council-orqx`, `@claude-orqx`
100
+
101
+ Exit criteria:
102
+
103
+ - same orqx names and specialist names are cataloged and callable in Codex
104
+ - each specialist is classified as `validated`, `exploratory`, or `blocked-by-runtime`
105
+ - no hidden source-of-truth split remains between catalog, skills, and routing docs
106
+
107
+ ### Phase 3 - Workflow Chain Parity
108
+
109
+ Objective:
110
+ Make stories, epics, subtasks, checklists, and quality gates execute in Codex with the same practical chain available in Claude.
111
+
112
+ Outputs:
113
+
114
+ - story lifecycle matrix
115
+ - epic workflow matrix
116
+ - subtask and QA handoff rules
117
+ - golden-path walkthroughs for PM -> PO -> SM -> Dev -> QA
118
+
119
+ Primary owner:
120
+
121
+ - `@product-orqx`
122
+
123
+ Supporting handoffs:
124
+
125
+ - `@project-lead`
126
+ - `@product-lead`
127
+ - `@sprint-lead`
128
+ - `@developer`
129
+ - `@quality-gate`
130
+
131
+ Exit criteria:
132
+
133
+ - the core delivery loop is validator-backed end-to-end
134
+ - command mappings and handoff artifacts stay aligned with operator-visible commands
135
+ - no critical workflow step requires guessing repository paths
136
+
137
+ ### Phase 4 - MCP Parity
138
+
139
+ Objective:
140
+ Make Codex MCP setup reproducible and equivalent enough for normal SINAPSE operation.
141
+
142
+ Outputs:
143
+
144
+ - project-level `.mcp.json`
145
+ - Codex bootstrap guide for `sinapse mcp setup` and `sinapse mcp link`
146
+ - minimal/full presets
147
+ - MCP health validator and smoke checks
148
+
149
+ Primary owner:
150
+
151
+ - `@claude-orqx`
152
+
153
+ Supporting handoffs:
154
+
155
+ - `@devops`
156
+ - `@developer`
157
+ - `@quality-gate`
158
+
159
+ Exit criteria:
160
+
161
+ - a clean Codex environment can be bootstrapped repeatably
162
+ - required MCPs are classified as `required`, `recommended`, or `optional`
163
+ - missing MCPs fail loudly with fallback guidance
164
+
165
+ ### Phase 5 - Golden Journey And Diff Parity
166
+
167
+ Objective:
168
+ Prove parity claims with repeatable, operator-facing journeys and Claude/Codex output comparison.
169
+
170
+ Outputs:
171
+
172
+ - golden journeys for activation, routing, planning, delegation, workflow execution, and MCP usage
173
+ - Codex vs Claude comparison rubric
174
+ - release-safe parity checklist
175
+
176
+ Primary owner:
177
+
178
+ - `@quality-gate`
179
+
180
+ Supporting handoffs:
181
+
182
+ - `@claude-orqx`
183
+ - `@swarm-orqx`
184
+ - `@analyst`
185
+ - `@devops`
186
+
187
+ Exit criteria:
188
+
189
+ - Codex parity is measured by outcome, not just by docs or file presence
190
+ - gaps are categorized as `fixed`, `Codex-limited but compensated`, or `still blocked`
191
+
192
+ ## Handoff Matrix
193
+
194
+ | From | To | Purpose | Artifact |
195
+ |------|----|---------|----------|
196
+ | `@sinapse-orqx` | `@swarm-orqx` | Define delegation topology and handoff protocol | delegation matrix |
197
+ | `@sinapse-orqx` | `@architect` | Approve Codex-only vs shared boundary per phase | boundary decision log |
198
+ | `@sinapse-orqx` | `@claude-orqx` | Map Claude-only runtime behaviors to Codex-compatible replacements | parity gap map |
199
+ | `@sinapse-orqx` | `@product-orqx` | Sequence work into stories, phases, and acceptance criteria | phased delivery plan |
200
+ | `@swarm-orqx` | `@developer` | Implement Codex handoff artifacts, resolvers, and routing helpers | code/doc patches |
201
+ | `@architect` | `@developer` | Keep implementation inside safe surfaces | architecture constraints |
202
+ | `@claude-orqx` | `@developer` | Provide exact naming/behavior parity targets from Claude | reference behavior notes |
203
+ | `@developer` | `@devops` | Add validators, smoke checks, and release-safe guardrails | validation scripts |
204
+ | `@developer` | `@quality-gate` | Request structural and parity review | review findings |
205
+ | `@devops` | `@quality-gate` | Verify CI/release safety of the Codex layer | gate verdict |
206
+ | `@quality-gate` | `@sinapse-orqx` | Approve or bounce the phase based on parity evidence | phase gate decision |
207
+
208
+ ## Lowest-Blast-Radius Sequence
209
+
210
+ 1. Story `7.7.8`: Delegation matrix and handoff artifact contract
211
+ 2. Story `7.7.9`: Specialist coverage classification and activation matrix
212
+ 3. Story `7.7.10`: Orqx delegation resolver and handoff smoke tests
213
+ 4. Story `7.7.11`: MCP bootstrap parity for Codex
214
+ 5. Story `7.7.12`: Golden journey suite and Codex-vs-Claude diff rubric
215
+
216
+ Rationale:
217
+
218
+ - start with routing contracts before runtime mechanics
219
+ - classify catalog reality before promising specialist parity
220
+ - delay MCP and cross-IDE assertions until the delegation surface is stable
221
+ - preserve the option to stop at a clean Codex-only layer if a shared change becomes too risky
222
+
223
+ ## Handoff Packet Standard
224
+
225
+ Every execution slice in this plan should move with the same handoff packet so the orqx can delegate consistently in Codex.
226
+
227
+ Required fields:
228
+
229
+ 1. `mission`
230
+ 2. `phase`
231
+ 3. `owner`
232
+ 4. `inputs`
233
+ 5. `outputs`
234
+ 6. `validators`
235
+ 7. `shared-surface-risk`
236
+ 8. `next-handoff`
237
+
238
+ This keeps delegation explicit, reviewable, and validator-friendly even where Codex lacks Claude-style lifecycle hooks.
239
+
240
+ ## Risks And Mitigations
241
+
242
+ ### Risk 1 - Shared Runtime Pressure
243
+
244
+ Risk:
245
+ Pursuing exact parity may tempt changes in `.sinapse-ai/development/**` or `.claude/**` before the Codex-only layer is exhausted.
246
+
247
+ Mitigation:
248
+
249
+ - require an explicit "Codex-only path exhausted" note before any shared change
250
+ - force Review A + Review B before touching shared surfaces
251
+
252
+ ### Risk 2 - Catalog/Skill Drift
253
+
254
+ Risk:
255
+ Expanded `.codex/agents`, `.codex/skills`, and command/delegation registries can drift apart.
256
+
257
+ Mitigation:
258
+
259
+ - keep one explicit Codex catalog
260
+ - extend validators to cover delegation and specialist classification
261
+
262
+ ### Risk 3 - False Parity Claims
263
+
264
+ Risk:
265
+ Docs and registry may look complete while real operator journeys still fail.
266
+
267
+ Mitigation:
268
+
269
+ - add golden journeys
270
+ - gate claims on smoke tests and comparison rubrics, not only on file existence
271
+
272
+ ### Risk 4 - MCP Fragility
273
+
274
+ Risk:
275
+ Codex parity may remain partial if MCP bootstrap is manual or inconsistent.
276
+
277
+ Mitigation:
278
+
279
+ - define required MCP presets
280
+ - validate health at the project level and in user guidance
281
+
282
+ ### Risk 5 - Story Tracking Drift
283
+
284
+ Risk:
285
+ `docs/stories/` is currently git-ignored, which weakens long-term traceability of story artifacts.
286
+
287
+ Mitigation:
288
+
289
+ - keep the tracked plan in `docs/`
290
+ - treat the story file as workspace process support until story tracking policy is revisited
291
+
292
+ ## Done Condition
293
+
294
+ This initiative is only "100% pronto" for practical Codex use when all of the following are true:
295
+
296
+ - all required orqx names, aliases, and skills are available in Codex
297
+ - the master workflow agents resolve commands deterministically
298
+ - orqx -> squad -> specialist handoffs are explicit and validated where supported
299
+ - MCP bootstrap is reproducible
300
+ - golden journeys pass
301
+ - remaining gaps are only true Codex platform limits with explicit compensating behavior
@@ -0,0 +1,87 @@
1
+ # Codex Workflow And Task Parity
2
+
3
+ ## Goal
4
+
5
+ Make the core SINAPSE workflow commands in Codex resolve to concrete repository artifacts without manual file hunting.
6
+
7
+ ## Command Registry
8
+
9
+ The Codex workflow bridge now lives in:
10
+
11
+ - `.codex/command-registry.json`
12
+
13
+ This registry is the Codex-only contract for the critical workflow path:
14
+
15
+ - `sinapse-orqx`
16
+ - `sinapse-pm`
17
+ - `sinapse-po`
18
+ - `sinapse-sm`
19
+ - `sinapse-dev`
20
+ - `sinapse-qa`
21
+
22
+ For each agent, it maps:
23
+
24
+ - command
25
+ - command aliases
26
+ - target task or Codex-only task
27
+ - supporting resources
28
+ - source reference used for parity
29
+
30
+ ## Resolver
31
+
32
+ Use the resolver to inspect a command before executing it:
33
+
34
+ ```bash
35
+ node .codex/scripts/resolve-codex-command.js sinapse-dev develop
36
+ node .codex/scripts/resolve-codex-command.js sinapse-sm draft --json
37
+ node .codex/scripts/resolve-codex-command.js sinapse-orqx onboard
38
+ ```
39
+
40
+ This is especially useful in Codex when a command exists in the agent persona but the execution path is spread across tasks, checklists, templates, and workflows.
41
+
42
+ ## Covered Flow
43
+
44
+ Critical workflow coverage now includes:
45
+
46
+ - Imperator: `onboard`, `route`, `plan`, `status`, `brief`, `resolve`, `council`
47
+ - PM: `create-prd`, `create-brownfield-prd`, `create-epic`, `create-story`, `research`, `execute-epic`, `gather-requirements`, `write-spec`, `shard-prd`
48
+ - PO: `validate-story`, `validate-story-draft`, `backlog-review`, `backlog-prioritize`, `backlog-schedule`, `close-story`, `execute-checklist-po`, `sync-story`, `pull-story`, `stories-index`
49
+ - SM: `draft`, `story-checklist`
50
+ - Developer: `develop`, `run-tests`, `apply-qa-fixes`, `execute-subtask`, `verify-subtask`, `backlog-debt`, build commands
51
+ - QA: `review`/`review-story`/`code-review`, `gate`, `review-build`, `create-fix-request`, `test-design`, `run-tests`, `nfr-assess`, `validate-libraries`, `security-check`, `validate-migrations`, `evidence-check`, `false-positive-check`, `console-check`
52
+
53
+ ## Validation
54
+
55
+ The registry is enforced by:
56
+
57
+ - `npm run validate:codex-commands`
58
+ - `npm run validate:codex-sync`
59
+
60
+ The validator checks that:
61
+
62
+ - the registry exists and parses
63
+ - each mapped agent points to a real Codex skill
64
+ - each mapped target exists
65
+ - each declared resource exists
66
+ - the critical workflow agents keep their minimum required command coverage
67
+ - agent aliases and in-agent command aliases do not collide
68
+
69
+ ## Imperator Tasks
70
+
71
+ Because the shared `sinapse-orqx` runtime is still partially broken upstream, Codex now has explicit local tasks for:
72
+
73
+ - `.codex/tasks/onboard-sinapse-codex.md`
74
+ - `.codex/tasks/route-sinapse-request.md`
75
+ - `.codex/tasks/plan-sinapse-initiative.md`
76
+ - `.codex/tasks/status-sinapse-capabilities.md`
77
+ - `.codex/tasks/create-sinapse-strategic-brief.md`
78
+ - `.codex/tasks/resolve-sinapse-conflict.md`
79
+ - `.codex/tasks/convene-sinapse-council.md`
80
+
81
+ These keep the workflow Codex-only and avoid risky shared-runtime edits.
82
+
83
+ ## Current Limit
84
+
85
+ This layer solves deterministic command discovery and routing for the critical workflow path.
86
+ It does not yet provide full specialist coverage across all 178 agents, and it does not replace MCP parity.
87
+ Direct specialist routing from `.codex/agents` should still be treated as exploratory unless the path is covered by the command registry and its validators.
@@ -0,0 +1,243 @@
1
+ # SINAPSE Collaboration Autonomy Plan
2
+
3
+ **Date:** 2026-04-02
4
+ **Author:** @sinapse-orqx
5
+ **Status:** Approved with scope reduction
6
+ **Decision Type:** Orchestration plan
7
+
8
+ ---
9
+
10
+ ## Executive Decision
11
+
12
+ The previous "safe collaboration" suggestions should be **partially approved**, not adopted wholesale.
13
+
14
+ ### Approved now
15
+
16
+ - Standardize how Caio and Soier work in parallel inside the same repository
17
+ - Create a clear contributor operating model for framework changes
18
+ - Define which changes Soier can make autonomously without waiting for Caio
19
+ - Reuse the existing SINAPSE infrastructure already present in the repository
20
+
21
+ ### Not approved now
22
+
23
+ - Turning `safe-collab` into a universal template product for all repositories
24
+ - Investing first in cross-platform bootstrap polish for the template
25
+ - Building a dedicated test suite for the reusable template before the internal workflow is stable
26
+ - Enabling automation flags that are not yet proven in the current operating model
27
+
28
+ ---
29
+
30
+ ## Critical Assessment
31
+
32
+ The core need is **not only Git safety**.
33
+
34
+ The real requirement is:
35
+
36
+ 1. Caio and Soier must be able to work in sync without overwriting each other.
37
+ 2. Soier must be able to add framework features without depending on Caio to explain where things go or how to wire them in.
38
+
39
+ The repository already contains strong building blocks for this:
40
+
41
+ - Safe collaboration rule: `.claude/rules/safe-collaboration.md`
42
+ - Reusable safe-collab template: `.sinapse-ai/infrastructure/templates/safe-collab/`
43
+ - Human parallel guide: `docs/guides/parallel-workflow.md`
44
+ - Worktree isolation: `.sinapse-ai/infrastructure/scripts/worktree-manager.js`
45
+ - Component creation scaffolding: `.sinapse-ai/core/docs/component-creation-guide.md`
46
+ - Source tree standard: `docs/framework/source-tree.md`
47
+ - Contributor mode already enabled: `.sinapse-ai/core-config.yaml` with `boundary.frameworkProtection: false`
48
+
49
+ This means the framework is **not missing raw capability**.
50
+
51
+ What is missing is a **single operating model** that tells a collaborator:
52
+
53
+ - where they can move fast alone
54
+ - when they must coordinate
55
+ - which commands and sync steps are mandatory
56
+ - how to hand work off safely
57
+
58
+ ---
59
+
60
+ ## Why Scope Reduction Is Correct
61
+
62
+ If the team prioritizes generic template hardening first, it will improve portability but **not solve the immediate bottleneck**: Soier still may not know when a framework change is autonomous, coordinated, or blocked.
63
+
64
+ If the team prioritizes contributor autonomy first, the outcome is immediately useful inside the active repository and can later be extracted into a stronger reusable template.
65
+
66
+ Therefore the correct order is:
67
+
68
+ 1. Fix the operating model inside `sinapse-ai`
69
+ 2. Prove it with Caio + Soier
70
+ 3. Only then generalize it into the reusable template
71
+
72
+ ---
73
+
74
+ ## Real Gaps To Solve
75
+
76
+ ### Gap 1: Divergent branch strategy
77
+
78
+ There are two branch models in the repository context:
79
+
80
+ - Safe collaboration rule suggests human prefixes like `caio/feat/...` and `soier/fix/...`
81
+ - Worktree infrastructure currently creates `auto-claude/{storyId}`
82
+
83
+ This divergence creates ambiguity and weakens adoption.
84
+
85
+ ### Gap 2: Contributor autonomy is implicit, not explicit
86
+
87
+ The repo has generators, tasks, workflows, and standards, but there is no short operational guide saying:
88
+
89
+ - "Soier can do these classes of framework changes alone"
90
+ - "These paths require coordination first"
91
+ - "After this type of change, run these sync commands"
92
+
93
+ ### Gap 3: Current session behavior does not match the intended safe model
94
+
95
+ The current repository state is still on `main` with local modifications, which shows the desired collaboration protocol is not yet the lived default.
96
+
97
+ ### Gap 4: Reviewer automation exists in principle, but not in default config
98
+
99
+ Reviewer auto-assignment is documented, but `auto_assign_reviewers` is still `false` in the current config.
100
+
101
+ ---
102
+
103
+ ## Orchestration Objective
104
+
105
+ Create a **framework contributor mode** for Caio and Soier with these outcomes:
106
+
107
+ - Soier can add supported framework features end-to-end without waiting for Caio
108
+ - Git collisions are minimized by isolation plus coordination rules
109
+ - Core-risk edits are routed through a tighter review path
110
+ - Sync steps are deterministic for agent, workflow, template, and manifest changes
111
+
112
+ ---
113
+
114
+ ## Orchestration Plan
115
+
116
+ ## Phase 1: Normalize the collaboration operating model
117
+
118
+ **Lead:** @sinapse-orqx
119
+ **Execution:** @architect + @developer + @devops
120
+ **Goal:** define a single way of working for framework contributors
121
+
122
+ ### Deliverables
123
+
124
+ - A contributor guide specific to framework work
125
+ - Explicit change lanes: autonomous, coordinated, protected
126
+ - A temporary rule for resolving the current branch/worktree strategy mismatch
127
+ - A mandatory sync matrix for common change types
128
+
129
+ ### Exit Criteria
130
+
131
+ - Caio and Soier can classify any proposed change in under 1 minute
132
+ - Both know whether they can proceed alone or need coordination
133
+ - No feature work starts directly on `main`
134
+
135
+ ---
136
+
137
+ ## Phase 2: Establish self-service feature lanes
138
+
139
+ **Lead:** @architect
140
+ **Execution:** @developer + @quality-gate
141
+ **Goal:** make supported framework changes easy to add without tribal knowledge
142
+
143
+ ### Autonomous Lane
144
+
145
+ Changes Soier should be able to make without waiting for Caio, as long as the story and quality gates are respected:
146
+
147
+ - new or updated agent definitions
148
+ - new or updated tasks
149
+ - new or updated workflows
150
+ - new or updated templates and checklists
151
+ - documentation for supported framework capabilities
152
+ - squad-level extensions that use existing conventions
153
+
154
+ ### Coordinated Lane
155
+
156
+ Changes that should require alignment before implementation:
157
+
158
+ - `.sinapse-ai/core/**`
159
+ - `.sinapse-ai/infrastructure/**`
160
+ - `bin/**`
161
+ - `.sinapse-ai/constitution.md`
162
+ - package/release/versioning behavior
163
+ - hook behavior and Git enforcement logic
164
+
165
+ ### Protected Lane
166
+
167
+ Changes that should stay under explicit authority:
168
+
169
+ - remote push and PR merge authority
170
+ - branch protection and release flow
171
+ - destructive Git operations
172
+
173
+ ### Exit Criteria
174
+
175
+ - Soier can add a framework feature from story to PR inside the Autonomous Lane without asking where things belong
176
+ - Coordinated Lane is clearly documented and followed
177
+
178
+ ---
179
+
180
+ ## Phase 3: Harden only the pieces that unblock the team
181
+
182
+ **Lead:** @devops
183
+ **Execution:** @developer + @quality-gate
184
+ **Goal:** implement only the automation hardening that materially reduces team friction now
185
+
186
+ ### Recommended hardening now
187
+
188
+ - enforce "no work on main" as team habit and documented rule
189
+ - make reviewer routing explicit for Caio/Soier handoff
190
+ - standardize when to use worktrees versus plain feature branches
191
+ - ensure manifest and sync steps are part of the contribution workflow
192
+
193
+ ### Hardening to defer
194
+
195
+ - full productization of the safe-collab template
196
+ - universal GitHub ruleset automation
197
+ - template-specific automated test suite
198
+ - broader cross-project portability work
199
+
200
+ ### Exit Criteria
201
+
202
+ - daily collaboration no longer depends on ad hoc verbal coordination
203
+ - PR handoff between Caio and Soier is predictable
204
+ - no accidental drift in agent/config sync for framework changes
205
+
206
+ ---
207
+
208
+ ## Proposed Routing
209
+
210
+ ### Strategic routing
211
+
212
+ - `@sinapse-orqx`: orchestration, policy, lane design
213
+ - `@architect`: define change boundaries and supported extension surfaces
214
+ - `@developer`: implement contributor docs and any supporting workflow changes
215
+ - `@quality-gate`: validate that the operating model is enforceable and testable
216
+ - `@devops`: own reviewer routing, branch/PR discipline, and release-safe collaboration
217
+
218
+ ---
219
+
220
+ ## Success Metrics
221
+
222
+ - Soier can independently ship a framework feature inside the Autonomous Lane
223
+ - Fewer edits start on `main`
224
+ - Fewer handoffs depend on Caio explaining structure manually
225
+ - Reduced accidental omissions in `sync:ide`, skills sync, and manifest updates
226
+ - PR review becomes the coordination point instead of synchronous chat
227
+
228
+ ---
229
+
230
+ ## Immediate Recommendation
231
+
232
+ Approve the initiative, but with this narrowed scope:
233
+
234
+ **Do not start by polishing the generic safe-collab template.**
235
+
236
+ Start by formalizing the contributor operating model inside `sinapse-ai`, because that is the shortest path to real autonomy for Soier and safe parallel optimization for both of you.
237
+
238
+ ---
239
+
240
+ ## Next Artifacts
241
+
242
+ - `docs/guides/framework-contributor-mode.md`
243
+ - optional follow-up story to operationalize the highest-value automation gaps after the guide is proven in use