agent-exec transport baad876f1320016310be2522c373a71b/9d3ed5593bfb
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user