Skip to content

Commit baf68fe

Browse files
committed
fix(reports): quote the 16 October StateLib request exactly and label an earlier Conloca request (Refs #6)
- StateLib: the first 16 October request is now an exact short excerpt of the original message. The full-message and excerpt hashes, the translation and the source note follow the re-read original; an earlier retrieved copy had added full stops and is not used. - Conloca: the August priority request is marked as predating the October period. - Tests: the golden translation follows the new excerpt, and the page notes (omitted text, window note) and the excerpt heading are checked against the record.
1 parent 9879414 commit baf68fe

5 files changed

Lines changed: 25 additions & 13 deletions

File tree

‎reports/conloca-2026-10/index.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎reports/conloca-2026-10/media-evidence.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"relationKind": "inferred",
2626
"relation": "Context for the proof below, not for one outcome: the owner's standing priority for Conloca as stated in a message about the day's work.",
27-
"windowNote": "18 August 2026",
27+
"windowNote": "18 August 2026, before the October period of this report; kept because it states the owner's standing priority",
2828
"omitted": null,
2929
"pastedEnglishBugText": false,
3030
"permalink": null,

‎reports/state-lib-2026-10/index.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎reports/state-lib-2026-10/media-evidence.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,21 @@
115115
"report": "statelib",
116116
"sourceRecord": "CG1",
117117
"language": "ru",
118-
"ru": "Ок продолжаем. Но пока я не совсем понял какие серртещные улучшения удалось получить с обновленной библиотекой. Надо сравнивать с ней и без нее по разным критериям более детально. Сделать тесты-бенчмарки",
119-
"en": "Okay, let's continue. But I have not quite understood what substantial improvements we got with the updated library. We need to compare with it and without it by different criteria, in more detail. Make benchmark tests.",
120-
"excerptIsWholeMessage": true,
121-
"excerptSha256": "bc9908444bbc5070b33c90268d7e7bcc500132f8aa0cb34d1141bf580e34d3f9",
122-
"messageSha256": "bc9908444bbc5070b33c90268d7e7bcc500132f8aa0cb34d1141bf580e34d3f9",
118+
"ru": "Надо сравнивать с ней и без нее по разным критериям более детально",
119+
"en": "We need to compare with and without it in more detail, using different criteria.",
120+
"excerptIsWholeMessage": false,
121+
"excerptSha256": "370086710e66d5787cf30e745af375e9ffd3861156b1d378ada36d2cb32723bf",
122+
"messageSha256": "8a4cf35e61141626bd5cf3164a66def49f813d75e1f7e5df0bedc366b0988296",
123123
"dateUtc": "2026-10-16T13:33:01Z",
124124
"author": "Ultra / Mextner",
125125
"sourceLabel": "Ultra's archived ChatGPT conversation about StateLib and the Style Editor",
126-
"senderBasis": "user message retrieved from the archived conversation on 6 November 2026; no message link was recovered",
126+
"senderBasis": "user message retrieved from the archived conversation and re-read against it on 7 November 2026; no message link was recovered",
127127
"messageIdentity": "no message id recovered",
128128
"ids": {},
129129
"relationKind": "inferred",
130130
"relation": "The request behind the benchmark comparisons. It asks for measurement; the figures below are fixture measurements, not an editor speedup.",
131131
"windowNote": "16 October 2026",
132-
"omitted": null,
132+
"omitted": "The rest of the message, including its first sentences and the request to write benchmark tests, is not quoted. The full message was re-read from the archived conversation on 7 November 2026; an earlier retrieved copy had added full stops, so its hash is not used.",
133133
"pastedEnglishBugText": false,
134134
"permalink": null,
135135
"permalinkNote": "private chat or local history: there is no public link and none is invented"
@@ -148,7 +148,7 @@
148148
"dateUtc": "2026-10-16T16:32:19Z",
149149
"author": "Ultra / Mextner",
150150
"sourceLabel": "Ultra's archived ChatGPT conversation about StateLib and the Style Editor",
151-
"senderBasis": "user message retrieved from the archived conversation on 6 November 2026; no message link was recovered",
151+
"senderBasis": "user message retrieved from the archived conversation and re-read against it on 7 November 2026; no message link was recovered",
152152
"messageIdentity": "no message id recovered",
153153
"ids": {},
154154
"relationKind": "inferred",

‎scripts/ci/check-media-report.py‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"req-hyp990-details-and-ai-context": "And think about how to reveal the long text with details. Either expand it right in the toast, or show more in a banner when Details is clicked, and in any case the AI must receive all the details.",
3838
"req-hyp1372-old-bug-back": "And another thing: an old bug has come back. When I click a component in Hyper Explorer, a split is not created.",
3939
"req-hyp1372-first-click": "By the way, the second click in a row does open the split, but the first click never opens the split for me. I tried several times.",
40-
"req-state-lib-compare": "Okay, let's continue. But I have not quite understood what substantial improvements we got with the updated library. We need to compare with it and without it by different criteria, in more detail. Make benchmark tests.",
40+
"req-state-lib-compare": "We need to compare with and without it in more detail, using different criteria.",
4141
"req-state-lib-numbers": "All right, let's go. Also it would be good for it to give better results in numbers: to run faster and for the bundle to weigh less.",
4242
}
4343
# Requests the research could not recover: the report must not show a quote for them.
@@ -105,7 +105,7 @@ def test_page_shows_labelled_russian_and_english_exactly_as_recorded(self):
105105
page = self.pages[key]
106106
self.assertEqual(len(re.findall(r'class="owner-request"', page)), len(ev["originalRequests"]), key)
107107
for r in ev["originalRequests"]:
108-
block = re.search(r'<div class="owner-request" id="%s".*?<p class="request-link">.*?</p>' % re.escape(r["id"]), page, re.S)
108+
block = re.search(r'<div class="owner-request" id="%s".*?<p class="request-link">.*?</p>(?:<p class="request-note">.*?</p>)?' % re.escape(r["id"]), page, re.S)
109109
self.assertIsNotNone(block, r["id"])
110110
b = block.group(0)
111111
self.assertIn('<p class="request-label">Original request (RU)</p>', b)
@@ -115,6 +115,18 @@ def test_page_shows_labelled_russian_and_english_exactly_as_recorded(self):
115115
self.assertEqual(norm(html.unescape(re.sub(r"<br>", "\n", ru))), norm(r["ru"]), r["id"])
116116
self.assertEqual(norm(html.unescape(en)), norm(r["en"]), r["id"])
117117
self.assertIn(f'<strong>{RELATION[r["relationKind"]]}.</strong>', b)
118+
head = re.search(r'<h[45] id="%s-h">(.*?)</h[45]>' % re.escape(r["id"]), b).group(1)
119+
self.assertEqual("(excerpt)" in head, not r["excerptIsWholeMessage"], r["id"])
120+
note = re.search(r'<p class="request-note">(.*?)</p>', b, re.S)
121+
shown_window = r["windowNote"] and ("window" in r["windowNote"] or "period" in r["windowNote"])
122+
if shown_window:
123+
self.assertIsNotNone(note, r["id"])
124+
self.assertIn(r["windowNote"][0].upper() + r["windowNote"][1:] + ".", html.unescape(note.group(1)), r["id"])
125+
if not (r["omitted"] or shown_window):
126+
self.assertIsNone(note, r["id"])
127+
if r["omitted"]:
128+
self.assertIsNotNone(note, r["id"])
129+
self.assertIn(r["omitted"], html.unescape(note.group(1)), r["id"])
118130
self.assertIn(r["messageSha256"], b)
119131
self.assertIn(r["messageIdentity"], html.unescape(b))
120132
d = datetime.fromisoformat(r["dateUtc"].replace("Z", "+00:00"))

0 commit comments

Comments
 (0)