@chorus-aidlc/chorus 0.7.1 → 0.8.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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +251 -251
- package/.next/standalone/.next/app-path-routes-manifest.json +42 -42
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +48 -48
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/[ideaUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/[ideaUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/[ideaUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/settings/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/companies/[uuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new.html +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/companies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies.html +1 -1
- package/.next/standalone/.next/server/app/admin/companies.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin.html +1 -1
- package/.next/standalone/.next/server/app/admin.rsc +6 -6
- package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/login/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/check-default/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/company-oidc/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/default-login/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/identify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/refresh/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/sync-token/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/comments/route.js +1 -1
- package/.next/standalone/.next/server/app/api/comments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/documents/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/documents/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/notifications/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mcp/route.js +5 -5
- package/.next/standalone/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route.js +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mentionables/route.js +1 -1
- package/.next/standalone/.next/server/app/api/mentionables/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/preferences/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/read-all/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +6 -6
- package/.next/standalone/.next/server/app/login/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/admin.html +1 -1
- package/.next/standalone/.next/server/app/login/admin.rsc +6 -6
- package/.next/standalone/.next/server/app/login/callback/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/callback.html +1 -1
- package/.next/standalone/.next/server/app/login/callback.rsc +6 -6
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace.html +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace.rsc +6 -6
- package/.next/standalone/.next/server/app/login/silent-refresh/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/silent-refresh.html +1 -1
- package/.next/standalone/.next/server/app/login/silent-refresh.rsc +6 -6
- package/.next/standalone/.next/server/app/login.html +1 -1
- package/.next/standalone/.next/server/app/login.rsc +6 -6
- package/.next/standalone/.next/server/app/onboarding/page.js +2 -2
- package/.next/standalone/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding.html +1 -1
- package/.next/standalone/.next/server/app/onboarding.rsc +7 -7
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects.html +1 -1
- package/.next/standalone/.next/server/app/projects.rsc +8 -8
- package/.next/standalone/.next/server/app/settings.html +1 -1
- package/.next/standalone/.next/server/app/settings.rsc +8 -8
- package/.next/standalone/.next/server/app-paths-manifest.json +42 -42
- package/.next/standalone/.next/server/chunks/1002.js +1 -1
- package/.next/standalone/.next/server/chunks/1596.js +2 -2
- package/.next/standalone/.next/server/chunks/1673.js +1 -0
- package/.next/standalone/.next/server/chunks/1871.js +1 -1
- package/.next/standalone/.next/server/chunks/2570.js +1 -1
- package/.next/standalone/.next/server/chunks/2618.js +1 -1
- package/.next/standalone/.next/server/chunks/{2675.js → 3139.js} +1 -1
- package/.next/standalone/.next/server/chunks/3405.js +1 -0
- package/.next/standalone/.next/server/chunks/4294.js +1 -0
- package/.next/standalone/.next/server/chunks/5044.js +1 -0
- package/.next/standalone/.next/server/chunks/6207.js +1 -1
- package/.next/standalone/.next/server/chunks/6320.js +2 -2
- package/.next/standalone/.next/server/chunks/6836.js +1 -0
- package/.next/standalone/.next/server/chunks/8322.js +2 -2
- package/.next/standalone/.next/server/chunks/8844.js +1 -1
- package/.next/standalone/.next/server/chunks/8881.js +1 -1
- package/.next/standalone/.next/server/chunks/937.js +2 -2
- package/.next/standalone/.next/server/chunks/9508.js +2 -2
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/next-font-manifest.js +1 -1
- package/.next/standalone/.next/server/next-font-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/10739-a14d0dc7271f247e.js +1 -0
- package/.next/standalone/.next/static/chunks/19126-f1bc396538752bce.js +1 -0
- package/.next/standalone/.next/static/chunks/{53664-a2be2eaacce03f0f.js → 23588-66d80958224a8544.js} +1 -1
- package/.next/standalone/.next/static/chunks/32190-a110356fb68a4333.js +1 -0
- package/.next/standalone/.next/static/chunks/65371-d3686d82abca6495.js +1 -0
- package/.next/standalone/.next/static/chunks/70317-49653c6dce23f1d9.js +1 -0
- package/.next/standalone/.next/static/chunks/8731-7869a6ed671c63a3.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-719f0815a37f19be.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-bc8c3c0362de377c.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-c1c4b5798c494341.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/page-29ac4172940780e0.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/ideas/[ideaUuid]/{page-2d820769aa7bcaf6.js → page-e59232665c3a0412.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/ideas/{page-dec0e71221d77928.js → page-9b1e02b5e2cfb410.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-567e98e9e90a7ef1.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/{page-bc66567cb9c40bf0.js → page-31f4ffd9778a39ed.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/{page-86cfeb421fa97830.js → page-8eded17e1e44522d.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/{page-7fe70579023330da.js → page-e5c99f2020b904f5.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/{page-8c51993bb3866a55.js → page-7947010e9684fbcf.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/{page-80566dcc1cd42bee.js → page-5326f2b34b200e50.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/page-a01b45dbe80aeecf.js +1 -0
- package/.next/standalone/.next/static/chunks/app/{layout-22f1a931323bbb60.js → layout-482dee7dace72c88.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/onboarding/{page-8d755192f0f67938.js → page-ac0593c045c64013.js} +1 -1
- package/.next/standalone/.next/static/css/84edd78de243cde6.css +1 -0
- package/.next/standalone/.next/static/css/{ca9796ac54f96058.css → a577d38ad6d7491b.css} +1 -1
- package/.next/standalone/.next/static/media/0f1bdadaf30e2d5f-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
- package/.next/standalone/.next/static/media/2c34d62a75506231-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/601f5c280d60caca-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/a115172161b307bb-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/b66cf8e69499582a-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/d100b2a099e34044-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/f5271587012faf78-s.p.woff2 +0 -0
- package/.next/standalone/.next/static/media/f639721981034f88-s.woff2 +0 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/public/chorus-plugin/.claude-plugin/plugin.json +7 -1
- package/.next/standalone/public/chorus-plugin/agents/proposal-reviewer.md +1 -1
- package/.next/standalone/public/chorus-plugin/agents/task-reviewer.md +1 -1
- package/.next/standalone/public/chorus-plugin/bin/on-post-verify-task.sh +190 -0
- package/.next/standalone/public/chorus-plugin/bin/on-session-start.sh +58 -0
- package/.next/standalone/public/chorus-plugin/bin/test-syntax.sh +1 -0
- package/.next/standalone/public/chorus-plugin/bin/tests/test-on-post-verify-task.sh +365 -0
- package/.next/standalone/public/chorus-plugin/hooks/hooks.json +9 -0
- package/.next/standalone/public/chorus-plugin/skills/chorus/SKILL.md +2 -1
- package/.next/standalone/public/chorus-plugin/skills/develop/SKILL.md +9 -1
- package/.next/standalone/public/chorus-plugin/skills/idea/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/openspec-aware/SKILL.md +436 -0
- package/.next/standalone/public/chorus-plugin/skills/proposal/SKILL.md +11 -1
- package/.next/standalone/public/chorus-plugin/skills/quick-dev/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/review/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/yolo/SKILL.md +26 -4
- package/README.md +34 -7
- package/README.zh.md +15 -8
- package/chorus.mjs +56 -12
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/1639.js +0 -1
- package/.next/standalone/.next/server/chunks/3300.js +0 -1
- package/.next/standalone/.next/server/chunks/8251.js +0 -1
- package/.next/standalone/.next/server/chunks/8584.js +0 -1
- package/.next/standalone/.next/server/chunks/9051.js +0 -1
- package/.next/standalone/.next/static/chunks/10739-5c185aa0432f5d56.js +0 -1
- package/.next/standalone/.next/static/chunks/19126-858a24cab6fd338a.js +0 -1
- package/.next/standalone/.next/static/chunks/29445-04c4ab36da85b7da.js +0 -1
- package/.next/standalone/.next/static/chunks/39611-cc227784ed679a6d.js +0 -1
- package/.next/standalone/.next/static/chunks/96919-8cbf6310c703e7af.js +0 -1
- package/.next/standalone/.next/static/chunks/99513-24849ff68a8098e1.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-acddb9c84f5d1607.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-b4c6141dd26cc506.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-4bf7bff8d68509f9.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/page-37a0cea0ba40c31b.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-355321010dd82e56.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/page-8db25385236a9bbf.js +0 -1
- package/.next/standalone/.next/static/css/de70bee13400563f.css +0 -1
- package/.next/standalone/.next/static/media/4cf2300e9c8272f7-s.p.woff2 +0 -0
- package/.next/standalone/.next/static/media/747892c23ea88013-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/8d697b304b401681-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/93f479601ee12b01-s.p.woff2 +0 -0
- package/.next/standalone/.next/static/media/9610d9e46709d722-s.woff2 +0 -0
- package/.next/standalone/.next/static/media/ba015fad6dcf6784-s.woff2 +0 -0
- /package/.next/standalone/.next/static/{TJ6qFSxjQGUSajvwbI2qu → bLmYoXAXta69K0xmICa8D}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{TJ6qFSxjQGUSajvwbI2qu → bLmYoXAXta69K0xmICa8D}/_ssgManifest.js +0 -0
|
@@ -4,7 +4,7 @@ description: Chorus AI Agent collaboration platform — overview, common tools,
|
|
|
4
4
|
license: AGPL-3.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: chorus
|
|
7
|
-
version: "0.8.
|
|
7
|
+
version: "0.8.3"
|
|
8
8
|
category: project-management
|
|
9
9
|
mcp_server: chorus
|
|
10
10
|
---
|
|
@@ -387,6 +387,7 @@ This is the core overview skill. For stage-specific workflows, use:
|
|
|
387
387
|
| **Planning** | `/proposal` | Create Proposals with document & task drafts, manage dependency DAG, submit for review |
|
|
388
388
|
| **Development** | `/develop` | Claim Tasks, report work, session & sub-agent management, Agent Teams integration |
|
|
389
389
|
| **Review** | `/review` | Approve/reject Proposals, verify Tasks, project governance |
|
|
390
|
+
| **OpenSpec mode** | `openspec-aware` | Opt-in **shared sub-procedure** invoked by `/proposal`, `/develop`, and `/yolo` whenever the user has the `openspec` CLI installed. Scaffolds `openspec/changes/<slug>/` on disk and mirrors files into Chorus document drafts via the `chorus-api.sh` wrapper. Skips silently in fallback mode. See `.claude/skills/openspec-aware/SKILL.md`. |
|
|
390
391
|
|
|
391
392
|
### Getting Started
|
|
392
393
|
|
|
@@ -4,7 +4,7 @@ description: Chorus Development workflow — claim tasks, report work, manage se
|
|
|
4
4
|
license: AGPL-3.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: chorus
|
|
7
|
-
version: "0.8.
|
|
7
|
+
version: "0.8.3"
|
|
8
8
|
category: project-management
|
|
9
9
|
mcp_server: chorus
|
|
10
10
|
---
|
|
@@ -133,6 +133,14 @@ Each task and proposal includes a `commentCount` field — use it to decide whic
|
|
|
133
133
|
chorus_get_documents({ projectUuid: "<project-uuid>" })
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
+
> **Document update flow (OpenSpec mode):** if the originating proposal `description` contains a line `OpenSpec change slug: <slug>`, the project's PRD / tech_design / spec Documents are **mirrors** of files under `openspec/changes/<slug>/`. To update such a Document (e.g. clarify an AC, fix a spec scenario before resubmitting), load the `openspec-aware` skill at `.claude/skills/openspec-aware/SKILL.md` and follow §3.8: edit the local `.md` file first, then mirror through the `chorus-api.sh` wrapper with `json_encode_file` and `chorus_check_response`.
|
|
137
|
+
>
|
|
138
|
+
> **⛔ Do not** call `chorus_pm_update_document` directly from the MCP harness with a hand-typed `content` field in OpenSpec mode. The local file is the source of truth; agent-typed content drifts and burns tokens (`openspec-aware` §2 Rule 1).
|
|
139
|
+
>
|
|
140
|
+
> When the LAST task of an OpenSpec idea is verified, the plugin's PostToolUse hook injects an archive reminder (`openspec-aware` §3.9) — run `openspec archive <slug> --yes`, then mirror each emitted `openspec/specs/<capability>/spec.md` back via §3.8.
|
|
141
|
+
>
|
|
142
|
+
> In the no-OpenSpec fallback (no slug line, or no `openspec` CLI), edit the Document content directly via the existing MCP tool with no wrapper, no local file step.
|
|
143
|
+
|
|
136
144
|
### Step 5: Start Working
|
|
137
145
|
|
|
138
146
|
**Sub-agent**: checkin to the task first:
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-aware
|
|
3
|
+
description: Opt-in OpenSpec-mode authoring for Chorus PM workflows in Claude Code. Detects the local `openspec` CLI, scaffolds `openspec/changes/<slug>/` on disk, and mirrors Markdown files into Chorus document drafts via the `chorus-api.sh` wrapper. Required reading for the proposal, develop, and yolo skills whenever the user has the `openspec` CLI installed.
|
|
4
|
+
license: AGPL-3.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: chorus
|
|
7
|
+
version: "0.8.3"
|
|
8
|
+
category: project-management
|
|
9
|
+
mcp_server: chorus
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# OpenSpec-aware Authoring (Claude Code plugin)
|
|
13
|
+
|
|
14
|
+
This skill is a **shared sub-procedure** invoked by the Chorus stage skills (proposal, develop, yolo) whenever the user wants spec-driven authoring through the [OpenSpec CLI](https://github.com/Fission-AI/OpenSpec). It is opt-in:
|
|
15
|
+
|
|
16
|
+
- Activates when **all three** signals hold (see §1): `CHORUS_OPENSPEC_MODE` is not `off`, an `openspec/` directory exists at the project root, and the `openspec` CLI is on `PATH`.
|
|
17
|
+
- Otherwise the calling skill falls back to its existing free-form behavior.
|
|
18
|
+
|
|
19
|
+
When you reach a point in proposal / develop / yolo where this skill is referenced, **read the value of `CHORUS_OPENSPEC_ACTIVE` from the SessionStart context** (see §1) and branch on it. Do not re-run the detection block — the SessionStart hook has already done it once for this session.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## §1. Detection — already done at SessionStart
|
|
24
|
+
|
|
25
|
+
The Chorus plugin's SessionStart hook (`bin/on-session-start.sh`) computes `CHORUS_OPENSPEC_ACTIVE` once when the session opens and writes a `## OpenSpec Mode` section into the plugin's injected context. The value of `CHORUS_OPENSPEC_ACTIVE` is `1` only when **all three** of these hold:
|
|
26
|
+
|
|
27
|
+
1. `CHORUS_OPENSPEC_MODE` is **not** set to `off` (explicit opt-out wins).
|
|
28
|
+
2. The project root contains an `openspec/` directory (i.e. someone ran `openspec init` here).
|
|
29
|
+
3. The `openspec` CLI is on `PATH`.
|
|
30
|
+
|
|
31
|
+
Both signals (2) and (3) are required because the OpenSpec authoring path needs the working directory **and** the CLI — having one without the other leaves the workflow unrunnable. If signal (2) holds but (3) does not, the SessionStart hook surfaces a "OpenSpec repo detected — install with: `npm i -g @fission-ai/openspec`" hint to the user; the agent should pass this through if asked rather than silently choosing free-form.
|
|
32
|
+
|
|
33
|
+
### How to read the value
|
|
34
|
+
|
|
35
|
+
You should already see something like this in your context (look for the `## OpenSpec Mode` section near the top of the conversation):
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
## OpenSpec Mode
|
|
39
|
+
|
|
40
|
+
CHORUS_OPENSPEC_ACTIVE=1 (openspec/ directory + openspec CLI both present)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
or:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
## OpenSpec Mode
|
|
47
|
+
|
|
48
|
+
CHORUS_OPENSPEC_ACTIVE=0 (no openspec/ directory at /path/to/repo/openspec)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Branch:
|
|
52
|
+
|
|
53
|
+
- `CHORUS_OPENSPEC_ACTIVE=1` → follow §3 (OpenSpec authoring).
|
|
54
|
+
- `CHORUS_OPENSPEC_ACTIVE=0` → return to the calling skill's free-form path. **Do not** scaffold `openspec/changes/`. **Do not** add the slug line to the proposal description.
|
|
55
|
+
|
|
56
|
+
### Manual fallback
|
|
57
|
+
|
|
58
|
+
If you're in a sub-shell, sub-agent, or session that did not see SessionStart context (e.g. you were spawned mid-session and the parent's context was not forwarded), reconstruct the value yourself with the same three checks:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
if [ "${CHORUS_OPENSPEC_MODE:-}" = "off" ]; then
|
|
62
|
+
CHORUS_OPENSPEC_ACTIVE=0
|
|
63
|
+
elif [ ! -d "${CLAUDE_PROJECT_DIR:-$PWD}/openspec" ]; then
|
|
64
|
+
CHORUS_OPENSPEC_ACTIVE=0
|
|
65
|
+
elif ! openspec --version >/dev/null 2>&1; then
|
|
66
|
+
CHORUS_OPENSPEC_ACTIVE=0
|
|
67
|
+
else
|
|
68
|
+
CHORUS_OPENSPEC_ACTIVE=1
|
|
69
|
+
fi
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Use this only when SessionStart context is genuinely unavailable — duplicating the detection is wasteful when the hook already computed it.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## §2. ⛔ Two non-negotiable rules
|
|
77
|
+
|
|
78
|
+
Both are enforced at review time. Both have caused incidents in past releases.
|
|
79
|
+
|
|
80
|
+
### Rule 1 — Mirror via the wrapper, never re-type document content from agent output
|
|
81
|
+
|
|
82
|
+
Document/draft mirror calls (`chorus_pm_add_document_draft`, `chorus_pm_update_document_draft`, `chorus_pm_update_document`) **MUST** go through:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
chorus-api.sh mcp-tool <tool_name> "$PAYLOAD"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`chorus-api.sh` is on `PATH` — call it by name.
|
|
89
|
+
|
|
90
|
+
with `$PAYLOAD` built using `json_encode_file` (defined in §3.4). Calling these tools directly from the agent's MCP harness with a hand-typed `content` field is a **protocol violation** for OpenSpec mode and will fail review. Reasons:
|
|
91
|
+
|
|
92
|
+
1. **Token cost.** Re-typing a multi-thousand-line markdown body through the LLM burns input + output tokens for every draft. The wrapper streams bytes through `jq -Rs '.'` — content never enters LLM context. A typical 3-doc proposal mirror via the script costs roughly zero content-tokens; via direct MCP it routinely costs 20k+.
|
|
93
|
+
2. **Byte-equality.** `jq -Rs '.'` is a byte-faithful encoder: backslashes, quotes, newlines, code-fence content, zero-width chars all survive. LLM re-emission has a non-zero failure rate on long markdown — table alignment drifts, fence escapes get "fixed", long URLs wrap. The byte-equality guarantee (modulo trailing `\n`) holds **only** on the wrapper path.
|
|
94
|
+
3. **Single source of truth.** With the wrapper, the local `openspec/changes/<slug>/*.md` is authoritative and Chorus is a mirror. With agent re-typing, authority splits between local file and whatever the LLM happened to output — a future diff cannot tell which one is correct.
|
|
95
|
+
|
|
96
|
+
### Rule 2 — Halt on error via `chorus_check_response`
|
|
97
|
+
|
|
98
|
+
Every wrapper call must check three signals: wrapper exit code, `"error":` in body, empty body. Bare `RC=$?` is **insufficient** — the wrapper exits 0 on HTTP 401 (auth failure) with empty body, so a single-signal check silently misses the most common runtime failure. See §6 for the helper definition.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## §3. OpenSpec mode authoring
|
|
103
|
+
|
|
104
|
+
### 3.1 Pick a slug
|
|
105
|
+
|
|
106
|
+
`openspec/changes/<slug>/` is the local change folder. The slug must be:
|
|
107
|
+
|
|
108
|
+
- kebab-case (`add-export-csv`, not `addExportCsv` or `add_export_csv`),
|
|
109
|
+
- derived from the source Idea title,
|
|
110
|
+
- unique within `openspec/changes/`.
|
|
111
|
+
|
|
112
|
+
Record it for later steps:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
SLUG="add-export-csv"
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### 3.2 Scaffold the change folder
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
openspec new change "$SLUG" --description "<one-line idea summary>"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
This creates `openspec/changes/$SLUG/` with `README.md` and `.openspec.yaml`. Then author by hand:
|
|
125
|
+
|
|
126
|
+
| Local file | Purpose | Mirror as `Document.type` |
|
|
127
|
+
|---|---|---|
|
|
128
|
+
| `proposal.md` | Why + What Changes + Capabilities + Impact | `prd` |
|
|
129
|
+
| `design.md` | Architecture, contracts, risks | `tech_design` |
|
|
130
|
+
| `specs/<capability>/spec.md` | Delta spec (`## ADDED Requirements` + Scenarios) | `spec` (one draft per capability) |
|
|
131
|
+
| `tasks.md` | OpenSpec tasks list | _(not mirrored — Chorus task drafts are source of truth)_ |
|
|
132
|
+
|
|
133
|
+
Use `openspec instructions <artifact> --change "$SLUG"` (artifacts: `proposal`, `specs`, `design`, `tasks`) for templates.
|
|
134
|
+
|
|
135
|
+
### 3.3 Spec file shape (verified against `openspec instructions specs`)
|
|
136
|
+
|
|
137
|
+
A delta spec lists one or more block headers — `## ADDED Requirements`, `## MODIFIED Requirements`, `## REMOVED Requirements`, `## RENAMED Requirements` — and within each, `### Requirement:` entries. Mix freely in the same file; only include the blocks you actually need.
|
|
138
|
+
|
|
139
|
+
#### `## ADDED Requirements`
|
|
140
|
+
|
|
141
|
+
Append a brand-new Requirement to the long-term spec.
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
## ADDED Requirements
|
|
145
|
+
|
|
146
|
+
### Requirement: <name>
|
|
147
|
+
<requirement text — use SHALL / MUST for normative behavior>
|
|
148
|
+
|
|
149
|
+
#### Scenario: <name>
|
|
150
|
+
- **WHEN** <condition>
|
|
151
|
+
- **THEN** <expected outcome>
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### `## MODIFIED Requirements`
|
|
155
|
+
|
|
156
|
+
**Whole-block replacement, not merge.** Whatever you write here completely replaces the existing same-named Requirement in the long-term spec — title, description, and *all* scenarios. Half-writing it deletes the rest.
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
## MODIFIED Requirements
|
|
160
|
+
|
|
161
|
+
### Requirement: <existing name>
|
|
162
|
+
<full updated requirement text>
|
|
163
|
+
|
|
164
|
+
#### Scenario: <name>
|
|
165
|
+
- **WHEN** <condition>
|
|
166
|
+
- **THEN** <expected outcome>
|
|
167
|
+
|
|
168
|
+
#### Scenario: <other name>
|
|
169
|
+
- **WHEN** <condition>
|
|
170
|
+
- **THEN** <expected outcome>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Always include every scenario you want the post-archive spec to have, even ones that were already present and unchanged.
|
|
174
|
+
|
|
175
|
+
#### `## REMOVED Requirements`
|
|
176
|
+
|
|
177
|
+
Delete a Requirement from the long-term spec. The block under the heading is just the requirement name(s) you're removing — no scenarios needed.
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
## REMOVED Requirements
|
|
181
|
+
|
|
182
|
+
### Requirement: <existing name>
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
#### `## RENAMED Requirements`
|
|
186
|
+
|
|
187
|
+
Rename a Requirement's title. Body and scenarios are preserved as-is in the long-term spec; use `MODIFIED` instead if you need to change anything besides the title.
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
## RENAMED Requirements
|
|
191
|
+
|
|
192
|
+
### Requirement: <old name> -> <new name>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Critical formatting rules (verified):**
|
|
196
|
+
|
|
197
|
+
- Scenarios MUST use **exactly 4 hashtags** (`#### Scenario:`). 3 hashtags or a bullet list silently fail validation.
|
|
198
|
+
- Every `### Requirement:` under `ADDED` or `MODIFIED` MUST have at least one `#### Scenario:`.
|
|
199
|
+
- `MODIFIED` blocks MUST include the **full updated content** — they overwrite, not patch.
|
|
200
|
+
- Use `SHALL` / `MUST` for normative requirements; avoid `should` / `may`.
|
|
201
|
+
- The merge into `openspec/specs/<capability>/spec.md` happens at `openspec archive` time (§3.9), not at proposal time. While the proposal is in flight, Chorus only sees the delta file as one `spec` Document — there is no half-merged state for the skill to reason about.
|
|
202
|
+
|
|
203
|
+
Optional:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
openspec validate "$SLUG"
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### 3.4 Helper: `json_encode_file`
|
|
210
|
+
|
|
211
|
+
Define once at the top of the authoring session. With `jq` available it streams the file into a JSON string; the fallback matches `chorus-api.sh`'s own escaping when `jq` is missing.
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
json_encode_file() {
|
|
215
|
+
local _path="$1"
|
|
216
|
+
if command -v jq >/dev/null 2>&1; then
|
|
217
|
+
jq -Rs '.' < "$_path"
|
|
218
|
+
else
|
|
219
|
+
local _content
|
|
220
|
+
_content=$(cat "$_path")
|
|
221
|
+
_content=${_content//\\/\\\\}
|
|
222
|
+
_content=${_content//\"/\\\"}
|
|
223
|
+
_content=${_content//$'\n'/\\n}
|
|
224
|
+
printf '"%s"' "$_content"
|
|
225
|
+
fi
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Round-trip: the Chorus backend appends a single `\n` to draft content on write, so server `content` is **byte-equal modulo a trailing newline**. Reviewers diffing local file vs server should ignore that one byte.
|
|
230
|
+
|
|
231
|
+
### 3.5 Create the proposal container with the slug provenance line
|
|
232
|
+
|
|
233
|
+
Use the regular `chorus_pm_create_proposal` MCP tool (no wrapper required for this single call — the description is short, the LLM-emitted version is fine). The description **must** carry exactly one line:
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
OpenSpec change slug: <slug>
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
- on its own line (no other text on that line),
|
|
240
|
+
- literal prefix `OpenSpec change slug: ` (capital O, capital S, single space after colon),
|
|
241
|
+
- no trailing punctuation,
|
|
242
|
+
- value matches the slug passed to `openspec new change`.
|
|
243
|
+
|
|
244
|
+
This line is machine-grep-able by future runs of this skill and by the §3.9 archive trigger.
|
|
245
|
+
|
|
246
|
+
### 3.6 Mirror each document draft via the wrapper
|
|
247
|
+
|
|
248
|
+
> **Rule 1 reminder:** these calls go through `chorus-api.sh`, not direct MCP. The agent must not retype the document body.
|
|
249
|
+
|
|
250
|
+
Define the halt-on-error helper from §6 once at the top, then run one call per file:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
# chorus-api.sh is on PATH — no absolute path needed.
|
|
254
|
+
# PRD draft
|
|
255
|
+
CONTENT=$(json_encode_file "openspec/changes/$SLUG/proposal.md")
|
|
256
|
+
PAYLOAD=$(cat <<JSON
|
|
257
|
+
{
|
|
258
|
+
"proposalUuid": "$PROPOSAL_UUID",
|
|
259
|
+
"type": "prd",
|
|
260
|
+
"title": "PRD: $HUMAN_TITLE",
|
|
261
|
+
"content": $CONTENT
|
|
262
|
+
}
|
|
263
|
+
JSON
|
|
264
|
+
)
|
|
265
|
+
RESULT=$(chorus-api.sh mcp-tool chorus_pm_add_document_draft "$PAYLOAD")
|
|
266
|
+
RC=$?
|
|
267
|
+
chorus_check_response "chorus_pm_add_document_draft (prd)" "$RC" "$RESULT"
|
|
268
|
+
PRD_DRAFT_UUID=$(printf '%s' "$RESULT" | grep -o '"draftUuid"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | sed 's/.*"\([^"]*\)"$/\1/')
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
Repeat with `type: "tech_design"` for `design.md`, and one call per capability with `type: "spec"` for each `specs/<capability>/spec.md`. Do **not** mirror `tasks.md` — Chorus task drafts (created via the `chorus_pm_add_task_draft` MCP tool, no wrapper needed) are the source of truth for tasks.
|
|
272
|
+
|
|
273
|
+
> Why parsing uses `printf '%s' "$RESULT" | grep` not `echo "$RESULT" | jq`: `echo` interprets backslash sequences inside the captured JSON, turning embedded `\n` into a real newline. `jq` then aborts with `Invalid string: control characters from U+0000 through U+001F must be escaped`. `printf '%s'` emits the captured bytes verbatim. Same pattern applies to all wrapper-result parsing in this skill.
|
|
274
|
+
|
|
275
|
+
### 3.7 Editing a draft after the first mirror
|
|
276
|
+
|
|
277
|
+
Local file changes propagate via `chorus_pm_update_document_draft` — same wrapper, same `json_encode_file`, same halt check.
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
CONTENT=$(json_encode_file "openspec/changes/$SLUG/proposal.md")
|
|
281
|
+
PAYLOAD=$(cat <<JSON
|
|
282
|
+
{
|
|
283
|
+
"proposalUuid": "$PROPOSAL_UUID",
|
|
284
|
+
"draftUuid": "$PRD_DRAFT_UUID",
|
|
285
|
+
"content": $CONTENT
|
|
286
|
+
}
|
|
287
|
+
JSON
|
|
288
|
+
)
|
|
289
|
+
RESULT=$(chorus-api.sh mcp-tool chorus_pm_update_document_draft "$PAYLOAD")
|
|
290
|
+
RC=$?
|
|
291
|
+
chorus_check_response "chorus_pm_update_document_draft" "$RC" "$RESULT"
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### 3.8 Editing a Document after proposal approval
|
|
295
|
+
|
|
296
|
+
Once the proposal is approved, drafts materialize into Documents with their own UUIDs. To keep `openspec/changes/$SLUG/` and the Chorus Document in sync, mirror file edits via `chorus_pm_update_document`:
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
CONTENT=$(json_encode_file "openspec/changes/$SLUG/specs/<capability>/spec.md")
|
|
300
|
+
PAYLOAD=$(cat <<JSON
|
|
301
|
+
{
|
|
302
|
+
"documentUuid": "$SPEC_DOCUMENT_UUID",
|
|
303
|
+
"content": $CONTENT
|
|
304
|
+
}
|
|
305
|
+
JSON
|
|
306
|
+
)
|
|
307
|
+
RESULT=$(chorus-api.sh mcp-tool chorus_pm_update_document "$PAYLOAD")
|
|
308
|
+
RC=$?
|
|
309
|
+
chorus_check_response "chorus_pm_update_document" "$RC" "$RESULT"
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
To re-derive `$SPEC_DOCUMENT_UUID` from a fresh shell, look it up via `chorus_get_documents` for the proposal's project and match by `title` + `type`. Re-derive `$SLUG` by grepping the proposal's `description` for `^OpenSpec change slug: `.
|
|
313
|
+
|
|
314
|
+
### 3.9 Archive after the last task is verified
|
|
315
|
+
|
|
316
|
+
When the **LAST** task of an OpenSpec-mode idea is admin-verified via `chorus_admin_verify_task`, the plugin's PostToolUse hook (`bin/on-post-verify-task.sh`) injects an `additionalContext` reminder containing the literal substring `openspec archive <slug>` so you can act without re-reading the slug.
|
|
317
|
+
|
|
318
|
+
The hook is read-only; you (the agent) perform the archive:
|
|
319
|
+
|
|
320
|
+
1. **Run archive locally.** Use `--yes` for non-interactive mode. Do NOT pass `--skip-specs` (defeats the mirror-back) or `--no-validate` (lets malformed deltas corrupt cumulative specs).
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
openspec archive "$SLUG" --yes
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
This moves `openspec/changes/$SLUG/` under `openspec/changes/archive/<date>-<slug>/` and emits/updates `openspec/specs/<capability>/spec.md` for each capability. (Run `openspec archive --help` against your installed version to confirm the current flag set — flags can drift between releases.)
|
|
327
|
+
|
|
328
|
+
2. **Mirror each updated `openspec/specs/<capability>/spec.md` back** to the matching post-approval Chorus Document (§3.8 contract). `chorus_get_documents` only supports `projectUuid` + `type` server-side filters; filter by title client-side. One `chorus_pm_update_document` call per capability.
|
|
329
|
+
|
|
330
|
+
3. **Halt on any error** from `openspec archive` or `chorus_pm_update_document`. Print stderr verbatim, post a comment on the proposal recording the failure (`chorus_add_comment` with `targetType: "proposal"`, `targetUuid: <proposalUuid>`), then stop. No retry. Matches §6 "no silent errors." (Comment on the proposal, not the idea: the failure is in archiving proposal-derived specs, and proposals can be `inputType: "document"` with no idea attached.)
|
|
331
|
+
|
|
332
|
+
4. **Confirm success.** List `openspec/specs/<capability>/spec.md` files and verify they round-trip byte-equal (modulo trailing newline) with their Chorus Document counterparts.
|
|
333
|
+
|
|
334
|
+
**Strict opt-in:** if the verified task is not the last of its idea, OR the proposal description carries no `OpenSpec change slug: <slug>` line, OR the local shell has no `openspec` CLI, the hook exits 0 silently and no archive reminder is injected. Existing free-form behavior is preserved.
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## §4. Fallback authoring (no openspec)
|
|
339
|
+
|
|
340
|
+
When detection puts the agent in fallback mode (`CHORUS_OPENSPEC_ACTIVE=0`), this skill is a **no-op**. Return to the calling skill's free-form path:
|
|
341
|
+
|
|
342
|
+
- No `openspec/changes/` folder is created or referenced.
|
|
343
|
+
- No `OpenSpec change slug: …` line is added to the proposal description.
|
|
344
|
+
- Document drafts are authored via direct MCP `chorus_pm_add_document_draft` calls with inline `content` — same as before this skill existed.
|
|
345
|
+
- Rule 1 (wrapper-only mirror) does not apply — there is no local file source of truth.
|
|
346
|
+
- The §3.9 archive hook does nothing (no slug → silent exit).
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## §5. Document type mapping (reference table)
|
|
351
|
+
|
|
352
|
+
| Local file | Chorus `Document.type` | Mirrored? |
|
|
353
|
+
|---|---|---|
|
|
354
|
+
| `openspec/changes/<slug>/proposal.md` | `prd` | yes |
|
|
355
|
+
| `openspec/changes/<slug>/design.md` | `tech_design` | yes |
|
|
356
|
+
| `openspec/changes/<slug>/specs/<capability>/spec.md` | `spec` | yes (one draft per capability) |
|
|
357
|
+
| `openspec/changes/<slug>/tasks.md` | _(not mapped)_ | **no** — Chorus task drafts are source of truth |
|
|
358
|
+
|
|
359
|
+
`prd`, `tech_design`, `spec` are pre-existing valid `Document.type` values — no schema change required.
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
## §6. Failure visibility — the `chorus_check_response` helper
|
|
364
|
+
|
|
365
|
+
There is a known wrapper edge case: when the server returns HTTP 4xx (e.g. 401 from a bad `CHORUS_API_KEY`), `chorus-api.sh mcp-tool` captures the JSON-RPC error body internally, pipes it through a `.result.content[]?` jq filter that produces no output when `.result` is absent, and exits 0 with empty stdout. A bare `RC=$?` check would not halt on this — the most common runtime failure mode would be invisible.
|
|
366
|
+
|
|
367
|
+
Define this helper **once** at the top of the authoring session and use it after every wrapper call:
|
|
368
|
+
|
|
369
|
+
```bash
|
|
370
|
+
chorus_check_response() {
|
|
371
|
+
local _tool="$1"
|
|
372
|
+
local _rc="$2"
|
|
373
|
+
local _body="$3"
|
|
374
|
+
local _has_error=0
|
|
375
|
+
local _is_empty=0
|
|
376
|
+
|
|
377
|
+
local _trimmed
|
|
378
|
+
_trimmed=$(printf '%s' "$_body" | tr -d ' \t\n\r')
|
|
379
|
+
[ -z "$_trimmed" ] && _is_empty=1
|
|
380
|
+
|
|
381
|
+
if [ "$_is_empty" -eq 0 ]; then
|
|
382
|
+
if command -v jq >/dev/null 2>&1; then
|
|
383
|
+
if printf '%s' "$_body" | jq -e 'try ([.. | objects | has("error")] | any) catch false' >/dev/null 2>&1; then
|
|
384
|
+
_has_error=1
|
|
385
|
+
fi
|
|
386
|
+
else
|
|
387
|
+
printf '%s' "$_body" | grep -qE '"error"[[:space:]]*:' && _has_error=1
|
|
388
|
+
fi
|
|
389
|
+
fi
|
|
390
|
+
|
|
391
|
+
if [ "$_rc" -ne 0 ] || [ "$_has_error" -eq 1 ] || [ "$_is_empty" -eq 1 ]; then
|
|
392
|
+
echo "ERROR: $_tool failed (exit=$_rc, error_in_body=$_has_error, empty_body=$_is_empty)" >&2
|
|
393
|
+
echo "Output: $_body" >&2
|
|
394
|
+
[ "$_rc" -ne 0 ] && exit "$_rc" || exit 1
|
|
395
|
+
fi
|
|
396
|
+
}
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
**Anti-patterns** — do **not**:
|
|
400
|
+
|
|
401
|
+
- Collapse to `|| true`.
|
|
402
|
+
- Redirect stderr to `/dev/null`.
|
|
403
|
+
- Bury the wrapper call inside a pipeline (masks `$?`).
|
|
404
|
+
- Skip capturing `$RESULT` into a variable; the helper needs the body.
|
|
405
|
+
- Use only `if [ "$RC" -ne 0 ]; then ...` — that misses the HTTP-error path.
|
|
406
|
+
|
|
407
|
+
**Minimal call site shape:**
|
|
408
|
+
|
|
409
|
+
```bash
|
|
410
|
+
RESULT=$(chorus-api.sh mcp-tool <tool_name> "$PAYLOAD")
|
|
411
|
+
RC=$?
|
|
412
|
+
chorus_check_response "<tool_name>" "$RC" "$RESULT"
|
|
413
|
+
# ...if we reach here, the call succeeded; parse RESULT and continue.
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
This is project-wide policy: no silent errors.
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
## §7. Quick reference checklist
|
|
421
|
+
|
|
422
|
+
When invoked from a stage skill (proposal / develop / yolo):
|
|
423
|
+
|
|
424
|
+
1. Read `CHORUS_OPENSPEC_ACTIVE` from the `## OpenSpec Mode` section in the SessionStart context (§1). If it isn't there, fall back to the manual probe in §1.
|
|
425
|
+
2. If `CHORUS_OPENSPEC_ACTIVE=0` → return to caller's free-form path (§4).
|
|
426
|
+
3. Otherwise:
|
|
427
|
+
a. Pick `$SLUG` (§3.1).
|
|
428
|
+
b. `openspec new change "$SLUG"` (§3.2).
|
|
429
|
+
c. Author `proposal.md`, `design.md`, `specs/<capability>/spec.md` (§3.2–§3.3). Mix `ADDED` / `MODIFIED` / `REMOVED` / `RENAMED` blocks as needed; remember `MODIFIED` overwrites the whole Requirement.
|
|
430
|
+
d. Optional: `openspec validate "$SLUG"`.
|
|
431
|
+
e. `chorus_pm_create_proposal` (direct MCP) with the `OpenSpec change slug: $SLUG` line in description (§3.5).
|
|
432
|
+
f. Define `json_encode_file`, `chorus_check_response` helpers. (`chorus-api.sh` is on PATH — no `$API` variable needed.)
|
|
433
|
+
g. For each row in §5 with "yes" — mirror via `chorus-api.sh mcp-tool chorus_pm_add_document_draft` (§3.6). Record each `$DRAFT_UUID`.
|
|
434
|
+
h. On any failed `chorus_check_response` — halt, surface the error, do NOT proceed.
|
|
435
|
+
4. Edits before approval → §3.7. Edits after approval → §3.8.
|
|
436
|
+
5. Last task verified → hook fires → run §3.9 archive flow.
|
|
@@ -4,7 +4,7 @@ description: Chorus Proposal workflow — create proposals with document and tas
|
|
|
4
4
|
license: AGPL-3.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: chorus
|
|
7
|
-
version: "0.8.
|
|
7
|
+
version: "0.8.3"
|
|
8
8
|
category: project-management
|
|
9
9
|
mcp_server: chorus
|
|
10
10
|
---
|
|
@@ -84,6 +84,16 @@ chorus_pm_create_proposal({
|
|
|
84
84
|
|
|
85
85
|
**Multiple Ideas:** You can combine multiple ideas into one proposal by passing multiple UUIDs in `inputUuids`.
|
|
86
86
|
|
|
87
|
+
### Step 1.5: Detect OpenSpec mode
|
|
88
|
+
|
|
89
|
+
Before authoring document drafts, **load the `openspec-aware` skill at `.claude/skills/openspec-aware/SKILL.md`** and run its §1 detection contract. Branch on the result:
|
|
90
|
+
|
|
91
|
+
- **`CHORUS_OPENSPEC_ACTIVE=1`** → follow `openspec-aware` §3. Pick `$SLUG`, scaffold `openspec/changes/<slug>/`, author `proposal.md` / `design.md` / `specs/<capability>/spec.md` locally, then create the proposal container (Step 1 above) with the literal line `OpenSpec change slug: <slug>` in `description`, and mirror each local file into a document draft.
|
|
92
|
+
|
|
93
|
+
> **⛔ Mandatory in OpenSpec mode:** mirror calls go through the `chorus-api.sh` wrapper with `content` produced by `json_encode_file` — see `openspec-aware` §3.6. Do **not** call `chorus_pm_add_document_draft` directly from the MCP harness with a hand-typed `content` field. Re-typing thousands of lines through the LLM burns 20k+ content tokens per proposal and breaks byte-equality with the local source of truth (`openspec-aware` §2 Rule 1 explains the full reasoning). Skip Step 2 below when in OpenSpec mode — the wrapper-based flow in `openspec-aware` §3.6 replaces it for documents.
|
|
94
|
+
|
|
95
|
+
- **`CHORUS_OPENSPEC_ACTIVE=0`** (CLI absent or `CHORUS_OPENSPEC_MODE=off`) → proceed with Step 2 unchanged. Author drafts inline as free-form Markdown via direct MCP `chorus_pm_add_document_draft`.
|
|
96
|
+
|
|
87
97
|
### Step 2: Add Document Drafts
|
|
88
98
|
|
|
89
99
|
Add document drafts one at a time:
|
|
@@ -4,7 +4,7 @@ description: Full-auto AI-DLC pipeline — from prompt to done. Automates the en
|
|
|
4
4
|
license: AGPL-3.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: chorus
|
|
7
|
-
version: "0.8.
|
|
7
|
+
version: "0.8.3"
|
|
8
8
|
category: project-management
|
|
9
9
|
mcp_server: chorus
|
|
10
10
|
---
|
|
@@ -181,18 +181,40 @@ In /yolo mode, the agent generates elaboration questions and answers them itself
|
|
|
181
181
|
|
|
182
182
|
#### Step 1.4: Create Proposal
|
|
183
183
|
|
|
184
|
-
1. **
|
|
184
|
+
1. **Detect OpenSpec mode.** Load the `openspec-aware` skill at `.claude/skills/openspec-aware/SKILL.md` and run its §1 detection contract. The result determines how the rest of this step authors documents:
|
|
185
|
+
|
|
186
|
+
- `CHORUS_OPENSPEC_ACTIVE=1` → spec-driven branch (sub-step 2a below).
|
|
187
|
+
- `CHORUS_OPENSPEC_ACTIVE=0` → free-form branch (sub-step 2b below).
|
|
188
|
+
|
|
189
|
+
This is mandatory — yolo runs unattended, so silently picking the wrong mode is exactly the failure scenario the detection contract exists to prevent.
|
|
190
|
+
|
|
191
|
+
2. **Create the empty proposal container.** In OpenSpec mode, the `description` MUST contain the literal line `OpenSpec change slug: <slug>` (use the `$SLUG` you'll pick in 2a); in free-form mode, omit that line.
|
|
192
|
+
|
|
185
193
|
```
|
|
186
194
|
chorus_pm_create_proposal({
|
|
187
195
|
projectUuid: "<project-uuid>",
|
|
188
196
|
title: "<feature name>",
|
|
189
|
-
description: "<summary
|
|
197
|
+
description: "<summary>\n\nOpenSpec change slug: <slug>", // OpenSpec mode
|
|
198
|
+
// description: "<summary>", // free-form mode
|
|
190
199
|
inputType: "idea",
|
|
191
200
|
inputUuids: ["<idea-uuid>"]
|
|
192
201
|
})
|
|
193
202
|
```
|
|
194
203
|
|
|
195
|
-
|
|
204
|
+
Then branch:
|
|
205
|
+
|
|
206
|
+
**2a. OpenSpec mode (`CHORUS_OPENSPEC_ACTIVE=1`).** Follow `openspec-aware` §3 end-to-end:
|
|
207
|
+
- Pick `$SLUG`, run `openspec new change "$SLUG"` (§3.1–§3.2).
|
|
208
|
+
- Author `proposal.md`, `design.md`, and one `specs/<capability>/spec.md` per capability locally on disk (§3.3). ADDED Requirements only; per-spec fallback to free-form Markdown if MODIFIED/REMOVED is needed.
|
|
209
|
+
- Define `$API`, `json_encode_file`, `chorus_check_response` helpers (§3.4, §6).
|
|
210
|
+
- Mirror each local file via `"$API" mcp-tool chorus_pm_add_document_draft "$PAYLOAD"` (§3.6) — one call per file, with the document type from `openspec-aware` §5.
|
|
211
|
+
|
|
212
|
+
> **⛔ Do not** invoke `chorus_pm_add_document_draft` / `chorus_pm_update_document_draft` / `chorus_pm_update_document` from the MCP harness with a hand-typed `content` field in this branch. Re-typing the markdown body wastes 20k+ tokens per proposal and breaks byte-equality with the local files. See `openspec-aware` §2 Rule 1.
|
|
213
|
+
|
|
214
|
+
Then continue to step 3 (task drafts).
|
|
215
|
+
|
|
216
|
+
**2b. Free-form mode (`CHORUS_OPENSPEC_ACTIVE=0`).** Add a tech design document draft directly via MCP, content authored inline:
|
|
217
|
+
|
|
196
218
|
```
|
|
197
219
|
chorus_pm_add_document_draft({
|
|
198
220
|
proposalUuid: "<proposal-uuid>",
|
package/README.md
CHANGED
|
@@ -26,15 +26,18 @@ Inspired by the **[AI-DLC (AI-Driven Development Lifecycle)](https://aws.amazon.
|
|
|
26
26
|
```
|
|
27
27
|
Idea ──> Proposal ──> [Document + Task DAG] ──> Execute ──> Verify ──> Done
|
|
28
28
|
^ ^ ^ ^ ^ ^
|
|
29
|
-
Human
|
|
30
|
-
creates
|
|
31
|
-
& plans & tasks reports & verifies
|
|
29
|
+
Human idea:write proposal:write task:write *:admin *:admin
|
|
30
|
+
creates + elaborate + drafts + reports + verifies + closes
|
|
32
31
|
```
|
|
33
32
|
|
|
33
|
+
The labels under each stage are the **permissions** an actor needs at that stage — granted to a human, an Agent (preset or Custom), or both. There are no fixed roles; any combination of the 5 × 3 permission matrix is possible. See [`docs/PERMISSIONS.md`](docs/PERMISSIONS.md).
|
|
34
|
+
|
|
34
35
|
---
|
|
35
36
|
|
|
36
37
|
## What's New
|
|
37
38
|
|
|
39
|
+
**[v0.8.0](https://chorus-ai.dev/blog/chorus-v0.8.0-release/)** — OpenSpec-aware mode (Claude Code): auto-activates when an `openspec/` directory and the `openspec` CLI are both present, adds `/opsx/{explore,propose,apply,archive}` and a post-verify archive-trigger hook.
|
|
40
|
+
|
|
38
41
|
**[v0.7.0](https://chorus-ai.dev/blog/chorus-v0.7.0-release/)** — Fine-grained agent permissions: 5 resources × 3 actions grid replaces the PM/Developer/Admin three-way choice, with presets + a Custom option for free combination.
|
|
39
42
|
|
|
40
43
|
**[v0.6.7](https://chorus-ai.dev/blog/chorus-v0.6.7-release/)** — Chorus plugin for Codex CLI (one-command installer), workspace picker when one email belongs to multiple Companies, per-client connect guides.
|
|
@@ -195,8 +198,9 @@ A Cmd+K command palette for searching across all 6 entity types (Tasks, Ideas, P
|
|
|
195
198
|
└──────────────────────────────────────────────────────────────────┘
|
|
196
199
|
↑ ↑ ↑ ↑
|
|
197
200
|
Agent w/ Agent w/ Agent w/ Human
|
|
198
|
-
|
|
199
|
-
(
|
|
201
|
+
idea+proposal task:write *:admin perms (Browser)
|
|
202
|
+
:write perms perms (proxy approval)
|
|
203
|
+
(LLM) (LLM) (LLM)
|
|
200
204
|
│
|
|
201
205
|
┌──────────▼──────────┐ ┌─────────────────────┐
|
|
202
206
|
│ PostgreSQL + Prisma │ │ Redis (optional) │
|
|
@@ -317,8 +321,29 @@ Create API Keys in the Web UI under **Settings → Agents → Create API Key**.
|
|
|
317
321
|
|
|
318
322
|
| Method | Location | Use Case |
|
|
319
323
|
|--------|----------|----------|
|
|
320
|
-
| **Plugin-embedded** | `public/chorus-plugin/skills
|
|
321
|
-
| **
|
|
324
|
+
| **Plugin-embedded (Claude Code)** | `public/chorus-plugin/skills/` | Claude Code + Chorus plugin, automated Sessions and lifecycle hooks |
|
|
325
|
+
| **Plugin-embedded (Codex CLI)** | `plugins/chorus/skills/` | Codex CLI + Chorus plugin, ported skills with `$`-prefixed slash commands |
|
|
326
|
+
| **Standalone** | `public/skill/` (served at `/skill/`) | Any other MCP-capable Agent (Cursor, Continue, custom), manual Session management |
|
|
327
|
+
|
|
328
|
+
### OpenSpec mode (opt-in, plugin 0.8.1+)
|
|
329
|
+
|
|
330
|
+
PM agents that have the [OpenSpec](https://github.com/Fission-AI/OpenSpec)
|
|
331
|
+
CLI installed can author proposals in a structured `proposal.md` +
|
|
332
|
+
`design.md` + `specs/<capability>/spec.md` layout. Local files are the
|
|
333
|
+
working copy and Chorus `documentDrafts` are the mirror; reviewers see a
|
|
334
|
+
predictable shape (`## ADDED Requirements`, `### Requirement:`,
|
|
335
|
+
`#### Scenario:`) instead of free-form Markdown. A PostToolUse hook on
|
|
336
|
+
`chorus_admin_verify_task` injects an `openspec archive <slug>` reminder
|
|
337
|
+
when the last task of an OpenSpec idea is verified, so finalized specs
|
|
338
|
+
are merged into the long-term spec set right after sign-off. The mode is
|
|
339
|
+
strictly opt-in: when `openspec` is not installed, behavior is unchanged.
|
|
340
|
+
Master switch on Claude Code is `enableOpenSpec` (plugin userConfig,
|
|
341
|
+
default `true`); both clients also honor `CHORUS_OPENSPEC_MODE=off`. No
|
|
342
|
+
new MCP tools or schema changes ship in this mode; the canonical skill
|
|
343
|
+
reuses the existing `chorus_pm_*` draft and document tools, with mirror
|
|
344
|
+
calls routed through the `chorus-api.sh` wrapper to keep multi-thousand-
|
|
345
|
+
line markdown out of LLM context. See
|
|
346
|
+
[OPENSPEC_MODE.md](docs/OPENSPEC_MODE.md) for the full guide.
|
|
322
347
|
|
|
323
348
|
---
|
|
324
349
|
|
|
@@ -329,7 +354,9 @@ Create API Keys in the Web UI under **Settings → Agents → Create API Key**.
|
|
|
329
354
|
| [PRD](docs/PRD_Chorus.md) | Product Requirements Document |
|
|
330
355
|
| [Architecture](docs/ARCHITECTURE.md) | Technical Architecture Document |
|
|
331
356
|
| [MCP Tools](docs/MCP_TOOLS.md) | MCP Tools Reference |
|
|
357
|
+
| [Permissions](docs/PERMISSIONS.md) | Agent permission model (5 × 3 matrix, presets, Custom mode) |
|
|
332
358
|
| [Chorus Plugin](docs/chorus-plugin.md) | Plugin Design & Hook Documentation |
|
|
359
|
+
| [OpenSpec Mode](docs/OPENSPEC_MODE.md) | Opt-in OpenSpec authoring mode for PM agents (Plugin 0.8.1+) |
|
|
333
360
|
| [Search](docs/SEARCH.md) | Global Search Technical Design |
|
|
334
361
|
| [AI-DLC Gap Analysis](docs/AIDLC_GAP_ANALYSIS.md) | AI-DLC Methodology Gap Analysis |
|
|
335
362
|
| [AIG Implementation Plan](docs/CHORUS_AIG_PLAN.md) | Agent transparency roadmap |
|