lastlight-core 0.33.1 → 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.
Files changed (58) hide show
  1. package/config/default.yaml +137 -48
  2. package/dist/config/config.d.ts +1 -1
  3. package/dist/config/config.js +45 -29
  4. package/dist/config/config.js.map +1 -1
  5. package/dist/engine/event-shim.d.ts +22 -0
  6. package/dist/engine/event-shim.js +98 -0
  7. package/dist/engine/event-shim.js.map +1 -1
  8. package/dist/engine/executors/orchestrator.js +20 -1
  9. package/dist/engine/executors/orchestrator.js.map +1 -1
  10. package/dist/engine/github/review-poster.d.ts +249 -40
  11. package/dist/engine/github/review-poster.js +332 -54
  12. package/dist/engine/github/review-poster.js.map +1 -1
  13. package/dist/engine/github/review-summary.d.ts +61 -0
  14. package/dist/engine/github/review-summary.js +101 -0
  15. package/dist/engine/github/review-summary.js.map +1 -0
  16. package/dist/engine/pr-decisions.d.ts +16 -0
  17. package/dist/engine/pr-decisions.js +127 -11
  18. package/dist/engine/pr-decisions.js.map +1 -1
  19. package/dist/engine/review-spec.d.ts +1 -1
  20. package/dist/engine/review-spec.js +69 -38
  21. package/dist/engine/review-spec.js.map +1 -1
  22. package/dist/sandbox/docker.js +6 -0
  23. package/dist/sandbox/docker.js.map +1 -1
  24. package/dist/sandbox/k8s/run-agent-script.js +5 -0
  25. package/dist/sandbox/k8s/run-agent-script.js.map +1 -1
  26. package/dist/sandbox/sandbox.d.ts +7 -0
  27. package/dist/sandbox/sandbox.js +13 -0
  28. package/dist/sandbox/sandbox.js.map +1 -1
  29. package/dist/sandbox/smol.js +6 -0
  30. package/dist/sandbox/smol.js.map +1 -1
  31. package/dist/session-log.js +4 -0
  32. package/dist/session-log.js.map +1 -1
  33. package/dist/telemetry/openinference.d.ts +13 -0
  34. package/dist/telemetry/openinference.js +13 -0
  35. package/dist/telemetry/openinference.js.map +1 -1
  36. package/dist/telemetry/pi-events.js +16 -1
  37. package/dist/telemetry/pi-events.js.map +1 -1
  38. package/dist/workflows/handlers/fanout.d.ts +42 -7
  39. package/dist/workflows/handlers/fanout.js +145 -19
  40. package/dist/workflows/handlers/fanout.js.map +1 -1
  41. package/dist/workflows/handlers/post-review.d.ts +17 -0
  42. package/dist/workflows/handlers/post-review.js +137 -50
  43. package/dist/workflows/handlers/post-review.js.map +1 -1
  44. package/dist/workflows/runner.js +1 -1
  45. package/dist/workflows/runner.js.map +1 -1
  46. package/package.json +5 -5
  47. package/skills/adjudicate-pass/SKILL.md +24 -20
  48. package/skills/survey-pass/SKILL.md +121 -130
  49. package/workflows/pr-review.yaml +210 -7
  50. package/workflows/prompts/review-adjudicate.md +388 -263
  51. package/workflows/prompts/review-falsify.md +185 -44
  52. package/workflows/prompts/review.md +10 -10
  53. package/workflows/prompts/survey-contract.md +48 -48
  54. package/workflows/prompts/survey-enforcement.md +102 -134
  55. package/workflows/prompts/survey-security.md +53 -56
  56. package/workflows/prompts/survey-spec.md +52 -37
  57. package/workflows/prompts/survey-state.md +54 -53
  58. package/workflows/prompts/survey-tests.md +48 -48
@@ -7,44 +7,41 @@ Reviewing **{{owner}}/{{repo}}#{{prNumber}}**, head `{{headSha}}` against `{{bas
7
7
 
8
8
  ## What this pass is
9
9
 
10
- Earlier passes wrote **hypotheses** — claims about a defect mechanism, each
11
- naming where something is introduced and where it should have been enforced.
12
- They were told to over-produce, and they did, because *"nothing downstream can
13
- recover a mechanism you declined to write down"*. An oracle pass then tried to
14
- settle some of them by running code.
15
-
16
- You are what those passes were over-producing *for*. Until this phase existed,
17
- every hypothesis they wrote was appended to a file **nobody read** — measured
18
- runs ended in an `APPROVE` with zero posted findings against several real
19
- defects. Your job is to turn that pile into one ranked, tiered review.
20
-
21
- You are deliberately a **fresh reader**. Read the hypothesis *records*, the
22
- quotes and the transcripts — not the earlier passes' reasoning. That is not a
23
- stylistic preference: agents shown the reasoning that produced a false report
24
- fail to reject it 96% of the time.
10
+ Earlier passes wrote **hypotheses** — claims about a defect mechanism, each naming where something is introduced and where it should have been enforced. They were told to over-produce. An oracle pass then tried to settle some by running code.
11
+
12
+ You turn that pile into one ranked, tiered review.
13
+
14
+ Read the hypothesis **records** — claims, quotes, transcripts. Never an earlier pass's reasoning.
15
+
16
+ **You do not execute code.** Do not install dependencies or run the build, the linter or the test suite: CI's result is in the Context section and falsify already ran what could be run. An unsettled claim is demoted, not re-run.
17
+
18
+ <!-- Why records, not reasoning: agents shown the reasoning that produced a false
19
+ report fail to reject it 96% of the time. And before this phase existed the
20
+ hypothesis files were written and never read — measured runs ended in APPROVE
21
+ with zero posted findings against several real defects. -->
25
22
 
26
23
  ## The rule with money on it
27
24
 
28
25
  > **You may re-rank, re-tier, merge, and demote a finding into the review body.
29
26
  > You may DELETE a finding only when a probe transcript refutes it.**
30
27
 
31
- This is a measured bound, not a principle. Two models were scored as
32
- adjudicators against 2,145 labelled real review comments, and **neither beat
33
- keeping everything** (F1 0.825 doing nothing, 0.803 and 0.745 for the two
34
- models). One destroyed 131 valid comments to catch 98 invalid ones; precision
35
- barely moved, which is the signature of a filter that is not discriminating,
36
- only shrinking. Both judged human-written comments markedly *worse* than
37
- machine-written ones, and human-written is the column that counts.
28
+ | you may | on what basis |
29
+ |---|---|
30
+ | re-rank | evidence strength |
31
+ | re-tier (incl. demote to `body`) | attention cost |
32
+ | demote to `internal` | an `impact` nobody would hit — see *A confirmed mechanism is not a defect* |
33
+ | merge | one defect surfacing twice |
34
+ | **delete** | **a probe transcript that refutes it — nothing else** |
38
35
 
39
- So a cheap judgement of "is this plausible" is worse than useless here. You earn
40
- your cost by **ordering and tiering**, and by honouring transcripts — never by
41
- deciding a claim feels weak.
36
+ You earn your cost by ordering and tiering. Never by deciding a claim feels weak.
42
37
 
43
- **Demotion is not suppression.** A finding in the review body is still posted and
44
- still visible; it is simply not an inline comment. That is the tool to reach for
45
- whenever you are tempted to drop something.
38
+ **Demotion is not suppression.** A `body` finding is still posted and still read. Reach for it whenever you are tempted to drop something.
46
39
 
47
- ## Start here: get your checklist
40
+ This is a measured bound, not a principle. Two models scored as adjudicators against 2,145 labelled real review comments, and **neither beat keeping everything** — F1 0.825 doing nothing, 0.803 and 0.745 for the models. One destroyed 131 valid comments to catch 98 invalid ones; precision barely moved, which is the signature of a filter that is not discriminating, only shrinking.
41
+
42
+ So a cheap judgement of "is this plausible" is worse than useless here.
43
+
44
+ {{#if !dossierEnabled}}## Start here: get your checklist
48
45
 
49
46
  **First command, before you read anything:**
50
47
 
@@ -53,239 +50,334 @@ FACTS="${LASTLIGHT_FACTS_BIN:-$(command -v lastlight-facts || echo /opt/lastligh
53
50
  "$FACTS" findings --dir .lastlight/pr-review --ledger
54
51
  ```
55
52
 
56
- That first line is not decoration — the tool is reached three different ways
57
- depending on where this runs, and a bare `lastlight-facts` is not on `PATH`
58
- everywhere. Keep it.
53
+ Keep that first line — `lastlight-facts` is not on `PATH` everywhere.
59
54
 
60
- That prints every hypothesis id the surveys declared, grouped by family, with the
61
- obligation, severity and file each came from — and marks which already carry a
62
- disposition. **It is the same code as the gate below**, so it cannot disagree
63
- with what you will be graded on. Work from that list. Do not reconstruct it by
64
- reading the six `.jsonl` files and keeping count in your head: that is what the
65
- previous attempt did, and it missed ids.
55
+ It prints every hypothesis id the surveys declared, by family, with obligation, severity and file, and marks which already carry a disposition. **It is the same code as the gate below**, so it cannot disagree with what you are graded on. It only reports: always exits 0, writes nothing.
66
56
 
67
- It only ever reports — it always exits 0 and writes nothing.
57
+ Work from that list. Do not reconstruct it by reading the six `.jsonl` files and counting in your head.
68
58
 
69
- **If the ledger already shows ids marked `[x]`, you are on a retry.** A previous
70
- attempt wrote `findings.json` and the gate rejected it for the ids still marked
71
- `[ ]`. **Do not start over.** Keep every finding that is already there and add a
72
- disposition for each outstanding id — that is the whole remaining job, and it is
73
- a small one.
59
+ **Ids already marked `[x]` mean you are on a retry.** A previous attempt wrote `findings.json` and the gate rejected it for the ids still `[ ]`. **Do not start over** — keep every finding already there and add a disposition for each outstanding id.
74
60
 
75
61
  ## What to read
76
62
 
77
- | File | What it is |
63
+ | file | what it is |
78
64
  |---|---|
79
- | `.lastlight/pr-review/hypotheses/*.jsonl` | every hypothesis, one JSON object per line, from six independent passes |
80
- | `.lastlight/pr-review/probes/verdicts.jsonl` | the oracle's verdicts — `reproduced`, `refuted`, `unprobed` |
81
- | `.lastlight/pr-review/probes/*.txt` | the transcripts themselves. **Read the transcript, not the verdict's summary of it** |
82
- | `.lastlight/pr-review/findings.json` | what the review pass already wrote. These are findings too, and they are NOT hypothesis-derived |
65
+ | `.lastlight/pr-review/hypotheses/*.jsonl` | every hypothesis, one JSON object per line, six independent passes |
66
+ | `.lastlight/pr-review/probes/verdicts.jsonl` | the oracle's verdicts — `reproduced` / `corroborated` / `refuted` / `unprobed` |
67
+ | `.lastlight/pr-review/probes/*.txt` | the transcripts. **Judge the transcript, not the verdict's summary of it** |
68
+ | `.lastlight/pr-review/findings.json` | what the review pass wrote. Findings too, and NOT hypothesis-derived |
69
+
70
+ No `verdicts.jsonl` ⇒ no probe ran ⇒ **nothing may be dropped on this run at all.** Absence is not evidence.
71
+ {{/if}}{{#if dossierEnabled}}## Your evidence, already assembled
72
+
73
+ Everything is in the dossier at the end of this prompt, built from `.lastlight/pr-review/` by `lastlight-facts dossier`: every hypothesis with its id, claim and both mechanism ends; every probe's verdict, command and transcript; the conservation ledger with the ids still owing a disposition; and the review pass's findings.
74
+
75
+ **Do not fetch what is already here.** No `cat` of a `.jsonl`, no `cat` of a transcript, no `findings --ledger`. Your budget is for the judgement.
76
+
77
+ <!-- A previous shape of this phase spent thirty shell calls and about a third of
78
+ the case's cost re-deriving this document one file at a time, then made its
79
+ actual judgement at the end of a long, noisy transcript. -->
80
+
81
+ **Quotes are already checked against the tree.**
82
+
83
+ | marker | meaning | what you do |
84
+ |---|---|---|
85
+ | `quote VERIFIED — path:line` | the excerpt is in that file at that line | anchor to it |
86
+ | `quote NOT FOUND` | it is not, and re-reading will not change that | re-quote from the code, or say what you anchor to instead |
87
+
88
+ **Do not `sed`/`grep` to check a quote this document has verified.**
89
+
90
+ Two absences are deliberate. The falsify pass's **reasoning** about its own verdicts — you get the verdict, the command and the transcript, and you judge the transcript. And **`confidence`**, on hypotheses and findings alike. Do not reintroduce it, and do not ask for it.
91
+
92
+ <!-- confidence measured AUROC 0.228 across 516 findings — inverted, because the
93
+ claims this pipeline is surest of are the ones where nothing is wrong. -->
94
+
95
+ If the dossier says `DOSSIER NOT AVAILABLE` it could not be built. Then, and only then, read `.lastlight/pr-review/` yourself: `hypotheses/*.jsonl`, `probes/verdicts.jsonl`, `probes/*.txt`, `findings.json`, and `lastlight-facts findings --dir .lastlight/pr-review --ledger`.
96
+
97
+ No probe verdict anywhere ⇒ no probe ran ⇒ **nothing may be dropped on this run at all.**
83
98
 
84
- If `verdicts.jsonl` is absent, no probe ran. That is **not** evidence about any
85
- hypothesis: it means the oracle never got to look, so nothing may be dropped on
86
- this run at all.
99
+ **Ids already marked `[x]` mean you are on a retry.** Keep every finding already there and add a disposition for each outstanding id. Do not start over.
100
+ {{/if}}
87
101
 
88
102
  ## What to do, in order of importance
89
103
 
90
- 1. **Deduplicate across families.** The same defect surfaces from `contract` and
91
- from `enforcement` — that is the pipeline working, not two bugs. Merge them
92
- into one finding, keep the **union** of their evidence, and list **every**
93
- hypothesis id the merged finding covers.
94
-
95
- Merging is for ONE defect surfacing twice — never for "same topic". Two
96
- hypotheses that share a mechanism but claim different consequences are two
97
- findings. And a merge can only strengthen: the merged finding takes the
98
- strongest claim direction and the highest tier any constituent would earn
99
- on its own, because independent passes converging on one mechanism is
100
- corroboration, not redundancy. If you find yourself collapsing several
101
- defect-shaped rows into one "verified correct" row, you are not merging —
102
- you are deleting without a transcript.
103
-
104
- 2. **Rank.** A Critical claim with a `reproduced` transcript first. Then Critical
105
- without one, then Important with a transcript, and so on. The ranking is what
106
- spends the inline-comment budget well.
107
-
108
- **`Critical` needs a trust boundary, not a category — and the survey passes
109
- do not apply this bar, so applying it is yours.** Before you keep a security
110
- claim at `Critical`, check that the finding names the boundary the input
111
- crosses AND a capability its supplier does not already have. Where it does
112
- not, DEMOTE it to `Important`; do not drop it. A local tool parsing a file
113
- the invoking user wrote is robustness, not a boundary: the supplier already
114
- holds every capability the finding would grant, so "a malicious input could
115
- do X" describes someone attacking themselves. Measured on this pipeline's
116
- first production run, all three Criticals it posted arrived from the surveys
117
- as `Important` and were promoted here on category membership alone.
118
-
119
- Demotion is a RANKING act, not a deletion, and it must not become one: the
120
- claim keeps its tier, its body and its hypothesis ids. What changes is which
121
- of the few inline slots it occupies.
122
-
123
- 3. **Tier.** Three destinations, and be honest about which:
124
- - `inline` — a comment on the diff line. The scarce one.
125
- - `body` — the *"Additional findings"* list. Still posted, still read.
126
- - `internal` — recorded, not posted. For a claim that is real but too thin to
127
- spend anyone's attention on. This is the only tier that costs recall, so it
128
- is the one to justify to yourself before using.
129
-
130
- **A VERIFICATION REPORT is always `internal`, whatever its confidence.** A
131
- finding whose claim is that something is correctly handled, properly
132
- enforced, satisfied, or unchanged — or that merely describes what the diff
133
- does without asserting a defect or risk — exists to discharge its hypothesis
134
- id, not to spend a maintainer's attention. It is not a weaker finding; it is
135
- not a finding. Measured on this pipeline's own runs, one pull request
136
- received seventeen such reports at confidence 1.00, every one attention
137
- cost with nothing in it to act on. Posting one at `body` or `inline` is a
138
- defect of this pass. The recall rule above is untouched: a claim that
139
- something is WRONG, however thin, still reaches the review.
140
-
141
- **The test is the claim's DIRECTION, never its wording.** A finding that
142
- CONFIRMS a defect is a defect finding however it is phrased — *"the spec
143
- asked for one status code and the implementation returns another; verified
144
- against the current diff, this discharges the obligation"* asserts
145
- something is WRONG and must be tiered like any other defect, discharge
146
- language and all. Only a claim that NO defect exists is a verification
147
- report. Measured on this pipeline's own runs, both gold-matching findings
148
- one adjudication buried were confirmed defects written in discharge
149
- phrasing; the rule above fired on the wording and cost the review its two
150
- real findings. Before tiering anything `internal` under that rule, ask: if
151
- this sentence is true, is the code wrong? If yes, it is a finding.
152
-
153
- **And a claim of correctness is a CLAIM, not a measurement.** The most
154
- expensive failure this pipeline has measured is not a buried defect claim —
155
- it is a survey that reached the defective lines, graded them against the
156
- weakest true bar, and wrote the reassurance: *"correctly ordered"*,
157
- *"properly enforced"*, at confidence 1.00, about the exact mechanism that
158
- was broken. So before you accept a verification report AS one, read its
159
- evidence, never its verdict: a row that quotes a mechanism and appends
160
- "correctly" without naming the bar it was graded against — who reaches this
161
- code without the check, what the guard does with input it was not written
162
- for — has verified nothing. Treat it as an **`unprobed` hypothesis about
163
- that mechanism**: keep the mechanism, discard the verdict, price the risk
164
- the row failed to exclude, and tier it like any other unprobed claim
165
- rather than filing the reassurance at `internal` unexamined.
166
-
167
- **A SPECULATIVE HAZARD is always `internal`, whatever its confidence.** A
168
- finding whose defect exists only after a hypothetical future change —
169
- *"nothing prevents a future developer from…"*, *"if this constant is later
170
- renamed…"*, *"there is no mechanism stopping someone from re-enabling…"* —
171
- asserts no misbehaviour of the code in this pull request. It is a design
172
- observation, not a defect, and the maintainer it interrupts can do nothing
173
- about it in this diff. Measured on this pipeline's own runs, twelve such
174
- findings reached one clean pull request across two repeats — every one a
175
- false positive. The line to hold: the defect must be reachable by the code
176
- **as it stands in this PR**. A missing check on a live path is a finding; a
177
- missing guard against an edit nobody has made is not.
178
-
179
- Check the reachability claim itself before filing under this rule: a
180
- mechanism the code reaches TODAY, reframed in future tense (*"may become
181
- incomplete if the API later changes…"*), is a live defect wearing this rule
182
- as a disguise. Same test as above — what does the code in this PR do, now,
183
- on the path named? If that answer is a misbehaviour, it is a finding.
184
-
185
- 4. **Demote, do not delete.** Deleting requires naming the refuting transcript,
186
- by path, and that path must exist.
187
-
188
- 5. **An `unprobed` hypothesis reaches the review.** It was not disproved; nobody
189
- could run anything. Lower its confidence and tier it accordingly — do not drop
190
- it. This is the exact regression that was built once, measured, and reverted.
191
-
192
- 6. **An author's comment explains intent; it never proves correctness.** "The
193
- code has a detailed comment explaining exactly this" is a disposition this
194
- pass is not allowed to reach. A documented trade-off is settled only while
195
- its stated grounds hold, and the grounds are a checkable claim like any
196
- other: read them against the code, and against the dependency's actual
197
- behaviour where they invoke one. Where the grounds do not hold, the comment
198
- is not a defence — it is a second finding, because the documentation now
199
- asserts something false beside the defect it excuses. Deliberate and
200
- correct are different properties, and evidence of the first is not evidence
201
- of the second.
202
-
203
- 7. **A third-party boundary is in scope when OUR use of it misbehaves.**
204
- "That's the library's behaviour, not our code" demotes nothing: testing the
205
- dependency for its own sake is out of scope, but a changed call site that
206
- configures, trusts, or times a dependency wrongly is a defect of this PR —
207
- the misbehaviour merely executes elsewhere. Adjudicate a hypothesis about
208
- limits, lifecycle or timing at a dependency boundary on what our code does
209
- with the dependency's actual contract, never wave it off for living at the
210
- boundary.
211
-
212
- 8. **Honour the hard constraints in `adjudicate-pass`.** Never `APPROVE` over an
213
- open human `CHANGES_REQUESTED`; never `APPROVE` while one of our own prior
214
- findings is still open; on a re-review, open the summary with the prior-review
215
- ledger (Fixed / Still open / Pinned by a test / Withdrawn). You own the
216
- `event`, so those are yours — establish the prior state with the `github_*`
217
- review and comment reads before you decide it.
218
-
219
- ## Confidence prices the defect, not your certainty
220
-
221
- `confidence` is the probability that a maintainer who investigates will conclude
222
- something is **genuinely wrong** — never how sure you are of an observation. A
223
- verification report has no defect to price, so it can never earn a high number
224
- by being certainly true. Calibrate:
225
-
226
- - **0.90+** — a `reproduced` transcript, or the defect visible end-to-end in
227
- quoted code (the write AND the missing check, both quoted).
228
- - **0.60–0.85** — the mechanism is concrete and one end is quoted.
229
- - **0.30–0.55** — plausible, but inferred rather than shown.
230
- - **below 0.30** — speculative; `unprobed` claims with thin evidence live here.
231
-
232
- The downstream posting thresholds READ this number (family bars 0.30–0.60,
233
- floor 0.15). A document whose every row sits at 0.75+ has silently disabled
234
- them — and measured runs did exactly that (median 0.95–1.00, minimum 0.75,
235
- with 1.00 spent on statements like *"exported signature unchanged"*). If
236
- your confidences do not spread, they are not confidences.
104
+ ### 1. Deduplicate across families
105
+
106
+ The same defect surfacing from `contract` and `enforcement` is the pipeline working, not two bugs. Merge, keep the **union** of evidence, list **every** hypothesis id the merged finding covers.
107
+
108
+ | merge | do not merge |
109
+ |---|---|
110
+ | one defect, surfaced twice | two claims that share a mechanism but assert different consequences |
111
+ | independent passes converging | "same topic" |
112
+
113
+ A merge can only strengthen: take the strongest claim direction and the highest tier any constituent would earn alone. Collapsing several defect-shaped rows into one "verified correct" row is not merging — it is deleting without a transcript.
114
+
115
+ ### 2. Rank — on evidence, not on a severity you choose
116
+
117
+ **Severity is not yours to write on a finding that cites hypotheses.** It is computed from each cited hypothesis's evidence record and what its probe counts for, and stamped over whatever you write once you finish. A merged finding takes the strongest of its hypotheses.{{#if dossierEnabled}} The severity on each dossier heading is that computed value.{{/if}}
118
+
119
+ Order your findings by the evidence behind them:
120
+
121
+ | verdict | what it counts for |
122
+ |---|---|
123
+ | `reproduced` | the scenario was **executed** and the defect showed up. The strongest evidence there is |
124
+ | `corroborated` | a **read** — a search, a file view, a facts query — that agrees with the claim. Weaker than `reproduced`: it shows the code reads the way the claim says, not that the consequence happens |
125
+ | `unprobed` | nobody could run anything. Not disproved |
126
+ | `refuted` | an executed check that would have shown the defect did not |
127
+
128
+ A transcript that belongs to **another** hypothesis counts only if it shows **this** hypothesis's scenario. Read it for that.
129
+
130
+ **On a finding that cites no hypothesis, your severity stands — and `Critical` needs a trust boundary, not a category.** Keep it `Critical` only if it names the boundary the input crosses **and** a capability its supplier does not already have; otherwise `Important`. A local tool parsing a file the invoking user wrote is robustness, not a boundary.
131
+
132
+ <!-- Issue #405: on the all-open Martian arm almost every surviving claim carried
133
+ `Important`, so the posting caps cut in document order. The rank is now derived
134
+ (code-facts `finding-severity.ts`, stamped by `reconcile`). On this pipeline's
135
+ first production run all three posted Criticals arrived from the surveys as
136
+ Important and were promoted here on category membership alone — the reason the
137
+ trust-boundary bar exists, and now mechanised for hypothesis-derived findings.
138
+ Measured on one case: 4 of 13 `reproduced` verdicts were greps and 3 cited
139
+ another hypothesis's script, which is why the verdicts are split. -->
140
+
141
+ ### 2a. A confirmed mechanism is not a defect
142
+
143
+ A probe answers *"does the code behave the way the claim describes?"* — and because the surveys read the code accurately, the answer is nearly always yes. That certifies the **mechanism**. It does not make the mechanism **wrong**.
144
+
145
+ So every finding states its **`impact`**: what a user or a maintainer would actually hit.
146
+
147
+ | `impact` | means | where it goes |
148
+ |---|---|---|
149
+ | `wrong-result` | a wrong value, response or state reaches a user or a caller | posted |
150
+ | `failure` | a crash, a rejected request, a hang | posted |
151
+ | `security` | a trust boundary crossed, a capability leaked | posted |
152
+ | `data` | data lost, corrupted or silently dropped | posted |
153
+ | `performance` | a cost a user pays — latency, memory, an unbounded loop | posted |
154
+ | `maintenance` | a concrete edit the maintainer **will** make breaks something (two values that must agree, a contract enforced in one place of two) | posted |
155
+ | `preference` | style, layering, locale or presentation preference | **`internal`** |
156
+ | `no-tests` | "there are no tests for this", with no defect beside it | **`internal`** |
157
+ | `dead-code` | unused code, an unreachable branch — not a broken guard or comparison that *makes* a branch unreachable; that is a `defect` | **`internal`** |
158
+ | `convention` | a convention this repository does not actually follow | **`internal`** |
159
+
160
+ The last four are recorded, never posted — **however reproduced they are** — except on a finding whose `category` is `defect`: a defect is never demoted by its impact. The `impact` you write is the recorded reason. This is demotion, not deletion, so it holds on a run with no probe verdicts too.
161
+
162
+ <!-- Martian cal-com-8330 (2026-09-26): a guard comparing two dayjs objects
163
+ with `===` "can never fire" was written `category: defect, impact: dead-code`
164
+ and demoted — it was gold. The poster now never demotes a defect on impact
165
+ (`impactDemotes`); this line is so the model classes it right as well. -->
166
+
167
+ Pick the class for the consequence, never for the topic. A locale-dependent format that breaks a parser downstream is `wrong-result`; the same format merely rendering in en-US for everyone is `preference`.
168
+
169
+ <!-- Issue #405, Martian TypeScript arm (cal.com, 3 PRs x 3 repeats): gold found
170
+ 2/2 on every case, 5-13 comments posted a case, precision 0.15-0.40, and
171
+ adjudicate dropped nothing. Posted false positives carried `reproduced` verdicts
172
+ that were true and harmless: "last updated timestamp hardcoded to en-US" (run in
173
+ three locales), "deleteCache writes outside the repository layer" (a layering
174
+ preference), "handler bypasses the feature-flag factory" (not a defect). -->
175
+
176
+
177
+
178
+ ### 3. Tier
179
+
180
+ | tier | what it is |
181
+ |---|---|
182
+ | `inline` | a comment on the diff line. The scarce one |
183
+ | `body` | the *"Additional findings"* list. Still posted, still read |
184
+ | `internal` | recorded, not posted. The only tier that costs recall — justify it to yourself first |
185
+
186
+ **A VERIFICATION REPORT is always `internal`, whatever its
187
+ confidence.** A claim that something is correctly handled, properly enforced, satisfied or unchanged — or that merely describes what the diff does. It exists to discharge its hypothesis id. It is not a weaker finding; it is not a finding.
188
+
189
+ **A SPECULATIVE HAZARD is always `internal`, whatever its
190
+ confidence.** A defect that exists only after a hypothetical future change — *"nothing prevents a future developer from…"*, *"if this constant is later renamed…"*. The defect must be reachable by the code **as it stands in this PR**. A missing check on a live path is a finding; a missing guard against an edit nobody has made is not.
191
+
192
+ <!-- One PR received seventeen verification reports at confidence 1.00, every one
193
+ attention cost with nothing to act on. Twelve speculative hazards reached one
194
+ clean PR across two repeats — every one a false positive. -->
195
+
196
+ Three tests before you file anything under those two rules:
197
+
198
+ | ask | if yes |
199
+ |---|---|
200
+ | *If this sentence is true, is the code wrong?* | it is a finding, whatever its phrasing |
201
+ | *Does the row name the bar it graded against?* | if not, it has verified nothing |
202
+ | *What does the code do, now, on the path named?* | if that is a misbehaviour, it is a finding |
203
+
204
+ **Direction, never wording.** A finding that CONFIRMS a defect is a defect finding however it is phrased — *"the spec asked for one status code and the implementation returns another; this discharges the obligation"* asserts something is WRONG. Only a claim that NO defect exists is a verification report.
205
+
206
+ **A claim of correctness is a claim, not a measurement.** A row that quotes a mechanism and appends "correctly" without naming the bar — who reaches this code without the check, what the guard does with input it was not written for — has verified nothing. Treat it as an **`unprobed` hypothesis about that mechanism**: keep the mechanism, discard the verdict, price the risk it failed to exclude.
207
+
208
+ **A live defect in future tense is still live.** *"May become incomplete if the API later changes"* about a path the code reaches today is a real defect wearing the speculative-hazard rule as a disguise.
209
+
210
+ <!-- The wording rule cost a review its two real findings once: both gold-matching
211
+ findings one adjudication buried were confirmed defects written in discharge
212
+ phrasing, and the verification rule fired on the phrasing. The reassurance case
213
+ is the most expensive failure measured here — a survey that reached the
214
+ defective lines, graded them against the weakest true bar, and wrote "correctly
215
+ ordered" at confidence 1.00 about the exact mechanism that was broken. -->
216
+
217
+ ### 4. Demote, do not delete
218
+
219
+ Deleting requires naming the refuting transcript by path, and that path must exist.
220
+
221
+ ### 5. An `unprobed` hypothesis reaches the review — and so does a `corroborated` one
222
+
223
+ Neither was disproved. Tier it accordingly — do not drop it.
224
+
225
+ <!-- Dropping unprobed claims was built once, measured, and reverted. -->
226
+
227
+ ### 6. An author's comment explains intent; it never proves correctness
228
+
229
+ *"The code has a detailed comment explaining exactly this"* is not a disposition you may reach. A documented trade-off is settled only while its stated grounds hold, and those grounds are a checkable claim — read them against the code, and against the dependency's actual behaviour where they invoke one. Where they do not hold, the comment is a **second finding**: the documentation now asserts something false beside the defect it excuses.
230
+
231
+ Deliberate and correct are different properties.
232
+
233
+ ### 7. A third-party boundary is in scope when OUR use of it misbehaves
234
+
235
+ *"That's the library's behaviour, not our code"* demotes nothing. Testing a dependency for its own sake is out of scope; a changed call site that configures, trusts or times a dependency wrongly is a defect of this PR — the misbehaviour merely executes elsewhere.
236
+
237
+ Judge limits, lifecycle and timing claims on what our code does with the dependency's actual contract.
238
+
239
+ ### 8. Honour the hard constraints in `adjudicate-pass`
240
+
241
+ - Never `APPROVE` over an open human `CHANGES_REQUESTED`.
242
+ - Never `APPROVE` while one of our own prior findings is still open.
243
+ - On a re-review, open the summary with the prior-review ledger: Fixed / Still open / Pinned by a test / Withdrawn.
244
+
245
+ You own the `event`, so establish the prior state with the `github_*` review and comment reads before you decide it.
246
+
247
+ {{#if dossierEnabled}}## Say what is wrong, what kind of wrong, and what to change
248
+
249
+ You write **no `tier`** and **no `confidence`**. Four typed attributes per finding; the harness derives the tier.
250
+
251
+ | field | what it is |
252
+ |---|---|
253
+ | `claim` | one sentence naming what is **wrong** — never what the code does. Cannot write one? It is a verification report: say so in `category`, leave this empty |
254
+ | `category` | `defect` · `correctness-risk` · `maintainability` · `nit` · `verification` |
255
+ | `fix` | one sentence naming what to **change**. Empty when there is nothing to do |
256
+ | `impact` | what a user or maintainer would hit — one class from *A confirmed mechanism is not a defect*. Required on every finding that is not `verification` |
257
+
258
+ | category | test |
259
+ |---|---|
260
+ | `defect` | it is wrong **now** — name the input, caller or configuration that reaches it |
261
+ | `correctness-risk` | incomplete under a condition you can name but have not shown holds |
262
+ | `maintainability` | correct today; a foreseeable edit breaks it (duplicated constants, a contract enforced in one place of two) |
263
+ | `nit` | style, naming, wording. True and small |
264
+ | `verification` | you looked and there is no defect. **A confident report of nothing is not a finding** |
265
+
266
+ Every "correctly enforced", "already handled", "the values agree", "intentional and documented" is `verification`, however certain you are.
267
+
268
+ `verification` is not a failure — it is what lets a real defect keep the slot it would otherwise have taken. A run whose every row is `defect` is uncalibrated.
269
+
270
+ <!-- Why attributes and not a verdict: "is this comment correct" was measured three
271
+ times against 2,145 labelled comments and lost every time to keep-all (F1 0.825
272
+ vs the best adjudicator's 0.803). The same judgement asked as "defect or
273
+ maintainability" separates at AUC 0.897. So this asks the answerable question
274
+ and makes the routing arithmetic. -->
275
+
276
+ {{/if}}{{#if !dossierEnabled}}## Confidence prices the defect, not your certainty
277
+
278
+ `confidence` is the probability that a maintainer who investigates concludes something is **genuinely wrong** — never how sure you are of an observation. A verification report has no defect to price, so it can never earn a high number by being certainly true.
279
+
280
+ | band | when |
281
+ |---|---|
282
+ | **0.90+** | a `reproduced` transcript, or the defect visible end-to-end in quoted code (the write AND the missing check, both quoted) |
283
+ | **0.60–0.85** | the mechanism is concrete and one end is quoted, or a `corroborated` read agrees with it |
284
+ | **0.30–0.55** | plausible, but inferred rather than shown |
285
+ | **below 0.30** | speculative; thin `unprobed` claims live here |
286
+
287
+ If your confidences do not spread, they are not confidences.
288
+
289
+ <!-- Measured runs did exactly that: median 0.95–1.00, minimum 0.75, with 1.00
290
+ spent on statements like "exported signature unchanged". -->
291
+ {{/if}}
237
292
 
238
293
  ## Anchoring: quote the code, do not count the lines
239
294
 
240
- Every finding needs **`existingCode`** — the verbatim excerpt it is about, copied
241
- character-for-character. The harness derives the line number from it, so a wrong
242
- `line` costs nothing and a wrong excerpt costs the inline comment. Copy the
243
- hypothesis's own quote rather than reconstructing one.
295
+ Every finding needs **`existingCode`** — the verbatim excerpt, copied character-for-character. The harness derives the line from it, so a wrong `line` costs nothing and a wrong excerpt costs the inline comment. Copy the hypothesis's own quote; do not reconstruct one.
296
+
297
+ **One defect per finding, anchored where the fix goes.** Never fold a second, independent defect into an *"Additionally, …"* sentence: two defects sharing a paragraph get read as one, answered as one, and one is lost. Two findings may share a line.
244
298
 
245
- **One defect per finding, anchored where the fix goes.** A finding carries
246
- exactly ONE defect — never fold a second, independent defect into an
247
- "Additionally, …" sentence of the first: two defects sharing a paragraph get
248
- read as one, answered as one, and one of them is lost. Two findings may share
249
- a line. For a two-ended mechanism — producer and consumer, the write and the
250
- missing check, the two sides of a comparison — anchor at the end a fix would
251
- touch and name the other end in the body: the reader starts where the comment
252
- sits, so put them where the work is.
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.
253
300
 
254
301
  ## Output
255
302
 
256
303
  Rewrite `.lastlight/pr-review/findings.json` **in full**. You own this file now.
257
304
 
258
- **`summary`, `title` and `body` are POSTED VERBATIM to a maintainer who has never
259
- heard of this pipeline** — see `adjudicate-pass`. Write about their change in
260
- their vocabulary; never name a phase, a hypothesis, an obligation, a discharge
261
- or a tier. *"This adjudication keeps those findings reconciled as not applicable
262
- and adds the hypothesis ledger"* is a real posted summary and it is the failure
263
- this paragraph exists to prevent. Everything else in the schema below —
264
- `family`, `obligation`, `confidence`, `hypotheses`, `mechanism`, `evidence` — is
265
- machine-read and never rendered, so that is where the bookkeeping belongs.
305
+ | field | audience |
306
+ |---|---|
307
+ | `title`, `body` | **POSTED VERBATIM** to a maintainer who has never heard of this pipeline |
308
+ | `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
+ | `family`, `obligation`, `hypotheses`, `mechanism`, `evidence`{{#if !dossierEnabled}}, `confidence`{{/if}} | machine-read, never rendered — bookkeeping goes here |
310
+
311
+ In the posted fields: write about their change, in their vocabulary. Never name a phase, a hypothesis, an obligation, a discharge or a tier.
266
312
 
267
- ```jsonc
313
+ <!-- "This adjudication keeps those findings reconciled as not applicable and adds
314
+ the hypothesis ledger" is a real posted summary, and the failure this rule
315
+ exists to prevent. -->
316
+
317
+ <!-- Issue #405: the summary used to be posted, and it was written before the
318
+ caps — a review capped at 5 inline + 5 body posted a summary listing four
319
+ numbered defects and an "Also flagged below:" line naming five more, one of
320
+ them withheld. `review-summary.ts` now writes the posted summary from the
321
+ posted set; only the leading ledger of this field survives. -->
322
+
323
+ {{#if dossierEnabled}}```jsonc
324
+ {
325
+ "summary": "…",
326
+ "event": "APPROVE" | "REQUEST_CHANGES" | "COMMENT",
327
+ "verdict": { "spec": "pass|fail|unknown", "standards": "pass|fail|unknown" },
328
+ "findings": [
329
+ {
330
+ "path": "<path/to/file.ext>",
331
+ "existingCode": "the verbatim excerpt, copied not paraphrased",
332
+ "severity": "Critical|Important", // read ONLY on a finding with no `hypotheses`; computed otherwise
333
+ "title": "…",
334
+ "body": "…concrete impact — what breaks, for which input or caller…",
335
+ "suggestion": "…optional…",
336
+
337
+ // REQUIRED on every finding. No `tier` and no `confidence` — see above.
338
+ "claim": "<one sentence: what is WRONG>",
339
+ "category": "defect",
340
+ "fix": "<one sentence: what to CHANGE>",
341
+ "impact": "wrong-result",
342
+
343
+ "family": "contract",
344
+ "obligation": "O-014",
345
+ "hypotheses": ["contract-003", "enforcement-017"],
346
+ "mechanism": "value set on one side of a boundary, never checked on the other",
347
+ "evidence": [
348
+ { "type": "reference", "detail": "<symbol>: 1 reference, client-side only" },
349
+ { "type": "transcript", "ref": "probes/contract-003.txt", "result": "reproduced" }
350
+ ]
351
+ }
352
+ ],
353
+ "dropped": [
354
+ { "hypothesis": "security-021", "refutedBy": "probes/security-021.txt" }
355
+ ]
356
+ }
357
+ ```
358
+ {{/if}}{{#if !dossierEnabled}}```jsonc
268
359
  {
269
360
  "summary": "…",
270
361
  "event": "APPROVE" | "REQUEST_CHANGES" | "COMMENT",
271
362
  "verdict": { "spec": "pass|fail|unknown", "standards": "pass|fail|unknown" },
272
363
  "findings": [
273
364
  {
274
- "path": "src/server/auth.ts",
365
+ "path": "<path/to/file.ext>",
275
366
  "existingCode": "the verbatim excerpt, copied not paraphrased",
276
- "severity": "Critical|Important",
367
+ "severity": "Critical|Important", // read ONLY on a finding with no `hypotheses`; computed otherwise
277
368
  "title": "…",
278
369
  "body": "…concrete impact — what breaks, for which input or caller…",
279
370
  "suggestion": "…optional…",
280
371
 
281
- "tier": "inline|body|internal",
372
+ "tier": "inline|body|internal", // REQUIRED on every finding. See below.
373
+ "impact": "wrong-result", // REQUIRED on every finding that reports a defect
282
374
  "family": "contract",
283
375
  "obligation": "O-014",
284
376
  "confidence": 0.82,
285
377
  "hypotheses": ["contract-003", "enforcement-017"],
286
378
  "mechanism": "value set on one side of a boundary, never checked on the other",
287
379
  "evidence": [
288
- { "type": "reference", "detail": "MAX_TOKEN_AGE: 1 reference, client-side only" },
380
+ { "type": "reference", "detail": "<symbol>: 1 reference, client-side only" },
289
381
  { "type": "transcript", "ref": "probes/contract-003.txt", "result": "reproduced" }
290
382
  ]
291
383
  }
@@ -295,55 +387,88 @@ machine-read and never rendered, so that is where the bookkeeping belongs.
295
387
  ]
296
388
  }
297
389
  ```
390
+ {{/if}}
298
391
 
299
- A `dropped` entry with a `reason` and no `refutedBy` transcript is not a softer
300
- kind of drop — it is a deletion the reconcile floor will un-delete back to
301
- `internal`, at the cost of a wasted round. If a hypothesis merely does not
302
- deserve attention, file it at `internal` tier.
392
+ A `dropped` entry with a `reason` and no `refutedBy` is not a softer drop — the reconcile floor un-deletes it back to `internal` at the cost of a wasted round. If a hypothesis merely does not deserve attention, file it at `internal`.
303
393
 
304
- The `verdict` is per axis because **a blended verdict lets the passing axis hide
305
- the failing one**: a change can be clean by every standards check and still not
306
- do what the issue asked. `unknown` is the honest answer when the PR states no
307
- acceptance criteria, and it does not block.
394
+ `verdict` is per axis because **a blended verdict lets the passing axis hide the failing one**: a change can be clean by every standards check and still not do what the issue asked. `unknown` is honest when the PR states no acceptance criteria, and it does not block.
308
395
 
309
396
  ### The one gate you must pass
310
397
 
311
- **Every hypothesis id in every `hypotheses/*.jsonl` must appear exactly once** —
312
- either in some finding's `hypotheses` array, or in `dropped` with a `refutedBy`
313
- transcript that exists on disk. An id in neither fails the gate; an id in both
314
- fails it.
398
+ **Every hypothesis id in every `hypotheses/*.jsonl` must appear exactly once** — in some finding's `hypotheses` array, or in `dropped` with a `refutedBy` transcript that exists on disk.
399
+
400
+ | id appears in | result |
401
+ |---|---|
402
+ | a finding, or `dropped` with a real transcript | passes |
403
+ | neither | **fails** |
404
+ | both | **fails** |
405
+
406
+ **Cite the ids the ledger prints** — `contract-001`, `security-003`. They are family-namespaced and deterministic, so they exist for every hypothesis and cannot collide. A survey may also have minted an `id` of its own; if two families minted the same one, citing it credits NEITHER and the gate says so by name.
407
+
408
+ Silence is not a disposition. If a hypothesis does not deserve a comment, **write it down at `internal` tier**.
409
+
410
+ <!-- Checked mechanically because an adjudicator that read thirty hypotheses and
411
+ wrote six findings would otherwise pass every other gate in this pipeline while
412
+ silently discarding twenty-four claims. -->
413
+
414
+ {{#if dossierEnabled}}### The attributes are required, and prose is not a disposition
415
+
416
+ **Every finding carries `claim`, `category` and `fix`.** No default, no "no opinion" — you are the stage that decides, and a finding without them is a decision you made and did not record.
417
+
418
+ Writing the decision into the title or body does not count:
419
+
420
+ ```
421
+ title: "<topic> correctness — dismissed"
422
+ body: "internal: … Reviewed and dismissed; no defect."
423
+ ```
315
424
 
316
- **Cite the ids the ledger prints — `contract-001`, `security-003`.** They are
317
- namespaced by family and assigned deterministically, so they exist for every
318
- hypothesis and cannot collide. A survey may also have written an `id` of its own;
319
- if two families minted the same one, citing it credits NEITHER and the gate says
320
- so by name. The ledger's id is always the safe one.
425
+ Nothing downstream reads prose. Both of those are `"category": "verification"` with an empty `claim`, and are then withheld automatically.
321
426
 
322
- This is checked mechanically after you write, and it is checked because an
323
- adjudicator that read thirty hypotheses and wrote six findings would otherwise
324
- pass every other gate in this pipeline while silently discarding twenty-four
325
- claims. If a hypothesis does not deserve a comment, that is what `internal` is
326
- for — **write it down at `internal` tier**. Silence is not a disposition.
427
+ Never write "dismissed" in a title, and never open a body with `internal:` — those strings are posted verbatim to a maintainer who has no idea what they mean.
327
428
 
328
- **Check yourself before you finish.** Re-run the ledger:
429
+ <!-- Both examples are real, posted as inline comments on somebody's PR. The
430
+ labels were invisible, both took an inline slot, and the one finding that
431
+ matched a real defect was pushed down to the body. The right call, made twice,
432
+ filed where nobody could act on it. -->
433
+
434
+ {{/if}}{{#if !dossierEnabled}}### `tier` is required, and prose is not a tier
435
+
436
+ **Every finding carries a `tier`.** No default, no "no opinion".
437
+
438
+ Writing the decision into the title or body does not count:
439
+
440
+ ```
441
+ title: "<topic> correctness — dismissed"
442
+ body: "internal: … Reviewed and dismissed; no defect."
443
+ ```
444
+
445
+ Nothing downstream reads prose. If you reviewed a claim and concluded there is no defect, that is `"tier": "internal"`. Never write "dismissed" in a title, and never open a body with `internal:` — those strings are posted verbatim.
446
+
447
+ A finding with no tier whose prose carries a disposition label is recorded as `prose-disposition` and never posted. Nothing is lost, and nothing is said either.
448
+
449
+ <!-- Both examples are real, posted as inline comments on somebody's PR. -->
450
+ {{/if}}
451
+
452
+ **Check yourself before you finish.** {{#if dossierEnabled}}Against the dossier's conservation section, not by re-running anything: every id it listed as outstanding must now appear in a finding's `hypotheses` array or in `dropped`.{{/if}}{{#if !dossierEnabled}}Re-run the ledger:
329
453
 
330
454
  ```sh
331
455
  "$FACTS" findings --dir .lastlight/pr-review --ledger
332
456
  ```
333
457
 
334
- Every line must read `[x]` and it must end with *"Conservation holds"*. If
335
- anything is still outstanding, add its disposition now — you have the file open
336
- and the claim in front of you. Discovering it here costs you one command;
337
- discovering it after you stop costs a whole second pass over the same evidence.
338
-
339
- Keeping the findings the review pass already wrote is expected: they carry no
340
- `hypotheses` array and the gate does not ask them to.
341
-
342
- One boundary on how you read that pass: the reviewer saw only the PR
343
- description and the diff — never the hypotheses, never the obligations. Its
344
- corroboration of a hypothesis may raise your confidence; its **silence is not
345
- evidence**. Most defects the surveys find live in code the diff touches but
346
- does not display, structurally invisible to a diff-level pass — a measured
347
- adjudication demoted a real spec violation with *"since the prior reviewer
348
- didn't block it, the issue might be acceptable"*, which is exactly the
349
- inference this paragraph exists to forbid.
458
+ Every line must read `[x]`, ending with *"Conservation holds"*.{{/if}} Adding a disposition while the file is open costs nothing; discovering it after you stop costs a whole second pass over the same evidence.
459
+
460
+ Keeping the review pass's own findings is expected — they carry no `hypotheses` array and the gate does not ask them to. **They still need {{#if dossierEnabled}}the three attributes{{/if}}{{#if !dossierEnabled}}a `tier`{{/if}}**: the gate counts hypotheses, so a carried-through finding is exactly the row it cannot catch.
461
+
462
+ One boundary on how you read that pass: the reviewer saw only the PR description and the diff — never the hypotheses, never the obligations. Its corroboration may raise your confidence; its **silence is not evidence**. Most defects the surveys find live in code the diff touches but does not display, structurally invisible to a diff-level pass.
463
+
464
+ <!-- A measured adjudication demoted a real spec violation with "since the prior
465
+ reviewer didn't block it, the issue might be acceptable". -->
466
+
467
+ {{#if dossierEnabled}}---
468
+
469
+ ## Attached: the dossier
470
+
471
+ Assembled by `lastlight-facts dossier` from the pipeline's own artifacts, reproduced **verbatim**. It has already been read for you — do not open the files it came from, and do not construct a path to them.
472
+
473
+ {{phaseOutputs.dossier}}
474
+ {{/if}}