From 01090b5be7a9d459f68f6cbd8b553fe0a1bbf6dc Mon Sep 17 00:00:00 2001 From: mptyl Date: Tue, 11 Aug 2026 16:21:58 +0200 Subject: [PATCH] fix: compare active registry state in acceptance negatives --- backend/scripts/p11-acceptance.mjs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/scripts/p11-acceptance.mjs b/backend/scripts/p11-acceptance.mjs index adf4ee8c..61cd022b 100644 --- a/backend/scripts/p11-acceptance.mjs +++ b/backend/scripts/p11-acceptance.mjs @@ -552,13 +552,12 @@ async function executeChecks({ checks }) { return results; } async function registryState(ctx) { - const repo = join(ctx.run.root, "installation", "registry", "repo"); - const head = (await git(ctx, ["rev-parse", "HEAD"], { cwd: repo })).stdout.trim(); + const statePath = join(ctx.run.root, "installation", "registry", "state", "active.json"); + const active = JSON.parse(await readFile(statePath, "utf8")); return { - head, - catalog: (await git(ctx, ["rev-parse", `HEAD:thoth-workspaces.yaml`], { cwd: repo })).stdout.trim(), - filesystemDescriptor: (await git(ctx, ["rev-parse", `HEAD:p11-filesystem/workspace.yaml`], { cwd: repo })).stdout.trim(), - evidenceTree: (await git(ctx, ["rev-parse", `HEAD:p11-filesystem/evidence`], { cwd: repo })).stdout.trim(), + head: active.head, + revisions: active.revisions.map((revision) => ({ id: revision.id, commit: revision.commit, blob: revision.blob })), + catalog: active.catalog ?? null, }; } function safeErrorEnvelope(response, code, status) {