agent-exec transport baad876f1320016310be2522c373a71b/9d3ed5593bfb
governance / governance (pull_request) Successful in 17s
ci / vet-and-test (pull_request) Successful in 1m27s

This commit is contained in:
agent-exec-transport
2026-10-22 03:03:31 +00:00
parent 16538f1c46
commit 4c2db4c89b
7 changed files with 250 additions and 3 deletions
+11
View File
@@ -100,6 +100,17 @@ type ProjectContextSourceRecheckResult struct{ Bundle ProjectContextBundle }
// ProjectContextSourceRechecker is an optional method of the same registered
// ProjectContextProvider. Project workflow reuse fails closed without it.
//
// Fail-closed comparison contract: Backend compares the returned Bundle with
// the recorded receipt as a set of stable identities, never as provider-ordered
// output and never by the provider's own echo. Every recorded Included entry
// must be answered by exactly one item with the same SourceID, Revision and
// Hash whose text still hashes to the recorded InputSHA256; every recorded
// OfferedReference and ReadEvidence must be answered by the same
// (ID, SourceID, Revision, Hash); Missing must be equal as a set, so a benign
// reordering is accepted while an added, dropped or replaced entry is refused.
// Anything unproven, extra or absent rejects; reordering never widens
// authorization.
type ProjectContextSourceRechecker interface {
Recheck(context.Context, ProjectContextSourceRecheckRequest) (ProjectContextSourceRecheckResult, error)
}