MCPcopy Create free account
hub / github.com/compozy/agh / SaveTaskRunIdempotency

Method SaveTaskRunIdempotency

internal/task/lease_test.go:1315–1323  ·  view source on GitHub ↗
(
	ctx context.Context,
	record RunIdempotency,
)

Source from the content-addressed store, hash-verified

1313}
1314
1315func (s *approvalAliasFailureStore) SaveTaskRunIdempotency(
1316 ctx context.Context,
1317 record RunIdempotency,
1318) error {
1319 if record.IdempotencyKey == s.failKey {
1320 return errors.New("approval alias persistence failed")
1321 }
1322 return s.inMemoryManagerStore.SaveTaskRunIdempotency(ctx, record)
1323}
1324
1325func TestManagerTaskBlockLifecycleRejectsSecretMaterial(t *testing.T) {
1326 t.Parallel()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected