Contract at server dev 98f053a: the spec's progress cases pinned from the server
CI / check (push) Canceled after 0s

The server vendored harness spec 3.4.0 (98f053a, no /api/v2 change), so
ProgressTest reads conformance/progress.json from the pin
(contract/harness_progress.json) and the copy taken from the CLI is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-10 09:29:43 +00:00
1 parent 3dbfcd5aca
commit 8972bcfcce
3 files changed
+7 -8

No files matched your search

@@ -20,7 +20,8 @@ import java.util.Locale
/**
* The progress line (harness spec 3.4.0, `progress.md`): the spec's own conformance cases
* (`conformance/progress.json`, the file every client and the server test against), drawn with
* (`conformance/progress.json`, the file every client and the server test against, pinned as
* `contract/harness_progress.json` from the server's copy of the spec), drawn with
* the app's English strings as `res/values/strings.xml` has them -- so a string that drifted
* from `loop.json`'s `progress.texts` fails here too.
*/
@@ -35,10 +36,8 @@ class ProgressTest {
}
private val cases: List<JsonObject> by lazy {
// The server's pinned copy (`contract/harness_progress.json`) once it vendors spec 3.4.0;
// until then the spec's own file, copied from LLeMbas CLI 3.4.0 into the test resources.
val loader = javaClass.classLoader!!
val text = requireNotNull(loader.getResource("harness_progress.json") ?: loader.getResource("progress_conformance.json")).readText()
// The server's vendored copy of the spec's file, pinned with the contract.
val text = requireNotNull(javaClass.classLoader!!.getResource("harness_progress.json")) { "contract/harness_progress.json is missing" }.readText()
LembasJson.parseToJsonElement(text).jsonObject.getValue("cases").jsonArray.map { it.jsonObject }
}