Ship growth intelligence and demo polish
CI / verify (push) Successful in 3m51s

This commit is contained in:
2026-08-13 04:44:14 -07:00
parent a6167629cc
commit 1318c0b841
14 changed files with 112 additions and 35 deletions
+12
View File
@@ -0,0 +1,12 @@
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { growthReadAllowed } from '../src/routes/growth';
describe('growth read boundary', () => {
it('requires an explicit read scope instead of treating authentication as authorization', () => {
assert.equal(growthReadAllowed([]), false);
assert.equal(growthReadAllowed(['write']), false);
assert.equal(growthReadAllowed(['read']), true);
assert.equal(growthReadAllowed(['read', 'write']), true);
});
});