lastlight 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/connectors/github-webhook.js +5 -0
  2. package/dist/connectors/github-webhook.js.map +1 -1
  3. package/dist/connectors/types.d.ts +2 -0
  4. package/dist/engine/agent-executor.d.ts +7 -16
  5. package/dist/engine/agent-executor.js +34 -305
  6. package/dist/engine/agent-executor.js.map +1 -1
  7. package/dist/engine/dispatcher.js +24 -0
  8. package/dist/engine/dispatcher.js.map +1 -1
  9. package/dist/engine/executors/orchestrator.d.ts +81 -0
  10. package/dist/engine/executors/orchestrator.js +340 -0
  11. package/dist/engine/executors/orchestrator.js.map +1 -0
  12. package/dist/engine/router.js +47 -1
  13. package/dist/engine/router.js.map +1 -1
  14. package/dist/engine/screen/classifier.d.ts +10 -0
  15. package/dist/engine/screen/classifier.js +44 -0
  16. package/dist/engine/screen/classifier.js.map +1 -1
  17. package/dist/index.js +9 -9
  18. package/dist/index.js.map +1 -1
  19. package/dist/sandbox/sandbox.d.ts +189 -0
  20. package/dist/sandbox/sandbox.js +429 -0
  21. package/dist/sandbox/sandbox.js.map +1 -0
  22. package/dist/state/workflow-run-store.d.ts +7 -0
  23. package/dist/state/workflow-run-store.js +14 -0
  24. package/dist/state/workflow-run-store.js.map +1 -1
  25. package/dist/workflows/simple.d.ts +24 -3
  26. package/dist/workflows/simple.js +29 -3
  27. package/dist/workflows/simple.js.map +1 -1
  28. package/docker-compose.yml +1 -1
  29. package/package.json +1 -1
  30. package/plugins/lastlight/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lastlight/skills/lastlight-evals/SKILL.md +30 -2
  32. package/plugins/lastlight/skills/lastlight-evals/references/authoring-from-pr.md +117 -0
  33. package/plugins/lastlight/skills/lastlight-evals/references/instance-schema.md +26 -7
  34. package/skills/README.md +1 -1
  35. package/skills/issue-triage/SKILL.md +34 -7
  36. package/skills/issue-triage/references/AGENT-BRIEF.md +28 -24
  37. package/dist/engine/executors/backends.d.ts +0 -41
  38. package/dist/engine/executors/backends.js +0 -541
  39. package/dist/engine/executors/backends.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"simple.js","sourceRoot":"","sources":["../../src/workflows/simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACL,WAAW,GAIZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAiD9D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE3F,MAAM,UAAU,oBAAoB,CAClC,IAAY,EACZ,MAA0B,EAC1B,YAAoB,EACpB,UAAkB;IAElB,2EAA2E;IAC3E,IAAI,MAAM,KAAK,SAAS,IAAI,0BAA0B,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;QACzE,OAAO,GAAG,IAAI,IAAI,MAAM,IAAI,YAAY,EAAE,CAAC;IAC7C,CAAC;IACD,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACtC,OA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CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,aAAa,MAAM,EAAE,EAAE,CAAC,CAAC;YACtE,MAAM,MAAM,CAAC,cAAc,GAAG,CAAC,YAAY,4BAA4B,MAAM,EAAE,CAAC,CAAC;YACjF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,MAAM,EAAE,EAAE,CAAC;aAC/E,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,CAAC,cAAc,GAAG,CAAC,YAAY,kCAAkC,CAAC,CAAC;YAC/E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrD,CAAC;IACH,CAAC;IAED,oEAAoE;IACpE,OAAO,CAAC,GAAG,CACT,qBAAqB,GAAG,CAAC,YAAY,QAAQ,GAAG,CAAC,SAAS,iBAAiB,GAAG,CAAC,YAAY,GAAG,CAC/F,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -101,7 +101,7 @@ services:
101
101
  - agent-data:/app/data
102
102
  command:
103
103
  ["node", "-e",
104
- "const c=require('/app/dist/config.js').loadConfig();const m=require('/app/dist/sandbox/egress-firewall-config.js');const d=c.stateDir;m.writeEgressFirewallConfigs(d);m.writeOtelCollectorConfig(d,{active:c.otel.enabled&&c.otel.forwardToSandbox})"]
104
+ "const c=require('/app/dist/config/config.js').loadConfig();const m=require('/app/dist/sandbox/egress-firewall-config.js');const d=c.stateDir;m.writeEgressFirewallConfigs(d);m.writeOtelCollectorConfig(d,{active:c.otel.enabled&&c.otel.forwardToSandbox})"]
105
105
  depends_on:
106
106
  - agent # ensures the image has been built when init runs
107
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lastlight",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "GitHub repository maintenance agent — Agent SDK harness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/claude-code-plugin.json",
3
3
  "name": "lastlight",
4
4
  "displayName": "Last Light",
5
- "version": "0.7.0",
5
+ "version": "0.7.2",
6
6
  "description": "Install, configure and operate Last Light (GitHub maintenance agent) — its server, CLI client, deployment overlay, and the Last Light Evals harness.",
7
7
  "author": { "name": "Clifton Cunningham" },
8
8
  "homepage": "https://github.com/cliftonc/lastlight",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lastlight-evals
3
- description: Scaffold, configure and run a Last Light EVALS workspace — the harness that runs Last Light's real workflows against a mocked GitHub and grades them deterministically. Use when the user wants to "set up / scaffold Last Light Evals", "create an evals workspace or instance", "run evals", "compare models", or author new eval cases (triage / code-fix instances). GitHub is mocked, so no real GitHub token is needed — only a model provider API key.
4
- version: 1.1.0
3
+ description: Scaffold, configure and run a Last Light EVALS workspace — the harness that runs Last Light's real workflows against a mocked GitHub and grades them deterministically. Use when the user wants to "set up / scaffold Last Light Evals", "create an evals workspace or instance", "run evals", "compare models", or author new eval cases — including "create an eval dataset/case from this PR/issue <github url>" (triage / code-fix instances). GitHub is mocked when running, so no real GitHub token is needed — only a model provider API key (the one exception is `add-case`, which reads real PRs/issues via `gh`).
4
+ version: 1.2.0
5
5
  tags: [lastlight, evals, benchmark, models, swe-bench]
6
6
  ---
7
7
 
@@ -121,6 +121,34 @@ Quick shape (paths are relative to the workspace's `evals/` dir):
121
121
  `instances.json` (+ `repos/` & `tests/` for code-fix-style tiers). Discovery is
122
122
  automatic — no code change.
123
123
 
124
+ ## 6. Author a case from a real GitHub PR or issue
125
+
126
+ When the user says **"create an eval dataset/case from this PR/issue <url>"**, use
127
+ the `add-case` subcommand — it does the mechanical extraction; you refine the
128
+ fuzzy parts.
129
+
130
+ ```bash
131
+ lastlight-evals add-case --pr <github-pr-url> --dry-run # propose a code-fix case; don't write
132
+ lastlight-evals add-case --pr <github-pr-url> # write into ./datasets (or --datasets/--overlay)
133
+ lastlight-evals add-case --issue <github-issue-url> --dry-run # propose a triage case
134
+ ```
135
+
136
+ - **From a PR (code-fix):** derives `repo`, `base_commit` (merge-base of base &
137
+ head) + `head_commit`, the PR's **test** diff as the held-out `test_patch`, and
138
+ auto-detects `FAIL_TO_PASS` / `PASS_TO_PASS` by running the tests at base (red)
139
+ vs head (green). Produces a **git-source** case (no `repos/<id>/` vendored): at
140
+ run time the harness clones the repo into the gitignored `./.eval-cache/` and
141
+ checks out `base_commit`.
142
+ - **From an issue (triage):** derives the `issue` seed + `problem_statement`, the
143
+ **labels that were applied** (from the issue events API, with *who* applied each)
144
+ → `expect_github.labels_added`, `issue_closed` if it was closed, and prints the
145
+ **reviewer comments** — the raw triage signal. You then assign
146
+ `triage_gold` (category/state) from those labels per the deployment's taxonomy.
147
+
148
+ The full flow, what you refine for each, the `test_cmd` / `setup_cmd` options for
149
+ non-`node --test` runners, and the trust/offline caveats are in
150
+ **`references/authoring-from-pr.md`** — read it before authoring.
151
+
124
152
  ## Done when
125
153
 
126
154
  The workspace is scaffolded (Separate: overlay in `instance/`, evals at root;
@@ -0,0 +1,117 @@
1
+ # Author an eval case from a real GitHub PR or issue
2
+
3
+ `lastlight-evals add-case` turns a real GitHub **PR** into a code-fix (build) case
4
+ or an **issue** into a triage case. It does the mechanical, reproducible
5
+ extraction with `gh` + `git`; **you** refine the judgement parts. The result is a
6
+ **git-source** case — no fixture repo is vendored; at run time the harness clones
7
+ the repo into the gitignored `./.eval-cache/` and checks out `base_commit` (see
8
+ the `instance-schema.md` "Git-source" flavor).
9
+
10
+ > **Trust + network.** Validation and the run-time checkout execute the repo's own
11
+ > code (`setup_cmd` / `test_cmd` / its tests). Only point this at repos you trust.
12
+ > The first run per repo fetches over the network; after that the cache makes it
13
+ > offline.
14
+
15
+ ## Prerequisites
16
+
17
+ - `gh` on PATH and authenticated (`gh auth login`) — used to read PR/issue metadata.
18
+ - `git`. Node 24+ (same as the rest of the harness).
19
+
20
+ ## Command
21
+
22
+ ```bash
23
+ lastlight-evals add-case --pr <github-pr-url> [options]
24
+ lastlight-evals add-case --issue <github-issue-url> [options]
25
+ ```
26
+
27
+ Options:
28
+
29
+ | flag | meaning |
30
+ |---|---|
31
+ | `--pr <url>` | a GitHub PR url → a **code-fix** (build) case |
32
+ | `--issue <url>` | a GitHub issue url → a **triage** case |
33
+ | `--tier <name>` | target tier dir (default `code-fix` for `--pr`, `triage` for `--issue`) |
34
+ | `--id <slug>` | `instance_id` (default derived from repo + number) |
35
+ | `--datasets <dir>` | datasets root to write into (a `<tier>/` subdir). Default `./datasets`, else `./evals/datasets` |
36
+ | `--overlay <dir>` | write into `<dir>/evals/datasets` instead |
37
+ | `--test-cmd "<cmd>"` | held-out test command (default `node --test`); stored as `test_cmd` |
38
+ | `--setup-cmd "<cmd>"` | install/build run before tests (e.g. `"npm ci"`); stored as `setup_cmd` |
39
+ | `--no-validate` | don't run the repo's tests to auto-detect `FAIL_TO_PASS` (just scaffold) |
40
+ | `--dry-run` | print the proposed instance JSON; don't write |
41
+
42
+ ## The recommended flow (CLI extracts → you refine)
43
+
44
+ 1. **Dry-run first.** `add-case --pr <url> --dry-run` prints the proposed instance.
45
+ The CLI derives:
46
+ - `repo`, `base_commit` (the **merge-base** of the base branch and the PR head —
47
+ the true fork point, not the base-branch tip), and `head_commit`;
48
+ - `test_patch` — the diff of the PR's **test** files (path heuristic: `test/`,
49
+ `tests/`, `__tests__/`, `spec/`, or `*.test.*` / `*.spec.*` / `*_test.*`);
50
+ - gold `patch` — the diff of the non-test files (reference only, never graded);
51
+ - `FAIL_TO_PASS` / `PASS_TO_PASS` — auto-detected by running the tests at base
52
+ (with `test_patch` applied → expect red) then at head (→ expect green), unless
53
+ `--no-validate`;
54
+ - `issue` + `problem_statement` (the PR's linked issue if it closes one, else the
55
+ PR title/body) and `expect_github: { pr_opened: { base, head_is_branch } }`.
56
+
57
+ 2. **Review and repair** what the CLI can't get right on its own:
58
+ - **Held-out tests.** If the heuristic mislabeled files (warns "No test files
59
+ detected", or grabbed a non-test), fix `test_patch` by hand, or rely on the
60
+ repo's in-repo tests via `--test-cmd`.
61
+ - **Verdicts.** If validation couldn't run (custom runner, deps), set
62
+ `FAIL_TO_PASS` to the genuinely bug-revealing test name(s). Leave it **empty
63
+ for suite mode** (graded on the test command's exit code) when the runner
64
+ emits no TAP names.
65
+ - **Problem statement.** Tighten it to what the agent should act on — drop PR
66
+ chatter; keep the bug description.
67
+ - **`test_cmd` / `setup_cmd`** for non-`node --test` repos, e.g.
68
+ `--test-cmd "npm test" --setup-cmd "npm ci"`.
69
+
70
+ 3. **Write it.** Re-run without `--dry-run` (add `--datasets <dir>` / `--overlay
71
+ <dir>` to target a specific workspace). The instance is appended to
72
+ `<root>/<tier>/instances.json` (creating `tier.json` if the tier is new).
73
+
74
+ 4. **Verify end-to-end.** Run the case with the cheapest model just to confirm the
75
+ plumbing — the sandbox seeds from the real repo at `base_commit` and grading
76
+ runs the held-out tests:
77
+
78
+ ```bash
79
+ EVAL_INSTANCE=<instance_id> lastlight-evals run code-fix --model haiku
80
+ ```
81
+
82
+ ## Test runners & grading
83
+
84
+ - **`node --test` (default).** Emits TAP; the CLI extracts per-test names and grades
85
+ each `FAIL_TO_PASS` / `PASS_TO_PASS` by name.
86
+ - **Any other runner via `--test-cmd`.** If it emits TAP with stable names, named
87
+ grading still works. Otherwise the case runs in **suite mode**: `FAIL_TO_PASS`
88
+ stays empty and the case is resolved iff the test command exits 0 (after the
89
+ held-out `test_patch` is applied). Use `--setup-cmd` for install/build.
90
+
91
+ ## Triage from an issue
92
+
93
+ `add-case --issue <url>` builds a triage case from a **resolved** issue — its
94
+ content plus the human triage outcome:
95
+
96
+ - `problem_statement` + the `issue` seed from the title/body. **Seed labels are
97
+ emptied on purpose** so the agent triages from scratch (the applied labels are
98
+ the gold it must reproduce, not an input).
99
+ - `expect_github.labels_added` = the labels that were applied to the issue (read
100
+ from the issue **events** API, so the evidence block also shows *who* applied
101
+ each — maintainer vs bot), and `issue_closed: true` if the issue was closed.
102
+ - An **evidence block** prints the applied labels and the reviewer comments
103
+ (author + first line) — the raw signal you turn into the gold decision.
104
+
105
+ What you refine before running:
106
+
107
+ - **`triage_gold`** (`{ category, state }`) — assign from the applied labels per
108
+ **the deployment's triage taxonomy** (the CLI can't know which label is the
109
+ category vs the workflow state, so it leaves `triage_gold` empty). `gradeTriage`
110
+ checks these label strings end up on the issue.
111
+ - **Prune** any non-triage labels (e.g. `good first issue`) out of `labels_added`.
112
+ - **Reviewer comments** — optionally turn a representative one into a
113
+ `comment_matches` regex (asserting the agent's triage comment covers the same
114
+ point), or move a genuinely *pre-triage* maintainer comment into `issue.comments`
115
+ as context the agent should see.
116
+
117
+ See `instance-schema.md` for the full triage field reference.
@@ -21,12 +21,18 @@ Datasets are discovered from (overlay > user > built-in): `<overlay>/evals/datas
21
21
  // ── SWE-bench core ──
22
22
  "instance_id": "triage__my-case", // unique id
23
23
  "repo": "owner/repo", // logical; fixture origin is a local bare repo
24
- "base_commit": "0000000...", // code-fix only
24
+ "base_commit": "0000000...", // code-fix. UNUSED for vendored fixtures
25
+ // (harness synthesizes one); for a
26
+ // git-source case it's the real SHA
27
+ // checked out at run time.
25
28
  "problem_statement": "short issue text",
26
29
  "patch": "...", // gold patch — reference only, NOT graded
27
- "test_patch": "...", // held-out tests (code-fix)
28
- "FAIL_TO_PASS": ["test id 1"], // must go red→green (code-fix)
30
+ "test_patch": "...", // held-out tests (code-fix), git-apply form
31
+ "FAIL_TO_PASS": ["test id 1"], // must go red→green. Empty ⇒ suite mode
29
32
  "PASS_TO_PASS": ["test id 2"], // must stay green (code-fix)
33
+ "test_cmd": ["npm", "test"], // held-out test argv (default: node --test)
34
+ "setup_cmd": ["npm", "ci"], // optional install/build before tests (git-source)
35
+ "head_commit": "abc123...", // PR head SHA — reference/authoring only
30
36
 
31
37
  // ── Last Light extensions ──
32
38
  "workflow": "issue-triage", // optional; defaults to the tier's defaultWorkflow
@@ -55,16 +61,27 @@ Append a `SweBenchInstance` to `datasets/triage/instances.json` with `issue`,
55
61
  `triage_gold`, and the `expect_github` assertions (e.g. `labels_added`). That's
56
62
  it — triage is graded on the triage decision + GitHub mutations.
57
63
 
58
- ## Add a code-fix case (three things, keyed by `instance_id`)
64
+ ## Two flavors of code-fix case
65
+
66
+ A code-fix instance gets its repo from **one of two** provenances; the rest of the
67
+ machinery (grading, dashboard) is identical.
68
+
69
+ **A. Vendored fixture** (three things, keyed by `instance_id`):
59
70
 
60
71
  1. **`datasets/code-fix/instances.json`** — append the instance with
61
- `base_commit`, `FAIL_TO_PASS`, `PASS_TO_PASS`, `issue`, and `expect_github`
62
- (e.g. `pr_opened`).
72
+ `FAIL_TO_PASS`, `PASS_TO_PASS`, `issue`, and `expect_github` (e.g. `pr_opened`).
63
73
  2. **`datasets/code-fix/repos/<instance_id>/`** — the fixture repo at the base
64
74
  commit (the buggy code *before* the fix; no held-out tests here).
65
75
  3. **`datasets/code-fix/tests/<instance_id>/`** — the held-out test files, copied
66
76
  into the repo at grade time and run to compute `FAIL_TO_PASS` / `PASS_TO_PASS`.
67
77
 
78
+ **B. Git-source (from a real PR)** — set `repo` + a real `base_commit` and a
79
+ `test_patch`; **no** `repos/<id>/` is vendored. At run time the harness clones the
80
+ repo into the gitignored `./.eval-cache/` and checks out `base_commit`. Don't
81
+ hand-build these — use `lastlight-evals add-case --pr <url>` (see
82
+ **`authoring-from-pr.md`**), which fills `base_commit`, `head_commit`,
83
+ `test_patch`, and the verdicts for you.
84
+
68
85
  ## Add a custom tier
69
86
 
70
87
  Create `datasets/<tier-name>/` with `tier.json` (`name`, `defaultWorkflow`,
@@ -78,7 +95,9 @@ and `tests/<id>/`. Discovery auto-finds it — no code change. Run it with
78
95
  (`expect_github`)?
79
96
  - **Triage:** did the decision match `triage_gold`?
80
97
  - **Execution (code-fix):** all `FAIL_TO_PASS` green AND all `PASS_TO_PASS` still
81
- green after applying held-out tests.
98
+ green after applying held-out tests. When the runner emits no TAP test names
99
+ (a non-`node --test` `test_cmd` and an empty `FAIL_TO_PASS`), grading falls back
100
+ to **suite mode** — resolved iff the test command exits 0.
82
101
  - With `--runs N` (N>1) the binary verdict is **worst-case** (passes only if every
83
102
  trial passed); the scorecard also shows per-verdict pass counts to expose
84
103
  variance.
package/skills/README.md CHANGED
@@ -15,7 +15,7 @@ or editing a skill.
15
15
  | Skill | Used by | Purpose |
16
16
  |-------|---------|---------|
17
17
  | [`chat`](chat/) | chat | Conversational assistant for Slack/Discord threads — answer repo/PR/issue questions, guide to natural-language triggers. |
18
- | [`issue-triage`](issue-triage/) | `issue-triage.yaml`, chat | Move issues through the canonical triage state machine — categorise, label, dedupe, manage stale, write agent briefs. |
18
+ | [`issue-triage`](issue-triage/) | `issue-triage.yaml`, chat | Move issues through the canonical triage state machine — categorise, label, dedupe, manage stale, write a problem-statement summary (not a solution design), re-triage on reporter replies. |
19
19
  | [`issue-comment`](issue-comment/) | `issue-comment.yaml` | Handle non-build maintainer comments on issues/PRs — close, label, answer briefly, redirect build requests. |
20
20
  | [`pr-review`](pr-review/) | `pr-review.yaml`, chat | Review a PR with structured, tiered feedback; build and test from the local checkout; post a formal review. |
21
21
  | [`pr-comment`](pr-comment/) | `pr-comment.yaml` | Answer a maintainer's question about an open PR with concrete, code-cited evidence (not a full review). |
@@ -21,6 +21,12 @@ there is no maintainer to ask mid-run. Where you'd want direction, either make
21
21
  the call and apply the label, or post a comment and stop — the async comment *is*
22
22
  the conversation.
23
23
 
24
+ Your job is to **classify the issue and pin down the problem statement** —
25
+ clarify what's actually being asked, and ask for missing information when it's
26
+ under-specified. You do **not** design or plan the implementation: you have only
27
+ read-only context and no deep exploration, so solution design is left to the
28
+ downstream build agent, which has full source access.
29
+
24
30
  ## 0. Ensure the labels exist
25
31
 
26
32
  Before applying any label, create the canonical set idempotently with
@@ -65,18 +71,39 @@ labels you need are present or you've confirmed you can't create them.
65
71
  close. (Factual — safe to close autonomously.)
66
72
  - **Under-specified** (bug without repro, feature without a use case) → add
67
73
  `needs-info`, post the [needs-info template](#needs-info-template), stop.
68
- - **Fully specified and delegatable** → add `ready-for-agent`, post an agent
69
- brief ([references/AGENT-BRIEF.md](references/AGENT-BRIEF.md)).
74
+ - **Fully specified and delegatable** → add `ready-for-agent`, post a triage
75
+ summary — the problem statement, not a solution design
76
+ ([references/AGENT-BRIEF.md](references/AGENT-BRIEF.md)).
70
77
  - **Needs human implementation** (judgment calls, external access, design
71
- decisions, manual testing) → add `ready-for-human` with a brief noting why
72
- it can't be delegated.
78
+ decisions, manual testing) → add `ready-for-human` with a triage summary
79
+ noting why it can't be delegated.
73
80
  - **Looks out of scope** (an enhancement you'd reject) → this is a maintainer
74
81
  decision; do **not** auto-close. Add `needs-triage`, post a comment with
75
82
  your reasoning (cite any matching `.out-of-scope/` file), and leave it for a
76
83
  human.
77
- 4. **Apply exactly one category + one state.** If the existing labels conflict
78
- (two state roles), flag it in a comment and don't override — a maintainer may
79
- have set them deliberately.
84
+ 4. **Apply exactly one category + one state.** When you change an issue's state,
85
+ **remove the superseded state label** (e.g. clear `needs-info` when moving to
86
+ `ready-for-agent`) so the issue never carries two state roles. If the existing
87
+ labels conflict (two state roles you didn't set this run), flag it in a comment
88
+ and don't override — a maintainer may have set them deliberately.
89
+
90
+ ## 1a. Reporter answered or added information
91
+
92
+ You may be re-triaging an open, pre-build issue because the reporter (or a
93
+ maintainer) just commented — answering a `needs-info` request, or adding new
94
+ detail, repro steps, or clarification. (Re-triage only fires before any build has
95
+ started; once an issue is building, it's out of your hands.)
96
+
97
+ 1. **Re-read the whole thread** — the issue body, existing labels, and *all*
98
+ comments including the newest. Re-assess against the gaps that originally held
99
+ it back.
100
+ 2. **If the new information resolves the gaps** → move the issue forward per §1
101
+ step 3: remove `needs-info` and add `ready-for-agent` (+ triage summary),
102
+ `ready-for-human`, or `needs-triage` as appropriate.
103
+ 3. **If it's still under-specified** → keep `needs-info`, but **do not repost the
104
+ full [needs-info template](#needs-info-template)**. Acknowledge what they
105
+ answered and ask only the still-open questions — never duplicate a question
106
+ they've already addressed.
80
107
 
81
108
  ## 2. New unlabelled issues (batch / cron)
82
109
 
@@ -1,25 +1,34 @@
1
- # Writing agent briefs
1
+ # Writing a triage summary
2
2
 
3
- An agent brief is a comment posted when an issue moves to `ready-for-agent`
4
- (or `ready-for-human`). It is the **contract** an AFK agent will build from — the
5
- original body and discussion are context; the brief is what gets implemented.
6
- Post it with `github_add_issue_comment`.
3
+ A triage summary is a comment posted when an issue moves to `ready-for-agent`
4
+ (or `ready-for-human`). It captures the **problem statement** what the issue is
5
+ really asking for and what "done" looks like so a downstream agent (or human)
6
+ can pick it up. The original body and discussion are context; the summary is the
7
+ distilled problem.
8
+
9
+ Triage classifies and **scopes the problem**. It does **not** design the
10
+ solution: triage runs with read-only context and no deep exploration, so any
11
+ implementation it guessed would be wrong as often as right. The build agent
12
+ explores the codebase fresh, with full source access, and owns every
13
+ implementation decision. Post the summary with `github_add_issue_comment`.
7
14
 
8
15
  ## Principles
9
16
 
10
17
  **Durable.** The issue may sit in `ready-for-agent` for weeks while the codebase
11
- moves. Describe interfaces, types, and behavioural contracts name specific
12
- types, function signatures, or config shapes to look for. **Never** reference
13
- file paths or line numbers; they go stale. Don't assume today's structure survives.
14
-
15
- **Behavioural, not procedural.** Say *what* the system should do, not *how* to
16
- code it the agent explores fresh and makes its own implementation calls.
17
- - Good: "`SkillConfig` should accept an optional `schedule: CronExpression`."
18
- - Bad: "Add a `schedule` field in src/types/skill.ts on line 42."
19
-
20
- **Complete acceptance criteria.** Every brief lists concrete, independently
21
- testable criteria so the agent knows when it's done.
22
- - Good: "`gh issue list --label needs-triage` returns issues that passed initial classification."
18
+ moves. Describe the problem and the desired behaviour in terms that stay true as
19
+ the code changes. **Never** reference file paths or line numbers; they go stale.
20
+
21
+ **Problem, not solution.** Say *what* should be true when the work is done, not
22
+ *how* to build it. Do **not** name types, function signatures, or config shapes,
23
+ propose an implementation approach, or point at where in the code to change —
24
+ that is the build agent's job.
25
+ - Good: "Todos can have an optional target date, shown in the list and editable."
26
+ - Bad: "Add a `dueDate: Date` field to the `Todo` interface and a date picker in `TodoForm`."
27
+
28
+ **Complete acceptance criteria.** List concrete, independently testable criteria
29
+ so the agent knows when it's done. These describe the problem's done-state — not
30
+ the implementation.
31
+ - Good: "A todo with a past target date is visually flagged as overdue."
23
32
  - Bad: "Triage should work correctly."
24
33
 
25
34
  **Explicit scope boundaries.** State what is *out of scope* so the agent doesn't
@@ -28,7 +37,7 @@ gold-plate or wander into adjacent features.
28
37
  ## Template
29
38
 
30
39
  ```markdown
31
- ## Agent Brief
40
+ ## Triage Summary
32
41
 
33
42
  **Category:** bug / enhancement
34
43
  **Summary:** one line — what needs to happen
@@ -39,12 +48,7 @@ status quo it builds on.
39
48
 
40
49
  **Desired behavior:**
41
50
  What should happen after the work is done. Be specific about edge cases and
42
- error conditions.
43
-
44
- **Key interfaces:**
45
- - `TypeName` — what changes and why
46
- - `functionName()` — current vs intended return/behaviour
47
- - Config shape — any new options
51
+ error conditions — in user-visible / behavioural terms, not code.
48
52
 
49
53
  **Acceptance criteria:**
50
54
  - [ ] Specific, testable criterion 1
@@ -1,41 +0,0 @@
1
- import type { SandboxBackend } from "../../config/config.js";
2
- import { type ExecutorConfig, type ExecutionResult, type GitSandboxAccess } from "../github/profiles.js";
3
- export declare function executeInProcess(prompt: string, config: ExecutorConfig, ctx: {
4
- backend: SandboxBackend;
5
- taskId: string;
6
- workDir: string;
7
- stateDir: string;
8
- env: Record<string, string>;
9
- access?: GitSandboxAccess;
10
- onSessionId?: (sessionId: string) => void;
11
- }): Promise<ExecutionResult>;
12
- export declare function executeDocker(prompt: string, config: ExecutorConfig, ctx: {
13
- taskId: string;
14
- stateDir: string;
15
- env: Record<string, string>;
16
- prePopulate?: {
17
- owner: string;
18
- repo: string;
19
- branch: string;
20
- token: string;
21
- runId?: string;
22
- shallow?: boolean;
23
- };
24
- access?: GitSandboxAccess;
25
- onSessionId?: (sessionId: string) => void;
26
- }): Promise<ExecutionResult>;
27
- export declare function executeSmol(prompt: string, config: ExecutorConfig, ctx: {
28
- taskId: string;
29
- stateDir: string;
30
- env: Record<string, string>;
31
- prePopulate?: {
32
- owner: string;
33
- repo: string;
34
- branch: string;
35
- token: string;
36
- runId?: string;
37
- shallow?: boolean;
38
- };
39
- access?: GitSandboxAccess;
40
- onSessionId?: (sessionId: string) => void;
41
- }): Promise<ExecutionResult>;