lastlight-core 0.33.2 → 0.34.0
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/config/default.yaml +137 -48
- package/dist/config/config.d.ts +1 -1
- package/dist/config/config.js +45 -29
- package/dist/config/config.js.map +1 -1
- package/dist/engine/event-shim.d.ts +22 -0
- package/dist/engine/event-shim.js +98 -0
- package/dist/engine/event-shim.js.map +1 -1
- package/dist/engine/executors/orchestrator.js +20 -1
- package/dist/engine/executors/orchestrator.js.map +1 -1
- package/dist/engine/github/review-poster.d.ts +249 -40
- package/dist/engine/github/review-poster.js +332 -54
- package/dist/engine/github/review-poster.js.map +1 -1
- package/dist/engine/github/review-summary.d.ts +61 -0
- package/dist/engine/github/review-summary.js +101 -0
- package/dist/engine/github/review-summary.js.map +1 -0
- package/dist/engine/pr-decisions.d.ts +16 -0
- package/dist/engine/pr-decisions.js +127 -11
- package/dist/engine/pr-decisions.js.map +1 -1
- package/dist/engine/review-spec.d.ts +1 -1
- package/dist/engine/review-spec.js +69 -38
- package/dist/engine/review-spec.js.map +1 -1
- package/dist/sandbox/docker.js +6 -0
- package/dist/sandbox/docker.js.map +1 -1
- package/dist/sandbox/k8s/run-agent-script.js +5 -0
- package/dist/sandbox/k8s/run-agent-script.js.map +1 -1
- package/dist/sandbox/sandbox.d.ts +7 -0
- package/dist/sandbox/sandbox.js +13 -0
- package/dist/sandbox/sandbox.js.map +1 -1
- package/dist/sandbox/smol.js +6 -0
- package/dist/sandbox/smol.js.map +1 -1
- package/dist/session-log.js +4 -0
- package/dist/session-log.js.map +1 -1
- package/dist/telemetry/openinference.d.ts +13 -0
- package/dist/telemetry/openinference.js +13 -0
- package/dist/telemetry/openinference.js.map +1 -1
- package/dist/telemetry/pi-events.js +16 -1
- package/dist/telemetry/pi-events.js.map +1 -1
- package/dist/workflows/handlers/fanout.d.ts +42 -7
- package/dist/workflows/handlers/fanout.js +145 -19
- package/dist/workflows/handlers/fanout.js.map +1 -1
- package/dist/workflows/handlers/post-review.d.ts +17 -0
- package/dist/workflows/handlers/post-review.js +137 -50
- package/dist/workflows/handlers/post-review.js.map +1 -1
- package/dist/workflows/runner.js +1 -1
- package/dist/workflows/runner.js.map +1 -1
- package/package.json +5 -5
- package/skills/adjudicate-pass/SKILL.md +24 -20
- package/skills/survey-pass/SKILL.md +121 -130
- package/workflows/pr-review.yaml +210 -7
- package/workflows/prompts/review-adjudicate.md +388 -263
- package/workflows/prompts/review-falsify.md +185 -44
- package/workflows/prompts/review.md +10 -10
- package/workflows/prompts/survey-contract.md +48 -48
- package/workflows/prompts/survey-enforcement.md +102 -134
- package/workflows/prompts/survey-security.md +53 -56
- package/workflows/prompts/survey-spec.md +52 -37
- package/workflows/prompts/survey-state.md +54 -53
- package/workflows/prompts/survey-tests.md +48 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lastlight-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "GitHub repository maintenance agent — Agent SDK harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"node": ">=22.12"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@earendil-works/pi-ai": "^0.
|
|
48
|
+
"@earendil-works/pi-ai": "^0.87.1",
|
|
49
49
|
"@hono/node-server": "^2.1.1",
|
|
50
50
|
"@kubernetes/client-node": "1.4.0",
|
|
51
51
|
"@libsql/client": "^0.17.4",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"pino-pretty": "13.1.3",
|
|
76
76
|
"yaml": "^2.8.3",
|
|
77
77
|
"zod": "^4.3.6",
|
|
78
|
-
"
|
|
79
|
-
"lastlight-workflow-engine": "0.
|
|
80
|
-
"
|
|
78
|
+
"agentic-pi": "0.7.0",
|
|
79
|
+
"lastlight-workflow-engine": "0.8.0",
|
|
80
|
+
"lastlight-shared": "0.9.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@electric-sql/pglite": "^0.5.5",
|
|
@@ -37,16 +37,12 @@ not build it, they cannot see the hypothesis files, and the words *adjudicate*,
|
|
|
37
37
|
tier* mean nothing to them. **Every one of those is machinery, and machinery is
|
|
38
38
|
never the subject of a review.**
|
|
39
39
|
|
|
40
|
-
So
|
|
40
|
+
So every finding's `title` and `body` (and the `summary`'s re-review ledger — the only part of `summary` that is posted; the rest of the posted summary is written after the comment limits apply) are written as though by a
|
|
41
41
|
colleague who read the diff — about *their* change, in the vocabulary of *their*
|
|
42
42
|
codebase. Say what is wrong and what it costs; never how this review was
|
|
43
43
|
produced, how many passes ran, or what any of them concluded.
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
adjudication keeps those findings reconciled as not applicable and adds the
|
|
47
|
-
hypothesis ledger…"*. Three internal terms in one sentence, on a PR about a
|
|
48
|
-
search box. The author cannot act on any of it, and every word of it is
|
|
49
|
-
attention spent on us instead of on their code.
|
|
45
|
+
A real posted summary opened *"This adjudication keeps those findings reconciled as not applicable and adds the hypothesis ledger…"* — three internal terms in one sentence, none of them actionable, every word attention spent on us instead of on their code.
|
|
50
46
|
|
|
51
47
|
Two consequences worth stating, because they are the cases that tempt a leak:
|
|
52
48
|
|
|
@@ -67,9 +63,7 @@ your cwd **is** the repo (`ls -la` shows `.git/` directly). Use `git` / `read` /
|
|
|
67
63
|
relative, never absolute.** The skill files you were handed are absolute paths
|
|
68
64
|
under `…/.lastlight-skills/`, and that directory is a **sibling of the checkout,
|
|
69
65
|
one level above you**. Joining a `.lastlight/…` path onto the directory your
|
|
70
|
-
skills came from lands outside the repo and reads nothing
|
|
71
|
-
hypothetical: it cost 23 of 120 survey branches their seeded obligations across
|
|
72
|
-
three runs.
|
|
66
|
+
skills came from lands outside the repo and reads nothing — it cost 23 of 120 survey branches their seeded obligations.
|
|
73
67
|
|
|
74
68
|
**Read code from this local checkout, never the API.** Do not call
|
|
75
69
|
`github_get_pull_request_diff`, `github_list_pull_request_files` or
|
|
@@ -84,23 +78,33 @@ nowhere on disk. You never submit the review yourself: you rewrite
|
|
|
84
78
|
|
|
85
79
|
## Severity vocabulary
|
|
86
80
|
|
|
87
|
-
|
|
88
|
-
the tiers are defined here. Every finding you keep is one of exactly two:
|
|
81
|
+
The posting budgets are spent in `severity` order, and there are three values:
|
|
89
82
|
|
|
90
83
|
- **Critical** — data loss, a breaking change, silent data-dropping, or a
|
|
91
84
|
security issue that crosses a trust boundary. Blocks merge.
|
|
92
|
-
- **Important** —
|
|
93
|
-
|
|
85
|
+
- **Important** — a consequence that reaches beyond the code holding it (data,
|
|
86
|
+
a caller, a boundary), or one a probe actually executed. Should fix.
|
|
87
|
+
- **Minor** — a local consequence nobody executed. Posted last, cut first.
|
|
94
88
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
**On a finding that cites hypotheses you do not choose the severity.** It is
|
|
90
|
+
derived from the cited hypotheses' evidence records and probe verdicts and
|
|
91
|
+
stamped after you finish; anything you write there is kept only as an audit
|
|
92
|
+
field. You write `severity` only on a finding that cites no hypothesis — and
|
|
93
|
+
there, only `Critical` or `Important`.
|
|
98
94
|
|
|
99
95
|
**`Critical` needs a trust boundary, not a category** — your prompt carries that
|
|
100
|
-
predicate
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
predicate. What this section settles is only the vocabulary: an unrecognised
|
|
97
|
+
severity (`High`, `Major`, `Blocker`) ranks as `Important` by fallback and
|
|
98
|
+
produces a review that looks ordinary while ordering wrongly.
|
|
99
|
+
|
|
100
|
+
<!-- Issue #405: the adjudicator's own severity measured flat — almost every
|
|
101
|
+
claim `Important` — so the caps cut in document order. The derivation lives in
|
|
102
|
+
`packages/code-facts/src/finding-severity.ts`. -->
|
|
103
|
+
|
|
104
|
+
A finding's **`impact`** — what a user or maintainer would hit — is also yours
|
|
105
|
+
to state, and the classes are in your prompt. A preference, missing tests, dead
|
|
106
|
+
code or an unfollowed convention is recorded, never posted, however well the
|
|
107
|
+
mechanism was confirmed.
|
|
104
108
|
|
|
105
109
|
## The prior review is yours to reconcile
|
|
106
110
|
|
|
@@ -1,148 +1,139 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: survey-pass
|
|
3
|
-
description: The
|
|
4
|
-
version:
|
|
3
|
+
description: The mechanics every pass of a multi-pass PR review shares — where the workspace is, how to grade severity, what is not a finding, and how to write the output file. The pass's own question comes from its prompt. Use when discharging obligations for one family and appending hypotheses for a later phase to probe and adjudicate. Not for producing a review.
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
tags: [review, survey, multi-pass]
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# Survey pass
|
|
8
|
+
# Survey pass — the mechanics
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
obligations and append hypotheses to that family's file. A later phase probes
|
|
12
|
-
what you record and a stronger model adjudicates it; **both can only remove**.
|
|
10
|
+
Your prompt carries the question you own and the reason it is shaped that way. This is everything else: where things are, how to grade, and what to write. Where the two differ, the prompt wins.
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
question and its obligations, and it wins wherever the two differ.
|
|
12
|
+
## Workspace
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
You are **inside the checkout** — your cwd is the repo (`ls -la` shows `.git/`). Read code from here, never through the GitHub API: the API patch is a large redundant payload that re-bloats your context every turn.
|
|
15
|
+
|
|
16
|
+
- **A staged diff is already on disk** at `.lastlight/pr-review/diff/` — an index plus one patch per changed file, in head coordinates. Do not re-derive it with `git diff`. (If the index says NOT AVAILABLE, use `git diff origin/<base>...HEAD` — **three dots**; two dots claims commits the author never wrote.)
|
|
17
|
+
- **Every `.lastlight/…` path is relative to cwd. Use it relative, never absolute.** The skill files you were handed live in a sibling directory one level up; joining a `.lastlight/…` path onto that reads nothing, silently.
|
|
18
|
+
|
|
19
|
+
<!-- MEASURED, and the reason the rule is stated this bluntly: across three
|
|
20
|
+
stored runs, 98 of 98 relative first-turn reads from a survey branch
|
|
21
|
+
resolved and 0 of 27 workspace-root-absolute ones did — the only absolute
|
|
22
|
+
path a branch holds is its skill bundle, one directory ABOVE the checkout.
|
|
23
|
+
An earlier version of this cost 23 of 120 branches their seeded
|
|
24
|
+
obligations, each of which then reported its family clean. -->
|
|
25
|
+
- **Do not install dependencies or run the test suite, the linter or the type-checker.** CI's result is in your context — cite it. Where only running the code could settle a field of the evidence record, record it `unknown`; the falsify phase runs what can be run.
|
|
26
|
+
- **Stay inside the checkout.** "On disk" means this checkout plus the harness's own `lastlight-facts`; nothing under `$HOME`, a global prefix, a package-manager cache or another project counts. Never search outside it (`find /`, `find ~`, `ls ~/.nvm`) — not for a dependency, not for a skill file (yours are at the paths you were handed) — and never point `PATH` outside the workspace. A dependency that is not in the checkout is `unknown` evidence; falsify records the hypothesis `unprobed`, `"reason": "dependency not installed"`.
|
|
27
|
+
<!-- MEASURED (issue #404, martian oc-survey-glmf arm): survey_branch_spec
|
|
28
|
+
and survey_branch_enforcement each ran
|
|
29
|
+
`find / -path /proc -prune -o -name SKILL.md` — the lost-skill-path
|
|
30
|
+
failure, recovered by walking the whole disk. The `host` command-policy
|
|
31
|
+
class blocks it; this line is why the model should not try. -->
|
|
32
|
+
- **The patch is your starting point, not your scope.** You have the whole checkout: open changed files in full, grep for the callers the patch never shows you, and follow a changed symbol into files this PR did not touch. The defects worth finding usually live there.
|
|
33
|
+
|
|
34
|
+
## The evidence record — you supply facts, the verdict is computed
|
|
35
|
+
|
|
36
|
+
Two fields decide what happens to your row: whether a probe runs against it
|
|
37
|
+
(`needsProbe`), and where it ranks among everything the review found
|
|
38
|
+
(`severity`). **You do not judge either one.** Both are derived from the
|
|
39
|
+
evidence below, by code, so that identical evidence always produces an
|
|
40
|
+
identical verdict.
|
|
41
|
+
|
|
42
|
+
So the work is to establish the facts honestly. Put them in the row's
|
|
43
|
+
`evidence` object, under exactly these names:
|
|
44
|
+
|
|
45
|
+
| field | type | what it means |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| `subject` | string | the symbol, path, behaviour or criterion this row is about |
|
|
48
|
+
| `control_site` | `"path:line"` \| `"none"` | the line that **closes** the mechanism — your prompt says what closing means for your family. `none` if no line does. |
|
|
49
|
+
| `control_text` | string | that line, verbatim from the file |
|
|
50
|
+
| `authority` | `"binding"` \| `"advisory"` \| `"unknown"` | `binding` = it sits where it still holds if the other side is hostile, buggy or simply older. `advisory` = the side the other party controls, or a check nothing consults. |
|
|
51
|
+
| `order_ok` | `true` \| `false` \| `unknown` | does the control run **before** the thing it governs? |
|
|
52
|
+
| `cannot_distinguish` | string | two DIFFERENT situations the control treats identically — or exactly `"nothing"` |
|
|
53
|
+
| `bypass` | string | one concrete path that reaches the governed operation without the control — or `"none found"` |
|
|
54
|
+
| `in_changed_hunk` | `true` \| `false` | does this PR touch the subject, the control, or a site using either? |
|
|
55
|
+
| `consequence` | string \| `null` | what goes wrong, and what it does then. `null` when nothing is wrong. |
|
|
56
|
+
| `trigger` | `"input"` \| `"state"` \| `"code_change"` \| `"unknown"` | what makes `consequence` happen. `input`/`state` = reachable **at head**. `code_change` = only once somebody edits the source. |
|
|
57
|
+
| `crosses_boundary` | `true` \| `false` | does `consequence` cross a trust boundary, lose or silently drop data, or break an existing caller? |
|
|
58
|
+
| `capability_gained` | string \| `null` | something the supplier does **not** already hold without this defect |
|
|
59
|
+
|
|
60
|
+
What keeps these honest:
|
|
61
|
+
|
|
62
|
+
- **`control_text` must be copyable from the file.** If you cannot quote it,
|
|
63
|
+
`control_site` is `none`. A line that MENTIONS the subject, or passes it
|
|
64
|
+
onward, closes nothing.
|
|
65
|
+
- **`cannot_distinguish: "nothing"` is a strong claim.** It says you checked
|
|
66
|
+
the empty case, the boundary case and the absent case and the control
|
|
67
|
+
separates all of them.
|
|
68
|
+
- **`bypass: "none found"` means you SEARCHED.** It is not the default.
|
|
69
|
+
- **`capability_gained` is `null`** whenever the supplier could already cause
|
|
70
|
+
the same outcome by legitimate means.
|
|
71
|
+
- **If your `consequence` begins "if X is changed…", the `trigger` is
|
|
72
|
+
`code_change`.** Nothing is wrong at head, and the only person who can
|
|
73
|
+
trigger it is someone who can already edit the repository.
|
|
74
|
+
- **There is no `"N/A"`, `"none"` or `"-"`.** Every field takes a value from
|
|
75
|
+
its type; a question that does not apply still has an answer — `"nothing"`,
|
|
76
|
+
`"none found"`, `null` or `unknown`, as the type says.
|
|
77
|
+
- **`unknown` is a real answer and a safe one.** Never round it to a clean
|
|
78
|
+
value to make a row look finished.
|
|
79
|
+
|
|
80
|
+
**You do not write `severity` or `needsProbe`.** They are not on your row. Both are computed from the record above, downstream, so that identical evidence always produces an identical verdict.
|
|
81
|
+
|
|
82
|
+
That is worth knowing because of what it means for two fields in particular:
|
|
83
|
+
|
|
84
|
+
- **`consequence: null` is how a clean discharge is recorded.** It is not a hedge — it is the fact that nothing goes wrong, and it is what makes the row rank below anything that does.
|
|
85
|
+
- **`in_changed_hunk` decides whether a clean discharge gets verified.** A control you found sound, over code this PR touched, is a *reassurance* — and a reassurance is the one kind of row nothing downstream can reopen. A later phase can delete a risk you recorded; it can never resurrect one you graded away. Marking the hunk honestly is what sends it for verification.
|
|
86
|
+
|
|
87
|
+
<!-- Both fields used to be judgements, and both measured unstable: identical
|
|
88
|
+
inputs produced different rankings run to run, and clean discharges over
|
|
89
|
+
changed code declined the one verification that could contradict them.
|
|
90
|
+
Asking for a judgement makes the answer depend on the adjectives a prompt
|
|
91
|
+
happens to use, which is why rewording moved the numbers in both
|
|
92
|
+
directions without ever settling them. The rules now live in
|
|
93
|
+
`packages/code-facts/src/survey-verdict.ts`, with the measurements that
|
|
94
|
+
shaped each one. -->
|
|
18
95
|
|
|
19
|
-
|
|
20
|
-
apply to you: posting, `findings.json`, and deciding what is worth a maintainer's
|
|
21
|
-
attention. A later phase owns all three.
|
|
96
|
+
## Not findings
|
|
22
97
|
|
|
23
|
-
|
|
24
|
-
notice more.
|
|
98
|
+
What your prompt asks for is what counts. This is what does not, however true:
|
|
25
99
|
|
|
26
|
-
|
|
100
|
+
| not a finding | unless |
|
|
101
|
+
|---|---|
|
|
102
|
+
| **Pre-existing issues** the change is merely adjacent to | **this PR is what makes them wrong** — a consumer the diff never opened, now reading a shape the diff moved, is the highest-value finding there is |
|
|
103
|
+
| **Anything a linter, typechecker or compiler catches.** They run, and they are right more often than you are | the code *silences* one (`as any`, `@ts-ignore`) — by definition something they no longer catch |
|
|
104
|
+
| **Restatements of the intended change.** If the diff does X on purpose, "this does X" is a description, not a finding | |
|
|
105
|
+
| **Points already deliberately silenced** — a suppression, an ignore directive, a comment saying why. Someone decided already | |
|
|
106
|
+
| **Conventions the repository does not actually follow.** Its neighbours are the standard, not its style guide or yours | |
|
|
107
|
+
| **A repeated literal the merged code already repeats** | this change lets the copies diverge **in behaviour** — then say what diverges, and for whom |
|
|
108
|
+
| **"X is never validated" with no consumer that misbehaves** | some caller reaches code that then does the wrong thing — name that path |
|
|
109
|
+
| **Stale prose.** A description that under- or over-describes the change | a doc line, comment or example makes a checkable claim that is **false at head** and the next reader will act on it |
|
|
110
|
+
| **Generated files** — lockfiles, compiled assets | |
|
|
27
111
|
|
|
28
|
-
|
|
29
|
-
name the concrete impact, do not post it"*, and a confidence gate before
|
|
30
|
-
finalising. **None of that is yours to do.** Yours is not the last hand on the
|
|
31
|
-
work — every downstream stage can only *remove*, so nothing there can recover a
|
|
32
|
-
hypothesis you declined to write down, and a pass that self-censors is deleting
|
|
33
|
-
evidence on behalf of a stage that has not run yet.
|
|
112
|
+
This is a **category** rule, never a confidence bar. "I am not certain" is not on the list.
|
|
34
113
|
|
|
35
|
-
|
|
36
|
-
here it is not even a reason to hesitate: write it down with what you do and do
|
|
37
|
-
not know.
|
|
114
|
+
## Output
|
|
38
115
|
|
|
39
|
-
|
|
40
|
-
**global** confidence threshold (`t = 0.98`) catastrophic — roughly **80% of the
|
|
41
|
-
predictions it discarded as below-threshold were correct anyway**. Replacing it
|
|
42
|
-
with per-check thresholds raised recall without costing precision. The gate is
|
|
43
|
-
worth having at the one point where a wrong finding is actually paid for, and is
|
|
44
|
-
expensive everywhere upstream of it. You are upstream of it.
|
|
116
|
+
Append one JSON object per line to your family's file under `.lastlight/pr-review/hypotheses/`, in the shape your obligations block prescribes. Read and write no other family's file — the passes are kept apart so they cannot collapse onto one opinion.
|
|
45
117
|
|
|
46
|
-
|
|
118
|
+
Create the file even with nothing to record, so *surveyed and found nothing* and *never ran* stay distinguishable. But a placeholder row carries **no analysis**: the moment it quotes lines and grades them, it is a hypothesis with a verdict and must be written as one, bar named — not folded into a no-findings line where no probe and no adjudicator will ever look.
|
|
47
119
|
|
|
48
|
-
|
|
49
|
-
your cwd **is** the repo (`ls -la` shows `.git/` directly). Use `git` / `read` /
|
|
50
|
-
`grep` from here.
|
|
51
|
-
|
|
52
|
-
**Every `.lastlight/…` path in your prompt is relative to that cwd — use it
|
|
53
|
-
relative, never absolute.** The skill files you were handed are absolute paths
|
|
54
|
-
under `…/.lastlight-skills/`, and that directory is a **sibling of the checkout,
|
|
55
|
-
one level above you**. Joining a `.lastlight/…` path onto the directory your
|
|
56
|
-
skills came from lands outside the repo and reads nothing. Measured, not
|
|
57
|
-
hypothetical: it cost 23 of 120 survey branches their seeded obligations across
|
|
58
|
-
three runs.
|
|
59
|
-
|
|
60
|
-
**Read code from this local checkout, never the API.** Do not call
|
|
61
|
-
`github_get_pull_request_diff`, `github_list_pull_request_files` or
|
|
62
|
-
`github_get_file_contents` — the API patch is a large redundant payload that
|
|
63
|
-
re-bloats context every turn.
|
|
64
|
-
|
|
65
|
-
A **staged diff** is already on disk under `.lastlight/pr-review/diff/` — an
|
|
66
|
-
index plus one patch per changed file, in head coordinates. Do not re-derive the
|
|
67
|
-
range with `git diff`; it is written down. But the patch is your **starting
|
|
68
|
-
point, not your scope**: you are in the full checkout, and the highest-value
|
|
69
|
-
findings live in the files the diff never opened.
|
|
70
|
-
|
|
71
|
-
## Finding tiers
|
|
72
|
-
|
|
73
|
-
Categorise every hypothesis into exactly one tier. You post nothing, so this is
|
|
74
|
-
vocabulary for the adjudicator, not a filter on you:
|
|
75
|
-
|
|
76
|
-
- **Critical** — data loss, breaking changes, silent data-dropping, or a security
|
|
77
|
-
issue that crosses a trust boundary (see below). Blocks merge.
|
|
78
|
-
- **Important** — missing tests, performance problems, type errors, avoidable
|
|
79
|
-
duplication, excessive complexity, compiler-silencing assertions. Should fix.
|
|
80
|
-
- **Minor** — everything below that bar, including a clean discharge. Record it;
|
|
81
|
-
the tier is what stops it competing for attention.
|
|
82
|
-
|
|
83
|
-
**Critical needs a trust boundary, not a category.** "This input is attacker
|
|
84
|
-
controlled" is not enough on its own — name the boundary the input crosses and a
|
|
85
|
-
capability the supplier does not already have. A local CLI parsing a file the
|
|
86
|
-
user themselves wrote is codegen robustness, not a security boundary: the
|
|
87
|
-
supplier of the input already holds every capability the finding would grant.
|
|
88
|
-
Severity feeds the adjudicator's ranking and therefore what occupies a
|
|
89
|
-
maintainer's top slots, so an inflated one spends attention that a real Critical
|
|
90
|
-
needed.
|
|
120
|
+
**An unseeded block is not an empty task.** If your attachment says NOT MEASURED, NOT AVAILABLE, or that no obligations could be built, record that as your FIRST row — then work the diff for your family's question yourself and write what you find. A file holding only that row is a pass that stopped at the door; the gate fails it. (The one exception is a family whose own prompt says NOT MEASURED *is* its answer — `tests`, which can observe nothing without a coverage report.)
|
|
91
121
|
|
|
92
|
-
|
|
122
|
+
Do not write `findings.json` and do not post a review. Neither is yours.
|
|
123
|
+
|
|
124
|
+
<!-- The cross-family rule is "by construction, not by instruction": six passes
|
|
125
|
+
appending to six disjoint files cannot collapse onto one shared opinion
|
|
126
|
+
even if every one of them wants to. Reading another family's file is what
|
|
127
|
+
would reintroduce that, which is why the ban is on the READ as well as the
|
|
128
|
+
write.
|
|
93
129
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
compiler does not catch.
|
|
105
|
-
- **Real issues on lines this PR did not touch — unless this PR is what makes
|
|
106
|
-
them wrong.** A consumer the diff never opened, now reading a shape the diff
|
|
107
|
-
moved, IS a finding and is the highest-value one there is. What is excluded is
|
|
108
|
-
a defect that was already there and still is.
|
|
109
|
-
- **Changes that are clearly intentional and part of the broader change.** If the
|
|
110
|
-
diff is doing X on purpose, "this does X" is a restatement, not a finding.
|
|
111
|
-
- **Points already deliberately silenced in the code** — an explicit suppression,
|
|
112
|
-
an ignore directive, a comment saying why. Someone already decided.
|
|
113
|
-
- **Conventions the reviewed repository does not actually follow.** **The
|
|
114
|
-
repository's conventions govern — not yours, and not the ones it aspires to.**
|
|
115
|
-
If the merged code does not follow a convention, that convention is aspirational
|
|
116
|
-
and departing from it is not a finding. Read the neighbours of the file you are
|
|
117
|
-
reviewing; they are the standard, not the style guide.
|
|
118
|
-
- **A repeated literal the merged code already repeats.** If the copies agree and
|
|
119
|
-
this change does not make them observably diverge, sharing the constant is a
|
|
120
|
-
suggestion, not a finding. The moment this change DOES let them disagree in
|
|
121
|
-
behaviour it becomes real — but then say what diverges and for whom.
|
|
122
|
-
- **"X is never validated" with no consumer that misbehaves.** A missing check is
|
|
123
|
-
a finding when some input or caller reaches code that then does the wrong
|
|
124
|
-
thing — name that path. Validation nobody's misbehaviour depends on is a design
|
|
125
|
-
note.
|
|
126
|
-
- **Description staleness — though a doc's claims are checkable.** A PR
|
|
127
|
-
description that under- or over-describes the change is not a finding. But a
|
|
128
|
-
doc line, comment or example asserting something checkable about the code's
|
|
129
|
-
behaviour which is **false at head** IS one — the next reader will act on it.
|
|
130
|
-
The test: does the sentence make a claim the code can falsify?
|
|
131
|
-
|
|
132
|
-
Two more, which are about cost rather than category:
|
|
133
|
-
|
|
134
|
-
- Don't nitpick generated files (lockfiles, compiled assets).
|
|
135
|
-
- Don't repeat what linters and CI already catch.
|
|
136
|
-
|
|
137
|
-
## State the residual risk, not the reassurance
|
|
138
|
-
|
|
139
|
-
A discharge that concludes "correctly handled", "properly ordered" or "enforced"
|
|
140
|
-
is a **claim, not a measurement** — and its direction is the one thing no
|
|
141
|
-
downstream stage can flip. A probe and an adjudicator can remove a risk you wrote
|
|
142
|
-
down; they will never see one you graded away as fine.
|
|
143
|
-
|
|
144
|
-
So before you write "correct", name the bar you graded against. Two invariants
|
|
145
|
-
can both be true of the same quoted line, and your family's question is always
|
|
146
|
-
the **strongest** bar it cares about, never the weakest true statement. If you
|
|
147
|
-
cannot name the bar, record the mechanism with no verdict and let the probe
|
|
148
|
-
settle it.
|
|
130
|
+
And on the seeded block: "we could not look" and "we looked and it is
|
|
131
|
+
clean" are different facts at every layer (locked decision 6). A pass that
|
|
132
|
+
was handed NOT MEASURED, or nothing at all, records that FIRST — and then
|
|
133
|
+
works the diff unseeded, because the seed is a head start, not the scope.
|
|
134
|
+
(This comment once ended at "does not substitute a judgement for a
|
|
135
|
+
measurement", and on 2026-09-24 Haiku read that as "stop": 2 of 3 repeats
|
|
136
|
+
of an unseeded branch wrote the one placeholder row and nothing else, on
|
|
137
|
+
a fixture whose gold other models found unseeded.) The block is delivered INTO
|
|
138
|
+
the prompt rather than left on disk because any path a pass constructs for
|
|
139
|
+
it is a guess about a harness layout that varies by backend. -->
|