Move the decisions out of AGENTS.md into docs/decisions.md
CI / full-gate (push) Successful in 4m5s

This commit is contained in:
2026-11-08 21:00:53 +01:00
parent be498eecd3
commit 7ad46d0adf
9 changed files with 579 additions and 301 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ export function permissionName(resource: AdminResource, action: AdminAction): st
// Every screen reads on GET/HEAD and mutates on POST. The route table and the in-handler guard both
// go through this rather than each spelling the permission out, so they cannot drift. Deliberately
// local: generalised, it would make authorization a function of the transport verb (AGENTS.md).
// local: generalised, it would make authorization a function of the transport verb
// (docs/decisions.md).
export function actionForMethod(method: string): AdminAction {
const verb = method.toUpperCase();
return verb === "GET" || verb === "HEAD" ? "read" : "write";