@aiwg/flue 2026.11.9 → 2026.11.10
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 +141 -1
- 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-regenerate-claude/SKILL.md +1 -1
- 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 +4 -1
- package/skills/architecture-evolution/SKILL.md +4 -0
- package/skills/build-poc/SKILL.md +1 -1
- package/skills/ci-assess/SKILL.md +84 -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 +89 -0
- package/skills/ci-pipeline-audit/SKILL.md.d.ts +3 -0
- package/skills/ci-pipeline-design/SKILL.md +99 -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 +92 -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/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 +4 -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 +4 -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 +5 -1
- package/skills/flow-test-strategy-execution/references/delegation.md +23 -0
- package/skills/gate-evaluation/SKILL.md +1 -1
- package/skills/intake-from-codebase/SKILL.md +5 -1
- package/skills/intake-start/SKILL.md +5 -1
- package/skills/intake-wizard/SKILL.md +5 -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-project/SKILL.md +1 -1
- package/skills/prefill-cards/SKILL.md +1 -1
- package/skills/project-status/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 +6 -1
- package/skills/tdd-enforce/SKILL.md +1 -1
- package/skills/workspace-health/SKILL.md +1 -1
- package/skills/workspace-reset/SKILL.md +1 -1
- package/specialists.d.ts +2 -0
- package/specialists.js +2 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
namespace: aiwg
|
|
3
|
+
name: feature-flag-plan
|
|
4
|
+
platforms: [flue]
|
|
5
|
+
description: Plan feature flags for a feature or story, assess fit, record accept or decline, and create requirement-linked feature toggle cards with removal tasks.
|
|
6
|
+
triggers:
|
|
7
|
+
- plan feature flags
|
|
8
|
+
- should this be behind a flag
|
|
9
|
+
- create a feature flag plan
|
|
10
|
+
- review feature flag debt
|
|
11
|
+
requires: [sdlc-complete]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Feature Flag Plan
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. Read intake, solution profile, feature/story/REQ IDs, architecture, deployment
|
|
19
|
+
strategy and existing decisions. Fetch `aiwg show rule feature-flag-fit --body`.
|
|
20
|
+
2. Apply that rule at intake, architecture / iteration planning and deployment.
|
|
21
|
+
Record outcome, reason and scoped accept/decline in intake or ADR. Skip silently
|
|
22
|
+
for excluded work or a prior decline. Offer once, default no. A recommend result
|
|
23
|
+
invokes planning, but does not imply acceptance or permission to change production.
|
|
24
|
+
3. On acceptance, fill the existing
|
|
25
|
+
`$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/deployment/feature-toggle-card.md`
|
|
26
|
+
for each flag and link REQ/story IDs. Select kind separately from value type,
|
|
27
|
+
dynamism and lifetime. Create a removal task with the flag ([Hodgson](https://martinfowler.com/articles/feature-toggles.html)).
|
|
28
|
+
Confirm actual owner, safe default/rationale, rollout metrics, rollback procedure,
|
|
29
|
+
test plan and removal criteria; unknowns remain explicit, never invented.
|
|
30
|
+
4. Use one decision point and deliberate defaults; plan current production,
|
|
31
|
+
upcoming and default/fallback tests, optionally all-on
|
|
32
|
+
([testing](https://launchdarkly.com/docs/guides/flags/testing-code.md), [OpenFeature](https://openfeature.dev/docs/reference/concepts/evaluation-api)).
|
|
33
|
+
5. Resolve artifacts with `aiwg artifacts path --json --check-write`; put cards
|
|
34
|
+
beneath `.aiwg/deployment/` and link decisions from intake/ADR. Read these
|
|
35
|
+
cards at transition and retrospective; do not require a vendor connection.
|
|
36
|
+
6. For creation, rollout and debt/cleanup, consult the provider seam in
|
|
37
|
+
`$AIWG_ROOT/docs/frameworks/sdlc-complete/feature-flags.md`. `none` is a no-op: cards and code guidance
|
|
38
|
+
only. `openfeature` uses the neutral client. Discover installed addon skills
|
|
39
|
+
before calling them; missing addon/capability falls back to cards and guidance.
|
|
40
|
+
Routing does not grant production-write authority. [AIWG guidance]
|
|
41
|
+
|
|
42
|
+
## Repeatable local checks
|
|
43
|
+
|
|
44
|
+
Use the adjacent `scripts/flag-plan.mjs` with Node: `plan <input.json>`,
|
|
45
|
+
`debt <input.json>` or `readiness <input.json>`. It reads local JSON and card
|
|
46
|
+
frontmatter and prints JSON; it never contacts a vendor or writes artifacts.
|
|
47
|
+
The agent classifies inputs under `feature-flag-fit` before calling the helper.
|
|
48
|
+
|
|
49
|
+
`plan` input: `scope`, `requirements`, `feature_flags`, `facts` (booleans for
|
|
50
|
+
`production`, `blast_radius`, `low_risk_tolerance`, `trunk_unfinished`, `dark_launch`,
|
|
51
|
+
`migration`, `experiment`, `entitlement`, `external_kill_switch`, `llm_runtime`,
|
|
52
|
+
`user_facing`, `low_risk`, `infrequent_deploy`, `prototype`, `spike`, `docs_only`,
|
|
53
|
+
`library_no_runtime`, `one_off_script`, `static_no_runtime_no_js`, `very_small`),
|
|
54
|
+
optional `never_flags` (secrets, static_config, data_store, startup_config,
|
|
55
|
+
per_commit), `declined`, and `decision` (accepted/declined/pending).
|
|
56
|
+
On acceptance supply `cards` with all template frontmatter fields and body
|
|
57
|
+
sections `targeting_rollout`, `metrics_rollback`, `test_plan`. Output contains the
|
|
58
|
+
recorded decision and rendered cards; missing fields fail with actionable errors.
|
|
59
|
+
|
|
60
|
+
`debt`/`readiness` input: `cards` (local Markdown paths). Debt also takes `as_of`
|
|
61
|
+
(YYYY-MM-DD) and optional `temporary_flag_caps` mapping service names to counts.
|
|
62
|
+
Debt reports temporary cards past criteria or review-by, live counts versus caps,
|
|
63
|
+
and missing metadata. Criteria evidence stays in the card. Readiness fails live
|
|
64
|
+
cards missing an owner or removal criteria. [AIWG guidance]
|
|
65
|
+
|
|
66
|
+
## Examples
|
|
67
|
+
|
|
68
|
+
- High-risk production story, Low tolerance → recommend; accepted → linked cards
|
|
69
|
+
and removal tasks. Provider none → code guidance only.
|
|
70
|
+
- Docs-only change → skip, no suggestion or cards. Prior decline → no repeat offer.
|
|
71
|
+
- Temporary card meets criteria or passes review-by → debt row; a permanent
|
|
72
|
+
entitlement flag stays out of the temporary debt list.
|
|
73
|
+
|
|
74
|
+
All helper decisions are AIWG guidance; the rule and card cite their design basis.
|
|
@@ -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
|
```
|
|
@@ -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
|
|
@@ -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.**
|
|
@@ -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.
|
|
@@ -15,7 +15,7 @@ description: Validate phase gate criteria with multi-agent review and generate p
|
|
|
15
15
|
> aiwg show skill <name> --body
|
|
16
16
|
> ```
|
|
17
17
|
>
|
|
18
|
-
> 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).
|
|
18
|
+
> 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).
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
# gate-evaluation
|
|
@@ -11,6 +11,10 @@ commandHint:
|
|
|
11
11
|
modelRole: efficiency
|
|
12
12
|
modelTier: economy
|
|
13
13
|
---
|
|
14
|
+
Apply `feature-flag-fit` here; record outcome/reason in intake or ADR. On recommend,
|
|
15
|
+
invoke `feature-flag-plan` for a scoped accept/decline and cards; offer defaults to
|
|
16
|
+
no, skip stays silent, and prior declines suppress repeat suggestions. [AIWG guidance]
|
|
17
|
+
|
|
14
18
|
|
|
15
19
|
<!-- AIWG-SKILL-CALLOUT -->
|
|
16
20
|
> **Skill access pattern (post-kernel-pivot, 2026.5+)**
|
|
@@ -22,7 +26,7 @@ commandHint:
|
|
|
22
26
|
> aiwg show skill <name> --body
|
|
23
27
|
> ```
|
|
24
28
|
>
|
|
25
|
-
> 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).
|
|
29
|
+
> 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).
|
|
26
30
|
|
|
27
31
|
|
|
28
32
|
# Intake From Codebase
|
|
@@ -11,6 +11,10 @@ commandHint:
|
|
|
11
11
|
modelRole: efficiency
|
|
12
12
|
modelTier: economy
|
|
13
13
|
---
|
|
14
|
+
Apply `feature-flag-fit` here; record outcome/reason in intake or ADR. On recommend,
|
|
15
|
+
invoke `feature-flag-plan` for a scoped accept/decline and cards; offer defaults to
|
|
16
|
+
no, skip stays silent, and prior declines suppress repeat suggestions. [AIWG guidance]
|
|
17
|
+
|
|
14
18
|
|
|
15
19
|
<!-- AIWG-SKILL-CALLOUT -->
|
|
16
20
|
> **Skill access pattern (post-kernel-pivot, 2026.5+)**
|
|
@@ -22,7 +26,7 @@ commandHint:
|
|
|
22
26
|
> aiwg show skill <name> --body
|
|
23
27
|
> ```
|
|
24
28
|
>
|
|
25
|
-
> 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).
|
|
29
|
+
> 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).
|
|
26
30
|
|
|
27
31
|
|
|
28
32
|
# Intake Start (SDLC)
|
|
@@ -21,6 +21,10 @@ commandHint:
|
|
|
21
21
|
modelRole: efficiency
|
|
22
22
|
modelTier: economy
|
|
23
23
|
---
|
|
24
|
+
Apply `feature-flag-fit` here; record outcome/reason in intake or ADR. On recommend,
|
|
25
|
+
invoke `feature-flag-plan` for a scoped accept/decline and cards; offer defaults to
|
|
26
|
+
no, skip stays silent, and prior declines suppress repeat suggestions. [AIWG guidance]
|
|
27
|
+
|
|
24
28
|
|
|
25
29
|
<!-- AIWG-SKILL-CALLOUT -->
|
|
26
30
|
> **Skill access pattern (post-kernel-pivot, 2026.5+)**
|
|
@@ -32,7 +36,7 @@ commandHint:
|
|
|
32
36
|
> aiwg show skill <name> --body
|
|
33
37
|
> ```
|
|
34
38
|
>
|
|
35
|
-
> 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).
|
|
39
|
+
> 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).
|
|
36
40
|
|
|
37
41
|
|
|
38
42
|
# Intake Wizard
|