Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(auth): reuse cached write denials until expiry [H21,H8]

Corey Olson40302ec8689e
diff --git a/relay/auth.js b/relay/auth.js
index e574bbf0..49029480 100644
--- a/relay/auth.js
+++ b/relay/auth.js
@@ -253,7 +253,7 @@ export function createRelayAuth({ database, github, now = Date.now, sessionTTL =
const key = row.user_id + ':' + board;
const prior = permissions.get(key);
const started = now();
- if (prior && started >= prior.checked && started - prior.checked < ACCESS_WINDOW_MS && (!write || prior.allowed)) return authorize(prior, linked, write);
+ if (prior && started >= prior.checked && started - prior.checked < ACCESS_WINDOW_MS) return authorize(prior, linked, write);
let repo;
try {
repo = await github.access({ id: row.user_id, login: row.login }, linked.repository);