Skip to content

fix(candidate): bind exact task instruction bytes#31

Merged
drewstone merged 2 commits into
mainfrom
fix/candidate-instruction-evidence
Jul 10, 2026
Merged

fix(candidate): bind exact task instruction bytes#31
drewstone merged 2 commits into
mainfrom
fix/candidate-instruction-evidence

Conversation

@drewstone

@drewstone drewstone commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

What

  • replace the ambiguous task input digest with an explicit UTF-8 instruction identity
  • require the exact SHA-256 digest and positive byte length of the agent-visible instruction
  • bind delivery to one final argv value, exact stdin followed by EOF, or the fixed /tangle/input/task.txt path and TANGLE_CANDIDATE_TASK_PATH environment name
  • keep file delivery outside both task and candidate workspaces and reserve the evaluator-owned environment variable
  • keep the release unpublished until the corrected execution contract lands

Why

The prior field did not define which bytes were hashed or how those bytes reached the launched process, so two runtimes could produce the same-shaped plan for different task instructions or delivery behavior.

Verification

  • pnpm build (8 packages)
  • pnpm check-types (8 packages)
  • pnpm test (523 tests)
  • git diff --check
  • git merge-tree --write-tree origin/main HEAD

@drewstone drewstone merged commit f5cbf34 into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant