@jterrats/open-orchestra 1.0.7 → 1.0.9
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/AGENTS.md +12 -2
- package/CHANGELOG.md +41 -0
- package/CLAUDE.md +13 -2
- package/dist/acceptance-criteria-quality.d.ts +12 -0
- package/dist/acceptance-criteria-quality.js +137 -0
- package/dist/acceptance-criteria-quality.js.map +1 -0
- package/dist/architecture-debt-inventory.d.ts +31 -0
- package/dist/architecture-debt-inventory.js +200 -0
- package/dist/architecture-debt-inventory.js.map +1 -0
- package/dist/architecture-debt-report.d.ts +2 -0
- package/dist/architecture-debt-report.js +28 -0
- package/dist/architecture-debt-report.js.map +1 -0
- package/dist/autonomous-phase-lifecycle.d.ts +5 -1
- package/dist/autonomous-phase-lifecycle.js +87 -17
- package/dist/autonomous-phase-lifecycle.js.map +1 -1
- package/dist/cli-payloads.d.ts +4 -0
- package/dist/cli-payloads.js +24 -0
- package/dist/cli-payloads.js.map +1 -0
- package/dist/cli.js +4 -446
- package/dist/cli.js.map +1 -1
- package/dist/command-manifest.js +3 -1
- package/dist/command-manifest.js.map +1 -1
- package/dist/command-route-utils.d.ts +18 -0
- package/dist/command-route-utils.js +18 -0
- package/dist/command-route-utils.js.map +1 -0
- package/dist/command-routes-integrations.d.ts +2 -0
- package/dist/command-routes-integrations.js +82 -0
- package/dist/command-routes-integrations.js.map +1 -0
- package/dist/command-routes.d.ts +2 -0
- package/dist/command-routes.js +175 -0
- package/dist/command-routes.js.map +1 -0
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +16 -3
- package/dist/commands.js.map +1 -1
- package/dist/github.js +22 -7
- package/dist/github.js.map +1 -1
- package/dist/metrics-commands.js +69 -17
- package/dist/metrics-commands.js.map +1 -1
- package/dist/phase-executor.js +5 -169
- package/dist/phase-executor.js.map +1 -1
- package/dist/phase-playbooks.js +17 -0
- package/dist/phase-playbooks.js.map +1 -1
- package/dist/qa-e2e-artifacts.d.ts +7 -0
- package/dist/qa-e2e-artifacts.js +225 -0
- package/dist/qa-e2e-artifacts.js.map +1 -0
- package/dist/quality-contracts.d.ts +83 -0
- package/dist/quality-contracts.js +463 -0
- package/dist/quality-contracts.js.map +1 -0
- package/dist/refresh-generated.js +87 -45
- package/dist/refresh-generated.js.map +1 -1
- package/dist/runtime-bootstrap-targets.d.ts +15 -0
- package/dist/runtime-bootstrap-targets.js +68 -0
- package/dist/runtime-bootstrap-targets.js.map +1 -0
- package/dist/runtime-bootstrap.js +3 -0
- package/dist/runtime-bootstrap.js.map +1 -1
- package/dist/runtime-commands.d.ts +2 -0
- package/dist/runtime-commands.js +187 -2
- package/dist/runtime-commands.js.map +1 -1
- package/dist/runtime-context-manifest.d.ts +27 -0
- package/dist/runtime-context-manifest.js +151 -0
- package/dist/runtime-context-manifest.js.map +1 -0
- package/dist/runtime-execution-renderer.d.ts +3 -1
- package/dist/runtime-execution-renderer.js +17 -53
- package/dist/runtime-execution-renderer.js.map +1 -1
- package/dist/runtime-execution.d.ts +2 -1
- package/dist/runtime-execution.js +166 -4
- package/dist/runtime-execution.js.map +1 -1
- package/dist/runtime-guardrails.js +9 -1
- package/dist/runtime-guardrails.js.map +1 -1
- package/dist/runtime-lifecycle-watch.d.ts +93 -0
- package/dist/runtime-lifecycle-watch.js +391 -0
- package/dist/runtime-lifecycle-watch.js.map +1 -0
- package/dist/runtime-parent-actions.d.ts +7 -2
- package/dist/runtime-parent-actions.js +132 -1
- package/dist/runtime-parent-actions.js.map +1 -1
- package/dist/runtime-renderer-lines.d.ts +5 -0
- package/dist/runtime-renderer-lines.js +58 -0
- package/dist/runtime-renderer-lines.js.map +1 -0
- package/dist/runtime-spawn-bridge.js +40 -10
- package/dist/runtime-spawn-bridge.js.map +1 -1
- package/dist/runtime-spawn-quality.d.ts +2 -0
- package/dist/runtime-spawn-quality.js +11 -0
- package/dist/runtime-spawn-quality.js.map +1 -0
- package/dist/sonar-insights.d.ts +1 -0
- package/dist/sonar-insights.js +6 -2
- package/dist/sonar-insights.js.map +1 -1
- package/dist/types/model-config.d.ts +6 -0
- package/dist/types/runtime.d.ts +26 -2
- package/dist/types/tasks.d.ts +12 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js.map +1 -1
- package/dist/web-api.js +8 -0
- package/dist/web-api.js.map +1 -1
- package/dist/web-console/assets/index-DXbrxR_d.js +11 -0
- package/dist/web-console/index.html +1 -1
- package/dist/workflow-handoff-assessment.d.ts +3 -0
- package/dist/workflow-handoff-assessment.js +246 -0
- package/dist/workflow-handoff-assessment.js.map +1 -0
- package/dist/workflow-handoff-contract.d.ts +32 -0
- package/dist/workflow-handoff-contract.js +123 -0
- package/dist/workflow-handoff-contract.js.map +1 -0
- package/dist/workflow-phase-transition.d.ts +16 -0
- package/dist/workflow-phase-transition.js +76 -0
- package/dist/workflow-phase-transition.js.map +1 -0
- package/dist/workflow-run-commands.js +47 -12
- package/dist/workflow-run-commands.js.map +1 -1
- package/dist/workflow-services.js +57 -27
- package/dist/workflow-services.js.map +1 -1
- package/dist/workspace-init-artifacts.d.ts +17 -0
- package/dist/workspace-init-artifacts.js +81 -0
- package/dist/workspace-init-artifacts.js.map +1 -0
- package/dist/workspace-runtime-bootstrap.d.ts +12 -0
- package/dist/workspace-runtime-bootstrap.js +64 -0
- package/dist/workspace-runtime-bootstrap.js.map +1 -0
- package/dist/workspace.d.ts +5 -2
- package/dist/workspace.js +43 -145
- package/dist/workspace.js.map +1 -1
- package/docs/architecture-debt-inventory.md +25 -0
- package/docs/autonomous-workflow.md +7 -0
- package/docs/e2e-test-batteries.md +106 -0
- package/docs/orchestra-mvp.md +8 -0
- package/docs/release-test-matrix.md +7 -0
- package/docs/runtime-adapters.md +86 -9
- package/docs/site-manifest.json +2 -0
- package/docs/sonar-quality-gates.md +133 -11
- package/package.json +5 -1
- package/rules/delivery-quality-gates.mdc +6 -0
- package/rules/devops-tooling.mdc +1 -0
- package/rules/security-guardrails.mdc +3 -0
- package/rules/testing-discipline.mdc +9 -0
- package/dist/web-console/assets/index-CgSKcay8.js +0 -11
package/docs/site-manifest.json
CHANGED
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"links": [
|
|
113
113
|
{ "title": "Adoption guide", "source": "docs/adoption-guide.md", "heading": "Open Orchestra 1.0.0 Adoption Guide" },
|
|
114
114
|
{ "title": "Core command surface", "source": "docs/core-command-surface.md", "heading": "Core Command Surface" },
|
|
115
|
+
{ "title": "E2E test batteries", "source": "docs/e2e-test-batteries.md", "heading": "End-to-End Test Batteries" },
|
|
115
116
|
{ "title": "Duplicate-code enforcement", "source": "docs/duplicate-code-enforcement.md", "heading": "Duplicate-Code Enforcement" },
|
|
116
117
|
{ "title": "Sonar quality gates", "source": "docs/sonar-quality-gates.md", "heading": "Sonar Quality Gates" },
|
|
117
118
|
{ "title": "Sonar architecture model", "source": "docs/sonar-architecture-model.md", "heading": "Sonar Architecture Model" },
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
"releaseDocs": {
|
|
123
124
|
"links": [
|
|
124
125
|
{ "title": "Release test matrix", "source": "docs/release-test-matrix.md", "heading": "1.0.0 Release Test Matrix" },
|
|
126
|
+
{ "title": "E2E test batteries", "source": "docs/e2e-test-batteries.md", "heading": "End-to-End Test Batteries" },
|
|
125
127
|
{ "title": "Sonar quality gates", "source": "docs/sonar-quality-gates.md", "heading": "Sonar Quality Gates" },
|
|
126
128
|
{ "title": "Sonar architecture model", "source": "docs/sonar-architecture-model.md", "heading": "Sonar Architecture Model" },
|
|
127
129
|
{ "title": "QA evidence", "source": "docs/site-content-workflow.md", "heading": "QA Evidence" },
|
|
@@ -22,10 +22,13 @@ Required GitHub secret when the GitHub Actions workflow is enabled:
|
|
|
22
22
|
|
|
23
23
|
- `SONAR_TOKEN`: token for SonarQube Cloud or SonarQube Server.
|
|
24
24
|
|
|
25
|
-
Optional GitHub
|
|
25
|
+
Optional GitHub secrets:
|
|
26
26
|
|
|
27
27
|
- `SONAR_HOST_URL`: required for self-hosted SonarQube Server. Leave unset for
|
|
28
28
|
SonarQube Cloud, or set `http://localhost:9000` only for local commands.
|
|
29
|
+
- `CF_ACCESS_CLIENT_ID` and `CF_ACCESS_CLIENT_SECRET`: Cloudflare Access service
|
|
30
|
+
token credentials for GitHub-hosted runners that must reach a private
|
|
31
|
+
self-hosted SonarQube URL protected by Zero Trust.
|
|
29
32
|
|
|
30
33
|
Optional GitHub variables:
|
|
31
34
|
|
|
@@ -37,6 +40,12 @@ Optional GitHub variables:
|
|
|
37
40
|
`workflow_dispatch`.
|
|
38
41
|
- `SONAR_QUALITY_GATE_WAIT`: set to `true` to fail the workflow when the remote
|
|
39
42
|
quality gate fails.
|
|
43
|
+
- `SONAR_RUNNER`: set to `self-hosted` to run the Sonar workflow on a local
|
|
44
|
+
runner that can reach the shared SonarQube runtime directly. When this is set,
|
|
45
|
+
the workflow uses `http://localhost:9001` by default and skips Cloudflare
|
|
46
|
+
Access service-token checks.
|
|
47
|
+
- `SONAR_LOCAL_HOST_URL`: optional override for self-hosted runner mode when the
|
|
48
|
+
runner reaches SonarQube through a different local-only URL.
|
|
40
49
|
|
|
41
50
|
The workflow skips analysis when `SONAR_TOKEN` is not configured. This keeps
|
|
42
51
|
forks and offline development usable. For private repositories, keep
|
|
@@ -55,29 +64,142 @@ gate status. If the scanner can upload analysis but the wait step fails with
|
|
|
55
64
|
|
|
56
65
|
## Local SonarQube
|
|
57
66
|
|
|
58
|
-
Open Orchestra
|
|
59
|
-
|
|
67
|
+
Open Orchestra does not own the long-lived local SonarQube containers. The
|
|
68
|
+
shared laptop/VPS runtime lives in `~/dev/sonarqube_jeterrats_dev` so multiple
|
|
69
|
+
projects can use the same SonarQube server without tying its lifecycle to this
|
|
70
|
+
repository.
|
|
60
71
|
|
|
61
72
|
```bash
|
|
62
|
-
|
|
73
|
+
cd ~/dev/sonarqube_jeterrats_dev
|
|
74
|
+
docker compose up -d
|
|
63
75
|
```
|
|
64
76
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
77
|
+
The shared runtime binds SonarQube to `127.0.0.1:${SONAR_PORT:-9001}` by
|
|
78
|
+
default, persists data in Docker volumes, and routes
|
|
79
|
+
`sonarqube.jterrats.dev` through the Cloudflare Tunnel named
|
|
80
|
+
`open-orchestra-sonar-local`.
|
|
81
|
+
The local database password is a rotated strong value stored only in the shared
|
|
82
|
+
infra `.env` file with owner-only file permissions; do not reset it to the
|
|
83
|
+
default `sonar` password.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
cd ~/dev/sonarqube_jeterrats_dev
|
|
87
|
+
docker compose ps
|
|
88
|
+
docker compose logs -f sonarqube
|
|
89
|
+
docker compose logs -f cloudflared
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
This repository keeps only project-specific assets: `sonar-project.properties`,
|
|
93
|
+
scanner scripts, import commands, and release evidence. That separation avoids
|
|
94
|
+
one project accidentally stopping, deleting, changing ports, or rotating
|
|
95
|
+
credentials for every other project using the same SonarQube server.
|
|
96
|
+
|
|
97
|
+
Open `http://localhost:9001`, complete the SonarQube first-run setup if needed,
|
|
98
|
+
create the `jterrats_open-orchestra` project key, and generate a project token.
|
|
99
|
+
The scanner and `orchestra sonar import` both authenticate with the token as
|
|
100
|
+
SonarQube Basic auth (`<token>:`), so the token must be valid for analysis and
|
|
101
|
+
API reads on the target project. Then run scanner/import commands against the
|
|
102
|
+
local or tunnel host. Example local scan:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
SONAR_HOST_URL=http://localhost:9001 SONAR_TOKEN=<local-token> npm run sonar:scan:local
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Example import after analysis is available:
|
|
68
109
|
|
|
69
110
|
```bash
|
|
70
111
|
SONAR_TOKEN=<local-token> node bin/orchestra.js sonar import \
|
|
71
112
|
--provider sonarqube-local \
|
|
72
|
-
--host-url http://localhost:
|
|
73
|
-
--project-key
|
|
113
|
+
--host-url http://localhost:9001 \
|
|
114
|
+
--project-key jterrats_open-orchestra \
|
|
74
115
|
--branch main \
|
|
75
116
|
--task GH-368-LOCAL-SONARQUBE-PROVIDER \
|
|
76
117
|
--json
|
|
77
118
|
```
|
|
78
119
|
|
|
79
|
-
HTTP is accepted only for `sonarqube-local` on localhost.
|
|
80
|
-
hosts must use HTTPS.
|
|
120
|
+
HTTP is accepted only for `sonarqube-local` on localhost. Shared tunnel and
|
|
121
|
+
cloud hosts must use HTTPS.
|
|
122
|
+
|
|
123
|
+
### Private Cloudflare Access
|
|
124
|
+
|
|
125
|
+
Do not expose SonarQube as a public DNS-only origin. If remote access is needed,
|
|
126
|
+
use Cloudflare Tunnel with Cloudflare Access so `sonarqube.jterrats.dev` is an
|
|
127
|
+
authenticated private entry point, not an open public service.
|
|
128
|
+
|
|
129
|
+
Minimum Cloudflare setup:
|
|
130
|
+
|
|
131
|
+
- Create a tunnel for this laptop or temporary VPS. The current tunnel name is
|
|
132
|
+
`open-orchestra-sonar-local`.
|
|
133
|
+
- Route `sonarqube.jterrats.dev` to the Sonar service behind the tunnel. The DNS
|
|
134
|
+
record is a proxied CNAME to
|
|
135
|
+
`6fb60222-1427-4ca1-bf11-9e19375d39ff.cfargotunnel.com`.
|
|
136
|
+
- Protect the hostname with a Cloudflare Access self-hosted application.
|
|
137
|
+
- Restrict Access to named users, groups, or a short-lived maintainer policy.
|
|
138
|
+
- Require MFA at the identity provider when possible.
|
|
139
|
+
- Keep SonarQube itself authenticated; Cloudflare Access is an outer gate, not a
|
|
140
|
+
replacement for Sonar users and tokens.
|
|
141
|
+
|
|
142
|
+
When the tunnel hostname is active, CI can use
|
|
143
|
+
`SONAR_HOST_URL=https://sonarqube.jterrats.dev` only if the runner has an
|
|
144
|
+
approved Access path. For GitHub-hosted runners, create a Cloudflare Access
|
|
145
|
+
service token, add a Service Auth policy scoped to the SonarQube application,
|
|
146
|
+
and configure `CF_ACCESS_CLIENT_ID` plus `CF_ACCESS_CLIENT_SECRET` as GitHub
|
|
147
|
+
secrets. The workflow starts an ephemeral localhost proxy that injects those
|
|
148
|
+
headers for SonarScanner and Orchestra import calls; browser login remains
|
|
149
|
+
required for human access. The proxy readiness check validates SonarQube through
|
|
150
|
+
the configured `SONAR_TOKEN` so private SonarQube instances that require
|
|
151
|
+
authentication do not fail on anonymous health endpoints.
|
|
152
|
+
|
|
153
|
+
If the Access service token secrets are not configured, the workflow keeps the
|
|
154
|
+
normal direct Sonar URL behavior. Use local analysis evidence or a self-hosted
|
|
155
|
+
runner when GitHub-hosted runners cannot access the private endpoint.
|
|
156
|
+
|
|
157
|
+
### Self-Hosted Runner Mode
|
|
158
|
+
|
|
159
|
+
For private local SonarQube on a laptop or low-cost VPS, prefer a self-hosted
|
|
160
|
+
GitHub Actions runner over exposing the analyzer path through Cloudflare Access.
|
|
161
|
+
Configure the repository or organization variable:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
gh variable set SONAR_RUNNER --repo jterratsdev/open-orchestra --body self-hosted
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Register the runner with dedicated labels so only the Sonar job can claim it.
|
|
168
|
+
Do not include OS-specific labels in the workflow unless the Sonar runtime truly
|
|
169
|
+
depends on that operating system; this keeps the same CI definition usable from
|
|
170
|
+
a macOS laptop today and a Linux host later.
|
|
171
|
+
|
|
172
|
+
```text
|
|
173
|
+
self-hosted
|
|
174
|
+
sonar
|
|
175
|
+
local-sonar
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
For the current laptop setup, use the macOS ARM64 runner package and configure
|
|
179
|
+
the runner with `--labels sonar,local-sonar`. GitHub automatically adds the
|
|
180
|
+
platform labels such as `self-hosted`, `macOS`, and `ARM64`.
|
|
181
|
+
|
|
182
|
+
Keep the shared SonarQube stack running locally:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
cd ~/dev/sonarqube_jterrats_dev
|
|
186
|
+
docker compose up -d
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
When `SONAR_RUNNER=self-hosted`, the workflow resolves SonarQube to
|
|
190
|
+
`http://localhost:9001` unless `SONAR_LOCAL_HOST_URL` is set. This intentionally
|
|
191
|
+
ignores `SONAR_HOST_URL`, so organization-level Cloudflare tunnel secrets do not
|
|
192
|
+
pull local machine analysis back through Zero Trust. Cloudflare Access remains
|
|
193
|
+
available for human remote browser usage and for GitHub-hosted runner access to
|
|
194
|
+
private SonarQube only. The CI scan uses
|
|
195
|
+
`continue-on-error` on the scanner step so Orchestra can still import and upload
|
|
196
|
+
Sonar evidence when the quality gate fails; a final workflow step re-fails the
|
|
197
|
+
job after evidence is captured.
|
|
198
|
+
|
|
199
|
+
If the runner itself runs inside a container, `localhost` points at the runner
|
|
200
|
+
container. In that case either run the runner process on the host, attach the
|
|
201
|
+
runner container to the SonarQube Docker network, or set `SONAR_LOCAL_HOST_URL`
|
|
202
|
+
to the host/network address that reaches SonarQube without Cloudflare.
|
|
81
203
|
|
|
82
204
|
Sonar reads TypeScript through `tsconfig.sonar.json`, a standalone analyzer
|
|
83
205
|
config that mirrors the build compiler options but lowers only the analyzer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jterrats/open-orchestra",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"extensions/vscode-open-orchestra",
|
|
@@ -17,16 +17,20 @@
|
|
|
17
17
|
"test:coverage": "npm run build && c8 --reporter=lcov --reports-dir coverage --exclude \"test/**\" --exclude \"e2e/**\" --exclude \"extensions/**/test/**\" --exclude \"dist/assets/**\" --exclude \"dist/web-console/**\" node --test test/**/*.js extensions/**/*.test.cjs",
|
|
18
18
|
"test:e2e": "npm run build && npm run site:build && playwright test",
|
|
19
19
|
"test:e2e:init": "node --test e2e/init-onboarding.test.js",
|
|
20
|
+
"test:e2e:runtime": "node --test e2e/runtime-manual-queue.test.js",
|
|
21
|
+
"test:e2e:runtime:ollama": "npm run build && node --test e2e/runtime-ollama-provider.test.js",
|
|
20
22
|
"lint": "eslint . && prettier --check \"{bin,e2e,scripts,test,src}/**/*.js\" \"{site,web-console}/src/**/*.{css,js,jsx}\" \"{site,web-console}/*.{html,js,json}\" \"extensions/**/*.{cjs,json,md}\" \"src/**/*.ts\" \"*.{js,json}\"",
|
|
21
23
|
"format": "prettier --write \"{bin,e2e,scripts,test,src}/**/*.js\" \"{site,web-console}/src/**/*.{css,js,jsx}\" \"{site,web-console}/*.{html,js,json}\" \"extensions/**/*.{cjs,json,md}\" \"src/**/*.ts\" \"*.{js,json}\"",
|
|
22
24
|
"secret-scan": "node scripts/secret-scan.js",
|
|
23
25
|
"security:audit": "node scripts/security-audit.js",
|
|
26
|
+
"architecture:inventory": "npm run build && node scripts/architecture-debt-inventory.js",
|
|
24
27
|
"duplicates": "jscpd --config .jscpd.json",
|
|
25
28
|
"validate:workflow": "node scripts/validate-workflow.js",
|
|
26
29
|
"release:matrix": "node scripts/release-test-matrix.js",
|
|
27
30
|
"performance:bench": "npm run build && node scripts/performance-benchmark.js",
|
|
28
31
|
"precommit": "npm run lint && npm run typecheck && npm run secret-scan && npm run security:audit && npm test && npm run validate:workflow",
|
|
29
32
|
"prepack": "npm run build",
|
|
33
|
+
"sonar:scan:local": "sonar-scanner -Dsonar.host.url=${SONAR_HOST_URL:-http://localhost:9001}",
|
|
30
34
|
"hooks:install": "git config core.hooksPath .githooks",
|
|
31
35
|
"build:web": "npm run build:web:legacy && npm run build:web:react",
|
|
32
36
|
"build:web:legacy": "esbuild src/web-console-client.js --bundle --format=esm --platform=browser --target=es2022 --outfile=dist/assets/web-console.js",
|
|
@@ -19,6 +19,10 @@ Development work is not complete when code compiles. Every implementation must m
|
|
|
19
19
|
|
|
20
20
|
- QA receives the Developer handoff before release approval.
|
|
21
21
|
- QA must produce a test plan covering acceptance criteria, regression areas, edge cases, data setup, and environment assumptions.
|
|
22
|
+
- QA must block test planning when acceptance criteria are fragmented, non-verifiable, or only role/phase headings. Return those findings to PO/BA before release evidence is generated.
|
|
23
|
+
- QA plans must include an AC-to-evidence matrix with expected observable result, actual result, artifact/command, and pass/fail/deferred status for each acceptance criterion.
|
|
24
|
+
- QA must validate that the planned tests exercise the actual risk, not a weaker surrogate. For scope/split, handoff, workflow, runtime, queueing, failback, or release-gate bugs, the test data must create the condition that should trigger the guardrail.
|
|
25
|
+
- QA must block when the plan substitutes a weaker surface for the requested behavior, such as browser smoke for workflow/CLI behavior, command execution without stdout/files/events checks, or API response checks without receiver-side effects for integrations.
|
|
22
26
|
- QA must execute or explicitly defer each test case with a reason.
|
|
23
27
|
- QA findings must include severity, reproduction steps, expected result, actual result, and evidence.
|
|
24
28
|
- QA execution must be reviewable through a sprint-review-style evidence demo before release approval. Analyst/BA compares the executed evidence against the GitHub issue, user story, acceptance criteria, and Orchestra task; Architect reviews whether the tests cover architecture contracts, boundaries, integrations, data flow, and risk areas.
|
|
@@ -29,6 +33,8 @@ Development work is not complete when code compiles. Every implementation must m
|
|
|
29
33
|
|
|
30
34
|
- QA and Developer must identify which manual checks should become automated tests.
|
|
31
35
|
- Prefer Playwright for browser-based E2E, smoke, and regression flows.
|
|
36
|
+
- Automation for every product surface must use isolated deterministic fixtures: web, mobile, desktop, CLI, API, integrations, workflow/runtime, installer, data, and generated-artifact flows. Use the configured E2E fixture path, sandbox org, emulator, container, device farm, or test environment when the user/project provides one; otherwise default local disposable fixtures to `/tmp`.
|
|
37
|
+
- Automation must assert state transitions and final artifacts. For workflow-style systems, assert the automaton path: valid transition, blocked transition, loop/return transition, resume, and final release transition when applicable. For UI/mobile/API/integration systems, assert the user-visible state, device/responsive behavior, API contract, receiver-side side effect, persisted data, async job/event, or external sandbox state that proves the acceptance criterion.
|
|
32
38
|
- Use Page Object pattern for Playwright suites. Selectors belong in page objects or stable test helpers, not scattered through test bodies.
|
|
33
39
|
- Automated tests must be deterministic and avoid real network, clock, or randomness unless controlled by fixtures, mocks, or seeded data.
|
|
34
40
|
|
package/rules/devops-tooling.mdc
CHANGED
|
@@ -30,6 +30,7 @@ DevOps decisions must cover deployability, scalability, downtime strategy, obser
|
|
|
30
30
|
- Prefer managed services when they reduce operational risk without creating unacceptable lock-in or cost exposure.
|
|
31
31
|
- Record tool choices and major operational trade-offs in an ADR when they affect long-term operations.
|
|
32
32
|
- CI/CD, IaC, runbooks, and operational scripts that repeat command matrices, provider lists, environment maps, or resource collections must load the `collection-standards` skill.
|
|
33
|
+
- Local Docker stacks must publish ports on `127.0.0.1` unless the task explicitly requires LAN/public access and Security has accepted the risk. Databases, caches, queues, admin UIs, metrics backends, and Docker socket access are private by default.
|
|
33
34
|
|
|
34
35
|
## Scalability
|
|
35
36
|
- Define expected traffic, data volume, concurrency, growth assumptions, and bottlenecks.
|
|
@@ -35,3 +35,6 @@ These are non-negotiable. Violations must be fixed before code review.
|
|
|
35
35
|
|
|
36
36
|
- For databases, encryption, IaC, environment segregation, secrets management, scalability, and vulnerability management, see **infra-data-encryption.mdc**.
|
|
37
37
|
- Production networked services must consider TLS 1.2+, certificate management, HSTS where applicable, secure cookies, least privilege, and secret rotation.
|
|
38
|
+
- Local Docker Compose, dev servers, databases, caches, observability tools, and admin UIs must bind published ports to `127.0.0.1` by default.
|
|
39
|
+
- Binding to `0.0.0.0`, `[::]`, or a LAN interface is a security exception. It needs a linked task, explicit rationale, no default credentials, and a time-bounded review.
|
|
40
|
+
- Never expose Redis, Postgres, admin consoles, Docker socket, or internal APIs on public/LAN interfaces unless Security approves the exact use case and compensating controls.
|
|
@@ -40,6 +40,11 @@ alwaysApply: true
|
|
|
40
40
|
- Use the Page Object pattern for UI tests. Selectors live in page objects, not test bodies.
|
|
41
41
|
- Tag tests by speed/scope (`@smoke`, `@regression`) so CI can run fast feedback loops.
|
|
42
42
|
- Capture evidence for E2E failures with traces, screenshots, or videos when supported by the framework.
|
|
43
|
+
- E2E tests for any product surface must run against isolated disposable fixtures: web apps, mobile apps, desktop apps, CLI, APIs, integrations, workflows, runtimes, installers, file-system flows, data pipelines, and generated artifacts. Use the user/project-configured E2E fixture path, device farm, sandbox org, emulator, container, or test environment when one is explicitly provided; otherwise default local disposable fixtures to `/tmp`. Each test creates its own users/data/project/tasks/roles/acceptance criteria/expected artifacts as applicable; never rely on the developer's current repo state as the tested product state.
|
|
44
|
+
- QA must choose fixture data that reproduces the risk being validated. If the acceptance criterion is about oversized stories, split decisions, phase returns, queueing, or specialist roles, the E2E must create an oversized/cross-cutting task with enough paths, roles, acceptance criteria, and risk signals to force that behavior.
|
|
45
|
+
- Every E2E must assert the resulting state, not only that the action executed. Validate UI-visible state, navigation, accessibility, device/responsive behavior, API contracts, receiver-side integration state, database/mock records, files, events, handoff contents, stdout/stderr, exit code, push notifications, background jobs, generated artifacts, or release-readiness output as applicable.
|
|
46
|
+
- For workflow automata, E2E must validate state transitions and loops: allowed transition, blocked transition, return-to-dev/architect/BA when findings fail, and resume behavior after the corrective state is satisfied.
|
|
47
|
+
- Include negative and edge scenarios when they are the reason for the change. A happy-path smoke is insufficient for bugs involving guardrails, split detection, security boundaries, QA failback, or release blocking.
|
|
43
48
|
- QA, SDET, Developer, BA, Architect, and Release work that produces or reviews evidence must load the `qa-evidence-pack` skill when it involves acceptance criteria coverage, Playwright/browser artifacts, CLI stdout/stderr, API contracts, integration side effects, screenshots, visual diffs, or annotated defect evidence.
|
|
44
49
|
- Keep large screenshots, videos, traces, logs, API payloads, and visual diffs as files. Summarize them in a compact evidence report so agents do not consume context with raw artifacts.
|
|
45
50
|
|
|
@@ -47,6 +52,10 @@ alwaysApply: true
|
|
|
47
52
|
|
|
48
53
|
- Developer must provide QA with test commands run, pass/fail results, covered scenarios, and known gaps.
|
|
49
54
|
- QA must produce a test plan before release approval and map every acceptance criterion to automated, manual, contract/mock, or deferred evidence.
|
|
55
|
+
- QA must reject fragmented acceptance criteria before planning tests. Role names, phase names, headings, and partial clauses are not executable criteria and must return to PO/BA for rewrite.
|
|
56
|
+
- QA plans must include an AC-to-evidence matrix with: acceptance criterion, test type, fixture/setup, command or artifact, expected observable result, actual result, and pass/fail/deferred status.
|
|
57
|
+
- QA must challenge weak tests before approving: if the test fixture is too small to exercise the bug, uses only the happy path, does not create the expected failure/return condition, or does not inspect the artifact/state that proves the acceptance criterion, QA must block or request changes.
|
|
58
|
+
- QA must reject weaker surrogate tests. Validate the affected product surface directly: workflow/CLI/API/integration/generated artifact/mobile/desktop/data behavior cannot be approved only by a generic browser smoke or command-executed check.
|
|
50
59
|
- QA evidence must validate observable outcomes, not only execution. CLI checks assert exit code, stdout/stderr, files, events, or final state; browser checks assert visible user-facing state; API checks assert response contract and side effects; integration checks assert sandbox/mock/contract/webhook/event/log outcomes or defer with owner and rationale.
|
|
51
60
|
- Evidence summaries or metadata must name the covered acceptance criterion or explicitly state that all acceptance criteria are covered. Smoke and regression checks are useful but do not count as acceptance coverage unless they map to an acceptance criterion.
|
|
52
61
|
- Visual/UI/diagram defect evidence must include source or expected image when available, actual screenshot/render, diff image when practical, and an annotated screenshot for ambiguous failures. Use red boxes for broken bounds/overlap, orange arrows for wrong connectors or flow, yellow translucent areas for excess spacing, blue guide lines for alignment, and short defect labels.
|