Skip to content

feat(executor): bind terminal results to the exact request - #78

Closed
scotwells wants to merge 1 commit into
codex/pxe-installation-enhancementfrom
pxe/executor-request-digest
Closed

scotwells wants to merge 1 commit into
codex/pxe-installation-enhancementfrom
pxe/executor-request-digest

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

Part of the PXE MVP stack (1 of 5 on top of #59).

What

Executor results now prove which request they answer. simulator.RequestDigest is a SHA-256 commitment to the exact request (everything but its ID), and every OperationResult carries it as inputDigest.

  • The coordinator rejects a terminal result whose digest doesn't match the request it retained. It treats the mismatch as an unknown outcome, never success.
  • InstallationResult returns the digest. The standalone install phase checks the retained simulator history against it.
  • The executor contract (internal/executor/client.go) now documents exact-request replay and what Lookup's "not found + Unknown" answer means. Lookup rejects . and .. operation IDs.
  • Adversarial tests cover cleanup evidence for the wrong asset, path-segment IDs, and digest binding of every request field.

Why

Later layers (local VM, multi-plane, Redfish) recover operations by replaying retained requests. They need a correlated terminal result that can't be satisfied by evidence from a different request.

Validation

  • go vet ./... and go test -race ./... pass on this branch alone.
  • Doc link and whitespace checks pass.

🤖 Generated with Claude Code

Executor results now carry InputDigest, a SHA-256 commitment to the exact
request (minus its ID) computed by simulator.RequestDigest. The coordinator
rejects any terminal result whose digest does not match the request it
retained, treating the mismatch as an unknown outcome rather than success,
and returns the digest with each InstallationResult. The standalone install
phase checks the retained simulator history against it.

The executor contract documents exact-request replay and the meaning of
Lookup's not-found/unknown answers, and Lookup rejects dot-segment IDs.
Adversarial tests cover wrong-asset evidence, path-segment IDs and digest
binding of every request field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scotwells
scotwells force-pushed the pxe/executor-request-digest branch from 0a51385 to 0c15af9 Compare November 19, 2026 22:02
@scotwells

Copy link
Copy Markdown
Contributor Author

Every commit in this PR is already on the staging branch feat/manual-inventory-records as an equivalent change, so this PR has nothing left to merge. #85 stays open for the CI workflow that has not landed.

@scotwells scotwells closed this Nov 25, 2026
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