@aiwg/flue 2026.11.9 → 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.
- package/package.json +217 -5
- package/skills/add-agent/SKILL.md +20 -6
- package/skills/add-command/SKILL.md +0 -1
- package/skills/add-skill/SKILL.md +13 -2
- package/skills/agent-loop/SKILL.md +1 -1
- package/skills/agent-loop-ext/SKILL.md +1 -1
- package/skills/aiwg-language-map/SKILL.md +2 -2
- package/skills/aiwg-mission/SKILL.md +3 -1
- package/skills/aiwg-pr/SKILL.md +6 -0
- package/skills/aiwg-regenerate-claude/SKILL.md +1 -1
- package/skills/{steward-quickref → aiwg-steward-quickref}/SKILL.md +6 -2
- package/skills/aiwg-steward-routing-reference/SKILL.md +2 -2
- package/skills/aiwg-update-agents-md/SKILL.md +1 -1
- package/skills/aiwg-update-claude/SKILL.md +1 -1
- package/skills/aiwg-utils-quickref/SKILL.md +6 -2
- package/skills/architecture-evolution/SKILL.md +4 -0
- package/skills/build-poc/SKILL.md +1 -1
- package/skills/ci-assess/SKILL.md +114 -0
- package/skills/ci-assess/SKILL.md.d.ts +3 -0
- package/skills/ci-builder/SKILL.md +80 -0
- package/skills/ci-builder/SKILL.md.d.ts +3 -0
- package/skills/ci-drift-check/SKILL.md +73 -0
- package/skills/ci-drift-check/SKILL.md.d.ts +3 -0
- package/skills/ci-failure-triage/SKILL.md +86 -0
- package/skills/ci-failure-triage/SKILL.md.d.ts +3 -0
- package/skills/ci-flake-hunt/SKILL.md +86 -0
- package/skills/ci-flake-hunt/SKILL.md.d.ts +3 -0
- package/skills/ci-migrate/SKILL.md +92 -0
- package/skills/ci-migrate/SKILL.md.d.ts +3 -0
- package/skills/ci-pipeline-audit/SKILL.md +142 -0
- package/skills/ci-pipeline-audit/SKILL.md.d.ts +3 -0
- package/skills/ci-pipeline-design/SKILL.md +101 -0
- package/skills/ci-pipeline-design/SKILL.md.d.ts +3 -0
- package/skills/ci-release-coordinate/SKILL.md +96 -0
- package/skills/ci-release-coordinate/SKILL.md.d.ts +3 -0
- package/skills/ci-render/SKILL.md +125 -0
- package/skills/ci-render/SKILL.md.d.ts +3 -0
- package/skills/cicd-intake/SKILL.md +82 -0
- package/skills/cicd-intake/SKILL.md.d.ts +3 -0
- package/skills/cicd-quickref/SKILL.md +110 -0
- package/skills/cicd-quickref/SKILL.md.d.ts +3 -0
- package/skills/deploy-gen/SKILL.md +1 -1
- package/skills/dev-mode-init/SKILL.md +4 -1
- package/skills/devkit-create-addon/SKILL.md +7 -79
- package/skills/devkit-create-agent/SKILL.md +7 -163
- package/skills/devkit-create-command/SKILL.md +7 -139
- package/skills/devkit-create-extension/SKILL.md +7 -101
- package/skills/devkit-create-framework/SKILL.md +7 -131
- package/skills/devkit-create-skill/SKILL.md +7 -200
- package/skills/devkit-test/SKILL.md +1 -1
- package/skills/effect-ledger/SKILL.md +17 -0
- package/skills/feature-flag-plan/SKILL.md +74 -0
- package/skills/feature-flag-plan/SKILL.md.d.ts +3 -0
- package/skills/feature-flag-plan/scripts/flag-plan.mjs +159 -0
- package/skills/flaky-detect/SKILL.md +1 -1
- package/skills/flow-architecture-evolution/SKILL.md +5 -1
- package/skills/flow-construction-to-transition/SKILL.md +20 -2
- package/skills/flow-delivery-track/SKILL.md +4 -0
- package/skills/flow-delivery-track/references/delegation.md +23 -0
- package/skills/flow-elaboration-to-construction/SKILL.md +4 -0
- package/skills/flow-gate-check/SKILL.md +4 -0
- package/skills/flow-gate-check/references/delegation.md +23 -0
- package/skills/flow-guided-implementation/SKILL.md +8 -0
- package/skills/flow-guided-implementation/references/delegation.md +23 -0
- package/skills/flow-inception-to-elaboration/SKILL.md +1 -1
- package/skills/flow-iteration-dual-track/SKILL.md +9 -0
- package/skills/flow-knowledge-transfer/SKILL.md +1 -1
- package/skills/flow-retrospective-cycle/SKILL.md +1 -1
- package/skills/flow-security-review-cycle/SKILL.md +4 -0
- package/skills/flow-security-review-cycle/references/delegation.md +23 -0
- package/skills/flow-test-strategy-execution/SKILL.md +7 -1
- package/skills/flow-test-strategy-execution/references/delegation.md +23 -0
- package/skills/flow-ux-studio/SKILL.md +206 -0
- package/skills/flow-ux-studio/SKILL.md.d.ts +3 -0
- package/skills/flow-ux-studio/references/provider-resolution.md +106 -0
- package/skills/flow-ux-studio/references/stage-templates.md +27 -0
- package/skills/flow-ux-studio/references/tool-map.md +67 -0
- package/skills/gate-evaluation/SKILL.md +1 -1
- package/skills/intake-from-codebase/SKILL.md +5 -1
- package/skills/intake-start/SKILL.md +6 -1
- package/skills/intake-wizard/SKILL.md +7 -1
- package/skills/issue-audit/SKILL.md +1 -1
- package/skills/issue-driven-al/SKILL.md +1 -1
- package/skills/issue-list/SKILL.md +1 -1
- package/skills/issue-update/SKILL.md +1 -1
- package/skills/iteration-control/SKILL.md +1 -1
- package/skills/ld-account-setup/SKILL.md +33 -0
- package/skills/ld-account-setup/SKILL.md.d.ts +3 -0
- package/skills/ld-agentcontrol/SKILL.md +33 -0
- package/skills/ld-agentcontrol/SKILL.md.d.ts +3 -0
- package/skills/ld-approvals/SKILL.md +33 -0
- package/skills/ld-approvals/SKILL.md.d.ts +3 -0
- package/skills/ld-code-refs-ci/SKILL.md +33 -0
- package/skills/ld-code-refs-ci/SKILL.md.d.ts +3 -0
- package/skills/ld-connect/SKILL.md +39 -0
- package/skills/ld-connect/SKILL.md.d.ts +3 -0
- package/skills/ld-contexts/SKILL.md +33 -0
- package/skills/ld-contexts/SKILL.md.d.ts +3 -0
- package/skills/ld-docs/SKILL.md +31 -0
- package/skills/ld-docs/SKILL.md.d.ts +3 -0
- package/skills/ld-doctor/SKILL.md +41 -0
- package/skills/ld-doctor/SKILL.md.d.ts +3 -0
- package/skills/ld-experiment/SKILL.md +34 -0
- package/skills/ld-experiment/SKILL.md.d.ts +3 -0
- package/skills/ld-flag-cleanup/SKILL.md +35 -0
- package/skills/ld-flag-cleanup/SKILL.md.d.ts +3 -0
- package/skills/ld-flag-create/SKILL.md +33 -0
- package/skills/ld-flag-create/SKILL.md.d.ts +3 -0
- package/skills/ld-flag-debt-audit/SKILL.md +33 -0
- package/skills/ld-flag-debt-audit/SKILL.md.d.ts +3 -0
- package/skills/ld-guarded-release/SKILL.md +33 -0
- package/skills/ld-guarded-release/SKILL.md.d.ts +3 -0
- package/skills/ld-migration-flag/SKILL.md +33 -0
- package/skills/ld-migration-flag/SKILL.md.d.ts +3 -0
- package/skills/ld-progressive-rollout/SKILL.md +34 -0
- package/skills/ld-progressive-rollout/SKILL.md.d.ts +3 -0
- package/skills/ld-quickref/SKILL.md +50 -0
- package/skills/ld-quickref/SKILL.md.d.ts +3 -0
- package/skills/ld-relay-proxy/SKILL.md +33 -0
- package/skills/ld-relay-proxy/SKILL.md.d.ts +3 -0
- package/skills/ld-sdk-integrate/SKILL.md +34 -0
- package/skills/ld-sdk-integrate/SKILL.md.d.ts +3 -0
- package/skills/ld-segments/SKILL.md +33 -0
- package/skills/ld-segments/SKILL.md.d.ts +3 -0
- package/skills/ld-targeting/SKILL.md +33 -0
- package/skills/ld-targeting/SKILL.md.d.ts +3 -0
- package/skills/ld-terraform/SKILL.md +33 -0
- package/skills/ld-terraform/SKILL.md.d.ts +3 -0
- package/skills/ld-testing/SKILL.md +34 -0
- package/skills/ld-testing/SKILL.md.d.ts +3 -0
- package/skills/mention-conventions/SKILL.md +1 -1
- package/skills/mention-lint/SKILL.md +1 -1
- package/skills/mention-report/SKILL.md +1 -1
- package/skills/mention-validate/SKILL.md +1 -1
- package/skills/new-bundle/SKILL.md +1 -1
- package/skills/new-project/SKILL.md +1 -1
- package/skills/prefill-cards/SKILL.md +1 -1
- package/skills/project-status/SKILL.md +1 -1
- package/skills/promote/SKILL.md +1 -1
- package/skills/ralph-config/SKILL.md +1 -1
- package/skills/ralph-external/SKILL.md +1 -1
- package/skills/ralph-memory/SKILL.md +1 -1
- package/skills/ralph-resume/SKILL.md +1 -1
- package/skills/retrospective-analyzer/SKILL.md +14 -0
- package/skills/scaffold-addon/SKILL.md +8 -4
- package/skills/scaffold-extension/SKILL.md +9 -1
- package/skills/scaffold-framework/SKILL.md +12 -3
- package/skills/sdlc-accelerate/SKILL.md +1 -1
- package/skills/sdlc-quickref/SKILL.md +9 -0
- package/skills/steward/SKILL.md +8 -3
- package/skills/tdd-enforce/SKILL.md +1 -1
- package/skills/ux-a11y-design/SKILL.md +64 -0
- package/skills/ux-a11y-design/SKILL.md.d.ts +3 -0
- package/skills/ux-build/SKILL.md +67 -0
- package/skills/ux-build/SKILL.md.d.ts +3 -0
- package/skills/ux-copy/SKILL.md +65 -0
- package/skills/ux-copy/SKILL.md.d.ts +3 -0
- package/skills/ux-critique/SKILL.md +70 -0
- package/skills/ux-critique/SKILL.md.d.ts +3 -0
- package/skills/ux-design-system/SKILL.md +65 -0
- package/skills/ux-design-system/SKILL.md.d.ts +3 -0
- package/skills/ux-edge-states/SKILL.md +68 -0
- package/skills/ux-edge-states/SKILL.md.d.ts +3 -0
- package/skills/ux-ethics/SKILL.md +65 -0
- package/skills/ux-ethics/SKILL.md.d.ts +3 -0
- package/skills/ux-flows-ia/SKILL.md +70 -0
- package/skills/ux-flows-ia/SKILL.md.d.ts +3 -0
- package/skills/ux-handoff/SKILL.md +71 -0
- package/skills/ux-handoff/SKILL.md.d.ts +3 -0
- package/skills/ux-handoff-index/SKILL.md +72 -0
- package/skills/ux-handoff-index/SKILL.md.d.ts +3 -0
- package/skills/ux-live-verify/SKILL.md +110 -0
- package/skills/ux-live-verify/SKILL.md.d.ts +3 -0
- package/skills/ux-live-verify/references/axe-strategy.md +23 -0
- package/skills/ux-metrics/SKILL.md +63 -0
- package/skills/ux-metrics/SKILL.md.d.ts +3 -0
- package/skills/ux-problem-framing/SKILL.md +63 -0
- package/skills/ux-problem-framing/SKILL.md.d.ts +3 -0
- package/skills/ux-quickref/SKILL.md +69 -0
- package/skills/ux-quickref/SKILL.md.d.ts +3 -0
- package/skills/ux-research/SKILL.md +75 -0
- package/skills/ux-research/SKILL.md.d.ts +3 -0
- package/skills/ux-visual-direction/SKILL.md +63 -0
- package/skills/ux-visual-direction/SKILL.md.d.ts +3 -0
- package/skills/ux-wireframes/SKILL.md +63 -0
- package/skills/ux-wireframes/SKILL.md.d.ts +3 -0
- package/skills/workspace-health/SKILL.md +1 -1
- package/skills/workspace-reset/SKILL.md +1 -1
- package/specialists.d.ts +3 -0
- package/specialists.js +3 -0
- /package/skills/{steward-quickref → aiwg-steward-quickref}/SKILL.md.d.ts +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// Local, deterministic companion to feature-flag-fit; no vendor calls or writes.
|
|
2
|
+
// Design basis and AIWG judgments: ../../../../rules/feature-flag-fit.md.
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
5
|
+
import yaml from 'js-yaml';
|
|
6
|
+
|
|
7
|
+
const skips = ['prototype', 'spike', 'docs_only', 'library_no_runtime',
|
|
8
|
+
'one_off_script', 'static_no_runtime_no_js', 'very_small'];
|
|
9
|
+
const triggers = ['trunk_unfinished', 'dark_launch', 'migration', 'experiment',
|
|
10
|
+
'entitlement', 'external_kill_switch', 'llm_runtime'];
|
|
11
|
+
const exclusions = ['secrets', 'static_config', 'data_store', 'startup_config', 'per_commit'];
|
|
12
|
+
const kinds = ['release', 'kill-switch', 'experiment', 'migration', 'operational', 'permission (entitlement)'];
|
|
13
|
+
const nonempty = value => typeof value === 'string' && value.trim().length > 0 && !/^<[^>]+>$/.test(value.trim());
|
|
14
|
+
const requireText = (value, field) => {
|
|
15
|
+
if (!nonempty(value)) throw new Error(`Supply ${field}; placeholders are not evidence`);
|
|
16
|
+
};
|
|
17
|
+
const enumValue = (value, values, field) => {
|
|
18
|
+
if (!values.includes(value)) throw new Error(`Invalid ${field}: expected ${values.join('|')}`);
|
|
19
|
+
};
|
|
20
|
+
const dateValue = value => typeof value === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(value)
|
|
21
|
+
&& !Number.isNaN(Date.parse(value)) && new Date(value).toISOString().slice(0, 10) === value;
|
|
22
|
+
|
|
23
|
+
export function assess(input) {
|
|
24
|
+
const policy = input.feature_flags?.policy ?? 'suggest';
|
|
25
|
+
enumValue(policy, ['suggest', 'always', 'never'], 'feature_flags.policy');
|
|
26
|
+
const facts = input.facts ?? {};
|
|
27
|
+
for (const value of Object.values(facts)) {
|
|
28
|
+
if (typeof value !== 'boolean') throw new Error('Classified facts must be booleans');
|
|
29
|
+
}
|
|
30
|
+
const never = input.never_flags ?? [];
|
|
31
|
+
for (const item of never) enumValue(item, exclusions, 'never_flags');
|
|
32
|
+
const outcome = (fit, reason) => ({ fit, reason, suggestion: fit === 'skip' ? null : fit });
|
|
33
|
+
if (policy === 'never' || input.declined) return outcome('skip', 'policy or recorded scope decline');
|
|
34
|
+
if (never.length) return outcome('skip', `never-flag: ${never.join(', ')}`);
|
|
35
|
+
const skip = skips.find(key => facts[key]);
|
|
36
|
+
if (skip) return outcome('skip', skip);
|
|
37
|
+
if (facts.production && facts.blast_radius && facts.low_risk_tolerance) {
|
|
38
|
+
return outcome('recommend', 'production blast radius with Low risk tolerance [AIWG-J]');
|
|
39
|
+
}
|
|
40
|
+
const trigger = triggers.find(key => facts[key]);
|
|
41
|
+
if (trigger) return outcome('recommend', trigger);
|
|
42
|
+
if (policy === 'always') return outcome('recommend', 'always policy for eligible work [AIWG-J]');
|
|
43
|
+
if (facts.user_facing && facts.low_risk && facts.infrequent_deploy) {
|
|
44
|
+
return outcome('offer', 'low-risk user-facing change with infrequent deploys; default no');
|
|
45
|
+
}
|
|
46
|
+
return outcome('skip', 'no qualifying trigger');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function providerRoute(provider = 'none', installed = [], capabilities = {}) {
|
|
50
|
+
if (!/^[a-z][a-z0-9-]*$/.test(provider)) throw new Error('Invalid feature_flags.provider');
|
|
51
|
+
if (provider === 'none') return { mode: 'cards-and-code', skills: {} };
|
|
52
|
+
if (provider === 'openfeature') return { mode: 'openfeature-client', skills: {} };
|
|
53
|
+
// Capability names are discovered from installed addon metadata, never guessed.
|
|
54
|
+
if (!installed.includes(provider)) return { mode: 'cards-and-code', skills: {}, missing: provider };
|
|
55
|
+
return { mode: 'addon', skills: capabilities[provider] ?? {} };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function validateCard(card) {
|
|
59
|
+
for (const field of ['id', 'owner', 'service', 'default_rationale', 'removal_criteria', 'removal_task']) {
|
|
60
|
+
requireText(card[field], field);
|
|
61
|
+
}
|
|
62
|
+
enumValue(card.kind, kinds, 'kind');
|
|
63
|
+
enumValue(card.value_type, ['boolean', 'string', 'number', 'JSON'], 'value_type');
|
|
64
|
+
enumValue(card.dynamism, ['static', 'per-request'], 'dynamism');
|
|
65
|
+
enumValue(card.lifetime, ['temporary', 'permanent'], 'lifetime');
|
|
66
|
+
for (const field of ['live', 'removal_criteria_met', 'code_removed']) {
|
|
67
|
+
if (typeof card[field] !== 'boolean') throw new Error(`Supply boolean ${field}`);
|
|
68
|
+
}
|
|
69
|
+
if (card.review_by != null && !dateValue(card.review_by)) throw new Error('Invalid review_by date');
|
|
70
|
+
if (!Array.isArray(card.requirements) || !card.requirements.length || !card.requirements.every(nonempty)) {
|
|
71
|
+
throw new Error('Link requirements/story IDs');
|
|
72
|
+
}
|
|
73
|
+
const value = card.default_value;
|
|
74
|
+
const valid = card.value_type === 'JSON' ? value !== undefined
|
|
75
|
+
: card.value_type === 'number' ? typeof value === 'number' && Number.isFinite(value)
|
|
76
|
+
: typeof value === card.value_type;
|
|
77
|
+
if (!valid) throw new Error('Supply default_value matching value_type');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function renderCard(card) {
|
|
81
|
+
validateCard(card);
|
|
82
|
+
for (const field of ['targeting_rollout', 'metrics_rollback', 'test_plan']) requireText(card[field], field);
|
|
83
|
+
const { targeting_rollout, metrics_rollback, test_plan, ...metadata } = card;
|
|
84
|
+
return `---\n${yaml.dump(metadata, { noRefs: true })}---\n\n# Feature Toggle Card\n\n`
|
|
85
|
+
+ `## Targeting and rollout\n\n${targeting_rollout}\n\n`
|
|
86
|
+
+ `## Metrics and rollback\n\n${metrics_rollback}\n\n## Test plan\n\n${test_plan}\n`;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function plan(input) {
|
|
90
|
+
requireText(input.scope, 'scope');
|
|
91
|
+
const assessment = assess(input);
|
|
92
|
+
const decision = input.decision ?? 'pending';
|
|
93
|
+
enumValue(decision, ['accepted', 'declined', 'pending'], 'decision');
|
|
94
|
+
const record = { scope: input.scope, ...assessment, decision,
|
|
95
|
+
requirements: input.requirements ?? [], declined: Boolean(input.declined) || decision === 'declined' };
|
|
96
|
+
const route = providerRoute(input.feature_flags?.provider, input.installed_addons, input.provider_capabilities);
|
|
97
|
+
const cards = assessment.fit !== 'skip' && decision === 'accepted'
|
|
98
|
+
? (input.cards ?? []).map(card => {
|
|
99
|
+
if (!(input.requirements ?? []).every(id => card.requirements?.includes(id))) {
|
|
100
|
+
throw new Error('Each card must link the feature requirements/story IDs');
|
|
101
|
+
}
|
|
102
|
+
return renderCard(card);
|
|
103
|
+
}) : [];
|
|
104
|
+
if (assessment.fit !== 'skip' && decision === 'accepted' && !cards.length) {
|
|
105
|
+
throw new Error('Accepted planning requires cards');
|
|
106
|
+
}
|
|
107
|
+
return { record, cards, route };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function readCard(file) {
|
|
111
|
+
const front = readFileSync(file, 'utf8').match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
112
|
+
if (!front) throw new Error(`Missing card frontmatter: ${file}`);
|
|
113
|
+
// JSON schema preserves YYYY-MM-DD strings rather than constructing Date objects.
|
|
114
|
+
return { ...yaml.load(front[1], { schema: yaml.JSON_SCHEMA }), source: file };
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function readiness(cards) {
|
|
118
|
+
const failures = cards.filter(card => card.live &&
|
|
119
|
+
(!nonempty(card.owner) || !nonempty(card.removal_criteria)))
|
|
120
|
+
.map(card => ({ id: card.id, reason: 'Live flag requires owner and removal criteria' }));
|
|
121
|
+
return { status: failures.length ? 'FAIL' : 'PASS', failures };
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function debt(cards, asOf, caps = {}) {
|
|
125
|
+
if (!dateValue(asOf)) throw new Error('Supply as_of YYYY-MM-DD');
|
|
126
|
+
for (const cap of Object.values(caps)) {
|
|
127
|
+
if (!Number.isInteger(cap) || cap < 0) throw new Error('Caps must be nonnegative integers');
|
|
128
|
+
}
|
|
129
|
+
const rows = [], counts = {}, metadata_issues = [];
|
|
130
|
+
for (const card of cards) {
|
|
131
|
+
try { validateCard(card); } catch (error) { metadata_issues.push({ id: card.id, reason: error.message }); }
|
|
132
|
+
if (card.lifetime !== 'temporary') continue;
|
|
133
|
+
if (card.live) counts[card.service] = (counts[card.service] ?? 0) + 1;
|
|
134
|
+
const reasons = [];
|
|
135
|
+
if (card.removal_criteria_met) reasons.push('removal criteria met');
|
|
136
|
+
if (dateValue(card.review_by) && card.review_by < asOf) reasons.push('past review-by');
|
|
137
|
+
if (reasons.length) rows.push({ id: card.id, source: card.source, reasons,
|
|
138
|
+
stage: card.code_removed ? 'ready to archive'
|
|
139
|
+
: card.removal_criteria_met ? 'ready for code removal' : 'review required',
|
|
140
|
+
owner: card.owner, removal_task: card.removal_task });
|
|
141
|
+
}
|
|
142
|
+
const services = [...new Set([...Object.keys(counts), ...Object.keys(caps)])].sort();
|
|
143
|
+
return { as_of: asOf, rows, metadata_issues, counts: services.map(service => ({ service,
|
|
144
|
+
live_temporary: counts[service] ?? 0, cap: caps[service] ?? null,
|
|
145
|
+
over_cap: caps[service] != null && (counts[service] ?? 0) > caps[service] })) };
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
149
|
+
try {
|
|
150
|
+
const [mode, file] = process.argv.slice(2);
|
|
151
|
+
enumValue(mode, ['plan', 'debt', 'readiness'], 'mode');
|
|
152
|
+
const input = JSON.parse(readFileSync(file, 'utf8'));
|
|
153
|
+
const cards = mode === 'plan' ? [] : input.cards.map(readCard);
|
|
154
|
+
const result = mode === 'plan' ? plan(input) : mode === 'debt'
|
|
155
|
+
? debt(cards, input.as_of, input.temporary_flag_caps) : readiness(cards);
|
|
156
|
+
process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
157
|
+
if (mode === 'readiness' && result.status === 'FAIL') process.exitCode = 1;
|
|
158
|
+
} catch (error) { process.stderr.write(`${error.message}\n`); process.exitCode = 1; }
|
|
159
|
+
}
|
|
@@ -17,7 +17,7 @@ platforms: [flue]
|
|
|
17
17
|
> aiwg show skill <name> --body
|
|
18
18
|
> ```
|
|
19
19
|
>
|
|
20
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
20
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
# Flaky Detect Skill
|
|
@@ -12,6 +12,10 @@ commandHint:
|
|
|
12
12
|
modelRole: coding
|
|
13
13
|
modelTier: standard
|
|
14
14
|
---
|
|
15
|
+
Apply `feature-flag-fit` here; record outcome/reason in intake or ADR. On recommend,
|
|
16
|
+
invoke `feature-flag-plan` for a scoped accept/decline and cards; offer defaults to
|
|
17
|
+
no, skip stays silent, and prior declines suppress repeat suggestions. [AIWG guidance]
|
|
18
|
+
|
|
15
19
|
|
|
16
20
|
<!-- AIWG-SKILL-CALLOUT -->
|
|
17
21
|
> **Skill access pattern (post-kernel-pivot, 2026.5+)**
|
|
@@ -23,7 +27,7 @@ commandHint:
|
|
|
23
27
|
> aiwg show skill <name> --body
|
|
24
28
|
> ```
|
|
25
29
|
>
|
|
26
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
30
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
27
31
|
|
|
28
32
|
|
|
29
33
|
# Architecture Evolution Flow
|
|
@@ -28,7 +28,7 @@ commandHint:
|
|
|
28
28
|
> aiwg show skill <name> --body
|
|
29
29
|
> ```
|
|
30
30
|
>
|
|
31
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
31
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# Construction → Transition Phase Transition Flow
|
|
@@ -356,6 +356,10 @@ Based on your answers, I'll adjust:
|
|
|
356
356
|
- Feature Toggle: Dark launch (for maximum control)
|
|
357
357
|
|
|
358
358
|
Document selected strategy and rationale
|
|
359
|
+
Apply feature-flag-fit; recommend invokes feature-flag-plan for accept/decline.
|
|
360
|
+
Offer defaults to no; skip/declined scopes stay silent. Record rationale. [AIWG guidance]
|
|
361
|
+
For accepted flags choose feature-toggle/progressive rollout and define rollback-by-flag.
|
|
362
|
+
Route installed provider skills via feature_flags.provider; none stays cards/code guidance.
|
|
359
363
|
Define rollback criteria and procedures
|
|
360
364
|
|
|
361
365
|
Output: .aiwg/working/transition/deployment-strategy.md
|
|
@@ -897,6 +901,20 @@ Based on your answers, I'll adjust:
|
|
|
897
901
|
✓ PROJECT COMPLETE - Ready for closure
|
|
898
902
|
```
|
|
899
903
|
|
|
904
|
+
## Feature flag debt review
|
|
905
|
+
|
|
906
|
+
Read feature-toggle cards under .aiwg/deployment/ without a vendor connection. Invoke
|
|
907
|
+
$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/feature-flag-plan/scripts/flag-plan.mjs debt with explicit as_of and optional temporary_flag_caps
|
|
908
|
+
from solution-profile; list temporary flags past removal criteria or optional review-by date,
|
|
909
|
+
evidence, owner, removal task and live temporary count per service versus optional cap. Report
|
|
910
|
+
metadata gaps. Use ready for code removal / ready to archive as local workflow labels; do not infer
|
|
911
|
+
vendor lifecycle eligibility. Route optional installed provider cleanup skills via
|
|
912
|
+
feature_flags.provider per $AIWG_ROOT/docs/frameworks/sdlc-complete/feature-flags.md; none/missing addon stays card-only.
|
|
913
|
+
Debt is advisory. [AIWG guidance] Optional inventory caps/removal tasks:
|
|
914
|
+
https://martinfowler.com/articles/feature-toggles.html ; review dates:
|
|
915
|
+
https://docs.getunleash.io/guides/feature-flag-best-practices.md ; vendor lifecycle terms:
|
|
916
|
+
https://launchdarkly.com/docs/home/flags/flag-status.md .
|
|
917
|
+
|
|
900
918
|
## Quality Gates
|
|
901
919
|
|
|
902
920
|
Before marking workflow complete, verify:
|
|
@@ -1044,4 +1062,4 @@ This orchestration succeeds when:
|
|
|
1044
1062
|
- `docs/orchestrator-architecture.md`
|
|
1045
1063
|
|
|
1046
1064
|
**Natural Language Translations**:
|
|
1047
|
-
- `docs/simple-language-translations.md`
|
|
1065
|
+
- `docs/simple-language-translations.md`
|
|
@@ -22,6 +22,10 @@ commandHint:
|
|
|
22
22
|
|
|
23
23
|
**You are the Core Orchestrator** for the critical Delivery Track iteration implementation.
|
|
24
24
|
|
|
25
|
+
## Delegation
|
|
26
|
+
|
|
27
|
+
Follow [Worker delegation](references/delegation.md) before every worker launch.
|
|
28
|
+
|
|
25
29
|
## Your Role
|
|
26
30
|
|
|
27
31
|
**You orchestrate multi-agent workflows. You do NOT execute bash scripts.**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Worker delegation
|
|
2
|
+
|
|
3
|
+
Before every worker launch, resolve the bounded assignment through the existing
|
|
4
|
+
`defaults.workerSelection` policy (builtin → user → project). Never copy the
|
|
5
|
+
session model. Native conductors call `resolveDelegation()` in `src/models/`;
|
|
6
|
+
external workers use `aiwg models resolve --role <role> --task <class> --group
|
|
7
|
+
<configured-group> --brief <file> --workdir <tree> --final-output <file>` and
|
|
8
|
+
launch only the returned invocation. A blocked resolution stops that work unit.
|
|
9
|
+
|
|
10
|
+
- Exploration and artifact reading: `aiwg-model-explorer`, efficiency/economy.
|
|
11
|
+
- Gate verification: `aiwg-model-verifier`, coding/standard. Use a configured
|
|
12
|
+
review task class mapped to coding; do not relabel a reasoning review role.
|
|
13
|
+
- Named specialists: load their frontmatter role/tier as the task requirement;
|
|
14
|
+
resolve that requirement through policy before invoking the specialist.
|
|
15
|
+
|
|
16
|
+
Strategy ranks eligible workers; it does not waive role capability or the
|
|
17
|
+
ceiling. Premium needs human authorization; flagship needs `election: user`.
|
|
18
|
+
Keep explicit requested vs resolved values in the activity log using the common
|
|
19
|
+
routing record: `version`, `orchestrator`, `workerId`, `role`, `requested_tier`,
|
|
20
|
+
`resolved_tier`, `resolved_model`, `wrapper`, `strategy`, `max_auto_tier`,
|
|
21
|
+
`election`, `warnings`. Provider enforcement warnings are retained. Returns are
|
|
22
|
+
condensed (about 2k tokens) with artifact pointers; the parent runs trusted gate
|
|
23
|
+
checks and reconciles claims.
|
|
@@ -12,6 +12,10 @@ commandHint:
|
|
|
12
12
|
modelRole: coding
|
|
13
13
|
modelTier: standard
|
|
14
14
|
---
|
|
15
|
+
Apply `feature-flag-fit` here; record outcome/reason in intake or ADR. On recommend,
|
|
16
|
+
invoke `feature-flag-plan` for a scoped accept/decline and cards; offer defaults to
|
|
17
|
+
no, skip stays silent, and prior declines suppress repeat suggestions. [AIWG guidance]
|
|
18
|
+
|
|
15
19
|
|
|
16
20
|
> **Declarative Flow (#1539):** This flow's orchestration is now also expressed as a
|
|
17
21
|
> declarative YAML Flow at `flows/flow-elaboration-to-construction.playbook.yaml` (source of truth for the step
|
|
@@ -22,6 +22,10 @@ commandHint:
|
|
|
22
22
|
|
|
23
23
|
**You are the Core Orchestrator** for SDLC phase gate validation.
|
|
24
24
|
|
|
25
|
+
## Delegation
|
|
26
|
+
|
|
27
|
+
Follow [Worker delegation](references/delegation.md) before every worker launch.
|
|
28
|
+
|
|
25
29
|
## Output template
|
|
26
30
|
|
|
27
31
|
Required for the gate audit record; retain phase-specific criteria: @$AIWG_ROOT/agentic/code/addons/testing-quality/templates/gate-audit-record.md. Fill every required section; explain non-applicable fields and unrun checks.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Worker delegation
|
|
2
|
+
|
|
3
|
+
Before every worker launch, resolve the bounded assignment through the existing
|
|
4
|
+
`defaults.workerSelection` policy (builtin → user → project). Never copy the
|
|
5
|
+
session model. Native conductors call `resolveDelegation()` in `src/models/`;
|
|
6
|
+
external workers use `aiwg models resolve --role <role> --task <class> --group
|
|
7
|
+
<configured-group> --brief <file> --workdir <tree> --final-output <file>` and
|
|
8
|
+
launch only the returned invocation. A blocked resolution stops that work unit.
|
|
9
|
+
|
|
10
|
+
- Exploration and artifact reading: `aiwg-model-explorer`, efficiency/economy.
|
|
11
|
+
- Gate verification: `aiwg-model-verifier`, coding/standard. Use a configured
|
|
12
|
+
review task class mapped to coding; do not relabel a reasoning review role.
|
|
13
|
+
- Named specialists: load their frontmatter role/tier as the task requirement;
|
|
14
|
+
resolve that requirement through policy before invoking the specialist.
|
|
15
|
+
|
|
16
|
+
Strategy ranks eligible workers; it does not waive role capability or the
|
|
17
|
+
ceiling. Premium needs human authorization; flagship needs `election: user`.
|
|
18
|
+
Keep explicit requested vs resolved values in the activity log using the common
|
|
19
|
+
routing record: `version`, `orchestrator`, `workerId`, `role`, `requested_tier`,
|
|
20
|
+
`resolved_tier`, `resolved_model`, `wrapper`, `strategy`, `max_auto_tier`,
|
|
21
|
+
`election`, `warnings`. Provider enforcement warnings are retained. Returns are
|
|
22
|
+
condensed (about 2k tokens) with artifact pointers; the parent runs trusted gate
|
|
23
|
+
checks and reconciles claims.
|
|
@@ -14,6 +14,10 @@ description: Orchestrate autonomous issue-to-code implementation using existing
|
|
|
14
14
|
|
|
15
15
|
Orchestrate autonomous issue-to-code implementation using existing tools and agents with bounded iteration.
|
|
16
16
|
|
|
17
|
+
## Delegation
|
|
18
|
+
|
|
19
|
+
Follow [Worker delegation](references/delegation.md) before every worker launch.
|
|
20
|
+
|
|
17
21
|
## Usage
|
|
18
22
|
|
|
19
23
|
```
|
|
@@ -40,6 +44,10 @@ From issue requirements:
|
|
|
40
44
|
3. **Bounded iteration** - Auto-retry up to N times, then escalate
|
|
41
45
|
4. **Autonomous decision-making** - Don't ask unless truly blocked
|
|
42
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
|
+
|
|
43
51
|
## Workflow
|
|
44
52
|
|
|
45
53
|
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Worker delegation
|
|
2
|
+
|
|
3
|
+
Before every worker launch, resolve the bounded assignment through the existing
|
|
4
|
+
`defaults.workerSelection` policy (builtin → user → project). Never copy the
|
|
5
|
+
session model. Native conductors call `resolveDelegation()` in `src/models/`;
|
|
6
|
+
external workers use `aiwg models resolve --role <role> --task <class> --group
|
|
7
|
+
<configured-group> --brief <file> --workdir <tree> --final-output <file>` and
|
|
8
|
+
launch only the returned invocation. A blocked resolution stops that work unit.
|
|
9
|
+
|
|
10
|
+
- Exploration and artifact reading: `aiwg-model-explorer`, efficiency/economy.
|
|
11
|
+
- Gate verification: `aiwg-model-verifier`, coding/standard. Use a configured
|
|
12
|
+
review task class mapped to coding; do not relabel a reasoning review role.
|
|
13
|
+
- Named specialists: load their frontmatter role/tier as the task requirement;
|
|
14
|
+
resolve that requirement through policy before invoking the specialist.
|
|
15
|
+
|
|
16
|
+
Strategy ranks eligible workers; it does not waive role capability or the
|
|
17
|
+
ceiling. Premium needs human authorization; flagship needs `election: user`.
|
|
18
|
+
Keep explicit requested vs resolved values in the activity log using the common
|
|
19
|
+
routing record: `version`, `orchestrator`, `workerId`, `role`, `requested_tier`,
|
|
20
|
+
`resolved_tier`, `resolved_model`, `wrapper`, `strategy`, `max_auto_tier`,
|
|
21
|
+
`election`, `warnings`. Provider enforcement warnings are retained. Returns are
|
|
22
|
+
condensed (about 2k tokens) with artifact pointers; the parent runs trusted gate
|
|
23
|
+
checks and reconciles claims.
|
|
@@ -28,7 +28,7 @@ commandHint:
|
|
|
28
28
|
> aiwg show skill <name> --body
|
|
29
29
|
> ```
|
|
30
30
|
>
|
|
31
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
31
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# Inception → Elaboration Phase Transition Flow
|
|
@@ -12,6 +12,10 @@ commandHint:
|
|
|
12
12
|
modelRole: coding
|
|
13
13
|
modelTier: standard
|
|
14
14
|
---
|
|
15
|
+
Apply `feature-flag-fit` here; record outcome/reason in intake or ADR. On recommend,
|
|
16
|
+
invoke `feature-flag-plan` for a scoped accept/decline and cards; offer defaults to
|
|
17
|
+
no, skip stays silent, and prior declines suppress repeat suggestions. [AIWG guidance]
|
|
18
|
+
|
|
15
19
|
|
|
16
20
|
> **Declarative Flow (#1539):** This flow's orchestration is now also expressed as a
|
|
17
21
|
> declarative YAML Flow at `flows/flow-iteration-dual-track.playbook.yaml` (source of truth for the step
|
|
@@ -343,6 +347,8 @@ Based on your answers, I'll adjust:
|
|
|
343
347
|
|
|
344
348
|
**Purpose**: Begin planning next iteration's work
|
|
345
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
|
+
|
|
346
352
|
**Your Actions**:
|
|
347
353
|
|
|
348
354
|
1. **Launch Discovery Planning** (parallel agents):
|
|
@@ -360,6 +366,9 @@ Based on your answers, I'll adjust:
|
|
|
360
366
|
- Information architecture
|
|
361
367
|
- Interaction patterns
|
|
362
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
|
+
|
|
363
372
|
Schedule design sessions.
|
|
364
373
|
|
|
365
374
|
Output: .aiwg/iterations/iteration-{N}/discovery/design-plan.md
|
|
@@ -28,7 +28,7 @@ commandHint:
|
|
|
28
28
|
> aiwg show skill <name> --body
|
|
29
29
|
> ```
|
|
30
30
|
>
|
|
31
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
31
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# Knowledge Transfer Orchestration Flow
|
|
@@ -28,7 +28,7 @@ commandHint:
|
|
|
28
28
|
> aiwg show skill <name> --body
|
|
29
29
|
> ```
|
|
30
30
|
>
|
|
31
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
31
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# Retrospective Cycle Flow
|
|
@@ -22,6 +22,10 @@ commandHint:
|
|
|
22
22
|
|
|
23
23
|
You are a Security Review Coordinator orchestrating continuous security validation, threat modeling, vulnerability scanning, security testing, security control verification, and security gate enforcement throughout the software development lifecycle.
|
|
24
24
|
|
|
25
|
+
## Delegation
|
|
26
|
+
|
|
27
|
+
Follow [Worker delegation](references/delegation.md) before every worker launch.
|
|
28
|
+
|
|
25
29
|
## Orchestration Framing
|
|
26
30
|
|
|
27
31
|
This is an **orchestration command** that coordinates multiple specialized agents to conduct comprehensive security review cycles. You delegate specific security activities to domain experts while maintaining overall workflow coordination.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Worker delegation
|
|
2
|
+
|
|
3
|
+
Before every worker launch, resolve the bounded assignment through the existing
|
|
4
|
+
`defaults.workerSelection` policy (builtin → user → project). Never copy the
|
|
5
|
+
session model. Native conductors call `resolveDelegation()` in `src/models/`;
|
|
6
|
+
external workers use `aiwg models resolve --role <role> --task <class> --group
|
|
7
|
+
<configured-group> --brief <file> --workdir <tree> --final-output <file>` and
|
|
8
|
+
launch only the returned invocation. A blocked resolution stops that work unit.
|
|
9
|
+
|
|
10
|
+
- Exploration and artifact reading: `aiwg-model-explorer`, efficiency/economy.
|
|
11
|
+
- Gate verification: `aiwg-model-verifier`, coding/standard. Use a configured
|
|
12
|
+
review task class mapped to coding; do not relabel a reasoning review role.
|
|
13
|
+
- Named specialists: load their frontmatter role/tier as the task requirement;
|
|
14
|
+
resolve that requirement through policy before invoking the specialist.
|
|
15
|
+
|
|
16
|
+
Strategy ranks eligible workers; it does not waive role capability or the
|
|
17
|
+
ceiling. Premium needs human authorization; flagship needs `election: user`.
|
|
18
|
+
Keep explicit requested vs resolved values in the activity log using the common
|
|
19
|
+
routing record: `version`, `orchestrator`, `workerId`, `role`, `requested_tier`,
|
|
20
|
+
`resolved_tier`, `resolved_model`, `wrapper`, `strategy`, `max_auto_tier`,
|
|
21
|
+
`election`, `warnings`. Provider enforcement warnings are retained. Returns are
|
|
22
|
+
condensed (about 2k tokens) with artifact pointers; the parent runs trusted gate
|
|
23
|
+
checks and reconciles claims.
|
|
@@ -28,13 +28,17 @@ commandHint:
|
|
|
28
28
|
> aiwg show skill <name> --body
|
|
29
29
|
> ```
|
|
30
30
|
>
|
|
31
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
31
|
+
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `aiwg-steward-routing` on Claude Code) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# Test Strategy Execution Flow
|
|
35
35
|
|
|
36
36
|
**You are the Test Orchestrator** for comprehensive test strategy execution and quality validation.
|
|
37
37
|
|
|
38
|
+
## Delegation
|
|
39
|
+
|
|
40
|
+
Follow [Worker delegation](references/delegation.md) before every worker launch.
|
|
41
|
+
|
|
38
42
|
## Your Role
|
|
39
43
|
|
|
40
44
|
**You orchestrate multi-agent test workflows. You do NOT execute bash scripts or run tests directly.**
|
|
@@ -157,6 +161,8 @@ Based on your answers, I'll adjust:
|
|
|
157
161
|
- Performance metrics (if applicable)
|
|
158
162
|
- Security scan results (if applicable)
|
|
159
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
|
+
|
|
160
166
|
## Multi-Agent Orchestration Workflow
|
|
161
167
|
|
|
162
168
|
### Step 1: Test Execution Planning
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Worker delegation
|
|
2
|
+
|
|
3
|
+
Before every worker launch, resolve the bounded assignment through the existing
|
|
4
|
+
`defaults.workerSelection` policy (builtin → user → project). Never copy the
|
|
5
|
+
session model. Native conductors call `resolveDelegation()` in `src/models/`;
|
|
6
|
+
external workers use `aiwg models resolve --role <role> --task <class> --group
|
|
7
|
+
<configured-group> --brief <file> --workdir <tree> --final-output <file>` and
|
|
8
|
+
launch only the returned invocation. A blocked resolution stops that work unit.
|
|
9
|
+
|
|
10
|
+
- Exploration and artifact reading: `aiwg-model-explorer`, efficiency/economy.
|
|
11
|
+
- Gate verification: `aiwg-model-verifier`, coding/standard. Use a configured
|
|
12
|
+
review task class mapped to coding; do not relabel a reasoning review role.
|
|
13
|
+
- Named specialists: load their frontmatter role/tier as the task requirement;
|
|
14
|
+
resolve that requirement through policy before invoking the specialist.
|
|
15
|
+
|
|
16
|
+
Strategy ranks eligible workers; it does not waive role capability or the
|
|
17
|
+
ceiling. Premium needs human authorization; flagship needs `election: user`.
|
|
18
|
+
Keep explicit requested vs resolved values in the activity log using the common
|
|
19
|
+
routing record: `version`, `orchestrator`, `workerId`, `role`, `requested_tier`,
|
|
20
|
+
`resolved_tier`, `resolved_model`, `wrapper`, `strategy`, `max_auto_tier`,
|
|
21
|
+
`election`, `warnings`. Provider enforcement warnings are retained. Returns are
|
|
22
|
+
condensed (about 2k tokens) with artifact pointers; the parent runs trusted gate
|
|
23
|
+
checks and reconciles claims.
|