@aiwg/flue 2026.11.10 → 2026.11.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/package.json +77 -5
  2. package/skills/aiwg-language-map/SKILL.md +1 -1
  3. package/skills/aiwg-pr/SKILL.md +6 -0
  4. package/skills/{steward-quickref → aiwg-steward-quickref}/SKILL.md +6 -2
  5. package/skills/aiwg-steward-routing-reference/SKILL.md +2 -2
  6. package/skills/aiwg-utils-quickref/SKILL.md +2 -1
  7. package/skills/ci-assess/SKILL.md +30 -0
  8. package/skills/ci-pipeline-audit/SKILL.md +53 -0
  9. package/skills/ci-pipeline-design/SKILL.md +2 -0
  10. package/skills/ci-render/SKILL.md +33 -0
  11. package/skills/effect-ledger/SKILL.md +17 -0
  12. package/skills/flow-guided-implementation/SKILL.md +4 -0
  13. package/skills/flow-iteration-dual-track/SKILL.md +5 -0
  14. package/skills/flow-test-strategy-execution/SKILL.md +2 -0
  15. package/skills/flow-ux-studio/SKILL.md +206 -0
  16. package/skills/flow-ux-studio/SKILL.md.d.ts +3 -0
  17. package/skills/flow-ux-studio/references/provider-resolution.md +106 -0
  18. package/skills/flow-ux-studio/references/stage-templates.md +27 -0
  19. package/skills/flow-ux-studio/references/tool-map.md +67 -0
  20. package/skills/intake-start/SKILL.md +1 -0
  21. package/skills/intake-wizard/SKILL.md +2 -0
  22. package/skills/new-bundle/SKILL.md +1 -1
  23. package/skills/promote/SKILL.md +1 -1
  24. package/skills/steward/SKILL.md +2 -2
  25. package/skills/ux-a11y-design/SKILL.md +64 -0
  26. package/skills/ux-a11y-design/SKILL.md.d.ts +3 -0
  27. package/skills/ux-build/SKILL.md +67 -0
  28. package/skills/ux-build/SKILL.md.d.ts +3 -0
  29. package/skills/ux-copy/SKILL.md +65 -0
  30. package/skills/ux-copy/SKILL.md.d.ts +3 -0
  31. package/skills/ux-critique/SKILL.md +70 -0
  32. package/skills/ux-critique/SKILL.md.d.ts +3 -0
  33. package/skills/ux-design-system/SKILL.md +65 -0
  34. package/skills/ux-design-system/SKILL.md.d.ts +3 -0
  35. package/skills/ux-edge-states/SKILL.md +68 -0
  36. package/skills/ux-edge-states/SKILL.md.d.ts +3 -0
  37. package/skills/ux-ethics/SKILL.md +65 -0
  38. package/skills/ux-ethics/SKILL.md.d.ts +3 -0
  39. package/skills/ux-flows-ia/SKILL.md +70 -0
  40. package/skills/ux-flows-ia/SKILL.md.d.ts +3 -0
  41. package/skills/ux-handoff/SKILL.md +71 -0
  42. package/skills/ux-handoff/SKILL.md.d.ts +3 -0
  43. package/skills/ux-handoff-index/SKILL.md +72 -0
  44. package/skills/ux-handoff-index/SKILL.md.d.ts +3 -0
  45. package/skills/ux-live-verify/SKILL.md +110 -0
  46. package/skills/ux-live-verify/SKILL.md.d.ts +3 -0
  47. package/skills/ux-live-verify/references/axe-strategy.md +23 -0
  48. package/skills/ux-metrics/SKILL.md +63 -0
  49. package/skills/ux-metrics/SKILL.md.d.ts +3 -0
  50. package/skills/ux-problem-framing/SKILL.md +63 -0
  51. package/skills/ux-problem-framing/SKILL.md.d.ts +3 -0
  52. package/skills/ux-quickref/SKILL.md +69 -0
  53. package/skills/ux-quickref/SKILL.md.d.ts +3 -0
  54. package/skills/ux-research/SKILL.md +75 -0
  55. package/skills/ux-research/SKILL.md.d.ts +3 -0
  56. package/skills/ux-visual-direction/SKILL.md +63 -0
  57. package/skills/ux-visual-direction/SKILL.md.d.ts +3 -0
  58. package/skills/ux-wireframes/SKILL.md +63 -0
  59. package/skills/ux-wireframes/SKILL.md.d.ts +3 -0
  60. package/specialists.d.ts +1 -0
  61. package/specialists.js +1 -0
  62. /package/skills/{steward-quickref → aiwg-steward-quickref}/SKILL.md.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwg/flue",
3
- "version": "2026.11.10",
3
+ "version": "2026.11.11",
4
4
  "description": "AIWG bundle skills, specialist factories and MCP tools for Flue apps.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1148,6 +1148,78 @@
1148
1148
  "types": "./skills/yarn-release-age-gate/SKILL.md.d.ts",
1149
1149
  "default": "./skills/yarn-release-age-gate/SKILL.md"
1150
1150
  },
1151
+ "./skills/flow-ux-studio/SKILL.md": {
1152
+ "types": "./skills/flow-ux-studio/SKILL.md.d.ts",
1153
+ "default": "./skills/flow-ux-studio/SKILL.md"
1154
+ },
1155
+ "./skills/ux-a11y-design/SKILL.md": {
1156
+ "types": "./skills/ux-a11y-design/SKILL.md.d.ts",
1157
+ "default": "./skills/ux-a11y-design/SKILL.md"
1158
+ },
1159
+ "./skills/ux-build/SKILL.md": {
1160
+ "types": "./skills/ux-build/SKILL.md.d.ts",
1161
+ "default": "./skills/ux-build/SKILL.md"
1162
+ },
1163
+ "./skills/ux-copy/SKILL.md": {
1164
+ "types": "./skills/ux-copy/SKILL.md.d.ts",
1165
+ "default": "./skills/ux-copy/SKILL.md"
1166
+ },
1167
+ "./skills/ux-critique/SKILL.md": {
1168
+ "types": "./skills/ux-critique/SKILL.md.d.ts",
1169
+ "default": "./skills/ux-critique/SKILL.md"
1170
+ },
1171
+ "./skills/ux-design-system/SKILL.md": {
1172
+ "types": "./skills/ux-design-system/SKILL.md.d.ts",
1173
+ "default": "./skills/ux-design-system/SKILL.md"
1174
+ },
1175
+ "./skills/ux-edge-states/SKILL.md": {
1176
+ "types": "./skills/ux-edge-states/SKILL.md.d.ts",
1177
+ "default": "./skills/ux-edge-states/SKILL.md"
1178
+ },
1179
+ "./skills/ux-ethics/SKILL.md": {
1180
+ "types": "./skills/ux-ethics/SKILL.md.d.ts",
1181
+ "default": "./skills/ux-ethics/SKILL.md"
1182
+ },
1183
+ "./skills/ux-flows-ia/SKILL.md": {
1184
+ "types": "./skills/ux-flows-ia/SKILL.md.d.ts",
1185
+ "default": "./skills/ux-flows-ia/SKILL.md"
1186
+ },
1187
+ "./skills/ux-handoff/SKILL.md": {
1188
+ "types": "./skills/ux-handoff/SKILL.md.d.ts",
1189
+ "default": "./skills/ux-handoff/SKILL.md"
1190
+ },
1191
+ "./skills/ux-handoff-index/SKILL.md": {
1192
+ "types": "./skills/ux-handoff-index/SKILL.md.d.ts",
1193
+ "default": "./skills/ux-handoff-index/SKILL.md"
1194
+ },
1195
+ "./skills/ux-live-verify/SKILL.md": {
1196
+ "types": "./skills/ux-live-verify/SKILL.md.d.ts",
1197
+ "default": "./skills/ux-live-verify/SKILL.md"
1198
+ },
1199
+ "./skills/ux-metrics/SKILL.md": {
1200
+ "types": "./skills/ux-metrics/SKILL.md.d.ts",
1201
+ "default": "./skills/ux-metrics/SKILL.md"
1202
+ },
1203
+ "./skills/ux-problem-framing/SKILL.md": {
1204
+ "types": "./skills/ux-problem-framing/SKILL.md.d.ts",
1205
+ "default": "./skills/ux-problem-framing/SKILL.md"
1206
+ },
1207
+ "./skills/ux-quickref/SKILL.md": {
1208
+ "types": "./skills/ux-quickref/SKILL.md.d.ts",
1209
+ "default": "./skills/ux-quickref/SKILL.md"
1210
+ },
1211
+ "./skills/ux-research/SKILL.md": {
1212
+ "types": "./skills/ux-research/SKILL.md.d.ts",
1213
+ "default": "./skills/ux-research/SKILL.md"
1214
+ },
1215
+ "./skills/ux-visual-direction/SKILL.md": {
1216
+ "types": "./skills/ux-visual-direction/SKILL.md.d.ts",
1217
+ "default": "./skills/ux-visual-direction/SKILL.md"
1218
+ },
1219
+ "./skills/ux-wireframes/SKILL.md": {
1220
+ "types": "./skills/ux-wireframes/SKILL.md.d.ts",
1221
+ "default": "./skills/ux-wireframes/SKILL.md"
1222
+ },
1151
1223
  "./skills/validation-complete/SKILL.md": {
1152
1224
  "types": "./skills/validation-complete/SKILL.md.d.ts",
1153
1225
  "default": "./skills/validation-complete/SKILL.md"
@@ -1440,6 +1512,10 @@
1440
1512
  "types": "./skills/aiwg-status/SKILL.md.d.ts",
1441
1513
  "default": "./skills/aiwg-status/SKILL.md"
1442
1514
  },
1515
+ "./skills/aiwg-steward-quickref/SKILL.md": {
1516
+ "types": "./skills/aiwg-steward-quickref/SKILL.md.d.ts",
1517
+ "default": "./skills/aiwg-steward-quickref/SKILL.md"
1518
+ },
1443
1519
  "./skills/aiwg-steward-routing-reference/SKILL.md": {
1444
1520
  "types": "./skills/aiwg-steward-routing-reference/SKILL.md.d.ts",
1445
1521
  "default": "./skills/aiwg-steward-routing-reference/SKILL.md"
@@ -1776,10 +1852,6 @@
1776
1852
  "types": "./skills/steward-prep-delivery/SKILL.md.d.ts",
1777
1853
  "default": "./skills/steward-prep-delivery/SKILL.md"
1778
1854
  },
1779
- "./skills/steward-quickref/SKILL.md": {
1780
- "types": "./skills/steward-quickref/SKILL.md.d.ts",
1781
- "default": "./skills/steward-quickref/SKILL.md"
1782
- },
1783
1855
  "./skills/summarize-transcript/SKILL.md": {
1784
1856
  "types": "./skills/summarize-transcript/SKILL.md.d.ts",
1785
1857
  "default": "./skills/summarize-transcript/SKILL.md"
@@ -417,5 +417,5 @@ If after that the capability genuinely doesn't exist, you can tell the user hone
417
417
  ## See also
418
418
 
419
419
  - `aiwg-utils-quickref` — core meta-utility surface and the canonical discover→show pipeline
420
- - Per-framework quickrefs: `sdlc-quickref`, `forensics-quickref`, `research-quickref`, `media-curator-quickref`, `marketing-quickref`, `ops-quickref`, `cicd-quickref`, `security-engineering-quickref`, `knowledge-base-quickref`
420
+ - Per-framework quickrefs: `sdlc-quickref`, `forensics-quickref`, `research-quickref`, `media-curator-quickref`, `marketing-quickref`, `ops-quickref`, `cicd-quickref`, `ux-quickref`, `security-engineering-quickref`, `knowledge-base-quickref`
421
421
  - `skill-discovery` HIGH rule — discovery is mandatory before declining or improvising
@@ -74,6 +74,12 @@ enforce-mode `flag`/`require-authorization` pauses and `reject` blocks the
74
74
  mutation. Off mode disables only this AIWG classifier, not delivery,
75
75
  authorization, provider, or platform safeguards.
76
76
 
77
+ ## Before editing
78
+
79
+ Run `aiwg discover "<change capability>"` before editing. Read the selected
80
+ skill and its bound rules with `aiwg show skill <name> --body --rules --with-rule-bodies`.
81
+ Follow the target project's installed workflow and verification gates.
82
+
77
83
  ## The walkthrough
78
84
 
79
85
  ### Lookup-before-ask
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  namespace: aiwg
3
- name: steward-quickref
3
+ name: aiwg-steward-quickref
4
+ aliases: [steward-quickref]
4
5
  platforms: [flue]
5
6
  kernel: true
6
7
  description: AUTO-INVOKE for steward feature-domain routing — authoring an expansion (extension/addon/framework), creating or selecting a persona/SOUL identity, or scaffolding a project. Thin discover anchors for the three domains the framework quickrefs don't own.
@@ -18,7 +19,10 @@ triggers:
18
19
  - expansion persona or project
19
20
  ---
20
21
 
21
- # Steward Quickref
22
+ # AIWG Steward Quickref
23
+
24
+ Routes AIWG’s own steward agent. Claude Code’s built-in `/steward` reads separate
25
+ project PR guidance and does not use this quickref.
22
26
 
23
27
  `aiwg show <type> <name>` returns a metadata card. Inspect its outline, then fetch a needed `--section "Heading"` or use `--body` for the full instructions. Fetch required rules with `--rules --with-rule-bodies` before governed work.
24
28
 
@@ -14,7 +14,7 @@ triggers:
14
14
  # AIWG Steward Routing Reference
15
15
 
16
16
  Tier-3 reference for `aiwg-steward`. Use this only after the Tier-1 steward
17
- definition or `steward-quickref` points here.
17
+ definition or `aiwg-steward-quickref` points here.
18
18
 
19
19
  Read the full reference at:
20
20
 
@@ -40,6 +40,6 @@ observed command output.
40
40
 
41
41
  ## References
42
42
 
43
- - [[steward-quickref]]
43
+ - [[aiwg-steward-quickref]]
44
44
  - [[aiwg-steward worked examples]]
45
45
  - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/docs/agent-examples/aiwg-steward-routing-reference.md
@@ -33,6 +33,7 @@ If a user asks about a specific framework's surface, the corresponding quickref
33
33
  - `marketing-quickref` — marketing operations and campaigns
34
34
  - `ops-quickref` — operational infrastructure and runbooks
35
35
  - `cicd-quickref` — end-user CI/CD lifecycle and pipeline/environment schemas
36
+ - `ux-quickref` — UX studio tiers, design/review/handoff flow and human gates
36
37
  - `security-engineering-quickref` — applied security and crypto decisions
37
38
  - `knowledge-base-quickref` — wiki and documentation workflows
38
39
 
@@ -179,7 +180,7 @@ aiwg discover "set up jev" # → decision-offload (Jev token s
179
180
 
180
181
  ### Feature domains the steward owns (expansion / persona / project)
181
182
 
182
- Three cross-cutting domains that no framework quickref owns — consult the `steward-quickref` kernel skill, or discover directly:
183
+ Three cross-cutting domains that no framework quickref owns — consult the `aiwg-steward-quickref` kernel skill, or discover directly:
183
184
 
184
185
  ```bash
185
186
  aiwg discover "author an expansion" # → scaffold-extension / -addon / -framework
@@ -82,3 +82,33 @@ root; stop if unavailable. Keep drafts and reports there. Never write literal
82
82
  secrets or raw credential-bearing logs. Resolve templates by name with discovery;
83
83
  if a template or capability is absent, record the prerequisite and pending work.
84
84
  Do not claim execution from schema validation or a proposed procedure.
85
+
86
+ ## Red-main recovery assessment (#4528)
87
+
88
+ For an opted-in recovery profile, normalize available redacted run history and
89
+ call `assessRecoveryBackpressure` from the framework's
90
+ `validators/recovery-backpressure.mjs`. Report lambda (merges/second), T (mean
91
+ qualification seconds), p (culprits/merges), r (mean recovery seconds/culprit),
92
+ window and sample counts, lambda*p*r and n = lambda*T/(1-lambda*p*r), including
93
+ below-threshold values. Mark all inputs unavailable when history is absent or
94
+ incomplete; never assume missing recoveries mean zero. Use at least a complete
95
+ week and alert strictly above the profile threshold (default 0.3); load >= 1
96
+ means saturated with n unavailable. See
97
+ `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md` for the offline
98
+ export format. Add results to the assessment report's recovery section; do not
99
+ fetch history or trigger runs without the corresponding authorization.
100
+
101
+ ## Selected profile compliance (#4529)
102
+
103
+ When an environment selects a constraint profile, call `assessConstraintProfile`
104
+ and `renderAssessmentReport` from
105
+ `$AIWG_ROOT/agentic/code/frameworks/cicd-complete/validators/profile-assessment.mjs`
106
+ with phase `audit-time`. Fill the assessment report template: one row per
107
+ constraint with its enforcement (`off`, `advisory` or `blocking`) and status
108
+ `met`, `violated` or `not-expressible`, plus file and line evidence. `off` is
109
+ not evaluated. Pass the render target. Scheduler, scaling or workflow fields
110
+ that target cannot carry are `not-expressible`; do not treat them as met.
111
+ Where redacted history is already available, pass runner-minutes per pull
112
+ request, runner-minutes per main batch, the share of on-demand capacity,
113
+ idle-runner time, queue wait and the backpressure run history. Missing history
114
+ stays unavailable. Never invent zeros or call a billing API.
@@ -87,3 +87,56 @@ root; stop if unavailable. Keep drafts and reports there. Never write literal
87
87
  secrets or raw credential-bearing logs. Resolve templates by name with discovery;
88
88
  if a template or capability is absent, record the prerequisite and pending work.
89
89
  Do not claim execution from schema validation or a proposed procedure.
90
+
91
+ ## Capacity constraints (#4526)
92
+
93
+ For opted-in capacity profiles, run the existing local constraint validator at
94
+ `$AIWG_ROOT/agentic/code/frameworks/cicd-complete/validators/constraints.mjs`
95
+ with the pipeline, all named environments and `--phase audit-time`. The built-in
96
+ capacity hooks check inventory, pool bounds, spot preference, packing, main job
97
+ placement, self-hosted labels and measured timeout ceilings. Follow the capacity
98
+ section of `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md`.
99
+ Report ID, enforcement and affected pool/job for every violation. Compare the
100
+ provider preview against its runner registration and reviewed scale-set values;
101
+ report unsupported capacity fields as **not expressible**. Keep live cluster
102
+ verification and measurement provenance as explicit unknowns unless evidenced.
103
+ Use the existing build-time-budget GatePack for elapsed-time observations;
104
+ timeout hits require hang investigation, never automatic budget increases.
105
+
106
+ ## Pipeline-shape constraints (#4527)
107
+
108
+ For a selected pipeline-shape profile, run the existing constraint validator in
109
+ `--phase audit-time` with the inert rendered workflow (`--workflow`) and reviewed
110
+ project adapter bindings (`--shape-bindings`). Follow
111
+ `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md#pipeline-shape-4527`.
112
+ Report each constraint ID, subject and enforcement. Compare the slow-check
113
+ inventory with prior checks and measured execution durations; verify issue
114
+ references read-only when access is authorized. Queue wait is excluded from the
115
+ PR budget. Check label/head revalidation, registry-cache bindings and the exact
116
+ qualified-tree release path. Static adapter declarations are not runtime proof;
117
+ missing observations remain unknown. Record the #4528 recovery prerequisite.
118
+
119
+ ## Red-main recovery audit (#4528)
120
+
121
+ For each selected recovery constraint, run the shared `validateConstraints`
122
+ preflight in `audit-time` phase. Use `createRecoveryValidators(evidence)` from
123
+ `validators/recovery.mjs` for explicit offline shipped/proposed migration
124
+ inventories and normalized run history. Trace declared `ci-test` recovery
125
+ policies to required provider verdicts, fix-label access and green-state re-run
126
+ subscriptions; missing declarations or bindings are findings. Detect shipped
127
+ migration deletion/modification from the ledger and candidate inventory. Trace
128
+ every red-main repair deploy to its own tests, build and pre-deploy migration,
129
+ including dependency ordering and matching worker/build identity. Missing
130
+ runtime evidence is unavailable, not a passed control. Keep the repair-migration
131
+ deadlock and the original failing checks in the CI incident record. Formats and
132
+ worked example: `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md`.
133
+
134
+ ## Profile audit (#4529)
135
+
136
+ For a selected profile, run `assessConstraintProfile` at `audit-time` and
137
+ classify it with `auditFindings` from
138
+ `$AIWG_ROOT/agentic/code/frameworks/cicd-complete/validators/profile-assessment.mjs`.
139
+ A `blocking` violation is a finding. An `advisory` violation is a recommendation.
140
+ Each names the constraint id and the fix from the validator message. Report
141
+ `not-expressible` rows on their own and do not count them as passed controls.
142
+ Use `ci-assessment-report-template` for the disposition section.
@@ -28,6 +28,8 @@ cannot be loaded. These are mandatory operating instructions; rule-side
28
28
 
29
29
  1. Load intake and assessment, confirm desired behavior and compare provider
30
30
  targets `gitea-actions`, `github-actions` and `gitlab-ci` with `ci-architect`.
31
+ Start from a selected constraint profile. Leave new constraints as
32
+ `ci-architect` proposals until the operator approves adoption.
31
33
  2. Draft `cicd.aiwg.io/v1` CIPipeline with `spec.triggers`, `environments`,
32
34
  `stages` and `render.targets`. Jobs require ids and capability names; use
33
35
  `depends_on` for stage/job order. Select `ci-checkout`, `ci-cache`,
@@ -28,6 +28,15 @@ cannot be loaded. These are mandatory operating instructions; rule-side
28
28
 
29
29
  1. Load reviewed specs with `ci-renderer`; validate schemas, references, cycles,
30
30
  capability inputs and gate parameters. Resolve provider targets explicitly.
31
+ Before any provider template projection, run the local preflight at
32
+ `@$AIWG_ROOT/agentic/code/frameworks/cicd-complete/validators/constraints.mjs`
33
+ with the pipeline, all bound CIEnvironments, selected profile files and installed
34
+ extension roots. Follow the contract at
35
+ `@$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md`.
36
+ A blocking violation stops rendering; surface advisory warnings naming the
37
+ constraint ID and affected job or pool. Off skips checks. Unknown references,
38
+ invalid parameters and unavailable checkers are unresolved prerequisites.
39
+ Programmatic template consumers must use `renderWithConstraints` before projection.
31
40
  2. Locate the installed provider WorkflowExtension extending `cicd-complete`
32
41
  and its rendering templates. Record identity/version and compatibility.
33
42
  First-wave sources: `@$AIWG_ROOT/agentic/code/extensions/cicd-gitea-actions/`
@@ -90,3 +99,27 @@ root; stop if unavailable. Keep drafts and reports there. Never write literal
90
99
  secrets or raw credential-bearing logs. Resolve templates by name with discovery;
91
100
  if a template or capability is absent, record the prerequisite and pending work.
92
101
  Do not claim execution from schema validation or a proposed procedure.
102
+
103
+ ## Pipeline-shape preview (#4527)
104
+
105
+ For this selected family, use the GitHub Actions template's pipeline-shape
106
+ section and the reviewed project `CI_BINDINGS` plan. Prepare an inert preview,
107
+ then check those exact bytes through the existing validator with `--workflow`
108
+ and `--shape-bindings` before offering installation. Programmatic consumers pass
109
+ `workflows` and `shapeBindings` to `renderWithConstraints` and return only that
110
+ validated preview from the projection callback. Follow the binding contract at
111
+ `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md#pipeline-shape-4527`.
112
+ Do not claim adapter execution or recovery readiness from the static check.
113
+
114
+ ## Red-main recovery projection (#4528)
115
+
116
+ The shared preflight includes built-in `recovery.*` hooks for selected profiles.
117
+ Preserve optional `ci-test` and `ci-deploy-handoff` recovery inputs in `CI_INPUTS`
118
+ and all explicit test -> build -> migration -> deploy job dependencies. Resolve
119
+ each project-owned implementation and its required inputs using the existing
120
+ capability binding plan. Do not render a repair deploy behind a main-green guard
121
+ that would prevent its authorized red-main path. Record the provider-specific
122
+ repair trigger/guard in the binding plan and verify it against provider settings;
123
+ retain normal environment approvals, branch restrictions and secret protections.
124
+ Audit evidence is separate from a successful render. See
125
+ `$AIWG_ROOT/docs/frameworks/cicd-complete/constraint-profiles.md`.
@@ -24,6 +24,7 @@ an operator decision authorizes, the ledger proves.
24
24
  - "did we already post this comment" → `aiwg effect lookup` before posting
25
25
  - "verify the effect ledger" → `aiwg effect verify` (add
26
26
  `--with-decisions <audit.jsonl>` to check #1567 operator-decision links)
27
+ - "reconcile authorization decisions" → `aiwg effect verify --decisions`
27
28
  - "the effect ledger lock is stuck" → `aiwg effect recover-lock` (operator only)
28
29
 
29
30
  ## When to record
@@ -68,6 +69,22 @@ decision receipts. Do not record read-only queries.
68
69
  `--link operatorDecisionEventId=sha256:<hex>` (and
69
70
  `operatorDecisionRecordHash`) on `intent` or `record`.
70
71
 
72
+ ## Decision reconciliation
73
+
74
+ Use `aiwg effect verify --decisions` to reconcile recorded authorization receipts
75
+ against exact protected effects. A trusted host supplies the optional versioned
76
+ `--effect-file` binding to `aiwg config authorization receipt` or a fresh `check`.
77
+ Use `--scope-ended-at <UTC timestamp>` when the queried scope has ended.
78
+ The report distinguishes grant fulfilled/pending/missing and denial
79
+ respected/violated; missing denial records and legacy unbound decisions remain
80
+ `not recorded`. Unknown evidence remains unresolved. A denied occurrence stays
81
+ a violation after compensation; record compensation as a separate effect with
82
+ `context.compensatesEffectId` referencing the original ID. This command is
83
+ read-only. Exit 5 means a violated denial, 3 a missing grant, 4 unresolved
84
+ evidence, and 6 an integrity failure. Policy and human-denial capture are
85
+ unchanged. See `$AIWG_ROOT/docs/configuration/hitl-authorization.md` for bindings,
86
+ coverage limits and disposition semantics.
87
+
71
88
  ## Exit codes
72
89
 
73
90
  | Code | Meaning | What to do |
@@ -44,6 +44,10 @@ From issue requirements:
44
44
  3. **Bounded iteration** - Auto-retry up to N times, then escalate
45
45
  4. **Autonomous decision-making** - Don't ask unless truly blocked
46
46
 
47
+ ## UX handoff input
48
+
49
+ When the install registry lists `ux` or `ux-complete` and `07-handoff.md` is complete, decompose that handoff into Phase 2 implementation tasks. A pending handoff is not a task source. When those keys are absent, ignore UX studio records and do not load UX studio skills.
50
+
47
51
  ## Workflow
48
52
 
49
53
  ```
@@ -347,6 +347,8 @@ Based on your answers, I'll adjust:
347
347
 
348
348
  **Purpose**: Begin planning next iteration's work
349
349
 
350
+ When the install registry lists `ux` or `ux-complete`, the Product Designer offers `flow-ux-studio` for UI items (`aiwg show skill flow-ux-studio --body`) and records that offer in design-plan.md. When those keys are absent, schedule SDLC design sessions only and do not load UX studio skills.
351
+
350
352
  **Your Actions**:
351
353
 
352
354
  1. **Launch Discovery Planning** (parallel agents):
@@ -364,6 +366,9 @@ Based on your answers, I'll adjust:
364
366
  - Information architecture
365
367
  - Interaction patterns
366
368
 
369
+ When the install registry lists ux or ux-complete, offer flow-ux-studio
370
+ for UI work (aiwg show skill flow-ux-studio --body). When those keys are absent, schedule SDLC design sessions only and do not load UX studio skills.
371
+
367
372
  Schedule design sessions.
368
373
 
369
374
  Output: .aiwg/iterations/iteration-{N}/discovery/design-plan.md
@@ -161,6 +161,8 @@ Based on your answers, I'll adjust:
161
161
  - Performance metrics (if applicable)
162
162
  - Security scan results (if applicable)
163
163
 
164
+ When the install registry lists `ux` or `ux-complete`, attach completed `06-verify.md` results (Blocking none) as test evidence on the execution report. Pending or blocked verification is a gap, not a pass. When those keys are absent, do not load UX studio records.
165
+
164
166
  ## Multi-Agent Orchestration Workflow
165
167
 
166
168
  ### Step 1: Test Execution Planning
@@ -0,0 +1,206 @@
1
+ ---
2
+ name: flow-ux-studio
3
+ namespace: aiwg
4
+ platforms: [flue]
5
+ description: Run a provider-neutral UX studio flow for screen design, UX review and design handoff. Right-size quick, standard or full work through stages 0–7, explore alternatives and hold human Gates A/B/C.
6
+ triggers:
7
+ - run the ux flow
8
+ - ux studio
9
+ - design this screen
10
+ - redesign this page
11
+ - ux review of
12
+ - design and build this ui
13
+ - prepare a design handoff
14
+ ---
15
+
16
+ # Flow: UX Studio
17
+
18
+ One lifecycle with one owner per concern, independent of the host provider.
19
+ This skill defines process. Capability contracts and default implementations ship in
20
+ #4532; stage templates and `ux-handoff-index` ship in #4533. Live verify #4534 ships as
21
+ `ux-live-verify` on browser-control.
22
+ Do not report pending components as installed. If required work cannot
23
+ resolve, produce a pending routing plan, not a completed design run.
24
+
25
+ ## Bound rules
26
+
27
+ Load with `aiwg show rule <name> --body`; stop if a required rule is unavailable.
28
+ Canonical fallbacks:
29
+
30
+ - `native-ux-tools`: `$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/native-ux-tools.md`
31
+ - `artifact-output-policy`: `$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/artifact-output-policy.md`
32
+ - `subagent-scoping`: `$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/subagent-scoping.md`
33
+
34
+ ## Inputs and artifact routing
35
+
36
+ Required: a brief (goal and audience). Optional: tier, review-only, explore
37
+ direction count, screenshots, exports, descriptions, URLs, supplied research,
38
+ existing design tokens and target repository. No paid design service or design
39
+ account is assumed. Establish the owning repository before writing code.
40
+
41
+ Before any artifact write, run `aiwg artifacts path --json --check-write`.
42
+ Use `<artifact_root>/ux/<slug>/`, where slug is a short kebab-case name.
43
+ Stop if that root is unavailable. Keep product code in the owning repository;
44
+ prototype HTML, screenshots and review packages belong in the run directory.
45
+ Discover stage templates with `aiwg discover "UX studio stage" --type template`.
46
+ Use `ux-00-brief-template` through `ux-07-handoff-template` and
47
+ `ux-index-template`; see [the template map](references/stage-templates.md).
48
+
49
+ ## Tiers and modes
50
+
51
+ | Tier | Use when | Required stages |
52
+ |---|---|---|
53
+ | quick | One screen, copy change, existing-page review | 0, 3, 4, 5, 6, 7 |
54
+ | standard | New multi-screen flow or feature | 0–7 |
55
+ | full | Product area, IA change, regulated or high-risk UX | 0–7 at full depth |
56
+
57
+ Choose the smallest adequate tier; record the reason. Review-only skips stage
58
+ 5 at every tier. Stages 1 and 2 in quick are recorded as not required.
59
+
60
+ Explore mode applies to any tier: stage 3 records N named directions, thesis,
61
+ tradeoffs and constraints. After Gate A, build each as a disposable prototype
62
+ in stage 5 using provisional screen/copy specs, then verify every direction
63
+ in stage 6. Hold Gate B **after stage 6**, with the offline review package.
64
+ The order is 0 → (1 → 2) → 3 → provisional 4 → 5 → 6 → Gate B → final 4 → 7.
65
+ Only selected directions receive final screens/copy and handoff. If selection
66
+ changes prototype behavior or copy, rebuild and reverify before Gate C.
67
+ Review-only explore skips prototype construction: compare supplied alternatives
68
+ and evidence, record verification gaps, then ask Gate B; never imply a build ran.
69
+
70
+ ## Capability preflight
71
+
72
+ Use [the capability map](references/tool-map.md). Discover each required ID,
73
+ inspect its contract and actual callable implementation, and record owner,
74
+ availability and fallback. Use the bundled AIWG default if an optional provider
75
+ is unavailable. Follow [provider resolution](references/provider-resolution.md)
76
+ to select and invoke a skill and record the implementation that actually ran;
77
+ unresolved IDs stay unavailable in the routing plan. Do not guess plugin
78
+ skill names, read installation caches or copy proprietary provider content.
79
+
80
+ ## Stages
81
+
82
+ Write each stage record with inputs, capability owners, result, evidence and
83
+ open gaps before advancing. Gates remain pending until answered by the human.
84
+
85
+ ### Stage 0: Brief and preflight — 00-brief.md
86
+
87
+ Record capability availability, goal, audience, constraints, success measure,
88
+ inputs, slug, target repository, tier and mode. Standard/full route problem
89
+ framing to `ux.problem-framing`; quick writes a bounded brief directly.
90
+ **Gate A (scope)** confirms tier, slug and in/out of scope before downstream work.
91
+
92
+ ### Stage 1: Research — 01-research.md (standard/full)
93
+
94
+ Route `ux.research` to synthesize supplied notes or plan research when evidence
95
+ is missing. Full explores unresolved framing in greater depth. Record findings
96
+ with sources, assumptions and open questions; do not invent user research.
97
+
98
+ ### Stage 2: Structure — 02-structure.md (standard/full)
99
+
100
+ Route `ux.flows-ia` for journeys, navigation and screen states. Full also uses
101
+ `ux.edge-states` for a complete state inventory and service boundaries.
102
+ Record flows, IA and per-screen states, including loading, empty and error paths.
103
+
104
+ ### Stage 3: Visual direction — 03-direction.md
105
+
106
+ If a design system exists, `ux.design-system` audits it first. `ux.visual-direction`
107
+ then produces a constrained token plan: named palette values, type roles, layout
108
+ sketch and signature element. Do not write product code at this stage.
109
+ **Gate B (direction)** approves, requests adjustment or selects alternatives.
110
+ Explore mode defers this gate until every prototype has stage 6 evidence.
111
+
112
+ ### Stage 4: Screens and copy — 04-screens.md
113
+
114
+ Route `ux.copy` for labels, validation, errors and empty states. Standard/full
115
+ also route `ux.wireframes`; full covers market/platform variants where needed.
116
+ Record each screen's structure, states and final copy. Route `ux.a11y-design`
117
+ before build for standard/full; quick records a proportionate design checklist.
118
+ Explore specs remain provisional until Gate B and then cover selected directions.
119
+
120
+ ### Stage 5: Build — 05-build.md (skip for review-only)
121
+
122
+ Route `ux.build` with the approved direction and screen specification in the
123
+ owning repository; require component/performance review through that capability.
124
+ Record files changed and checks. Explore builds standalone fixture-data HTML
125
+ under `prototypes/`, plus `gallery.html`; prototypes do not authorize shipping.
126
+
127
+ For worker builders, write a shared bounded spec and pass/fail script. Use
128
+ `aiwg models resolve --role coding --task <class> --brief <file> --workdir <tree> --final-output <file> --transport shell --format shell`
129
+ with the configured group where applicable. Run the rendered command or MCP
130
+ descriptor exactly; respect resolved capacity and project limits. Independently
131
+ rerun checks. If spawning is unavailable, return the routing plan to the parent.
132
+
133
+ ### Stage 6: Verify — 06-verify.md
134
+
135
+ Route `ux.a11y-live` (#4534, browser-control) and `ux.critique` for every tier;
136
+ standard/full also check the `ux.a11y-design` decisions. Full uses `ux.metrics`
137
+ to define measurable success. Record live console, 375/768/1280 layout screenshots
138
+ (open and inspect each), keyboard reachability/focus/traps, WCAG 2.2 AA scan
139
+ findings and reduced motion. Static critique cannot substitute for live evidence.
140
+ If live access is unavailable, record the gap and leave verification incomplete.
141
+
142
+ Load `ux-live-verify` for this live concern. Its browser-control runner supports
143
+ project-installed headless Playwright when MCP cannot connect; no driver can
144
+ produce a pass. Merge live evidence into this stage record and preserve one
145
+ aggregate `Blocking:` line, including evidence gaps, for `ux-handoff-index`.
146
+
147
+ Critical/serious accessibility violations, keyboard traps, unreachable controls
148
+ and broken layouts block handoff. Return to stage 5 for repairs; after two failed
149
+ repair rounds stop and report evidence. Review-only returns blockers as findings,
150
+ without editing product code. Explore verifies every direction before Gate B.
151
+
152
+ ### Stage 7: Handoff — 07-handoff.md
153
+
154
+ Route `ux.handoff` for per-screen specs (quick) or the whole flow (standard/full).
155
+ Route `ux.ethics` for standard/full before packaging. Include unresolved risks,
156
+ owners and verified outcomes. In explore mode, and for wider-team review, prepare
157
+ `share/` before the relevant gate: offline index, screenshots/phone previews,
158
+ feedback helper, annotated per-direction explainers and README. Check the offline
159
+ package locally before delivery; record unavailable export tooling as a gap.
160
+
161
+ **Gate C (sign-off)** accepts the evidenced handoff or requests changes. Record
162
+ the answer before running `ux-handoff-index`. Required records are
163
+ 0,3,4,5,6,7 for quick, 0–7 otherwise, dropping 5 for review-only. Every required
164
+ record must be nonempty, Gates A/B/C must have human answers and dates, and
165
+ verification must have no blockers or missing evidence. Run the deterministic
166
+ checker documented in `ux-handoff-index`; it records gaps and return stages in
167
+ index.md. Only a complete
168
+ index permits a completion activity entry beneath the resolved artifact root.
169
+
170
+ ## Gate interaction contract
171
+
172
+ At each gate, detect the native question/elicitation tool actually callable in
173
+ the current host and mode and use it. If none is available, present one plain-text
174
+ Markdown question with evidence and explicit options, then wait for the answer:
175
+
176
+ **Gate A — Scope:** Given the brief, tier and boundaries in `00-brief.md`, proceed?
177
+ Options: approve scope | adjust scope | stop.
178
+
179
+ **Gate B — Direction:** Given `03-direction.md` (and verified prototypes in explore),
180
+ which direction should continue? Options: named direction(s) | adjust | stop.
181
+
182
+ **Gate C — Sign-off:** Given the handoff, verification and gaps, accept this delivery?
183
+ Options: accept | request changes | stop.
184
+
185
+ Ask only the active gate, one question at a time. A default choice, elapsed time,
186
+ tool cancellation, missing answer or model judgement cannot pass a gate. Record
187
+ the human's answer and date in 00, 03 or 07 respectively. Scope changes reopen
188
+ Gate A; direction changes reopen Gate B and invalidate affected downstream checks.
189
+
190
+ ## SDLC complement
191
+
192
+ Read the project install registry written by `aiwg use`. sdlc-complete is present
193
+ when `sdlc` or `sdlc-complete` is listed. When it is present, reuse its agents as
194
+ reviewers and fallbacks and do not ship duplicates: `ux-lead`, `product-designer`,
195
+ `accessibility-specialist`, `frontend-specialist` and `react-expert`
196
+ (`aiwg show agent <id> --body`). A completed handoff feeds construction
197
+ implementation tasks; completed verify results feed test evidence. When those keys are absent, this flow stands alone: do not load those agent files. Stage 5
198
+ workers still launch only through `aiwg models resolve`.
199
+
200
+ ## Result
201
+
202
+ Return tier/mode, stages run/skipped and reasons, capability owners, artifacts,
203
+ human gate answers/dates, verification evidence and open gaps. If work cannot
204
+ proceed, return stage, capability ID, implementation/availability, input,
205
+ expected artifact, checks and pending gate as a routing plan. No worker dispatch,
206
+ live pass or handoff completion may be inferred from this plan.
@@ -0,0 +1,3 @@
1
+ import type { SkillReference } from '@flue/runtime';
2
+ declare const skill: SkillReference;
3
+ export default skill;