You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertNoRuntimeSourcePaths(text,privateUploadRoots,"Runtime source or workspace paths must never be persisted in artifact uploads.")
137
143
assertNoSeedSnapshotPaths(text)
138
-
if(containsRuntimeSourceContent(text))thrownewError("Prepared runtime plugin source contents must never be staged for artifact upload.")
144
+
if(!options.allowTargetCode&&containsRuntimeSourceContent(text))thrownewError("Prepared runtime plugin source contents must never be staged for artifact upload.")
if(expectedDigest&&expectedDigest!==actualDigest)thrownewError("Canonical transcript digest does not match its normalized ref.")
246
+
constraw=parseJsonOrEmpty(bytes.toString("utf8"))
247
+
if(raw.schema!=="wp-codebox/agent-transcript/v1"||!Array.isArray(raw.executions)||raw.executions.length>MAX_TRANSCRIPT_EXECUTIONS)thrownewError("Canonical transcript must be a bounded wp-codebox/agent-transcript/v1 envelope.")
assertNoRuntimeSourcePaths(text,privateUploadRoots,"Runtime source or workspace paths must never be persisted in artifact uploads.")
218
344
assertNoSeedSnapshotPaths(text)
219
-
if(containsRuntimeSourceContent(text))thrownewError("Prepared runtime plugin source contents must never be persisted in artifact uploads.")
345
+
if(relativePath!==".codebox/agent-task-artifacts/transcript.json"&&containsRuntimeSourceContent(text))thrownewError("Prepared runtime plugin source contents must never be persisted in artifact uploads.")
220
346
}elsethrownewError("Only regular files may be persisted in artifact uploads.")
Copy file name to clipboardExpand all lines: docs/agent-runtime-contract.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,8 @@ Generic command runners and host tool registries should write tool-call evidence
176
176
177
177
The artifact verifier checks that transcript artifact refs are listed in `manifest.json`, stay within the bundle, and match their declared SHA-256 digests when present. This lets a generic command runner branch merge by materializing its command/tool transcript into `files/runtime-evidence/tool-calls/transcript.json` and appending the referenced input/output artifacts through the existing runtime-evidence manifest update path.
178
178
179
+
The reusable agent-task workflow separately handles one normalized `codebox-transcript` ref as optional reviewer evidence. A missing referenced file is recorded as unavailable; an existing file must be a bounded `wp-codebox/agent-transcript/v1` regular JSON file whose canonical path stays under the artifact root without symlink traversal. When the normalized ref provides a digest it must match the original bytes. The workflow stages a compact `wp-codebox/reviewer-agent-transcript/v1` projection at `.codebox/agent-task-artifacts/transcript.json`, not the raw transcript or command stdout. Its provenance records verified source and projection SHA-256 values in both the exclusions manifest and staged result. The projection retains execution command/status, typed workspace tool content, model messages, tool calls/results, errors, and agent metadata while removing setup stacks, package/bootstrap payloads, plugin inventories, unknown fields, secrets, and private host/runtime/source/snapshot paths. Package declarations cannot authorize alternate transcript paths or dependency source files.
180
+
179
181
## Runner Workspace Publication
180
182
181
183
Runner workspace publication is a separate exported contract in runtime-core:
0 commit comments