@sjawhar/claude-envoy 4.10.0 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/AGENTS.md +43 -497
- package/dist/codex-hook.js +9 -3
- package/dist/dispatch.js +9 -3
- package/dist/envoy-channel.js +10 -4
- package/dist/session-hook.js +9 -3
- package/legion/skills/legion-architect/SKILL.md +88 -66
- package/legion/skills/legion-architect/references/acceptance.md +89 -258
- package/legion/skills/legion-architect/references/decomposition.md +94 -213
- package/legion/skills/legion-architect/references/design-gate.md +88 -353
- package/legion/skills/legion-architect/references/wake-routing.md +51 -43
- package/legion/skills/legion-controller/SKILL.md +50 -181
- package/legion/skills/legion-controller/references/admission.md +25 -54
- package/legion/skills/legion-controller/references/backlog-stewardship.md +23 -119
- package/legion/skills/legion-controller/references/consolidation.md +9 -93
- package/legion/skills/legion-controller/references/daily-report.md +21 -99
- package/legion/skills/legion-controller/references/escalation.md +16 -118
- package/legion/skills/legion-controller/references/finding-asks.md +31 -162
- package/legion/skills/legion-controller/references/park-asks.md +33 -0
- package/legion/skills/legion-controller/references/parked-decisions.md +20 -264
- package/legion/skills/legion-controller/references/session.md +26 -84
- package/legion/skills/legion-controller/references/slack-mentions.md +18 -134
- package/legion/skills/legion-controller/references/triage.md +18 -89
- package/legion/skills/legion-controller/references/wakes.md +22 -549
- package/legion/skills/legion-controller/references/weekly-audit.md +9 -90
- package/legion/skills/legion-oracle/SKILL.md +19 -28
- package/legion/skills/legion-retro/SKILL.md +54 -93
- package/legion/skills/legion-retro/references/learnings.md +21 -33
- package/legion/skills/legion-retro/references/pr-body-content.md +21 -37
- package/legion/skills/legion-worker/SKILL.md +50 -64
- package/legion/skills/legion-worker/references/ci-checks.md +16 -84
- package/legion/skills/legion-worker/references/conflicts-and-rewrites.md +34 -93
- package/legion/skills/legion-worker/references/default-branch-check.md +22 -60
- package/legion/skills/legion-worker/references/findings.md +25 -180
- package/legion/skills/legion-worker/references/foreign-path.md +14 -22
- package/legion/skills/legion-worker/references/gvisor.md +20 -0
- package/legion/skills/legion-worker/references/merge-gate.md +43 -419
- package/legion/skills/legion-worker/references/plan-tests.md +8 -28
- package/legion/skills/legion-worker/references/pr-body.md +19 -218
- package/legion/skills/legion-worker/references/review-threads.md +16 -70
- package/legion/skills/legion-worker/references/tools.md +31 -578
- package/legion/skills/legion-worker/references/withheld-capability.md +12 -163
- package/legion/skills/simplify-settled-diff/SKILL.md +23 -41
- package/legion/skills/simplify-settled-diff/references/personas/code-quality-reviewer.md +14 -14
- package/legion/skills/simplify-settled-diff/references/personas/code-reuse-reviewer.md +4 -4
- package/legion/skills/simplify-settled-diff/references/personas/efficiency-reviewer.md +8 -8
- package/package.json +1 -1
- package/skills/agent-secrets/SKILL.md +46 -312
- package/skills/agent-secrets/references/store-a-secret.md +9 -0
- package/skills/approval-review/SKILL.md +20 -76
- package/skills/asd-ste100/SKILL.md +43 -85
- package/skills/asd-ste100/examples/before-after.md +18 -53
- package/skills/dispatch/SKILL.md +1 -1
- package/skills/dispatch-writing-specs/SKILL.md +1 -1
- package/skills/envoy/SKILL.md +56 -126
- package/skills/envoy/references/check-settlement.md +26 -43
- package/skills/envoy/references/deliveries.md +26 -144
- package/skills/envoy/references/legion.md +12 -45
- package/skills/envoy/references/roles.md +11 -9
- package/skills/envoy/references/sources.md +13 -25
- package/skills/outside-message/SKILL.md +24 -81
- package/skills/plain-words/SKILL.md +24 -55
- package/skills/thermonuclear-code-quality/SKILL.md +16 -26
- package/skills/thermonuclear-deep-review/SKILL.md +22 -31
- package/legion/skills/legion-worker/references/cleanup-deletion.md +0 -22
- package/legion/skills/legion-worker/references/systematic-rename.md +0 -19
- package/skills/asd-ste100/references/writing-rules.md +0 -59
- package/skills/plain-words/references/mechanics.md +0 -49
package/dist/codex-hook.js
CHANGED
|
@@ -18516,6 +18516,7 @@ var SUBJECT_TOKEN_TYPE_PERSON = "urn:envoy:params:oauth:token-type:person-google
|
|
|
18516
18516
|
var ACTOR_TOKEN_TYPE_MACHINE = "urn:envoy:params:oauth:token-type:machine-google-identity";
|
|
18517
18517
|
var TOKEN_TYPE_DPOP = "DPoP";
|
|
18518
18518
|
var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
|
|
18519
|
+
var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
|
|
18519
18520
|
|
|
18520
18521
|
// ../broker-client/src/refusal-text.ts
|
|
18521
18522
|
var KNOWN_BROKER_REFUSALS = new Set([
|
|
@@ -18620,6 +18621,9 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
18620
18621
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
18621
18622
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
18622
18623
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
18624
|
+
`Refused: this pod's registration for session '${SESSION_SLOT}' was released; a pod trades only under a registration its registrar has not released\\.`,
|
|
18625
|
+
`The session name '${SESSION_SLOT}' belongs to another daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
18626
|
+
`The session name '${SESSION_SLOT}' is bound to no daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
18623
18627
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
18624
18628
|
...POLICY_REFUSAL_PATTERNS
|
|
18625
18629
|
].map((source) => new RegExp(`^${source}$`));
|
|
@@ -18630,14 +18634,16 @@ var LIBRARY_DESCRIPTIONS = [
|
|
|
18630
18634
|
"The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
|
|
18631
18635
|
];
|
|
18632
18636
|
var REFUSAL_CODE_PREFIX = /^[A-Z][A-Z_]{1,63}: /;
|
|
18637
|
+
var CODE_PREFIXES = [POD_SESSION_NOT_REGISTERED, SESSION_NAME_NOT_THIS_REGISTRARS].map((code) => `${code}: `);
|
|
18633
18638
|
function brokerHint(text) {
|
|
18634
18639
|
for (const fixed of LIBRARY_DESCRIPTIONS) {
|
|
18635
18640
|
if (text.startsWith(`${fixed} `))
|
|
18636
18641
|
return text.slice(fixed.length + 1);
|
|
18637
18642
|
}
|
|
18638
|
-
const
|
|
18639
|
-
|
|
18640
|
-
|
|
18643
|
+
for (const prefix of CODE_PREFIXES) {
|
|
18644
|
+
if (text.startsWith(prefix))
|
|
18645
|
+
return text.slice(prefix.length);
|
|
18646
|
+
}
|
|
18641
18647
|
return text.replace(REFUSAL_CODE_PREFIX, "");
|
|
18642
18648
|
}
|
|
18643
18649
|
function isKnownBrokerRefusal(text, context = {}) {
|
package/dist/dispatch.js
CHANGED
|
@@ -18769,6 +18769,7 @@ var SUBJECT_TOKEN_TYPE_PERSON = "urn:envoy:params:oauth:token-type:person-google
|
|
|
18769
18769
|
var ACTOR_TOKEN_TYPE_MACHINE = "urn:envoy:params:oauth:token-type:machine-google-identity";
|
|
18770
18770
|
var TOKEN_TYPE_DPOP = "DPoP";
|
|
18771
18771
|
var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
|
|
18772
|
+
var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
|
|
18772
18773
|
|
|
18773
18774
|
// ../broker-client/src/refusal-text.ts
|
|
18774
18775
|
var KNOWN_BROKER_REFUSALS = new Set([
|
|
@@ -18873,6 +18874,9 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
18873
18874
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
18874
18875
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
18875
18876
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
18877
|
+
`Refused: this pod's registration for session '${SESSION_SLOT}' was released; a pod trades only under a registration its registrar has not released\\.`,
|
|
18878
|
+
`The session name '${SESSION_SLOT}' belongs to another daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
18879
|
+
`The session name '${SESSION_SLOT}' is bound to no daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
18876
18880
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
18877
18881
|
...POLICY_REFUSAL_PATTERNS
|
|
18878
18882
|
].map((source) => new RegExp(`^${source}$`));
|
|
@@ -18883,14 +18887,16 @@ var LIBRARY_DESCRIPTIONS = [
|
|
|
18883
18887
|
"The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
|
|
18884
18888
|
];
|
|
18885
18889
|
var REFUSAL_CODE_PREFIX = /^[A-Z][A-Z_]{1,63}: /;
|
|
18890
|
+
var CODE_PREFIXES = [POD_SESSION_NOT_REGISTERED, SESSION_NAME_NOT_THIS_REGISTRARS].map((code) => `${code}: `);
|
|
18886
18891
|
function brokerHint(text) {
|
|
18887
18892
|
for (const fixed of LIBRARY_DESCRIPTIONS) {
|
|
18888
18893
|
if (text.startsWith(`${fixed} `))
|
|
18889
18894
|
return text.slice(fixed.length + 1);
|
|
18890
18895
|
}
|
|
18891
|
-
const
|
|
18892
|
-
|
|
18893
|
-
|
|
18896
|
+
for (const prefix of CODE_PREFIXES) {
|
|
18897
|
+
if (text.startsWith(prefix))
|
|
18898
|
+
return text.slice(prefix.length);
|
|
18899
|
+
}
|
|
18894
18900
|
return text.replace(REFUSAL_CODE_PREFIX, "");
|
|
18895
18901
|
}
|
|
18896
18902
|
function isKnownBrokerRefusal(text, context = {}) {
|
package/dist/envoy-channel.js
CHANGED
|
@@ -40461,6 +40461,7 @@ var SUBJECT_TOKEN_TYPE_PERSON = "urn:envoy:params:oauth:token-type:person-google
|
|
|
40461
40461
|
var ACTOR_TOKEN_TYPE_MACHINE = "urn:envoy:params:oauth:token-type:machine-google-identity";
|
|
40462
40462
|
var TOKEN_TYPE_DPOP = "DPoP";
|
|
40463
40463
|
var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
|
|
40464
|
+
var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
|
|
40464
40465
|
|
|
40465
40466
|
// ../broker-client/src/metadata-identity.ts
|
|
40466
40467
|
var METADATA_HOST_VAR = "GCE_METADATA_HOST";
|
|
@@ -41863,6 +41864,9 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
41863
41864
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
41864
41865
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
41865
41866
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
41867
|
+
`Refused: this pod's registration for session '${SESSION_SLOT}' was released; a pod trades only under a registration its registrar has not released\\.`,
|
|
41868
|
+
`The session name '${SESSION_SLOT}' belongs to another daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
41869
|
+
`The session name '${SESSION_SLOT}' is bound to no daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
41866
41870
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
41867
41871
|
...POLICY_REFUSAL_PATTERNS
|
|
41868
41872
|
].map((source) => new RegExp(`^${source}$`));
|
|
@@ -41873,14 +41877,16 @@ var LIBRARY_DESCRIPTIONS = [
|
|
|
41873
41877
|
"The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
|
|
41874
41878
|
];
|
|
41875
41879
|
var REFUSAL_CODE_PREFIX = /^[A-Z][A-Z_]{1,63}: /;
|
|
41880
|
+
var CODE_PREFIXES = [POD_SESSION_NOT_REGISTERED, SESSION_NAME_NOT_THIS_REGISTRARS].map((code) => `${code}: `);
|
|
41876
41881
|
function brokerHint(text) {
|
|
41877
41882
|
for (const fixed of LIBRARY_DESCRIPTIONS) {
|
|
41878
41883
|
if (text.startsWith(`${fixed} `))
|
|
41879
41884
|
return text.slice(fixed.length + 1);
|
|
41880
41885
|
}
|
|
41881
|
-
const
|
|
41882
|
-
|
|
41883
|
-
|
|
41886
|
+
for (const prefix of CODE_PREFIXES) {
|
|
41887
|
+
if (text.startsWith(prefix))
|
|
41888
|
+
return text.slice(prefix.length);
|
|
41889
|
+
}
|
|
41884
41890
|
return text.replace(REFUSAL_CODE_PREFIX, "");
|
|
41885
41891
|
}
|
|
41886
41892
|
function isKnownBrokerRefusal(text, context = {}) {
|
|
@@ -58380,7 +58386,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
|
|
|
58380
58386
|
|
|
58381
58387
|
// package.json
|
|
58382
58388
|
var name2 = "@sjawhar/claude-envoy";
|
|
58383
|
-
var version2 = "4.
|
|
58389
|
+
var version2 = "4.11.1";
|
|
58384
58390
|
var legion = {
|
|
58385
58391
|
daemonApiVersion: 168
|
|
58386
58392
|
};
|
package/dist/session-hook.js
CHANGED
|
@@ -18517,6 +18517,7 @@ var SUBJECT_TOKEN_TYPE_PERSON = "urn:envoy:params:oauth:token-type:person-google
|
|
|
18517
18517
|
var ACTOR_TOKEN_TYPE_MACHINE = "urn:envoy:params:oauth:token-type:machine-google-identity";
|
|
18518
18518
|
var TOKEN_TYPE_DPOP = "DPoP";
|
|
18519
18519
|
var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
|
|
18520
|
+
var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
|
|
18520
18521
|
|
|
18521
18522
|
// ../broker-client/src/refusal-text.ts
|
|
18522
18523
|
var KNOWN_BROKER_REFUSALS = new Set([
|
|
@@ -18621,6 +18622,9 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
18621
18622
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
18622
18623
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
18623
18624
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
18625
|
+
`Refused: this pod's registration for session '${SESSION_SLOT}' was released; a pod trades only under a registration its registrar has not released\\.`,
|
|
18626
|
+
`The session name '${SESSION_SLOT}' belongs to another daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
18627
|
+
`The session name '${SESSION_SLOT}' is bound to no daemon: a pod trades only under a session name the daemon that registered it holds\\.`,
|
|
18624
18628
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
18625
18629
|
...POLICY_REFUSAL_PATTERNS
|
|
18626
18630
|
].map((source) => new RegExp(`^${source}$`));
|
|
@@ -18631,14 +18635,16 @@ var LIBRARY_DESCRIPTIONS = [
|
|
|
18631
18635
|
"The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
|
|
18632
18636
|
];
|
|
18633
18637
|
var REFUSAL_CODE_PREFIX = /^[A-Z][A-Z_]{1,63}: /;
|
|
18638
|
+
var CODE_PREFIXES = [POD_SESSION_NOT_REGISTERED, SESSION_NAME_NOT_THIS_REGISTRARS].map((code) => `${code}: `);
|
|
18634
18639
|
function brokerHint(text) {
|
|
18635
18640
|
for (const fixed of LIBRARY_DESCRIPTIONS) {
|
|
18636
18641
|
if (text.startsWith(`${fixed} `))
|
|
18637
18642
|
return text.slice(fixed.length + 1);
|
|
18638
18643
|
}
|
|
18639
|
-
const
|
|
18640
|
-
|
|
18641
|
-
|
|
18644
|
+
for (const prefix of CODE_PREFIXES) {
|
|
18645
|
+
if (text.startsWith(prefix))
|
|
18646
|
+
return text.slice(prefix.length);
|
|
18647
|
+
}
|
|
18642
18648
|
return text.replace(REFUSAL_CODE_PREFIX, "");
|
|
18643
18649
|
}
|
|
18644
18650
|
function isKnownBrokerRefusal(text, context = {}) {
|
|
@@ -1,96 +1,114 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: legion-architect
|
|
3
|
-
description: "Use when you are a Legion root or
|
|
3
|
+
description: "Use when you are a Legion root or child architect, before any lifecycle action: decomposing or adopting children, the design gate, releasing or parking children, a delivered wake, a worker's escalation, or accepting a reviewed head."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Legion architect
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
You own one issue and every issue under it until the merge that closes it. The daemon starts every
|
|
9
|
+
worker and moves every phase; you write no code. Your role prompt holds the lifecycle rules, this
|
|
10
|
+
skill the procedures. Where it disagrees with the code or a `--help`, follow those and say so.
|
|
11
11
|
|
|
12
12
|
## Every turn
|
|
13
13
|
|
|
14
|
-
- Act on delivered wakes
|
|
15
|
-
- Check each claim against the code as fetched now (the default branch your addressing line names,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
-
|
|
14
|
+
- Act on delivered wakes by the [wake routing](#wake-routing); build no wait loop.
|
|
15
|
+
- Check each claim against the code as fetched now (the default branch your addressing line names,
|
|
16
|
+
or the head under review), and tell every reader you dispatch to do the same.
|
|
17
|
+
- Before you end a turn that waits on a person, make sure their question is open: a decision
|
|
18
|
+
block, a `dispatch ask` or `dispatch request-approval`. A root's questions go on the root: one on
|
|
19
|
+
a child starts no wait, and the tree stands still. A child's own architect opens none; it sends
|
|
20
|
+
each question to the architect above it with `envoy_publish`.
|
|
21
|
+
- Message a role with `envoy_publish` to `notifications.role.<token>`, with a token from your
|
|
22
|
+
addressing line or from `roleToken` in `@legion/contracts`: a typed token may reach nobody.
|
|
23
|
+
- The deployment instructions override this skill where they conflict.
|
|
24
24
|
|
|
25
25
|
## 1. Decompose or adopt
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
1. Read `STRATEGY.md` where the repository has one, and its design principles (`AGENTS.md` here).
|
|
28
|
+
Find the standard solution (a web search, and how two or three well-regarded projects solve it)
|
|
29
|
+
and cite it in the spec's `Design`. Ask a person only what neither settles, with a recommendation.
|
|
30
|
+
2. Before you write a design, state the problem and the design principles, with no design of
|
|
31
|
+
yours, to `task(agent="design-outsider")`, and read its answer with `wait`. Record it on the
|
|
32
|
+
issue or in `plan.md`, with your reason wherever you do not follow it. Run it again when a
|
|
33
|
+
push-back or a review changes what the design is for.
|
|
34
|
+
3. A root: write and edit the spec as `skill://legion-architect/references/design-gate.md` says,
|
|
35
|
+
since any new version closes the gate. A child: as
|
|
36
|
+
`skill://legion-architect/references/decomposition.md`, "Creating children", says.
|
|
37
|
+
4. Decompose, adopt, split across repositories or record a wait on outside work as
|
|
38
|
+
`skill://legion-architect/references/decomposition.md` says, red-team check first.
|
|
39
|
+
5. File every child before `dispatch request-approval` (or `register_gate` where your line gates no
|
|
40
|
+
step): the gate's opening starts the root's own first phase, and a later child runs beside it.
|
|
41
|
+
|
|
42
|
+
- Mark each requirement as a `requirement` block and write `verification.md` beside the spec: one
|
|
43
|
+
`check` block per thing to prove, with `serves`, `surface` (`browser`, `cli` or `api`), `run`,
|
|
44
|
+
`when` (`before_merge`, `after_merge` or `default_branch`) and `negative_control`. A check
|
|
45
|
+
carrying `ci_check` is CI's and takes no `run`
|
|
46
|
+
(`skill://legion-architect/references/design-gate.md#a-check-ci-proves`).
|
|
47
|
+
- Every child names the running system its criteria are proven on (the command, service or page
|
|
48
|
+
the tester drives) and the repository skill that drives it; building a missing path is this
|
|
49
|
+
tree's work.
|
|
50
|
+
- **Show the surface before you ask.** Where this tree builds or changes a page, screen or
|
|
51
|
+
dashboard a person opens, that person sees it and answers before you request approval
|
|
52
|
+
(`skill://legion-architect/references/design-gate.md`, "Show the surface before you ask"). A
|
|
53
|
+
child's own architect sends such a surface up to the root's architect.
|
|
42
54
|
|
|
43
55
|
## 2. Children in flight
|
|
44
56
|
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
57
|
+
- A root releases no child until every gated step is open: `design-approved`, and under more than
|
|
58
|
+
one step `gatedSteps` in `read_record` showing each `approved`.
|
|
59
|
+
- Set a child's dependencies in one call: `dispatch issue-update --issue <child> --blocked-by <a>
|
|
60
|
+
--blocked-by <b>`. It replaces the whole list, so read the existing links first (`dispatch read`).
|
|
61
|
+
- Release each child once it is filed:
|
|
62
|
+
`legion({ op: "release_children", issues: ["LEGION-41", "LEGION-42"] })`. Legion holds a child
|
|
63
|
+
whose blockers are not `done`. Never hold a release back for a close: a child released after the
|
|
64
|
+
root's merge runs as an orphan root. Never block a child on its own parent, which merges last.
|
|
65
|
+
- On each `child-closed`, read the child's handoff, edit the specs of open children it changes,
|
|
66
|
+
and `park_child` each child it makes unneeded.
|
|
67
|
+
- Before you park a child for good, take it off each sibling's `--blocked-by` list
|
|
68
|
+
(`--clear-blocked-by` where it was the only one), or park that sibling too: a parked child is
|
|
69
|
+
not `done`, and its dependents stay held with no notice.
|
|
51
70
|
|
|
52
71
|
## 3. Children complete
|
|
53
72
|
|
|
54
|
-
A
|
|
73
|
+
A parent's own first phase waits while Dispatch shows an open child under it (the `children-first`
|
|
74
|
+
row). A child filed after its parent started runs beside it, and the parent's sign-off waits for
|
|
75
|
+
its last round (section 4).
|
|
55
76
|
|
|
56
77
|
## 4. Integration verification
|
|
57
78
|
|
|
58
|
-
- Prove every criterion of your issue in its own pull request,
|
|
59
|
-
|
|
60
|
-
-
|
|
79
|
+
- Prove every criterion of your issue in its own pull request, by its own tester evidence, never in
|
|
80
|
+
a child; never downgrade one. A parent signs off only after its last round
|
|
81
|
+
(`skill://legion-architect/references/acceptance.md`, "The last round").
|
|
82
|
+
- While the work is built, a role runs the application from the issue's branch and uses it as its
|
|
83
|
+
user would: a passing check does not show that a person can do their job with it.
|
|
84
|
+
- Where the work is a page or a tool a person uses, offer that person a running build before the
|
|
85
|
+
review; the deployment instructions say how a pod runs one.
|
|
61
86
|
|
|
62
87
|
## 5. Retro
|
|
63
88
|
|
|
64
|
-
Your `sign_off` starts retro; never
|
|
89
|
+
Your `sign_off` starts retro; never message the implementer to start it. A retro that reports a
|
|
90
|
+
defect holds its completion until you say whether it moves the issue back, which only retro can do
|
|
91
|
+
while it holds the phase. A retro that cannot write the body:
|
|
92
|
+
`skill://legion-architect/references/acceptance.md`, "Retro's result".
|
|
65
93
|
|
|
66
94
|
## 6. Acceptance and the merge
|
|
67
95
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- the tester's handoff, `dispatch handoff-read --issue <issue> --phase test`;
|
|
73
|
-
- `dispatch results --issue <issue>`: each check, every result recorded against it with the commit it was recorded at, and the check's own line saying whether a pass stands and from which roles;
|
|
74
|
-
- the reviewer's approval of that head by SHA, the head its Legion footer names and never its `commit_id`, which GitHub can move onto a later head (`gh api --paginate repos/<o>/<r>/pulls/<n>/reviews`; `skill://legion-worker/references/merge-gate.md` gives the read of each review's footer head, and what stands for a footer that names none);
|
|
75
|
-
- each claim the reviewer's prose makes, checked against the code at that head and command output, never against the finding it ruled on or its own verdict: no other agent reads it.
|
|
76
|
-
|
|
77
|
-
A tree often brings its own shortfall written up; that is no permission: your job is the goal. Accept only when a pass stands for every `before_merge` check of this issue at the approved head, each requirement the spec states has a check, and no criterion left the tree; on a parent, that head is section 4's last round. A pass stands is the check's own answer, which `dispatch results` prints under it: a pass at another commit, a pass recorded under an older wording of the check and a retracted pass are each printed and none of them is a pass that stands, while a fail recorded after a pass leaves that pass standing until someone retracts it.
|
|
78
|
-
|
|
79
|
-
- Read each requirement as written: a narrower reading is unmet, and one unmet stops the sign-off, declared or not. A requirement is in the approved spec or it is not one: a person's later request becomes one once written there and approved. Where its parts disagree on scope, settling it is the owner's: ask, and hold the acceptance.
|
|
80
|
-
- Your role prompt carries the `goal-red-team` dispatch, before you decide the acceptance. On a root the requirements go to it at the version its gate approved. On a child they go to it at the version its parent's review approved.
|
|
81
|
-
- A child's result against one of your checks proves nothing: it was recorded at the child's head and not at yours. A child carrying part of a root requirement proves it with a check of its own, clearing the root's coverage flag.
|
|
82
|
-
- An issue with no Verification document, or none holding a `before_merge` check, is a gap the tester and the reviewer name and neither refuses: its spec's delivered items are the requirements, met here or sent back. Checks you write close the `criteria` step where it is gated.
|
|
83
|
-
- A finding ask holds the acceptance until it resolves or the controller replies (`skill://legion-architect/references/acceptance.md`).
|
|
84
|
-
|
|
85
|
-
Post it as a `dispatch comment` naming each check and its result, then `legion({ op: "sign_off", issue: "<KEY>" })`.
|
|
96
|
+
In `accepting` no worker runs; the issue's own architect accepts it. Read, against the goal, every
|
|
97
|
+
check and every requirement, in the five sources that
|
|
98
|
+
`skill://legion-architect/references/acceptance.md`, "Accepting", lists.
|
|
86
99
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
Run the `goal-red-team` read your role prompt names. Accept only when a pass stands for every
|
|
101
|
+
`before_merge` check at the approved head, every requirement has a check, and none is unmet or read
|
|
102
|
+
narrower than written: post a `dispatch comment` naming each check and its result, then
|
|
103
|
+
`legion({ op: "sign_off", issue: "<KEY>" })`. Otherwise `request_backward_move` with `to`
|
|
104
|
+
(`implementing` or `testing`) and a `reason` naming the check's block id. Wait for a `ci_check` run
|
|
105
|
+
still going; a name no run answers is yours to correct in the check. Finding asks, refusals and
|
|
106
|
+
what follows: `skill://legion-architect/references/acceptance.md`.
|
|
90
107
|
|
|
91
108
|
## 7. Close
|
|
92
109
|
|
|
93
|
-
The merge closes the issue once every issue beneath it has left the workflow
|
|
110
|
+
The merge closes the issue once every issue beneath it has left the workflow; nothing after it is
|
|
111
|
+
yours (`skill://legion-architect/references/acceptance.md`, "The close").
|
|
94
112
|
|
|
95
113
|
## Wake routing
|
|
96
114
|
|
|
@@ -98,7 +116,11 @@ Handle each delivered wake by its row in `skill://legion-architect/references/wa
|
|
|
98
116
|
|
|
99
117
|
## Escalation judgment
|
|
100
118
|
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
- A clear defect the controller
|
|
104
|
-
|
|
119
|
+
- Send the controller (its topic is on your addressing line) a child that serves no criterion of
|
|
120
|
+
the root, a need for admission slots, and two trees changing the same code.
|
|
121
|
+
- A clear defect the controller gives you is this tree's work: an open pull request, or a child
|
|
122
|
+
after the red-team check; reply under its evidence comment with the issue that carries it. It
|
|
123
|
+
changes the root spec only where it changes the Summary, a requirement, a check or the scope
|
|
124
|
+
(`skill://legion-architect/references/design-gate.md`, "After approval").
|
|
125
|
+
- A tool a worker cannot get is a pull request to the worker image
|
|
126
|
+
(`skill://legion-worker/references/tools.md`).
|