sagaz-ai 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1] - 2026-06-11
4
+
5
+ ### Release Type
6
+
7
+ Patch
8
+
9
+ ### Added
10
+
11
+ - Sagaz adoption guide for first use in another project, team onboarding, invocation prompts, cross-platform notes, permission model, and evidence expectations.
12
+
13
+ ### Changed
14
+
15
+ - README, ecosystem README, INDEX, manifest, and package verifier now register the adoption guide as an official ecosystem document.
16
+
17
+ ### Fixed
18
+
19
+ - None.
20
+
21
+ ### Removed
22
+
23
+ - None.
24
+
25
+ ### Security
26
+
27
+ - No security changes.
28
+
29
+ ### Compatibility
30
+
31
+ - Windows: supported through Codex Desktop.
32
+ - macOS: supported through Codex Desktop.
33
+ - Node.js: package baseline remains `>=22.14`; Node.js 24 is preferred for new installs and CI.
34
+ - Codex Desktop: Sagaz remains a Codex Desktop orchestration skill, not a standalone terminal agent runtime.
35
+
36
+ ### Migration Notes
37
+
38
+ - Existing users should run `npx sagaz-ai@0.3.1 sync` or `npx sagaz-ai sync` to refresh the installed Codex Desktop skill.
39
+ - Open a new Codex Desktop thread after syncing so the updated skill can be discovered.
40
+
41
+ ### Verification
42
+
43
+ - npm test: passed locally on Windows.
44
+ - npm run doctor: passed locally on Windows with `Synchronized with source: yes`.
45
+ - npm pack --dry-run: passed locally on Windows after allowing npm cache access outside the sandbox.
46
+ - Windows: prepared from a Windows Codex Desktop workspace.
47
+ - macOS: package checks remain covered by GitHub Actions.
48
+ - Codex Desktop: skill sync remains required after install or upgrade.
49
+
50
+ ### Release Evidence
51
+
52
+ - Commit: pending.
53
+ - Tag: pending.
54
+ - GitHub release: pending.
55
+ - npm package: pending.
56
+
3
57
  ## [0.3.0] - 2026-06-11
4
58
 
5
59
  ### Release Type
package/README.md CHANGED
@@ -168,6 +168,14 @@ Then open a new Codex Desktop thread and run:
168
168
  Sagaz: explain the available workflows.
169
169
  ```
170
170
 
171
+ For the first real use in another project, start with:
172
+
173
+ ```text
174
+ Sagaz: audit this project and tell me what workflow, stack playbook, risks, tests, and next implementation step you recommend. Do not change files yet.
175
+ ```
176
+
177
+ The detailed adoption guide lives at `ai-orchestration-ecosystem/ADOPTION.md`.
178
+
171
179
  ### Manual Installation
172
180
 
173
181
  #### 1. Clone Or Download The Repository
package/RELEASE_NOTES.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  ## Release
4
4
 
5
- Version: 0.3.0
5
+ Version: 0.3.1
6
6
  Date: 2026-06-11
7
- Release type: Minor
7
+ Release type: Patch
8
8
  GitHub commit: pending
9
9
  Git tag: pending
10
10
  GitHub release: pending
@@ -12,38 +12,32 @@ npm package: pending
12
12
 
13
13
  ## Summary
14
14
 
15
- Sagaz 0.3.0 completes the main non-CLI governance layer for Codex Desktop orchestration. It adds operational runbooks, complete scenario examples, a capabilities matrix, formal permission policy, stack playbooks, execution trace evidence, and MCP connector governance.
15
+ Sagaz 0.3.1 adds the official adoption guide for using Sagaz in another project after installation. It documents the first-use flow, team operating model, invocation prompts, Windows/macOS notes, permission expectations, and evidence artifacts.
16
16
 
17
17
  ## Audience Impact
18
18
 
19
- - New users: clearer operating model, examples, stack guidance, and permission expectations before using Sagaz.
20
- - Existing users: should refresh the installed skill with `npx sagaz-ai sync`.
21
- - Maintainers: stronger package checks now catch stack playbook, observability, permission, and connector-policy drift.
22
- - Design team: Figma MCP usage is governed as a formal connector workflow for app-like mockups and design artifacts.
23
- - Engineering team: workflow evidence now includes traceable commands, decisions, failures, permissions, and handoffs.
19
+ - New users: clearer first real step after installing Sagaz.
20
+ - Existing users: can sync the installed skill and follow the adoption guide from a fresh Codex Desktop thread.
21
+ - Teams: get a practical onboarding path before applying Sagaz to production work.
22
+ - Maintainers: package validation now tracks the adoption guide in the ecosystem manifest.
24
23
 
25
24
  ## What Changed
26
25
 
27
- - Added an operations runbook for everyday Sagaz use.
28
- - Added complete examples for common delivery scenarios.
29
- - Added a capabilities matrix against other orchestration ecosystems.
30
- - Added a formal permission contract for Windows and macOS Codex Desktop usage.
31
- - Added stack-specific playbooks.
32
- - Added an execution trace template and stronger observability protocol.
33
- - Added MCP connector policy across design, deploy, package, data, browser, and AI providers.
34
- - Expanded package verification to enforce the new governance files.
26
+ - Added `ai-orchestration-ecosystem/ADOPTION.md`.
27
+ - Linked the adoption guide from the root README, ecosystem README, and ecosystem INDEX.
28
+ - Registered the adoption guide in `manifest.json`.
29
+ - Updated package verification so the docs group validates the new guide.
35
30
 
36
31
  ## Why It Matters
37
32
 
38
- Sagaz now has clearer rules for how agents should choose tools, request permission, preserve workflow state, hand off work, verify stack-specific outcomes, and operate MCP connectors without drifting into ad hoc behavior.
33
+ After `0.3.0`, Sagaz had strong governance but needed a direct bridge between installation and first use in a real project. This patch gives teams a safe starting prompt, explains what Sagaz should inspect first, and reinforces permission gates before risky actions.
39
34
 
40
35
  ## Compatibility
41
36
 
42
- - Windows: supported and locally verified from a Codex Desktop workspace.
43
- - macOS: supported through Codex Desktop and GitHub Actions runner validation.
37
+ - Windows: supported through Codex Desktop.
38
+ - macOS: supported through Codex Desktop.
44
39
  - Node.js: `>=22.14` remains the package minimum; Node.js 24 is preferred for new installs and CI.
45
40
  - Codex Desktop: required.
46
- - GitHub Actions: package checks run on Ubuntu, Windows, and macOS.
47
41
  - npm package: still an installer/distribution package, not a standalone Sagaz runtime.
48
42
 
49
43
  ## Migration Notes
@@ -51,7 +45,7 @@ Sagaz now has clearer rules for how agents should choose tools, request permissi
51
45
  Run:
52
46
 
53
47
  ```bash
54
- npx sagaz-ai@0.3.0 sync
48
+ npx sagaz-ai@0.3.1 sync
55
49
  npx sagaz-ai doctor
56
50
  ```
57
51
 
@@ -62,12 +56,11 @@ Then open a new Codex Desktop thread so Sagaz is rediscovered.
62
56
  - `npm test`: passed locally on Windows.
63
57
  - `npm run doctor`: passed locally on Windows with installed skill synchronization confirmed.
64
58
  - `npm pack --dry-run`: passed locally on Windows after npm cache access was allowed outside the sandbox.
65
- - Manual checks: Git status reviewed before release preparation.
59
+ - Manual checks: adoption guide linked from README, INDEX, and manifest.
66
60
 
67
61
  ## Known Limitations
68
62
 
69
63
  - Sagaz still intentionally skips a standalone CLI runtime; Codex Desktop remains the execution surface.
70
- - GitHub release and npm publishing remain explicit approval steps.
71
64
  - Connector behavior depends on each external MCP/app authorization and platform availability.
72
65
 
73
66
  ## Rollback Plan
@@ -0,0 +1,178 @@
1
+ # Sagaz Adoption Guide
2
+
3
+ Use this guide when starting Sagaz in another project or onboarding a team to Sagaz inside Codex Desktop.
4
+
5
+ ## Purpose
6
+
7
+ This guide gives a practical first-use path for teams that want Sagaz to orchestrate product, design, implementation, verification, GitHub operations, and release readiness in an existing or new project.
8
+
9
+ It assumes Sagaz is already installed with `npx sagaz-ai install` or `npx sagaz-ai sync`.
10
+
11
+ ## Requirements
12
+
13
+ - Codex Desktop on Windows or macOS.
14
+ - Node.js `22.14+`; Node.js 24 LTS is preferred.
15
+ - npm available in the terminal.
16
+ - Git installed when the project is version controlled.
17
+ - GitHub CLI (`gh`) when Sagaz should create branches, pull requests, issues, releases, or inspect checks.
18
+ - Project-specific tools already installed or approved for installation, such as `pnpm`, `yarn`, `bun`, Expo/EAS, Android Studio, Xcode, Supabase CLI, Firebase CLI, Vercel CLI, or test browsers.
19
+
20
+ Before starting a real project, run:
21
+
22
+ ```bash
23
+ npx sagaz-ai doctor
24
+ ```
25
+
26
+ If the installed skill is out of sync, run:
27
+
28
+ ```bash
29
+ npx sagaz-ai sync
30
+ ```
31
+
32
+ Then open a new Codex Desktop thread so the refreshed skill is discovered.
33
+
34
+ ## First Use In Another Project
35
+
36
+ 1. Open the target project folder in Codex Desktop.
37
+ 2. Start a new thread after installing or syncing Sagaz.
38
+ 3. Invoke Sagaz with a direct goal and any known constraints.
39
+ 4. Let Sagaz inspect the project before making changes.
40
+ 5. Approve each major handoff, external operation, dependency install, GitHub operation, deployment, package publish, or destructive action.
41
+ 6. Keep the final handoff and run-state artifacts inside the project when the work is meaningful or long-lived.
42
+
43
+ ## Invocation Pattern
44
+
45
+ Use `Sagaz:` at the beginning of the message.
46
+
47
+ For a new product:
48
+
49
+ ```text
50
+ Sagaz: create a production-ready web SaaS for appointment scheduling.
51
+
52
+ Requirements:
53
+ - user login
54
+ - calendar scheduling
55
+ - admin dashboard
56
+ - premium but practical UI
57
+ - deployment on Vercel
58
+ - GitHub release flow
59
+ ```
60
+
61
+ For an existing project:
62
+
63
+ ```text
64
+ Sagaz: inspect this project and prepare a safe implementation plan before changing code.
65
+
66
+ Goal:
67
+ - add subscription billing
68
+ - preserve the current UX
69
+ - use the existing stack when reasonable
70
+ - include tests and deployment notes
71
+ ```
72
+
73
+ For a bug:
74
+
75
+ ```text
76
+ Sagaz: diagnose and fix the production checkout failure.
77
+
78
+ Rules:
79
+ - identify likely root cause first
80
+ - make the smallest safe fix
81
+ - run focused tests
82
+ - prepare a release handoff
83
+ ```
84
+
85
+ For design work with Figma MCP:
86
+
87
+ ```text
88
+ Sagaz: coordinate the design team using Figma MCP to create app-like mockups that can be inspected as real application flows.
89
+
90
+ Include:
91
+ - target users
92
+ - main screens
93
+ - component states
94
+ - interaction notes
95
+ - visual QA checklist
96
+ ```
97
+
98
+ ## Recommended First Response From Sagaz
99
+
100
+ Sagaz should respond with:
101
+
102
+ - The selected workflow.
103
+ - The selected squad or agents.
104
+ - The assumptions it is making.
105
+ - The files, commands, or connectors it needs to inspect.
106
+ - The permission level required for the next step.
107
+ - The expected first handoff artifact.
108
+
109
+ Sagaz should avoid starting large implementation work before it understands the project structure, stack, risks, and definition of done.
110
+
111
+ ## Team Operating Model
112
+
113
+ Use this rhythm for team adoption:
114
+
115
+ 1. Product confirms objective, users, constraints, and definition of done.
116
+ 2. Technology confirms stack, architecture, dependencies, and operating costs.
117
+ 3. Design confirms UX, UI system, accessibility, responsiveness, and visual QA expectations.
118
+ 4. Engineering implements in small verifiable steps.
119
+ 5. QA verifies behavior, regressions, accessibility, build, and deployment readiness.
120
+ 6. GitHub Ops prepares commit, branch, pull request, checks, release notes, tag, and release when approved.
121
+ 7. The final handoff records evidence, residual risk, rollback plan, and next recommended work.
122
+
123
+ ## Cross-Platform Notes
124
+
125
+ Sagaz should treat Windows and macOS as first-class Codex Desktop environments.
126
+
127
+ - Prefer commands that work in the user's current shell.
128
+ - Use PowerShell syntax on Windows and POSIX shell syntax on macOS.
129
+ - Record when a command or dependency is platform-specific.
130
+ - Verify path examples before presenting them.
131
+ - Do not assume Linux-only tooling unless the project or CI requires it.
132
+
133
+ ## Permission Model
134
+
135
+ Sagaz follows `protocols/permission-contract.md`.
136
+
137
+ Low-risk inspection can usually proceed directly. These actions require explicit approval:
138
+
139
+ - Installing dependencies.
140
+ - Writing or deleting files when implementation has not been clearly authorized.
141
+ - Running commands that access networked registries or external services.
142
+ - Creating, pushing, tagging, or releasing in GitHub.
143
+ - Deploying to hosting providers.
144
+ - Publishing packages.
145
+ - Handling secrets, credentials, production data, billing, or destructive operations.
146
+
147
+ ## Evidence To Keep
148
+
149
+ For serious work, Sagaz should maintain or produce:
150
+
151
+ - `templates/run-state.md`
152
+ - `templates/execution-trace.md`
153
+ - `templates/implementation-plan.md`
154
+ - `templates/qa-report.md`
155
+ - `templates/final-handoff.md`
156
+ - `templates/future-change-guide.md`
157
+ - `templates/release-notes.md` when release work is involved.
158
+
159
+ ## Good First Team Exercise
160
+
161
+ Use a low-risk existing repository and ask:
162
+
163
+ ```text
164
+ Sagaz: audit this project and tell me what workflow, stack playbook, risks, tests, and next implementation step you recommend. Do not change files yet.
165
+ ```
166
+
167
+ This verifies that the team understands Sagaz handoffs, permission gates, stack reasoning, and evidence before using it on production work.
168
+
169
+ ## Success Criteria
170
+
171
+ Sagaz adoption is working when:
172
+
173
+ - The team can invoke Sagaz consistently in new and existing projects.
174
+ - Sagaz chooses workflows and stack playbooks without bloating context.
175
+ - The team sees clear permission prompts before risky actions.
176
+ - Handoffs explain what changed, what was verified, and what remains risky.
177
+ - GitHub, design, deployment, and package operations happen only after approval.
178
+ - Windows and macOS users can follow the same operating model with platform-appropriate commands.
@@ -3,6 +3,7 @@
3
3
  ## Quick Entry
4
4
 
5
5
  - `ACTIVATE.md`: ready-to-use activation prompts.
6
+ - `ADOPTION.md`: first-use guide for adopting Sagaz in another project or team.
6
7
  - `quickstart.md`: minimum operating rules.
7
8
  - `README.md`: ecosystem overview.
8
9
  - `manifest.json`: internal component registry for validation and navigation.
@@ -127,4 +128,8 @@ See `templates/` for task briefs, product specs, technical specs, design systems
127
128
  - `governance/versioning.md`
128
129
  - `governance/ecosystem-maintenance.md`
129
130
  - `governance/package-release-policy.md`
131
+
132
+ ## Adoption
133
+
134
+ - `ADOPTION.md`
130
135
 
@@ -5,15 +5,17 @@ A local AI orchestration ecosystem for Codex, focused on autonomous teams, consi
5
5
  ## How To Use
6
6
 
7
7
  1. Read `governance/operations-runbook.md` for the daily operating procedure.
8
- 2. Read `quickstart.md`.
9
- 3. Choose the smallest sufficient workflow or squad.
10
- 4. Use formal tasks, handoffs, and quality gates.
11
- 5. Create or update run state for medium/large work.
12
- 6. Verify before declaring done.
8
+ 2. Read `ADOPTION.md` when starting Sagaz in another project or onboarding a team.
9
+ 3. Read `quickstart.md`.
10
+ 4. Choose the smallest sufficient workflow or squad.
11
+ 5. Use formal tasks, handoffs, and quality gates.
12
+ 6. Create or update run state for medium/large work.
13
+ 7. Verify before declaring done.
13
14
 
14
15
  ## Structure
15
16
 
16
17
  - `manifest.json`: internal component registry used to validate and navigate the ecosystem.
18
+ - `ADOPTION.md`: first-use guide for adopting Sagaz in another project or team.
17
19
  - `workflows/`: named end-to-end flows.
18
20
  - `squads/`: specialized teams.
19
21
  - `agents/`: role definitions.
@@ -165,6 +165,7 @@
165
165
  ],
166
166
  "docs": [
167
167
  "ACTIVATE.md",
168
+ "ADOPTION.md",
168
169
  "INDEX.md",
169
170
  "README.md",
170
171
  "quickstart.md"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sagaz-ai",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Sagaz AI orchestration ecosystem installer for Codex Desktop.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -203,7 +203,7 @@ function validateManifest() {
203
203
 
204
204
  const baseDirectory = path.join(ecosystemRoot, directory);
205
205
  const actual = directory === "."
206
- ? ["ACTIVATE.md", "INDEX.md", "README.md", "quickstart.md"]
206
+ ? ["ACTIVATE.md", "ADOPTION.md", "INDEX.md", "README.md", "quickstart.md"]
207
207
  : walkMarkdown(baseDirectory).map((markdownFile) => path.relative(ecosystemRoot, markdownFile).split(path.sep).join("/"));
208
208
  const expected = new Set(actual);
209
209
  const declared = new Set(entries);