mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-19 16:27:37 +00:00
CommandPolicy gains a VerifyWindow (Go duration) bounded to [(0,], 15m] with a 2m default. NormalizeVerifyWindow and the policy Normalize() method enforce the bounds; DefaultPolicy() populates the default. JSON marshaling now goes through a shadow struct so the wire form serializes as a duration string (e.g. "2m0s") rather than the raw nanosecond integer. Tests cover the default, the bounds (clamp to max, fall through to default for zero/negative), the JSON roundtrip, the unmarshal-applies- bounds contract, and rejection of unparseable duration strings. |
||
|---|---|---|
| .. | ||
| approval_grant.go | ||
| approval_grant_test.go | ||
| deploy_test.go | ||
| export_test_helpers.go | ||
| policy.go | ||
| policy_test.go | ||
| server.go | ||
| server_coverage_test.go | ||
| server_test.go | ||
| server_websocket_test.go | ||
| types.go | ||
| verifier_postconditions.go | ||
| verifier_postconditions_test.go | ||