lastlight-core 0.34.0 → 0.34.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/dist/admin/routes.js +3 -0
- package/dist/admin/routes.js.map +1 -1
- package/dist/engine/executors/orchestrator.d.ts +13 -0
- package/dist/engine/executors/orchestrator.js +22 -2
- package/dist/engine/executors/orchestrator.js.map +1 -1
- package/dist/sandbox/docker.d.ts +8 -0
- package/dist/sandbox/docker.js +25 -0
- package/dist/sandbox/docker.js.map +1 -1
- package/dist/sandbox/k8s/kubernetes-sandbox.d.ts +5 -0
- package/dist/sandbox/k8s/kubernetes-sandbox.js +46 -2
- package/dist/sandbox/k8s/kubernetes-sandbox.js.map +1 -1
- package/dist/sandbox/k8s/run-agent-script.d.ts +3 -1
- package/dist/sandbox/k8s/run-agent-script.js +5 -2
- package/dist/sandbox/k8s/run-agent-script.js.map +1 -1
- package/dist/sandbox/resource-usage.d.ts +64 -0
- package/dist/sandbox/resource-usage.js +115 -0
- package/dist/sandbox/resource-usage.js.map +1 -0
- package/dist/sandbox/sandbox.d.ts +13 -0
- package/dist/sandbox/sandbox.js +9 -0
- package/dist/sandbox/sandbox.js.map +1 -1
- package/dist/state/execution-store.d.ts +33 -1
- package/dist/state/execution-store.js +54 -12
- package/dist/state/execution-store.js.map +1 -1
- package/dist/state/schema/pg.d.ts +51 -0
- package/dist/state/schema/pg.js +7 -1
- package/dist/state/schema/pg.js.map +1 -1
- package/dist/state/schema/sqlite.d.ts +51 -0
- package/dist/state/schema/sqlite.js +6 -0
- package/dist/state/schema/sqlite.js.map +1 -1
- package/dist/state/workflow-run-store.d.ts +5 -2
- package/dist/state/workflow-run-store.js +10 -4
- package/dist/state/workflow-run-store.js.map +1 -1
- package/dist/workflows/handlers/fanout.d.ts +12 -0
- package/dist/workflows/handlers/fanout.js +61 -11
- package/dist/workflows/handlers/fanout.js.map +1 -1
- package/drizzle/pg/0002_luxuriant_screwball.sql +3 -0
- package/drizzle/pg/meta/0002_snapshot.json +1894 -0
- package/drizzle/pg/meta/_journal.json +7 -0
- package/drizzle/sqlite/0003_first_namorita.sql +3 -0
- package/drizzle/sqlite/meta/0003_snapshot.json +1725 -0
- package/drizzle/sqlite/meta/_journal.json +7 -0
- package/package.json +3 -3
- package/skills/pr-review/SKILL.md +3 -2
- package/skills/pr-review/references/findings-schema.md +1 -1
- package/workflows/prompts/review-adjudicate.md +26 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lastlight-core",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.1",
|
|
4
4
|
"description": "GitHub repository maintenance agent — Agent SDK harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"pino-pretty": "13.1.3",
|
|
76
76
|
"yaml": "^2.8.3",
|
|
77
77
|
"zod": "^4.3.6",
|
|
78
|
+
"lastlight-shared": "0.9.1",
|
|
78
79
|
"agentic-pi": "0.7.0",
|
|
79
|
-
"lastlight-workflow-engine": "0.8.
|
|
80
|
-
"lastlight-shared": "0.9.0"
|
|
80
|
+
"lastlight-workflow-engine": "0.8.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@electric-sql/pglite": "^0.5.5",
|
|
@@ -286,8 +286,9 @@ Rules:
|
|
|
286
286
|
cross-referenced: this skill is `chat: true` and is read in threads where
|
|
287
287
|
`code-review` is not staged. Same rule, same words — change both together.)
|
|
288
288
|
- `suggestion` is optional — include it only when a concrete one-to-few-line fix
|
|
289
|
-
is obvious. It must be the exact replacement
|
|
290
|
-
nothing else; GitHub renders it as an applyable suggestion
|
|
289
|
+
is obvious. It must be the exact replacement code for the anchored line(s),
|
|
290
|
+
nothing else; GitHub renders it as an applyable suggestion, and Apply commits
|
|
291
|
+
it verbatim. Never a description of the change — that belongs in `body`.
|
|
291
292
|
- `event` is `APPROVE` / `REQUEST_CHANGES` / `COMMENT`, matching what survived
|
|
292
293
|
the gate. A clean PR is an `APPROVE` with an empty `findings` array and a short
|
|
293
294
|
`summary`. Two hard constraints on it:
|
|
@@ -45,7 +45,7 @@ how you submit.
|
|
|
45
45
|
| `severity` | string | yes | `Critical` or `Important` only. `Critical` needs a **trust boundary**, not a category: data loss, a breaking change, silent data-dropping, or a security issue where you can name the boundary the input crosses AND a capability its supplier does not already have. A tool parsing a file the invoking user wrote is robustness, not a boundary. Everything else worth posting is `Important`. Severity is what the poster ranks the inline budget on, so an inflated one spends a scarce slot. |
|
|
46
46
|
| `title` | string | yes | Short label for the finding. |
|
|
47
47
|
| `body` | string | yes | Concrete impact — what breaks, for which input or caller. |
|
|
48
|
-
| `suggestion` | string | no | Exact replacement
|
|
48
|
+
| `suggestion` | string | no | Exact replacement **code** for the lines `existingCode` quotes — same indentation, nothing before or after. Rendered as an applyable ```suggestion block: pressing Apply commits it verbatim over those lines, so it is never a description of a change ("Add …", "Move …"). Omit it unless the fix is a drop-in edit of exactly those lines as they are at head — another file, a new test or a choice between options belongs in `body`. |
|
|
49
49
|
|
|
50
50
|
## Quote the code; do not count the lines
|
|
51
51
|
|
|
@@ -298,6 +298,29 @@ Every finding needs **`existingCode`** — the verbatim excerpt, copied characte
|
|
|
298
298
|
|
|
299
299
|
For a two-ended mechanism — producer and consumer, the write and the missing check, the two sides of a comparison — anchor at the end a fix would touch and name the other end in the body. The reader starts where the comment sits.
|
|
300
300
|
|
|
301
|
+
### `suggestion` is code, or it is absent
|
|
302
|
+
|
|
303
|
+
On an inline comment, `suggestion` is posted as a GitHub **Apply suggestion** button: accepting it replaces the commented lines with `suggestion`, character for character, and commits the result. So it is the exact replacement code for the lines `existingCode` quotes — same indentation, nothing before or after — and never a description of a change.
|
|
304
|
+
|
|
305
|
+
Where it lands depends on where the harness finds `existingCode`:
|
|
306
|
+
|
|
307
|
+
- **In the changed code as it is at head** — the commented lines are the ones you quoted. This is the only case a `suggestion` is for.
|
|
308
|
+
- **Only among the lines the PR removed** — there is nothing at head to replace. Omit `suggestion`.
|
|
309
|
+
- **Nowhere** — the comment falls back to your `line`, and Apply replaces whatever sits there instead. Never write a `suggestion` against an excerpt you reconstructed rather than copied.
|
|
310
|
+
- **Off the diff** — the finding moves to the review body, where `suggestion` is not shown at all. Say the fix in `body`.
|
|
311
|
+
|
|
312
|
+
- The fix is not a drop-in edit of those lines (it touches another file, adds a test, needs a choice between options)? **Omit `suggestion`.** Say what to change in `body`{{#if dossierEnabled}} and `fix`{{/if}}.
|
|
313
|
+
- Instructions ("Add …", "Move …", "Consider …") in `suggestion` get committed into their file as source text and break it.
|
|
314
|
+
- Omitting it costs nothing. Most findings should not have one.
|
|
315
|
+
|
|
316
|
+
<!-- Measured 2026-09-27 over the 90 suggestion blocks one production deployment
|
|
317
|
+
posted since 08-26: 35 were prose — typically this finding's `fix`,
|
|
318
|
+
expanded — and each one, applied, would have written that sentence into a
|
|
319
|
+
.ts/.yml/.sh file. 8% of suggestions up to v0.29, 41% on v0.30–v0.33, 73% on the
|
|
320
|
+
first open-model runs. The field had no definition here at all ("…optional…")
|
|
321
|
+
once this phase stopped reading the pr-review skill, which is the only place it
|
|
322
|
+
was defined. -->
|
|
323
|
+
|
|
301
324
|
## Output
|
|
302
325
|
|
|
303
326
|
Rewrite `.lastlight/pr-review/findings.json` **in full**. You own this file now.
|
|
@@ -305,6 +328,7 @@ Rewrite `.lastlight/pr-review/findings.json` **in full**. You own this file now.
|
|
|
305
328
|
| field | audience |
|
|
306
329
|
|---|---|
|
|
307
330
|
| `title`, `body` | **POSTED VERBATIM** to a maintainer who has never heard of this pipeline |
|
|
331
|
+
| `suggestion` | **COMMITTED VERBATIM** if they press Apply — replacement code only, see *`suggestion` is code, or it is absent* |
|
|
308
332
|
| `summary` | **not posted.** The posted summary is written after the comment limits decide which findings post, from those findings only. On a re-review, put the prior-review ledger here (it is carried over verbatim); otherwise one line is enough |
|
|
309
333
|
| `family`, `obligation`, `hypotheses`, `mechanism`, `evidence`{{#if !dossierEnabled}}, `confidence`{{/if}} | machine-read, never rendered — bookkeeping goes here |
|
|
310
334
|
|
|
@@ -332,7 +356,7 @@ posted set; only the leading ledger of this field survives. -->
|
|
|
332
356
|
"severity": "Critical|Important", // read ONLY on a finding with no `hypotheses`; computed otherwise
|
|
333
357
|
"title": "…",
|
|
334
358
|
"body": "…concrete impact — what breaks, for which input or caller…",
|
|
335
|
-
"suggestion": "…
|
|
359
|
+
"suggestion": "…omit unless you have the exact replacement code for existingCode's lines…",
|
|
336
360
|
|
|
337
361
|
// REQUIRED on every finding. No `tier` and no `confidence` — see above.
|
|
338
362
|
"claim": "<one sentence: what is WRONG>",
|
|
@@ -367,7 +391,7 @@ posted set; only the leading ledger of this field survives. -->
|
|
|
367
391
|
"severity": "Critical|Important", // read ONLY on a finding with no `hypotheses`; computed otherwise
|
|
368
392
|
"title": "…",
|
|
369
393
|
"body": "…concrete impact — what breaks, for which input or caller…",
|
|
370
|
-
"suggestion": "…
|
|
394
|
+
"suggestion": "…omit unless you have the exact replacement code for existingCode's lines…",
|
|
371
395
|
|
|
372
396
|
"tier": "inline|body|internal", // REQUIRED on every finding. See below.
|
|
373
397
|
"impact": "wrong-result", // REQUIRED on every finding that reports a defect
|