@dzhechkov/skills-idea2prd 0.1.3 → 0.1.5

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/.dz-manifest.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "files": [
6
6
  {
7
7
  "path": "CHANGELOG.md",
8
- "sha256": "44fbbf4909ce837794d0b46b1ac29c01a909ec9c46fd25baeb4247b63443ac77"
8
+ "sha256": "17403157f3609436e5587a532c022e6095ee85acc255cf313d5473df311cc55f"
9
9
  },
10
10
  {
11
11
  "path": "LICENSE",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "package.json",
24
- "sha256": "bb159a378cb3f254761c27d45b0d72434a12b860370a0127889070b6ea8fe006"
24
+ "sha256": "627ab02cc637a64157d4e5cb3aa9e1fd178a40ac5eb18ca6a674734e4082c377"
25
25
  },
26
26
  {
27
27
  "path": "sources.json",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  {
63
63
  "path": "templates/.claude/skills/explore/SKILL.md",
64
- "sha256": "c755a7bcdfe97fb7cb0bcd7bf3b1fd8a2d238ef082967fbf87740fc808302542"
64
+ "sha256": "2473e7961845db0d64566cd42627b374d1830664b9e302058a1b1aa466bc7361"
65
65
  },
66
66
  {
67
67
  "path": "templates/.claude/skills/explore/references/questioning-techniques.md",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "path": "templates/.claude/skills/goap-research-ed25519/SKILL.md",
76
- "sha256": "e23770a81922103571eb2645fb82509f7046bc7dd407a33b06f67ad2e709b9b4"
76
+ "sha256": "eb9a58ed3fbfb9b1c6627c563b5ce1b5ac9f1f5fb9d148a79441d94422933687"
77
77
  },
78
78
  {
79
79
  "path": "templates/.claude/skills/goap-research-ed25519/references/ed25519-verification.md",
@@ -87,25 +87,49 @@
87
87
  "path": "templates/.claude/skills/goap-research-ed25519/references/source-evaluation.md",
88
88
  "sha256": "d6a19abb6be64dc9e1f539903080029125d2d899da4de3063e75e1afb7e4906f"
89
89
  },
90
+ {
91
+ "path": "templates/.claude/skills/goap-research-ed25519/scripts/check_report_evidence.py",
92
+ "sha256": "81dfdb14a868c7d0d72a640cfdf8ae3b2b5a453a17fcc1a3396587f3b488a919"
93
+ },
90
94
  {
91
95
  "path": "templates/.claude/skills/goap-research-ed25519/scripts/ed25519_verifier.py",
92
- "sha256": "dc9edc4d7907d13b28dfa74cc86b30a27a41de707ce72f39aca0ae08f07b5703"
96
+ "sha256": "9d0e74bab811a15b5032ec605e66a58081b52129aac873e7402e30b4dc4a2f10"
97
+ },
98
+ {
99
+ "path": "templates/.claude/skills/goap-research-ed25519/scripts/evidence_fetch.py",
100
+ "sha256": "5f4d7cb5d6fb3106d64130b6606582eb55a4f633ef969cf7890b1de1c179345b"
101
+ },
102
+ {
103
+ "path": "templates/.claude/skills/goap-research-ed25519/scripts/fixture_legacy_v1_fact.json",
104
+ "sha256": "e613de4737145cbfb5f349fbf9f1122801ce3508b62c3a18e2e0cba26b9da5b0"
93
105
  },
94
106
  {
95
107
  "path": "templates/.claude/skills/goap-research-ed25519/scripts/goap_planner.py",
96
108
  "sha256": "2ec359e1ddc52ca3118144532ed483dcc609e856a04b29bb191b875c60ff4260"
97
109
  },
110
+ {
111
+ "path": "templates/.claude/skills/goap-research-ed25519/scripts/learning_bridge.py",
112
+ "sha256": "c9aea90ddfba5990b27405ca66a3f90308afa357e227ddad3877f9eee7df6e36"
113
+ },
114
+ {
115
+ "path": "templates/.claude/skills/goap-research-ed25519/scripts/source_tiers.py",
116
+ "sha256": "e1aae76fad01693ab35b51466fc4369c04a5ac64230fd307e7b798dc5beeff7a"
117
+ },
98
118
  {
99
119
  "path": "templates/.claude/skills/goap-research-ed25519/scripts/test_ed25519_verifier.py",
100
120
  "sha256": "ea6d888ac53bac3a0fe236c101f90a984edbac044d787d73c8414f1c4fc540d3"
101
121
  },
122
+ {
123
+ "path": "templates/.claude/skills/goap-research-ed25519/scripts/test_evidence_provenance.py",
124
+ "sha256": "1be4f63bbe7e77d599c5f0960d92b20a8f7ea6a6d07b30cb1d728f920b7259f2"
125
+ },
102
126
  {
103
127
  "path": "templates/.claude/skills/idea2prd-manual/SKILL.md",
104
- "sha256": "a871e47547ee349db19f6413e296db137e2833e2aa2277672ba33bac730855a5"
128
+ "sha256": "64780d15549e8c2c20a83fbb7afa6856cecbb6d7b940b72ea7d57dca83675786"
105
129
  },
106
130
  {
107
131
  "path": "templates/.claude/skills/idea2prd-manual/references/adr-catalog.md",
108
- "sha256": "165aebf4d997dc7ca34ac813befb62e82faa507be66cbf70af897192913a51b4"
132
+ "sha256": "e65f61ebeb9d3aa3179f0457028640510dca9e6f5c096ebc474d5a088280b828"
109
133
  },
110
134
  {
111
135
  "path": "templates/.claude/skills/idea2prd-manual/references/c4-model.md",
@@ -125,7 +149,7 @@
125
149
  },
126
150
  {
127
151
  "path": "templates/.claude/skills/idea2prd-manual/references/pseudocode-style.md",
128
- "sha256": "49b53a85ac55ef2c9836979da929abbdbf9b1a7069b86790c9c2df9b909cce2e"
152
+ "sha256": "80b006853de2e3e38816b91a9b91443a512e9d0d3ec85801fee12f0e5025e155"
129
153
  },
130
154
  {
131
155
  "path": "templates/.claude/skills/idea2prd-manual/scripts/ai_context_builder.py",
@@ -145,9 +169,9 @@
145
169
  },
146
170
  {
147
171
  "path": "templates/.claude/skills/problem-solver-enhanced/SKILL.md",
148
- "sha256": "530623c986dee931d47314c22195ea9de50a75f2a0daecfc469fb015c3dd3415"
172
+ "sha256": "031378aa2e10c98928e35de07d454135e73550cd0c49f0cd886d53e4208d6b9f"
149
173
  }
150
174
  ]
151
175
  },
152
- "signature": "ijQ6u7pzx73w7JYknodK0orJvVrVmxmurNGnTbyMZgfh3EF7bFPov8tGzH3gQpnVVssdODRdmvESKXaSfuFLAA=="
176
+ "signature": "BLiTK1C6fUhclz0jlurwvpGRTUZ0kXyOT9qn2c/ZA4SmrkbU9NibPcV5WfBxocQ7ff0b2VHZzUkYd5oBrd2jCA=="
153
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhechkov/skills-idea2prd",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Idea2PRD Manual — composite skill for Claude Code: from problem/idea to Vibe-Coding-ready docs (PRD + ADR + DDD + C4 + Pseudocode + Test Scenarios + Completion) with 9 checkpoints",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
package/sbom.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "hashes": [
16
16
  {
17
17
  "alg": "SHA-256",
18
- "content": "44fbbf4909ce837794d0b46b1ac29c01a909ec9c46fd25baeb4247b63443ac77"
18
+ "content": "17403157f3609436e5587a532c022e6095ee85acc255cf313d5473df311cc55f"
19
19
  }
20
20
  ]
21
21
  },
@@ -55,7 +55,7 @@
55
55
  "hashes": [
56
56
  {
57
57
  "alg": "SHA-256",
58
- "content": "bb159a378cb3f254761c27d45b0d72434a12b860370a0127889070b6ea8fe006"
58
+ "content": "627ab02cc637a64157d4e5cb3aa9e1fd178a40ac5eb18ca6a674734e4082c377"
59
59
  }
60
60
  ]
61
61
  },
@@ -155,7 +155,7 @@
155
155
  "hashes": [
156
156
  {
157
157
  "alg": "SHA-256",
158
- "content": "c755a7bcdfe97fb7cb0bcd7bf3b1fd8a2d238ef082967fbf87740fc808302542"
158
+ "content": "2473e7961845db0d64566cd42627b374d1830664b9e302058a1b1aa466bc7361"
159
159
  }
160
160
  ]
161
161
  },
@@ -185,7 +185,7 @@
185
185
  "hashes": [
186
186
  {
187
187
  "alg": "SHA-256",
188
- "content": "e23770a81922103571eb2645fb82509f7046bc7dd407a33b06f67ad2e709b9b4"
188
+ "content": "eb9a58ed3fbfb9b1c6627c563b5ce1b5ac9f1f5fb9d148a79441d94422933687"
189
189
  }
190
190
  ]
191
191
  },
@@ -219,13 +219,43 @@
219
219
  }
220
220
  ]
221
221
  },
222
+ {
223
+ "type": "file",
224
+ "name": "templates/.claude/skills/goap-research-ed25519/scripts/check_report_evidence.py",
225
+ "hashes": [
226
+ {
227
+ "alg": "SHA-256",
228
+ "content": "81dfdb14a868c7d0d72a640cfdf8ae3b2b5a453a17fcc1a3396587f3b488a919"
229
+ }
230
+ ]
231
+ },
222
232
  {
223
233
  "type": "file",
224
234
  "name": "templates/.claude/skills/goap-research-ed25519/scripts/ed25519_verifier.py",
225
235
  "hashes": [
226
236
  {
227
237
  "alg": "SHA-256",
228
- "content": "dc9edc4d7907d13b28dfa74cc86b30a27a41de707ce72f39aca0ae08f07b5703"
238
+ "content": "9d0e74bab811a15b5032ec605e66a58081b52129aac873e7402e30b4dc4a2f10"
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "type": "file",
244
+ "name": "templates/.claude/skills/goap-research-ed25519/scripts/evidence_fetch.py",
245
+ "hashes": [
246
+ {
247
+ "alg": "SHA-256",
248
+ "content": "5f4d7cb5d6fb3106d64130b6606582eb55a4f633ef969cf7890b1de1c179345b"
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "type": "file",
254
+ "name": "templates/.claude/skills/goap-research-ed25519/scripts/fixture_legacy_v1_fact.json",
255
+ "hashes": [
256
+ {
257
+ "alg": "SHA-256",
258
+ "content": "e613de4737145cbfb5f349fbf9f1122801ce3508b62c3a18e2e0cba26b9da5b0"
229
259
  }
230
260
  ]
231
261
  },
@@ -239,6 +269,26 @@
239
269
  }
240
270
  ]
241
271
  },
272
+ {
273
+ "type": "file",
274
+ "name": "templates/.claude/skills/goap-research-ed25519/scripts/learning_bridge.py",
275
+ "hashes": [
276
+ {
277
+ "alg": "SHA-256",
278
+ "content": "c9aea90ddfba5990b27405ca66a3f90308afa357e227ddad3877f9eee7df6e36"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "type": "file",
284
+ "name": "templates/.claude/skills/goap-research-ed25519/scripts/source_tiers.py",
285
+ "hashes": [
286
+ {
287
+ "alg": "SHA-256",
288
+ "content": "e1aae76fad01693ab35b51466fc4369c04a5ac64230fd307e7b798dc5beeff7a"
289
+ }
290
+ ]
291
+ },
242
292
  {
243
293
  "type": "file",
244
294
  "name": "templates/.claude/skills/goap-research-ed25519/scripts/test_ed25519_verifier.py",
@@ -249,13 +299,23 @@
249
299
  }
250
300
  ]
251
301
  },
302
+ {
303
+ "type": "file",
304
+ "name": "templates/.claude/skills/goap-research-ed25519/scripts/test_evidence_provenance.py",
305
+ "hashes": [
306
+ {
307
+ "alg": "SHA-256",
308
+ "content": "1be4f63bbe7e77d599c5f0960d92b20a8f7ea6a6d07b30cb1d728f920b7259f2"
309
+ }
310
+ ]
311
+ },
252
312
  {
253
313
  "type": "file",
254
314
  "name": "templates/.claude/skills/idea2prd-manual/SKILL.md",
255
315
  "hashes": [
256
316
  {
257
317
  "alg": "SHA-256",
258
- "content": "a871e47547ee349db19f6413e296db137e2833e2aa2277672ba33bac730855a5"
318
+ "content": "64780d15549e8c2c20a83fbb7afa6856cecbb6d7b940b72ea7d57dca83675786"
259
319
  }
260
320
  ]
261
321
  },
@@ -265,7 +325,7 @@
265
325
  "hashes": [
266
326
  {
267
327
  "alg": "SHA-256",
268
- "content": "165aebf4d997dc7ca34ac813befb62e82faa507be66cbf70af897192913a51b4"
328
+ "content": "e65f61ebeb9d3aa3179f0457028640510dca9e6f5c096ebc474d5a088280b828"
269
329
  }
270
330
  ]
271
331
  },
@@ -315,7 +375,7 @@
315
375
  "hashes": [
316
376
  {
317
377
  "alg": "SHA-256",
318
- "content": "49b53a85ac55ef2c9836979da929abbdbf9b1a7069b86790c9c2df9b909cce2e"
378
+ "content": "80b006853de2e3e38816b91a9b91443a512e9d0d3ec85801fee12f0e5025e155"
319
379
  }
320
380
  ]
321
381
  },
@@ -365,7 +425,7 @@
365
425
  "hashes": [
366
426
  {
367
427
  "alg": "SHA-256",
368
- "content": "530623c986dee931d47314c22195ea9de50a75f2a0daecfc469fb015c3dd3415"
428
+ "content": "031378aa2e10c98928e35de07d454135e73550cd0c49f0cd886d53e4208d6b9f"
369
429
  }
370
430
  ]
371
431
  }
@@ -10,7 +10,7 @@ description: >
10
10
  provide solutions until task is fully explored.
11
11
  trust_tier: 1
12
12
  trust_tier_label: "Structured"
13
- trust_tier_path: "Run /bto-test to promote to Tier 2"
13
+ trust_tier_path: "Run a BTO evaluation (see the skills-bto package) to promote to Tier 2"
14
14
  ---
15
15
 
16
16
  # Explore: Adaptive Task Clarification
@@ -3,7 +3,7 @@ name: goap-research-ed25519
3
3
  description: GOAP research system with Ed25519 provenance and tamper-evidence under pinned trusted-issuer keys. Use for high-stakes research that needs cited sources, explicit confidence, signed audit trails, or cryptographic proof of who signed a fact. Ed25519 does not prove truthfulness or prevent hallucination.
4
4
  trust_tier: 1
5
5
  trust_tier_label: "Structured"
6
- trust_tier_path: "Run /bto-test to promote to Tier 2"
6
+ trust_tier_path: "Run a BTO evaluation (see the skills-bto package) to promote to Tier 2"
7
7
  ---
8
8
 
9
9
  # GOAP Research with Ed25519 Provenance
@@ -28,6 +28,104 @@ Ed25519 provides cryptographic provenance and tamper-evidence under pinned trust
28
28
  | `SELF_ATTESTED` | Researcher signature verifies against the embedded researcher key | The research record was not altered after self-signing | up to `0.60` |
29
29
  | `UNVERIFIED` | Unknown issuer, missing pin, revoked key, key mismatch, malformed key, or invalid signature | No cryptographic provenance | `0.0` |
30
30
 
31
+ ## Evidence Classes — the second, independent axis
32
+
33
+ Trust classes answer **"was this record altered after signing?"**. They say nothing about whether
34
+ anyone opened the source. That second question caused every content error in real operation, so it
35
+ gets its own axis. A fact can be `ISSUER_SIGNED` **and** `ASSERTED` — a cryptographically perfect
36
+ record of something recited from memory. That combination is legal, expressible, and the dangerous one.
37
+
38
+ | Evidence class | Requirement | What it proves | Ceiling |
39
+ |---|---|---|---|
40
+ | `FETCH_VERIFIED` | `evidence_fetch.fetch_source()` performed the request and got a 2xx body | This script issued an HTTP request and received a body with this byte hash on this date | `1.0` |
41
+ | `LISTING_ONLY` | URL known from a listing, or a body supplied by hand, or the fetch failed | The URL is known; nobody opened it through this tool | `0.50` |
42
+ | `ASSERTED` | Stated from model memory, source never opened | Nothing about the source | `0.0` |
43
+ | *(absent)* | Fact predates this axis | Evidence is **unknown** — neither asserted nor verified | no ceiling of its own |
44
+
45
+ **`FETCH_VERIFIED` cannot be self-declared.** It is minted only by `create_fetched_fact()`, which
46
+ requires a `FetchRecord` — the byte hash, HTTP status and date of a request that actually happened.
47
+ The manual constructors (`create_listing_fact`, `create_asserted_fact`) have no way to produce it.
48
+ The restriction lives in the API shape, not in the author's discipline.
49
+
50
+ **Honest scope of `FETCH_VERIFIED`:** it means the bytes were received. It does **not** mean the
51
+ source is authoritative, that the claim follows from it, or that the reader understood it.
52
+ Provenance, not truth.
53
+
54
+ ### The report gate
55
+
56
+ ```bash
57
+ python3 scripts/check_report_evidence.py --report report.md --facts facts.json
58
+ ```
59
+
60
+ `ASSERTED` claims must not appear in a report at all. `LISTING_ONLY` claims may appear only with a
61
+ visible marker next to the claim. This is an exit code, not advice — exit `1` on violation, exit `2`
62
+ when the inputs cannot be read (a gate that could not evaluate has cleared nothing).
63
+
64
+ ## Self-learning (optional — needs `dz` on PATH)
65
+
66
+ The most valuable signal in research is the moment a conclusion turned out to be
67
+ WRONG. `scripts/learning_bridge.py` records those as METHOD lessons in the shared
68
+ `dz` store and replays them at the start of the next investigation.
69
+
70
+ ```bash
71
+ python3 scripts/learning_bridge.py status # is the loop on at all?
72
+ python3 scripts/learning_bridge.py recall "transferrin saturation" # traps already caught
73
+ python3 scripts/learning_bridge.py teach "total testosterone is uninterpretable without SHBG"
74
+ python3 scripts/learning_bridge.py check "<candidate>" # privacy guard alone
75
+ ```
76
+
77
+ **Recall at the START of an investigation** — before interpreting anything, ask what
78
+ this analyte has already fooled us with. **Teach at four moments**, not at random:
79
+
80
+ | Moment | Why it is the signal |
81
+ |---|---|
82
+ | a conclusion was RETRACTED | the single most valuable lesson available |
83
+ | a population check flipped a conclusion | the effect did not transfer, and now we know the shape |
84
+ | a preanalytical finding explained an alarming value | the value was an artifact; the rule generalises |
85
+ | an open question was closed | the answer, not the waiting |
86
+
87
+ **PRIVACY IS AN INVARIANT, NOT A PREFERENCE.** A lesson describes a METHOD, never a
88
+ person. `teach` REFUSES the wrong shape before any store is touched:
89
+
90
+ ```
91
+ good "a fast lowers total testosterone by roughly a third, LH down, FSH normal"
92
+ bad "testosterone 8.04 nmol/l in this patient turned out to be a fasting artifact"
93
+ bad "John Smith has HIV" — a capitalised word after the first is refused
94
+ ```
95
+
96
+ The accepted form has three properties, all checkable: **no digits** (spelled-out
97
+ values count — `eight point zero four` is a value), **no identifiers**, and **lower
98
+ case** after the first word. The last one replaced an attempt to detect names: a name
99
+ is any word, no list of them exists, and the attempt let `John Smith has HIV` through.
100
+ Lower case costs a keystroke and closes that hole. ALL-CAPS and mixed-case acronyms
101
+ (`SHBG`, `TSH`, `apoB`) are unaffected — they are how method lessons speak.
102
+
103
+ Pass `--allow-numbers` when the number IS the knowledge (a guideline threshold) and
104
+ you take responsibility for it. It never waves through a person beside a number.
105
+
106
+ The refusal is not bureaucracy — the method form is the more useful lesson: a reading
107
+ helps once, a rule helps every time. Honest scope: this is a SHAPE detector, not a
108
+ de-identifier. A lower-case sentence that names nobody and quotes no figure can still
109
+ describe one person, and no regular expression can see that. The shape rule plus the
110
+ four METHOD moments is what keeps the store clean; the guard alone is not a guarantee.
111
+
112
+ Without `dz` installed the package behaves exactly as before and says so once. An
113
+ older `dz` does **not** reject `--domain` — it ignores the flag and exits 0 — so recall
114
+ makes ONE call and detects the older CLI by the ABSENCE of the boost note in the
115
+ output, then states that results may mix other domains. A degraded loop that says so
116
+ beats a silent one. A real failure (non-zero exit) is reported as itself: proceeding
117
+ without prior lessons, never as "your CLI is old".
118
+
119
+ ## Source Tiers
120
+
121
+ `source_tiers.classify_source(url)` assigns a class ceiling: A `0.90` (guideline bodies, WHO,
122
+ registries) · B `0.80` (peer-reviewed literature) · C `0.60` (preprints, trial registries) ·
123
+ D `0.40` (everything else, including unknown domains). A tier is a claim about the CLASS a domain
124
+ belongs to — it is **not** a cryptographic statement and must never be confused with issuer pinning.
125
+
126
+ `source_tiers.is_stale(source_date, kind)` flags sources past their TTL. A **missing** `source_date`
127
+ is flagged too: freshness that cannot be established is not freshness.
128
+
31
129
  ## Signed Message
32
130
 
33
131
  `sign_fact()` and `verify_fact()` use the same deterministic JSON message containing:
@@ -39,6 +137,16 @@ Ed25519 provides cryptographic provenance and tamper-evidence under pinned trust
39
137
  - `timestamp`
40
138
  - optional `research_context` / nonce
41
139
 
140
+ **Schema v2** additionally covers `evidence_class`, `fetch_date` and `source_date`, plus a
141
+ `"schema": "fact-v2"` self-description marker. Version is chosen by the presence of
142
+ `evidence_class`: legacy facts keep verifying against the six-field v1 message forever.
143
+
144
+ Because the three evidence fields are part of the signed text, **both** tamper directions fail:
145
+ stripping `evidence_class` makes the verifier build the v1 text, which no longer matches the signed
146
+ v2 text; adding it to a legacy fact makes it build the v2 text, which does not match the signed v1
147
+ text. (The marker is self-description and the growth point for a future v3 — it is not itself the
148
+ protection; a discrimination run proved that.)
149
+
42
150
  Changing the issuer or moving the source URL after signing invalidates the signature. The code signs the raw canonical message bytes; Ed25519 performs its own internal hashing. Do not pre-hash with SHA-512 before signing.
43
151
 
44
152
  ## Pinned Issuers
@@ -77,25 +185,43 @@ Reordering, substituting, editing, relabeling, or moving a signed fact fails ver
77
185
  ## Confidence Formula
78
186
 
79
187
  ```
80
- confidence =
81
- 0.0 if UNVERIFIED
82
- <=0.60 if SELF_ATTESTED
83
- min(0.95, base_by_source_level * recency_factor) if ISSUER_SIGNED
188
+ confidence = min(
189
+ trust_ceiling, # UNVERIFIED 0.0 · SELF_ATTESTED 0.60 · ISSUER_SIGNED 0.95
190
+ evidence_ceiling, # FETCH_VERIFIED 1.0 · LISTING_ONLY 0.50 · ASSERTED 0.0 · absent → no cap
191
+ tier_ceiling, # A 0.90 · B 0.80 · C 0.60 · D 0.40
192
+ )
84
193
  ```
85
194
 
195
+ The **weakest link decides**, never the average. An `ISSUER_SIGNED` fact that nobody read is capped
196
+ at `0.0` by its evidence class — which is the whole point of the second axis.
197
+
86
198
  Invalid signatures are rejected with confidence `0.0`; they are never a recoverable `0.5` penalty.
87
199
 
88
200
  ## Research Workflow
89
201
 
90
202
  1. Define the research goal and required evidence threshold.
91
203
  2. Configure pinned issuer keys when issuer-grade provenance is required.
92
- 3. Search and fetch sources.
204
+ 3. Search and locate candidate sources.
93
205
  4. Extract claims and source URLs.
94
- 5. Hash source content with SHA-256 for `source_hash`.
95
- 6. Create self-attested facts for the research ledger or issuer-signed facts when a pinned issuer key actually signed the message.
206
+ 5. **Fetch each source through the tool, not by hand:**
207
+ ```python
208
+ from evidence_fetch import fetch_source, FetchRecord
209
+ record = fetch_source(url) # real HTTP, stdlib only
210
+ if isinstance(record, FetchRecord):
211
+ fact = verifier.create_fetched_fact(claim, record, issuer, source_date="2024-03-01")
212
+ else: # offline, 404, oversize, refused scheme…
213
+ fact = verifier.create_listing_fact(claim, url, reason=record.reason)
214
+ ```
215
+ A claim you never opened a source for is `verifier.create_asserted_fact(claim)` — record it
216
+ honestly and let the gate refuse it. Never hand-label a class you did not earn.
217
+ 6. Add facts to the research ledger; issuer-signed facts only when a pinned issuer key actually
218
+ signed the message.
96
219
  7. Verify facts and citation chains.
97
220
  8. Cross-check claims through ordinary source evaluation.
98
- 9. Report confidence, unsigned claims, rejected signatures, and limitations explicitly.
221
+ 9. **Run the report gate before delivering:**
222
+ `python3 scripts/check_report_evidence.py --report <report.md> --facts <facts.json>` — exit 0 required.
223
+ 10. Report confidence, evidence-class mix, unsigned claims, rejected signatures, and limitations
224
+ explicitly.
99
225
 
100
226
  ## Output Expectations
101
227
 
@@ -103,10 +229,14 @@ Reports should include:
103
229
 
104
230
  - Research objective and GOAP plan executed.
105
231
  - Findings with source URLs.
106
- - Verification status per claim (`ISSUER_SIGNED`, `SELF_ATTESTED`, or `UNVERIFIED`).
232
+ - Verification status per claim on BOTH axes: trust (`ISSUER_SIGNED` / `SELF_ATTESTED` /
233
+ `UNVERIFIED`) and evidence (`FETCH_VERIFIED` / `LISTING_ONLY` / `ASSERTED` / unknown-legacy).
234
+ - The evidence-class mix as a count — the share of `ASSERTED` should be zero.
235
+ - A visible marker next to every `LISTING_ONLY` claim ("source not opened directly — verify").
107
236
  - Chain integrity result when citation chains are used.
108
237
  - Unsigned and rejected claims.
109
- - Explicit caveat that cryptographic provenance is not truth verification.
238
+ - Explicit caveat that cryptographic provenance is not truth verification, and that
239
+ `FETCH_VERIFIED` means the bytes arrived — not that the source is right.
110
240
 
111
241
  ## Implementation
112
242