feat: render revision-bound evidence configuration

This commit is contained in:
2026-08-09 19:39:03 +02:00
parent 3b9681a63a
commit 36fbd58277
4 changed files with 570 additions and 17 deletions
+2 -1
View File
@@ -148,6 +148,7 @@ export class ThtRunner {
workspace: ReturnType<typeof parseWorkspaceYaml>;
workspaceId: string;
workspaceRevision: string;
revisionContentRoot: string;
} {
const identity = this.assertWorkspaceSnapshot(path);
const fd = openSync(path, fsConstants.O_RDONLY | fsConstants.O_NOFOLLOW);
@@ -163,7 +164,7 @@ export class ThtRunner {
if (workspace.workspace.id !== identity.workspaceId) {
throw new Error("workspace snapshot identity does not match its path");
}
return { workspace, ...identity };
return { workspace, ...identity, revisionContentRoot: dirname(path) };
} finally {
closeSync(fd);
}