Skip to content
Myr

Fold W5's comments in: smoke probes the web, no project takes a web path's name, and the web shows both theme colours

Before adoption: this commit came in with the history the project adopted, so no landing records it.

W5 integration (599), the code half of its fold-ins, each red by assertion first at the owning issue's seam. - Smoke gains the web (599 Done-when): `web-front-page` (the web's `/` answers 200 with HTML) and `web-llms-txt` (`/llms.txt` answers 200 with Markdown that opens with its title; the web builds it from the platform's project list and answers 503 without it, so it holds the service binding too). They run after the platform's five when smoke knows the web: bootstrap's workers.dev record gives `https://web-<s>.<subdomain>.workers.dev` (`webOrigin` in `infra/stages.ts`), and `--url` probes a web only beside `--web-url`. `probes` is now `platformProbes` then `webProbes`. Tests in `packages/config/test/smoke.test.ts`: a healthy web passes both after the platform's; a JSON front page and a 503 `/llms.txt` each fail by name; the command probes the web at `--web-url` and only there. - `ProjectName` refuses `assets`, `auth`, `icons`, `people`, `releases`, `rpc` and `today` (503 #8, 505 #6): the web serves its own pages and files at those first path segments, so a project so named was unreachable at `<web>/<project>`. A dotted name (`llms.txt`, `install.sh`, `.well-known`) was never a project's. `reservedProjectNames` sits beside `AskId`'s reserved words; asks may still take them. `apps/web/test/routes.test.ts` holds the list to the web's real route files and public files (a new top-level route fails it until reserved). `bun run gen` rewrote `docs/reference` (the schema's `not: {enum}`). `apps/platform/test/releases.test.ts`'s "even for a project named releases" case is restated for the new fact: git's path under `/releases` still reaches the gateway (its 404 says "no repo releases", the releases' own 404 has no body), a project's push still gets the credential challenge, and the bucket is never read. - The light `theme-color` reached no page (512 #6): TanStack's `HeadContent` keeps one meta per `name`, the last given. The two scheme-scoped colours now render in the document's head as `ThemeColors`; `rootHead` is exported, carries one meta per name, and links `/icons/icon.svg` (505 #5). Tests in `apps/web/test/root.test.tsx`. - `ProjectionMemory` dropped a second project's events (502 #2, #8): it kept rows by outbox id, and every project's outbox names them `projected:<seq>`. It now keeps each event once by `(project, event.seq)`, as the `Projection` port asks. Test: `packages/project/test/projection-memory.test.ts` (datekit's and burrow's event 1 both kept, a replay adds nothing). - AGENTS.md "Held by": principle 6 names `apps/web/test/production-bundle.test.ts`, principle 7 `apps/web/test/env.test-d.ts` (out of "No fence yet"), and principle 12's Project DO row says the hibernation API beside call and alarm (510 added `fetch`, `webSocketMessage`, `webSocketClose`). `agents-table.test.ts` passes. - `infra/stages.md` documents the web probes and `--web-url`. - verify green: config 803, protocol 365, project 392, platform 382, web 233, cli 255, checks 309; debt at baseline; platform entry 1,618,467 of 1,665,000, web JavaScript 2,337,975 of 2,500,000.

authored by oscabriel · committed by oscabriel · parent 8780e97 · Browse files · 17 files+2430 added−94 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

17 files+2430 added−94 removed

  • tests:+301 added−20 removed
  • other:+2129 added−74 removed

17 files+2430 added−94 removed

modified:apps/platform/test/releases.test.ts+20 added-16 removed
478 unmodified lines
479 });480 })481 );482483 // `releases` is a name no project may take (W5 599: the web forwards484 // `/releases/*` here), so git's paths under it reach the gateway and find485 // no repo; a project's own push still asks for a credential. The releases'486 // own 404 has no body, so the text says the gateway answered.487 it.effect(484 "leaves git's paths to the gateway, even for a project named releases",488 "leaves git's paths to the gateway, which knows no repo named releases",489 () =>490 Effect.gen(function* () {491 const { reads, send } = yield* releasesServed(files);492493 const reserved = yield* send(494 "/releases/info/refs?service=git-receive-pack"495 );496497 // A push with no credential: the gateway asks git for one.490 const pushes = [491 yield* send("/releases/info/refs?service=git-receive-pack"),492 yield* send("/datekit/info/refs?service=git-receive-pack"),493 ];498 const push = yield* send("/datekit/info/refs?service=git-receive-pack");499495 expect(496 pushes.map((reply) => ({497 challenge: reply.headers.get("www-authenticate"),498 status: reply.status,499 }))500 ).toStrictEqual(501 pushes.map(() => ({502 challenge: `Basic realm="${Brand.name}"`,503 status: 401,504 }))505 );500 expect({501 push: {502 challenge: push.headers.get("www-authenticate"),503 status: push.status,504 },505 reserved: { status: reserved.status, text: yield* textOf(reserved) },506 }).toStrictEqual({507 push: { challenge: `Basic realm="${Brand.name}"`, status: 401 },508 reserved: { status: 404, text: "no repo releases\n" },509 });510 expect(yield* reads).toStrictEqual([]);511 })512 );513});
136 unmodified lines
modified:apps/web/src/routes/__root.tsx+46 added-23 removed
added:apps/web/test/root.test.tsx+37 added
added:apps/web/test/routes.test.ts+69 added
modified:docs/reference/commands.json+300 added
32 unmodified lines
33 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",34 "type": "string"35 },36 "project": {37 "allOf": [38 {39 "not": {40 "enum": [41 "assets",42 "auth",43 "icons",44 "people",45 "releases",46 "rpc",47 "today"48 ]49 }50 }51 ],52 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",53 "type": "string"54 }55 },
51 unmodified lines
107 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",108 "type": "string"109 },110 "project": {111 "allOf": [112 {113 "not": {114 "enum": [115 "assets",116 "auth",117 "icons",118 "people",119 "releases",120 "rpc",121 "today"122 ]123 }124 }125 ],126 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",127 "type": "string"128 },129 "reason": {
96 unmodified lines
226 ],227 "type": "array"228 },229 "project": {230 "allOf": [231 {232 "not": {233 "enum": [234 "assets",235 "auth",236 "icons",237 "people",238 "releases",239 "rpc",240 "today"241 ]242 }243 }244 ],245 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",246 "type": "string"247 }248 },
32 unmodified lines
281 "payloadSchema": {282 "additionalProperties": true,283 "properties": {284 "project": {285 "allOf": [286 {287 "not": {288 "enum": [289 "assets",290 "auth",291 "icons",292 "people",293 "releases",294 "rpc",295 "today"296 ]297 }298 }299 ],300 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",301 "type": "string"302 }303 },
70 unmodified lines
374 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",375 "type": "string"376 },377 "project": {378 "allOf": [379 {380 "not": {381 "enum": [382 "assets",383 "auth",384 "icons",385 "people",386 "releases",387 "rpc",388 "today"389 ]390 }391 }392 ],393 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",394 "type": "string"395 }396 },
106 unmodified lines
503 "note": {504 "type": "string"505 },506 "project": {507 "allOf": [508 {509 "not": {510 "enum": [511 "assets",512 "auth",513 "icons",514 "people",515 "releases",516 "rpc",517 "today"518 ]519 }520 }521 ],522 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",523 "type": "string"524 }525 },
57 unmodified lines
583 "payloadSchema": {584 "additionalProperties": true,585 "properties": {586 "project": {587 "allOf": [588 {589 "not": {590 "enum": [591 "assets",592 "auth",593 "icons",594 "people",595 "releases",596 "rpc",597 "today"598 ]599 }600 }601 ],602 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",603 "type": "string"604 }605 },
29 unmodified lines
635 "payloadSchema": {636 "additionalProperties": true,637 "properties": {638 "project": {639 "allOf": [640 {641 "not": {642 "enum": [643 "assets",644 "auth",645 "icons",646 "people",647 "releases",648 "rpc",649 "today"650 ]651 }652 }653 ],654 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",655 "type": "string"656 },657 "ref": {
63 unmodified lines
721 "pattern": "^[0-9a-f]{40}$",722 "type": "string"723 },724 "project": {725 "allOf": [726 {727 "not": {728 "enum": [729 "assets",730 "auth",731 "icons",732 "people",733 "releases",734 "rpc",735 "today"736 ]737 }738 }739 ],740 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",741 "type": "string"742 },743 "requestId": {
39 unmodified lines
783 "payloadSchema": {784 "additionalProperties": true,785 "properties": {786 "project": {787 "allOf": [788 {789 "not": {790 "enum": [791 "assets",792 "auth",793 "icons",794 "people",795 "releases",796 "rpc",797 "today"798 ]799 }800 }801 ],802 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",803 "type": "string"804 }805 },
132 unmodified lines
938 "minLength": 1,939 "type": "string"940 },941 "project": {942 "allOf": [943 {944 "not": {945 "enum": [946 "assets",947 "auth",948 "icons",949 "people",950 "releases",951 "rpc",952 "today"953 ]954 }955 }956 ],957 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",958 "type": "string"959 },960 "requestId": {
37 unmodified lines
998 "payloadSchema": {999 "additionalProperties": true,1000 "properties": {1001 "project": {1002 "allOf": [1003 {1004 "not": {1005 "enum": [1006 "assets",1007 "auth",1008 "icons",1009 "people",1010 "releases",1011 "rpc",1012 "today"1013 ]1014 }1015 }1016 ],1017 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1018 "type": "string"1019 },1020 "sha": {
34 unmodified lines
1055 "payloadSchema": {1056 "additionalProperties": true,1057 "properties": {1058 "project": {1059 "allOf": [1060 {1061 "not": {1062 "enum": [1063 "assets",1064 "auth",1065 "icons",1066 "people",1067 "releases",1068 "rpc",1069 "today"1070 ]1071 }1072 }1073 ],1074 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1075 "type": "string"1076 }1077 },
156 unmodified lines
1234 ],1235 "type": "array"1236 },1237 "project": {1238 "allOf": [1239 {1240 "not": {1241 "enum": [1242 "assets",1243 "auth",1244 "icons",1245 "people",1246 "releases",1247 "rpc",1248 "today"1249 ]1250 }1251 }1252 ],1253 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1254 "type": "string"1255 },1256 "sealed": {
68 unmodified lines
1325 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1326 "type": "string"1327 },1328 "project": {1329 "allOf": [1330 {1331 "not": {1332 "enum": [1333 "assets",1334 "auth",1335 "icons",1336 "people",1337 "releases",1338 "rpc",1339 "today"1340 ]1341 }1342 }1343 ],1344 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1345 "type": "string"1346 }1347 },
50 unmodified lines
1398 "payloadSchema": {1399 "additionalProperties": true,1400 "properties": {1401 "project": {1402 "allOf": [1403 {1404 "not": {1405 "enum": [1406 "assets",1407 "auth",1408 "icons",1409 "people",1410 "releases",1411 "rpc",1412 "today"1413 ]1414 }1415 }1416 ],1417 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1418 "type": "string"1419 }1420 },
54 unmodified lines
1475 "pattern": "^[0-9a-f]{40}$",1476 "type": "string"1477 },1478 "project": {1479 "allOf": [1480 {1481 "not": {1482 "enum": [1483 "assets",1484 "auth",1485 "icons",1486 "people",1487 "releases",1488 "rpc",1489 "today"1490 ]1491 }1492 }1493 ],1494 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1495 "type": "string"1496 },1497 "requestId": {
38 unmodified lines
1536 "payloadSchema": {1537 "additionalProperties": true,1538 "properties": {1539 "project": {1540 "allOf": [1541 {1542 "not": {1543 "enum": [1544 "assets",1545 "auth",1546 "icons",1547 "people",1548 "releases",1549 "rpc",1550 "today"1551 ]1552 }1553 }1554 ],1555 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1556 "type": "string"1557 }1558 },
47 unmodified lines
1606 "pattern": "^[0-9a-f]{40}$",1607 "type": "string"1608 },1609 "project": {1610 "allOf": [1611 {1612 "not": {1613 "enum": [1614 "assets",1615 "auth",1616 "icons",1617 "people",1618 "releases",1619 "rpc",1620 "today"1621 ]1622 }1623 }1624 ],1625 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1626 "type": "string"1627 }1628 },
44 unmodified lines
1673 "note": {1674 "type": "string"1675 },1676 "project": {1677 "allOf": [1678 {1679 "not": {1680 "enum": [1681 "assets",1682 "auth",1683 "icons",1684 "people",1685 "releases",1686 "rpc",1687 "today"1688 ]1689 }1690 }1691 ],1692 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1693 "type": "string"1694 },1695 "verdict": {
47 unmodified lines
modified:docs/reference/mcp-tools.md+840 added
51 unmodified lines
52 ],53 "type": "string"54 },55 "project": {56 "allOf": [57 {58 "not": {59 "enum": [60 "assets",61 "auth",62 "icons",63 "people",64 "releases",65 "rpc",66 "today"67 ]68 }69 }70 ],71 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",72 "type": "string"73 }74 },
138 unmodified lines
213 ],214 "type": "string"215 },216 "project": {217 "allOf": [218 {219 "not": {220 "enum": [221 "assets",222 "auth",223 "icons",224 "people",225 "releases",226 "rpc",227 "today"228 ]229 }230 }231 ],232 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",233 "type": "string"234 },235 "takeable": {
35 unmodified lines
271{272 "additionalProperties": true,273 "properties": {274 "project": {275 "allOf": [276 {277 "not": {278 "enum": [279 "assets",280 "auth",281 "icons",282 "people",283 "releases",284 "rpc",285 "today"286 ]287 }288 }289 ],290 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",291 "type": "string"292 }293 },
125 unmodified lines
419 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",420 "type": "string"421 },422 "project": {423 "allOf": [424 {425 "not": {426 "enum": [427 "assets",428 "auth",429 "icons",430 "people",431 "releases",432 "rpc",433 "today"434 ]435 }436 }437 ],438 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",439 "type": "string"440 }441 },
260 unmodified lines
702 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",703 "type": "string"704 },705 "project": {706 "allOf": [707 {708 "not": {709 "enum": [710 "assets",711 "auth",712 "icons",713 "people",714 "releases",715 "rpc",716 "today"717 ]718 }719 }720 ],721 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",722 "type": "string"723 },724 "reserve": {
94 unmodified lines
819{820 "additionalProperties": true,821 "properties": {822 "project": {823 "allOf": [824 {825 "not": {826 "enum": [827 "assets",828 "auth",829 "icons",830 "people",831 "releases",832 "rpc",833 "today"834 ]835 }836 }837 ],838 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",839 "type": "string"840 }841 },
1319 unmodified lines
2161 "minLength": 1,2162 "type": "string"2163 },2164 "project": {2165 "allOf": [2166 {2167 "not": {2168 "enum": [2169 "assets",2170 "auth",2171 "icons",2172 "people",2173 "releases",2174 "rpc",2175 "today"2176 ]2177 }2178 }2179 ],2180 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2181 "type": "string"2182 },2183 "retryable": {
585 unmodified lines
2769 "minLength": 1,2770 "type": "string"2771 },2772 "project": {2773 "allOf": [2774 {2775 "not": {2776 "enum": [2777 "assets",2778 "auth",2779 "icons",2780 "people",2781 "releases",2782 "rpc",2783 "today"2784 ]2785 }2786 }2787 ],2788 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2789 "type": "string"2790 },2791 "retryable": {
787 unmodified lines
3579 "openedAt": {3580 "type": "string"3581 },3582 "project": {3583 "allOf": [3584 {3585 "not": {3586 "enum": [3587 "assets",3588 "auth",3589 "icons",3590 "people",3591 "releases",3592 "rpc",3593 "today"3594 ]3595 }3596 }3597 ],3598 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3599 "type": "string"3600 },3601 "remote": {
86 unmodified lines
3688 "pattern": "^[0-9a-f]{40}$",3689 "type": "string"3690 },3691 "project": {3692 "allOf": [3693 {3694 "not": {3695 "enum": [3696 "assets",3697 "auth",3698 "icons",3699 "people",3700 "releases",3701 "rpc",3702 "today"3703 ]3704 }3705 }3706 ],3707 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3708 "type": "string"3709 }3710 },
1323 unmodified lines
5034 "minLength": 1,5035 "type": "string"5036 },5037 "project": {5038 "allOf": [5039 {5040 "not": {5041 "enum": [5042 "assets",5043 "auth",5044 "icons",5045 "people",5046 "releases",5047 "rpc",5048 "today"5049 ]5050 }5051 }5052 ],5053 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5054 "type": "string"5055 },5056 "retryable": {
585 unmodified lines
5642 "minLength": 1,5643 "type": "string"5644 },5645 "project": {5646 "allOf": [5647 {5648 "not": {5649 "enum": [5650 "assets",5651 "auth",5652 "icons",5653 "people",5654 "releases",5655 "rpc",5656 "today"5657 ]5658 }5659 }5660 ],5661 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5662 "type": "string"5663 },5664 "retryable": {
806 unmodified lines
6471 "pattern": "^[0-9a-f]{64}$",6472 "type": "string"6473 },6474 "project": {6475 "allOf": [6476 {6477 "not": {6478 "enum": [6479 "assets",6480 "auth",6481 "icons",6482 "people",6483 "releases",6484 "rpc",6485 "today"6486 ]6487 }6488 }6489 ],6490 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6491 "type": "string"6492 },6493 "stage": {
58 unmodified lines
6552{6553 "additionalProperties": true,6554 "properties": {6555 "project": {6556 "allOf": [6557 {6558 "not": {6559 "enum": [6560 "assets",6561 "auth",6562 "icons",6563 "people",6564 "releases",6565 "rpc",6566 "today"6567 ]6568 }6569 }6570 ],6571 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6572 "type": "string"6573 },6574 "sha": {
1327 unmodified lines
7902 "minLength": 1,7903 "type": "string"7904 },7905 "project": {7906 "allOf": [7907 {7908 "not": {7909 "enum": [7910 "assets",7911 "auth",7912 "icons",7913 "people",7914 "releases",7915 "rpc",7916 "today"7917 ]7918 }7919 }7920 ],7921 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7922 "type": "string"7923 },7924 "retryable": {
585 unmodified lines
8510 "minLength": 1,8511 "type": "string"8512 },8513 "project": {8514 "allOf": [8515 {8516 "not": {8517 "enum": [8518 "assets",8519 "auth",8520 "icons",8521 "people",8522 "releases",8523 "rpc",8524 "today"8525 ]8526 }8527 }8528 ],8529 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8530 "type": "string"8531 },8532 "retryable": {
393 unmodified lines
8926 "pattern": "^[0-9a-f]{40}$",8927 "type": "string"8928 },8929 "project": {8930 "allOf": [8931 {8932 "not": {8933 "enum": [8934 "assets",8935 "auth",8936 "icons",8937 "people",8938 "releases",8939 "rpc",8940 "today"8941 ]8942 }8943 }8944 ],8945 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8946 "type": "string"8947 },8948 "requestId": {
504 unmodified lines
9453 "pattern": "^[0-9a-f]{64}$",9454 "type": "string"9455 },9456 "project": {9457 "allOf": [9458 {9459 "not": {9460 "enum": [9461 "assets",9462 "auth",9463 "icons",9464 "people",9465 "releases",9466 "rpc",9467 "today"9468 ]9469 }9470 }9471 ],9472 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9473 "type": "string"9474 },9475 "stage": {
101 unmodified lines
9577 "count": {9578 "type": "integer"9579 },9580 "project": {9581 "allOf": [9582 {9583 "not": {9584 "enum": [9585 "assets",9586 "auth",9587 "icons",9588 "people",9589 "releases",9590 "rpc",9591 "today"9592 ]9593 }9594 }9595 ],9596 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9597 "type": "string"9598 },9599 "role": {
44 unmodified lines
9644{9645 "additionalProperties": true,9646 "properties": {9647 "project": {9648 "allOf": [9649 {9650 "not": {9651 "enum": [9652 "assets",9653 "auth",9654 "icons",9655 "people",9656 "releases",9657 "rpc",9658 "today"9659 ]9660 }9661 }9662 ],9663 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9664 "type": "string"9665 }9666 },
1319 unmodified lines
10986 "minLength": 1,10987 "type": "string"10988 },10989 "project": {10990 "allOf": [10991 {10992 "not": {10993 "enum": [10994 "assets",10995 "auth",10996 "icons",10997 "people",10998 "releases",10999 "rpc",11000 "today"11001 ]11002 }11003 }11004 ],11005 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11006 "type": "string"11007 },11008 "retryable": {
585 unmodified lines
11594 "minLength": 1,11595 "type": "string"11596 },11597 "project": {11598 "allOf": [11599 {11600 "not": {11601 "enum": [11602 "assets",11603 "auth",11604 "icons",11605 "people",11606 "releases",11607 "rpc",11608 "today"11609 ]11610 }11611 }11612 ],11613 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11614 "type": "string"11615 },11616 "retryable": {
421 unmodified lines
12038 "openedAt": {12039 "type": "string"12040 },12041 "project": {12042 "allOf": [12043 {12044 "not": {12045 "enum": [12046 "assets",12047 "auth",12048 "icons",12049 "people",12050 "releases",12051 "rpc",12052 "today"12053 ]12054 }12055 }12056 ],12057 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12058 "type": "string"12059 },12060 "subject": {
440 unmodified lines
12501 "pattern": "^[0-9a-f]{40}$",12502 "type": "string"12503 },12504 "project": {12505 "allOf": [12506 {12507 "not": {12508 "enum": [12509 "assets",12510 "auth",12511 "icons",12512 "people",12513 "releases",12514 "rpc",12515 "today"12516 ]12517 }12518 }12519 ],12520 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12521 "type": "string"12522 },12523 "requestId": {
504 unmodified lines
13028 "pattern": "^[0-9a-f]{64}$",13029 "type": "string"13030 },13031 "project": {13032 "allOf": [13033 {13034 "not": {13035 "enum": [13036 "assets",13037 "auth",13038 "icons",13039 "people",13040 "releases",13041 "rpc",13042 "today"13043 ]13044 }13045 }13046 ],13047 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13048 "type": "string"13049 },13050 "stage": {
80 unmodified lines
13131{13132 "additionalProperties": true,13133 "properties": {13134 "project": {13135 "allOf": [13136 {13137 "not": {13138 "enum": [13139 "assets",13140 "auth",13141 "icons",13142 "people",13143 "releases",13144 "rpc",13145 "today"13146 ]13147 }13148 }13149 ],13150 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13151 "type": "string"13152 }13153 },
447 unmodified lines
13601 "minLength": 1,13602 "type": "string"13603 },13604 "project": {13605 "allOf": [13606 {13607 "not": {13608 "enum": [13609 "assets",13610 "auth",13611 "icons",13612 "people",13613 "releases",13614 "rpc",13615 "today"13616 ]13617 }13618 }13619 ],13620 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13621 "type": "string"13622 }13623 },
25 unmodified lines
13649{13650 "additionalProperties": true,13651 "properties": {13652 "project": {13653 "allOf": [13654 {13655 "not": {13656 "enum": [13657 "assets",13658 "auth",13659 "icons",13660 "people",13661 "releases",13662 "rpc",13663 "today"13664 ]13665 }13666 }13667 ],13668 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13669 "type": "string"13670 }13671 },
135 unmodified lines
13807 },13808 "type": "array"13809 },13810 "project": {13811 "allOf": [13812 {13813 "not": {13814 "enum": [13815 "assets",13816 "auth",13817 "icons",13818 "people",13819 "releases",13820 "rpc",13821 "today"13822 ]13823 }13824 }13825 ],13826 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13827 "type": "string"13828 }13829 },
42 unmodified lines
13872 ],13873 "type": "object"13874 },13875 "project": {13876 "allOf": [13877 {13878 "not": {13879 "enum": [13880 "assets",13881 "auth",13882 "icons",13883 "people",13884 "releases",13885 "rpc",13886 "today"13887 ]13888 }13889 }13890 ],13891 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13892 "type": "string"13893 }13894 },
14 unmodified lines
13909 "pattern": "^[0-9a-f]{40}$",13910 "type": "string"13911 },13912 "project": {13913 "allOf": [13914 {13915 "not": {13916 "enum": [13917 "assets",13918 "auth",13919 "icons",13920 "people",13921 "releases",13922 "rpc",13923 "today"13924 ]13925 }13926 }13927 ],13928 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13929 "type": "string"13930 },13931 "remote": {
82 unmodified lines
14014 ],14015 "type": "array"14016 },14017 "project": {14018 "allOf": [14019 {14020 "not": {14021 "enum": [14022 "assets",14023 "auth",14024 "icons",14025 "people",14026 "releases",14027 "rpc",14028 "today"14029 ]14030 }14031 }14032 ],14033 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14034 "type": "string"14035 }14036 },
261 unmodified lines
14298 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14299 "type": "string"14300 },14301 "project": {14302 "allOf": [14303 {14304 "not": {14305 "enum": [14306 "assets",14307 "auth",14308 "icons",14309 "people",14310 "releases",14311 "rpc",14312 "today"14313 ]14314 }14315 }14316 ],14317 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14318 "type": "string"14319 },14320 "reserve": {
134 unmodified lines
14455 ],14456 "type": "array"14457 },14458 "project": {14459 "allOf": [14460 {14461 "not": {14462 "enum": [14463 "assets",14464 "auth",14465 "icons",14466 "people",14467 "releases",14468 "rpc",14469 "today"14470 ]14471 }14472 }14473 ],14474 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14475 "type": "string"14476 },14477 "sealed": {
68 unmodified lines
14546 "openedAt": {14547 "type": "string"14548 },14549 "project": {14550 "allOf": [14551 {14552 "not": {14553 "enum": [14554 "assets",14555 "auth",14556 "icons",14557 "people",14558 "releases",14559 "rpc",14560 "today"14561 ]14562 }14563 }14564 ],14565 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14566 "type": "string"14567 },14568 "proposer": {
89 unmodified lines
14658 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14659 "type": "string"14660 },14661 "project": {14662 "allOf": [14663 {14664 "not": {14665 "enum": [14666 "assets",14667 "auth",14668 "icons",14669 "people",14670 "releases",14671 "rpc",14672 "today"14673 ]14674 }14675 }14676 ],14677 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14678 "type": "string"14679 },14680 "reason": {
52 unmodified lines
14733 "openedAt": {14734 "type": "string"14735 },14736 "project": {14737 "allOf": [14738 {14739 "not": {14740 "enum": [14741 "assets",14742 "auth",14743 "icons",14744 "people",14745 "releases",14746 "rpc",14747 "today"14748 ]14749 }14750 }14751 ],14752 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14753 "type": "string"14754 },14755 "proposer": {
89 unmodified lines
14845 "note": {14846 "type": "string"14847 },14848 "project": {14849 "allOf": [14850 {14851 "not": {14852 "enum": [14853 "assets",14854 "auth",14855 "icons",14856 "people",14857 "releases",14858 "rpc",14859 "today"14860 ]14861 }14862 }14863 ],14864 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14865 "type": "string"14866 }14867 },
102 unmodified lines
14970 "openedAt": {14971 "type": "string"14972 },14973 "project": {14974 "allOf": [14975 {14976 "not": {14977 "enum": [14978 "assets",14979 "auth",14980 "icons",14981 "people",14982 "releases",14983 "rpc",14984 "today"14985 ]14986 }14987 }14988 ],14989 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14990 "type": "string"14991 },14992 "subject": {
374 unmodified lines
15367 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15368 "type": "string"15369 },15370 "project": {15371 "allOf": [15372 {15373 "not": {15374 "enum": [15375 "assets",15376 "auth",15377 "icons",15378 "people",15379 "releases",15380 "rpc",15381 "today"15382 ]15383 }15384 }15385 ],15386 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15387 "type": "string"15388 }15389 },
55 unmodified lines
15445 "openedAt": {15446 "type": "string"15447 },15448 "project": {15449 "allOf": [15450 {15451 "not": {15452 "enum": [15453 "assets",15454 "auth",15455 "icons",15456 "people",15457 "releases",15458 "rpc",15459 "today"15460 ]15461 }15462 }15463 ],15464 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15465 "type": "string"15466 },15467 "remote": {
74 unmodified lines
15542 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15543 "type": "string"15544 },15545 "project": {15546 "allOf": [15547 {15548 "not": {15549 "enum": [15550 "assets",15551 "auth",15552 "icons",15553 "people",15554 "releases",15555 "rpc",15556 "today"15557 ]15558 }15559 }15560 ],15561 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15562 "type": "string"15563 }15564 },
63 unmodified lines
15628 "pattern": "^[0-9a-f]{40}$",15629 "type": "string"15630 },15631 "project": {15632 "allOf": [15633 {15634 "not": {15635 "enum": [15636 "assets",15637 "auth",15638 "icons",15639 "people",15640 "releases",15641 "rpc",15642 "today"15643 ]15644 }15645 }15646 ],15647 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15648 "type": "string"15649 },15650 "requestId": {
1330 unmodified lines
16981 "minLength": 1,16982 "type": "string"16983 },16984 "project": {16985 "allOf": [16986 {16987 "not": {16988 "enum": [16989 "assets",16990 "auth",16991 "icons",16992 "people",16993 "releases",16994 "rpc",16995 "today"16996 ]16997 }16998 }16999 ],17000 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17001 "type": "string"17002 },17003 "retryable": {
585 unmodified lines
17589 "minLength": 1,17590 "type": "string"17591 },17592 "project": {17593 "allOf": [17594 {17595 "not": {17596 "enum": [17597 "assets",17598 "auth",17599 "icons",17600 "people",17601 "releases",17602 "rpc",17603 "today"17604 ]17605 }17606 }17607 ],17608 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17609 "type": "string"17610 },17611 "retryable": {
723 unmodified lines
18335 }18336 ]18337 },18338 "project": {18339 "allOf": [18340 {18341 "not": {18342 "enum": [18343 "assets",18344 "auth",18345 "icons",18346 "people",18347 "releases",18348 "rpc",18349 "today"18350 ]18351 }18352 }18353 ],18354 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",18355 "type": "string"18356 },18357 "requestId": {
54 unmodified lines
18412 "pattern": "^[0-9a-f]{40}$",18413 "type": "string"18414 },18415 "project": {18416 "allOf": [18417 {18418 "not": {18419 "enum": [18420 "assets",18421 "auth",18422 "icons",18423 "people",18424 "releases",18425 "rpc",18426 "today"18427 ]18428 }18429 }18430 ],18431 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",18432 "type": "string"18433 },18434 "requestId": {
1330 unmodified lines
19765 "minLength": 1,19766 "type": "string"19767 },19768 "project": {19769 "allOf": [19770 {19771 "not": {19772 "enum": [19773 "assets",19774 "auth",19775 "icons",19776 "people",19777 "releases",19778 "rpc",19779 "today"19780 ]19781 }19782 }19783 ],19784 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",19785 "type": "string"19786 },19787 "retryable": {
585 unmodified lines
20373 "minLength": 1,20374 "type": "string"20375 },20376 "project": {20377 "allOf": [20378 {20379 "not": {20380 "enum": [20381 "assets",20382 "auth",20383 "icons",20384 "people",20385 "releases",20386 "rpc",20387 "today"20388 ]20389 }20390 }20391 ],20392 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20393 "type": "string"20394 },20395 "retryable": {
723 unmodified lines
21119 }21120 ]21121 },21122 "project": {21123 "allOf": [21124 {21125 "not": {21126 "enum": [21127 "assets",21128 "auth",21129 "icons",21130 "people",21131 "releases",21132 "rpc",21133 "today"21134 ]21135 }21136 }21137 ],21138 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",21139 "type": "string"21140 },21141 "requestId": {
42 unmodified lines
21184 "minLength": 1,21185 "type": "string"21186 },21187 "project": {21188 "allOf": [21189 {21190 "not": {21191 "enum": [21192 "assets",21193 "auth",21194 "icons",21195 "people",21196 "releases",21197 "rpc",21198 "today"21199 ]21200 }21201 }21202 ],21203 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",21204 "type": "string"21205 },21206 "requestId": {
1330 unmodified lines
22537 "minLength": 1,22538 "type": "string"22539 },22540 "project": {22541 "allOf": [22542 {22543 "not": {22544 "enum": [22545 "assets",22546 "auth",22547 "icons",22548 "people",22549 "releases",22550 "rpc",22551 "today"22552 ]22553 }22554 }22555 ],22556 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",22557 "type": "string"22558 },22559 "retryable": {
585 unmodified lines
23145 "minLength": 1,23146 "type": "string"23147 },23148 "project": {23149 "allOf": [23150 {23151 "not": {23152 "enum": [23153 "assets",23154 "auth",23155 "icons",23156 "people",23157 "releases",23158 "rpc",23159 "today"23160 ]23161 }23162 }23163 ],23164 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",23165 "type": "string"23166 },23167 "retryable": {
707 unmodified lines
23875 }23876 ]23877 },23878 "project": {23879 "allOf": [23880 {23881 "not": {23882 "enum": [23883 "assets",23884 "auth",23885 "icons",23886 "people",23887 "releases",23888 "rpc",23889 "today"23890 ]23891 }23892 }23893 ],23894 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",23895 "type": "string"23896 },23897 "requestId": {
29 unmodified lines
23927{23928 "additionalProperties": true,23929 "properties": {23930 "project": {23931 "allOf": [23932 {23933 "not": {23934 "enum": [23935 "assets",23936 "auth",23937 "icons",23938 "people",23939 "releases",23940 "rpc",23941 "today"23942 ]23943 }23944 }23945 ],23946 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",23947 "type": "string"23948 }23949 },
51 unmodified lines
24001 "note": {24002 "type": "string"24003 },24004 "project": {24005 "allOf": [24006 {24007 "not": {24008 "enum": [24009 "assets",24010 "auth",24011 "icons",24012 "people",24013 "releases",24014 "rpc",24015 "today"24016 ]24017 }24018 }24019 ],24020 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",24021 "type": "string"24022 },24023 "verdict": {
33 unmodified lines
modified:docs/reference/protocol.schema.json+735 added
1313 unmodified lines
1314 "minLength": 1,1315 "type": "string"1316 },1317 "project": {1318 "allOf": [1319 {1320 "not": {1321 "enum": [1322 "assets",1323 "auth",1324 "icons",1325 "people",1326 "releases",1327 "rpc",1328 "today"1329 ]1330 }1331 }1332 ],1333 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1334 "type": "string"1335 },1336 "retryable": {
709 unmodified lines
2046 "minLength": 1,2047 "type": "string"2048 },2049 "project": {2050 "allOf": [2051 {2052 "not": {2053 "enum": [2054 "assets",2055 "auth",2056 "icons",2057 "people",2058 "releases",2059 "rpc",2060 "today"2061 ]2062 }2063 }2064 ],2065 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2066 "type": "string"2067 },2068 "retryable": {
347 unmodified lines
2416 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2417 "type": "string"2418 },2419 "project": {2420 "allOf": [2421 {2422 "not": {2423 "enum": [2424 "assets",2425 "auth",2426 "icons",2427 "people",2428 "releases",2429 "rpc",2430 "today"2431 ]2432 }2433 }2434 ],2435 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2436 "type": "string"2437 }2438 },
50 unmodified lines
2489 "openedAt": {2490 "type": "string"2491 },2492 "project": {2493 "allOf": [2494 {2495 "not": {2496 "enum": [2497 "assets",2498 "auth",2499 "icons",2500 "people",2501 "releases",2502 "rpc",2503 "today"2504 ]2505 }2506 }2507 ],2508 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2509 "type": "string"2510 },2511 "remote": {
69 unmodified lines
2581 "count": {2582 "type": "integer"2583 },2584 "project": {2585 "allOf": [2586 {2587 "not": {2588 "enum": [2589 "assets",2590 "auth",2591 "icons",2592 "people",2593 "releases",2594 "rpc",2595 "today"2596 ]2597 }2598 }2599 ],2600 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2601 "type": "string"2602 },2603 "role": {
66 unmodified lines
2670 "note": {2671 "type": "string"2672 },2673 "project": {2674 "allOf": [2675 {2676 "not": {2677 "enum": [2678 "assets",2679 "auth",2680 "icons",2681 "people",2682 "releases",2683 "rpc",2684 "today"2685 ]2686 }2687 }2688 ],2689 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2690 "type": "string"2691 }2692 },
97 unmodified lines
2790 "openedAt": {2791 "type": "string"2792 },2793 "project": {2794 "allOf": [2795 {2796 "not": {2797 "enum": [2798 "assets",2799 "auth",2800 "icons",2801 "people",2802 "releases",2803 "rpc",2804 "today"2805 ]2806 }2807 }2808 ],2809 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2810 "type": "string"2811 },2812 "subject": {
345 unmodified lines
3158 "envShape.payload": {3159 "additionalProperties": true,3160 "properties": {3161 "project": {3162 "allOf": [3163 {3164 "not": {3165 "enum": [3166 "assets",3167 "auth",3168 "icons",3169 "people",3170 "releases",3171 "rpc",3172 "today"3173 ]3174 }3175 }3176 ],3177 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3178 "type": "string"3179 }3180 },
130 unmodified lines
3311 },3312 "type": "array"3313 },3314 "project": {3315 "allOf": [3316 {3317 "not": {3318 "enum": [3319 "assets",3320 "auth",3321 "icons",3322 "people",3323 "releases",3324 "rpc",3325 "today"3326 ]3327 }3328 }3329 ],3330 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3331 "type": "string"3332 }3333 },
19 unmodified lines
3353 "evidence.payload": {3354 "additionalProperties": true,3355 "properties": {3356 "project": {3357 "allOf": [3358 {3359 "not": {3360 "enum": [3361 "assets",3362 "auth",3363 "icons",3364 "people",3365 "releases",3366 "rpc",3367 "today"3368 ]3369 }3370 }3371 ],3372 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3373 "type": "string"3374 },3375 "ref": {
74 unmodified lines
3450 "pattern": "^[0-9a-f]{40}$",3451 "type": "string"3452 },3453 "project": {3454 "allOf": [3455 {3456 "not": {3457 "enum": [3458 "assets",3459 "auth",3460 "icons",3461 "people",3462 "releases",3463 "rpc",3464 "today"3465 ]3466 }3467 }3468 ],3469 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3470 "type": "string"3471 },3472 "requestId": {
430 unmodified lines
3903 }3904 ]3905 },3906 "project": {3907 "allOf": [3908 {3909 "not": {3910 "enum": [3911 "assets",3912 "auth",3913 "icons",3914 "people",3915 "releases",3916 "rpc",3917 "today"3918 ]3919 }3920 }3921 ],3922 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3923 "type": "string"3924 },3925 "requestId": {
46 unmodified lines
3972 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3973 "type": "string"3974 },3975 "project": {3976 "allOf": [3977 {3978 "not": {3979 "enum": [3980 "assets",3981 "auth",3982 "icons",3983 "people",3984 "releases",3985 "rpc",3986 "today"3987 ]3988 }3989 }3990 ],3991 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3992 "type": "string"3993 },3994 "reason": {
47 unmodified lines
4042 "openedAt": {4043 "type": "string"4044 },4045 "project": {4046 "allOf": [4047 {4048 "not": {4049 "enum": [4050 "assets",4051 "auth",4052 "icons",4053 "people",4054 "releases",4055 "rpc",4056 "today"4057 ]4058 }4059 }4060 ],4061 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4062 "type": "string"4063 },4064 "proposer": {
70 unmodified lines
4135 "fork.payload": {4136 "additionalProperties": true,4137 "properties": {4138 "project": {4139 "allOf": [4140 {4141 "not": {4142 "enum": [4143 "assets",4144 "auth",4145 "icons",4146 "people",4147 "releases",4148 "rpc",4149 "today"4150 ]4151 }4152 }4153 ],4154 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4155 "type": "string"4156 }4157 },
128 unmodified lines
4286 ],4287 "type": "string"4288 },4289 "project": {4290 "allOf": [4291 {4292 "not": {4293 "enum": [4294 "assets",4295 "auth",4296 "icons",4297 "people",4298 "releases",4299 "rpc",4300 "today"4301 ]4302 }4303 }4304 ],4305 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4306 "type": "string"4307 },4308 "takeable": {
46 unmodified lines
4355 ],4356 "type": "object"4357 },4358 "project": {4359 "allOf": [4360 {4361 "not": {4362 "enum": [4363 "assets",4364 "auth",4365 "icons",4366 "people",4367 "releases",4368 "rpc",4369 "today"4370 ]4371 }4372 }4373 ],4374 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4375 "type": "string"4376 }4377 },
9 unmodified lines
4387 "pattern": "^[0-9a-f]{40}$",4388 "type": "string"4389 },4390 "project": {4391 "allOf": [4392 {4393 "not": {4394 "enum": [4395 "assets",4396 "auth",4397 "icons",4398 "people",4399 "releases",4400 "rpc",4401 "today"4402 ]4403 }4404 }4405 ],4406 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4407 "type": "string"4408 },4409 "remote": {
38 unmodified lines
4448 "minLength": 1,4449 "type": "string"4450 },4451 "project": {4452 "allOf": [4453 {4454 "not": {4455 "enum": [4456 "assets",4457 "auth",4458 "icons",4459 "people",4460 "releases",4461 "rpc",4462 "today"4463 ]4464 }4465 }4466 ],4467 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4468 "type": "string"4469 },4470 "requestId": {
414 unmodified lines
4885 }4886 ]4887 },4888 "project": {4889 "allOf": [4890 {4891 "not": {4892 "enum": [4893 "assets",4894 "auth",4895 "icons",4896 "people",4897 "releases",4898 "rpc",4899 "today"4900 ]4901 }4902 }4903 ],4904 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4905 "type": "string"4906 },4907 "requestId": {
23 unmodified lines
4931 "landing.payload": {4932 "additionalProperties": true,4933 "properties": {4934 "project": {4935 "allOf": [4936 {4937 "not": {4938 "enum": [4939 "assets",4940 "auth",4941 "icons",4942 "people",4943 "releases",4944 "rpc",4945 "today"4946 ]4947 }4948 }4949 ],4950 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4951 "type": "string"4952 },4953 "sha": {
97 unmodified lines
5051 "pattern": "^[0-9a-f]{40}$",5052 "type": "string"5053 },5054 "project": {5055 "allOf": [5056 {5057 "not": {5058 "enum": [5059 "assets",5060 "auth",5061 "icons",5062 "people",5063 "releases",5064 "rpc",5065 "today"5066 ]5067 }5068 }5069 ],5070 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5071 "type": "string"5072 },5073 "requestId": {
504 unmodified lines
5578 "pattern": "^[0-9a-f]{64}$",5579 "type": "string"5580 },5581 "project": {5582 "allOf": [5583 {5584 "not": {5585 "enum": [5586 "assets",5587 "auth",5588 "icons",5589 "people",5590 "releases",5591 "rpc",5592 "today"5593 ]5594 }5595 }5596 ],5597 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5598 "type": "string"5599 },5600 "stage": {
59 unmodified lines
5660 "ledger.payload": {5661 "additionalProperties": true,5662 "properties": {5663 "project": {5664 "allOf": [5665 {5666 "not": {5667 "enum": [5668 "assets",5669 "auth",5670 "icons",5671 "people",5672 "releases",5673 "rpc",5674 "today"5675 ]5676 }5677 }5678 ],5679 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5680 "type": "string"5681 }5682 },
442 unmodified lines
6125 "minLength": 1,6126 "type": "string"6127 },6128 "project": {6129 "allOf": [6130 {6131 "not": {6132 "enum": [6133 "assets",6134 "auth",6135 "icons",6136 "people",6137 "releases",6138 "rpc",6139 "today"6140 ]6141 }6142 }6143 ],6144 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6145 "type": "string"6146 }6147 },
12 unmodified lines
6160 "listAsks.payload": {6161 "additionalProperties": true,6162 "properties": {6163 "project": {6164 "allOf": [6165 {6166 "not": {6167 "enum": [6168 "assets",6169 "auth",6170 "icons",6171 "people",6172 "releases",6173 "rpc",6174 "today"6175 ]6176 }6177 }6178 ],6179 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6180 "type": "string"6181 }6182 },
115 unmodified lines
6298 ],6299 "type": "string"6300 },6301 "project": {6302 "allOf": [6303 {6304 "not": {6305 "enum": [6306 "assets",6307 "auth",6308 "icons",6309 "people",6310 "releases",6311 "rpc",6312 "today"6313 ]6314 }6315 }6316 ],6317 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6318 "type": "string"6319 }6320 },
99 unmodified lines
6420 ],6421 "type": "array"6422 },6423 "project": {6424 "allOf": [6425 {6426 "not": {6427 "enum": [6428 "assets",6429 "auth",6430 "icons",6431 "people",6432 "releases",6433 "rpc",6434 "today"6435 ]6436 }6437 }6438 ],6439 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6440 "type": "string"6441 }6442 },
256 unmodified lines
6699 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6700 "type": "string"6701 },6702 "project": {6703 "allOf": [6704 {6705 "not": {6706 "enum": [6707 "assets",6708 "auth",6709 "icons",6710 "people",6711 "releases",6712 "rpc",6713 "today"6714 ]6715 }6716 }6717 ],6718 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6719 "type": "string"6720 },6721 "reserve": {
134 unmodified lines
6856 ],6857 "type": "array"6858 },6859 "project": {6860 "allOf": [6861 {6862 "not": {6863 "enum": [6864 "assets",6865 "auth",6866 "icons",6867 "people",6868 "releases",6869 "rpc",6870 "today"6871 ]6872 }6873 }6874 ],6875 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6876 "type": "string"6877 },6878 "sealed": {
63 unmodified lines
6942 "openedAt": {6943 "type": "string"6944 },6945 "project": {6946 "allOf": [6947 {6948 "not": {6949 "enum": [6950 "assets",6951 "auth",6952 "icons",6953 "people",6954 "releases",6955 "rpc",6956 "today"6957 ]6958 }6959 }6960 ],6961 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6962 "type": "string"6963 },6964 "proposer": {
83 unmodified lines
7048 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7049 "type": "string"7050 },7051 "project": {7052 "allOf": [7053 {7054 "not": {7055 "enum": [7056 "assets",7057 "auth",7058 "icons",7059 "people",7060 "releases",7061 "rpc",7062 "today"7063 ]7064 }7065 }7066 ],7067 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7068 "type": "string"7069 }7070 },
44 unmodified lines
7115 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",7116 "type": "string"7117 },7118 "project": {7119 "allOf": [7120 {7121 "not": {7122 "enum": [7123 "assets",7124 "auth",7125 "icons",7126 "people",7127 "releases",7128 "rpc",7129 "today"7130 ]7131 }7132 }7133 ],7134 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7135 "type": "string"7136 },7137 "value": {
58 unmodified lines
7196 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7197 "type": "string"7198 },7199 "project": {7200 "allOf": [7201 {7202 "not": {7203 "enum": [7204 "assets",7205 "auth",7206 "icons",7207 "people",7208 "releases",7209 "rpc",7210 "today"7211 ]7212 }7213 }7214 ],7215 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7216 "type": "string"7217 }7218 },
255 unmodified lines
7474 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7475 "type": "string"7476 },7477 "project": {7478 "allOf": [7479 {7480 "not": {7481 "enum": [7482 "assets",7483 "auth",7484 "icons",7485 "people",7486 "releases",7487 "rpc",7488 "today"7489 ]7490 }7491 }7492 ],7493 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7494 "type": "string"7495 },7496 "reserve": {
81 unmodified lines
7578 "status.payload": {7579 "additionalProperties": true,7580 "properties": {7581 "project": {7582 "allOf": [7583 {7584 "not": {7585 "enum": [7586 "assets",7587 "auth",7588 "icons",7589 "people",7590 "releases",7591 "rpc",7592 "today"7593 ]7594 }7595 }7596 ],7597 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7598 "type": "string"7599 }7600 },
483 unmodified lines
8084 "openedAt": {8085 "type": "string"8086 },8087 "project": {8088 "allOf": [8089 {8090 "not": {8091 "enum": [8092 "assets",8093 "auth",8094 "icons",8095 "people",8096 "releases",8097 "rpc",8098 "today"8099 ]8100 }8101 }8102 ],8103 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8104 "type": "string"8105 },8106 "remote": {
108 unmodified lines
8215 "pattern": "^[0-9a-f]{40}$",8216 "type": "string"8217 },8218 "project": {8219 "allOf": [8220 {8221 "not": {8222 "enum": [8223 "assets",8224 "auth",8225 "icons",8226 "people",8227 "releases",8228 "rpc",8229 "today"8230 ]8231 }8232 }8233 ],8234 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8235 "type": "string"8236 },8237 "requestId": {
430 unmodified lines
8668 }8669 ]8670 },8671 "project": {8672 "allOf": [8673 {8674 "not": {8675 "enum": [8676 "assets",8677 "auth",8678 "icons",8679 "people",8680 "releases",8681 "rpc",8682 "today"8683 ]8684 }8685 }8686 ],8687 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8688 "type": "string"8689 },8690 "requestId": {
24 unmodified lines
8715 "today.payload": {8716 "additionalProperties": true,8717 "properties": {8718 "project": {8719 "allOf": [8720 {8721 "not": {8722 "enum": [8723 "assets",8724 "auth",8725 "icons",8726 "people",8727 "releases",8728 "rpc",8729 "today"8730 ]8731 }8732 }8733 ],8734 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8735 "type": "string"8736 }8737 },
117 unmodified lines
8855 "openedAt": {8856 "type": "string"8857 },8858 "project": {8859 "allOf": [8860 {8861 "not": {8862 "enum": [8863 "assets",8864 "auth",8865 "icons",8866 "people",8867 "releases",8868 "rpc",8869 "today"8870 ]8871 }8872 }8873 ],8874 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8875 "type": "string"8876 },8877 "subject": {
440 unmodified lines
9318 "pattern": "^[0-9a-f]{40}$",9319 "type": "string"9320 },9321 "project": {9322 "allOf": [9323 {9324 "not": {9325 "enum": [9326 "assets",9327 "auth",9328 "icons",9329 "people",9330 "releases",9331 "rpc",9332 "today"9333 ]9334 }9335 }9336 ],9337 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9338 "type": "string"9339 },9340 "requestId": {
504 unmodified lines
9845 "pattern": "^[0-9a-f]{64}$",9846 "type": "string"9847 },9848 "project": {9849 "allOf": [9850 {9851 "not": {9852 "enum": [9853 "assets",9854 "auth",9855 "icons",9856 "people",9857 "releases",9858 "rpc",9859 "today"9860 ]9861 }9862 }9863 ],9864 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9865 "type": "string"9866 },9867 "stage": {
94 unmodified lines
9962 "pattern": "^[0-9a-f]{40}$",9963 "type": "string"9964 },9965 "project": {9966 "allOf": [9967 {9968 "not": {9969 "enum": [9970 "assets",9971 "auth",9972 "icons",9973 "people",9974 "releases",9975 "rpc",9976 "today"9977 ]9978 }9979 }9980 ],9981 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9982 "type": "string"9983 }9984 },
506 unmodified lines
10491 "pattern": "^[0-9a-f]{64}$",10492 "type": "string"10493 },10494 "project": {10495 "allOf": [10496 {10497 "not": {10498 "enum": [10499 "assets",10500 "auth",10501 "icons",10502 "people",10503 "releases",10504 "rpc",10505 "today"10506 ]10507 }10508 }10509 ],10510 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10511 "type": "string"10512 },10513 "stage": {
62 unmodified lines
10576 "note": {10577 "type": "string"10578 },10579 "project": {10580 "allOf": [10581 {10582 "not": {10583 "enum": [10584 "assets",10585 "auth",10586 "icons",10587 "people",10588 "releases",10589 "rpc",10590 "today"10591 ]10592 }10593 }10594 ],10595 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10596 "type": "string"10597 },10598 "verdict": {
30 unmodified lines
10629 "watch.payload": {10630 "additionalProperties": true,10631 "properties": {10632 "project": {10633 "allOf": [10634 {10635 "not": {10636 "enum": [10637 "assets",10638 "auth",10639 "icons",10640 "people",10641 "releases",10642 "rpc",10643 "today"10644 ]10645 }10646 }10647 ],10648 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10649 "type": "string"10650 },10651 "since": {
768 unmodified lines
11420 "pattern": "^[0-9a-f]{40}$",11421 "type": "string"11422 },11423 "project": {11424 "allOf": [11425 {11426 "not": {11427 "enum": [11428 "assets",11429 "auth",11430 "icons",11431 "people",11432 "releases",11433 "rpc",11434 "today"11435 ]11436 }11437 }11438 ],11439 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11440 "type": "string"11441 },11442 "requestId": {
504 unmodified lines
11947 "pattern": "^[0-9a-f]{64}$",11948 "type": "string"11949 },11950 "project": {11951 "allOf": [11952 {11953 "not": {11954 "enum": [11955 "assets",11956 "auth",11957 "icons",11958 "people",11959 "releases",11960 "rpc",11961 "today"11962 ]11963 }11964 }11965 ],11966 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11967 "type": "string"11968 },11969 "stage": {
610 unmodified lines
modified:infra/smoke.ts+120 added-21 removed
1/**2 * smoke's probes: read-only requests to a live stage's platform, each of which3 * a misbehaving public surface fails. Every probe runs, whatever the others4 * did, so one run names every surface that broke; each one is timed, for the5 * benches (311).2 * smoke's probes: read-only requests to a live stage's platform and web, each3 * of which a misbehaving public surface fails. Every probe runs, whatever the4 * others did, so one run names every surface that broke; each one is timed,5 * for the benches (311).6 *7 * 1. `health`: `GET /health` answers `200 {ok: true, stage}`, and names the8 * stage smoke was pointed at, when it was told one;9 * 2. `oauth-metadata`: `GET /.well-known/oauth-protected-resource` answers
1 unmodified line
11 * 3. `mcp-needs-credential`: `POST /mcp` without a credential answers 401;12 * 4. `anonymous-unknown-project`: an anonymous `/rpc` `listAsks` for a project13 * that doesn't exist answers 200 with a typed `UnknownProject` refusal;14 * 5. `missing-repo-404`: git's `info/refs` for a repo that doesn't exist15 * answers 404.15 * answers 404;16 * 6. `web-front-page`: the web's `GET /` answers 200 with HTML;17 * 7. `web-llms-txt`: the web's `GET /llms.txt` answers 200 with Markdown,18 * which it builds from the platform's project list, so only a web that19 * reaches the platform through its service binding passes (W5 599).20 *21 * The web's two run when smoke knows where the web lives: bootstrap's22 * workers.dev record, or `--web-url`.23 *24 * A probe the platform answers with its own failure (a server error, or an25 * RPC defect) asks again for up to `settling`, as a fresh deploy gives26 * those for its first seconds; any other wrong answer fails it at once.27 *
19 unmodified lines
47 platformOrigin,48 repoRoot,49 stageOf,50 subdomainFile,51 webOrigin,52 WorkersDev,53} from "./stages.ts";54import type { Stage } from "./stages.ts";5548/** Every probe, in the order smoke runs them. */49export const probes = [56/** The platform's probes, in the order smoke runs them. */57export const platformProbes = [58 "health",59 "oauth-metadata",60 "mcp-needs-credential",61 "anonymous-unknown-project",62 "missing-repo-404",63] as const;6465/** The web's probes, run after the platform's when smoke has the web's origin. */66export const webProbes = ["web-front-page", "web-llms-txt"] as const;6768/** Every probe, in the order smoke runs them. */69export const probes = [...platformProbes, ...webProbes] as const;7071export const Probe = Schema.Literals(probes);7273export type Probe = typeof Probe.Type;74
53 unmodified lines
128}) {}129130/** The parts of a response a probe judges. */131interface Answer {132 readonly contentType: string;133 readonly status: number;134 readonly text: string;135}136
6 unmodified lines
143 const client = yield* HttpClient.HttpClient;144 const response = yield* client.execute(request);145 const text = yield* response.text;146132 return { status: response.status, text };147 return {148 contentType: response.headers["content-type"] ?? "",149 status: response.status,150 text,151 };152 }).pipe(153 Effect.catchTag("HttpClientError", ({ reason }) =>154 Effect.fail(155 new Missed({ reason: `${label} got no answer (${reason._tag})` })
179 unmodified lines
335 HttpClientRequest.get(`${origin}${route}?service=git-upload-pack`)336 ).pipe(Effect.flatMap(statusIs(label, 404)), Effect.asVoid);337};338339/** `answer`, when its content type is `wanted` (by its media type alone). */340const typeIs =341 (label: string, wanted: string, said: string) => (answer: Answer) =>342 answer.contentType.split(";")[0]?.trim() === wanted343 ? Effect.succeed(answer)344 : Effect.fail(345 new Missed({346 reason: `${label} answered ${answer.contentType || "no content type"}, not ${said}`,347 })348 );349350/** The web's front page renders: a page a browser shows, not an error's JSON. */351const webFrontPage = (web: string) => {352 const label = "GET / on the web";353354 return send(label, HttpClientRequest.get(`${web}/`)).pipe(355 Effect.flatMap(statusIs(label, 200)),356 Effect.flatMap(typeIs(label, "text/html", "HTML")),357 Effect.asVoid358 );359};360361/**362 * The web's `/llms.txt`: Markdown that opens with its title. The web answers363 * 503 when the platform does not, so a 200 is the service binding working.364 */365const webLlmsTxt = (web: string) => {366 const label = "GET /llms.txt on the web";367368 return send(label, HttpClientRequest.get(`${web}/llms.txt`)).pipe(369 Effect.flatMap(statusIs(label, 200)),370 Effect.flatMap(typeIs(label, "text/markdown", "Markdown")),371 Effect.flatMap(({ text }) =>372 text.startsWith("# ")373 ? Effect.void374 : Effect.fail(375 new Missed({ reason: `${label} answered 200 without a title` })376 )377 )378 );379};380381/**382 * One probe's run: how long it took, and whether it held. A transient miss383 * is asked again, every `ASK_AGAIN`, for `settling` at most; the probe fails384 * with its last miss.385 */
19 unmodified lines
405 }))406 );407408/**348 * Runs every probe against the platform at `origin`; with `stage`, `/health`349 * must name it. `settling` bounds how long a probe asks again while the350 * platform answers with its own failure (30 s unless given).409 * Runs every probe against the platform at `origin`, and with `web` the410 * web's probes against that origin; with `stage`, `/health` must name it.411 * `settling` bounds how long a probe asks again while a Worker answers with412 * its own failure (30 s unless given).413 */414export const smoke = (415 origin: string,354 options: { readonly stage?: Stage; readonly settling?: Duration.Input } = {}416 options: {417 readonly stage?: Stage;418 readonly settling?: Duration.Input;419 readonly web?: string;420 } = {}421): Effect.Effect<SmokeReport, SmokeFailed, HttpClient.HttpClient> =>422 Effect.gen(function* () {423 const settling = options.settling ?? SETTLING;424
8 unmodified lines
433 ["oauth-metadata", oauthMetadata(origin)],434 ["mcp-needs-credential", mcpNeedsCredential(origin)],435 ["anonymous-unknown-project", anonymousUnknownProject(origin)],436 ["missing-repo-404", missingRepo(origin)],437 ...(options.web === undefined438 ? []439 : ([440 ["web-front-page", webFrontPage(options.web)],441 ["web-llms-txt", webLlmsTxt(options.web)],442 ] as const)),443 ] as const,444 ([probe, run]) => timed(probe, run, settling)445 );446
34 unmodified lines
481 return `no --url, and ${this.file} doesn't record the account's workers.dev subdomain: run bun run bootstrap -- --stage ${this.stage} first`;482 }483}484413/** Where `stage`'s platform lives: `--url`, or bootstrap's workers.dev record. */414const originOf = (argv: readonly string[], stage: Stage) =>485/** Where a stage's platform lives, and its web when smoke can know it. */486interface Origins {487 readonly platform: string;488 readonly web: Option.Option<string>;489}490491const trimmed = (origin: string) => origin.replace(/\/+$/u, "");492493/**494 * Where `stage`'s platform and web live: `--url` (and `--web-url`), or495 * bootstrap's workers.dev record. A platform given by `--url` has no web496 * unless `--web-url` names it.497 */498const originsOf = (argv: readonly string[], stage: Stage) =>499 Effect.gen(function* () {500 const given = flagValue(argv, "--url");501 const web = Option.map(flagValue(argv, "--web-url"), trimmed);502503 if (Option.isSome(given)) {419 return given.value.replace(/\/+$/u, "");504 return { platform: trimmed(given.value), web } satisfies Origins;505 }506507 const fs = yield* FileSystem.FileSystem;508 const path = yield* Path.Path;
5 unmodified lines
514 Effect.flatMap(decodeWorkersDev),515 Effect.mapError(() => unknown)516 );517433 return platformOrigin(stage, subdomain);518 return {519 platform: platformOrigin(stage, subdomain),520 web: Option.orElse(web, () => Option.some(webOrigin(stage, subdomain))),521 } satisfies Origins;522 });523524/**437 * `bun scripts/smoke.ts --stage <s> [--url <origin>]`: smoke-tests the438 * stage, printing each probe's time, or each failure and why.525 * `bun scripts/smoke.ts --stage <s> [--url <origin>] [--web-url <origin>]`:526 * smoke-tests the stage, printing each probe's time, or each failure and why.527 */528export const main = (argv: readonly string[]) =>529 Effect.gen(function* () {530 const stage = yield* stageOf(argv);443 const origin = yield* originOf(argv, stage);531 const origins = yield* originsOf(argv, stage);532445 yield* Console.log(`smoke ${stage}: ${origin}`);533 yield* Console.log(534 `smoke ${stage}: ${origins.platform}${Option.match(origins.web, {535 onNone: () => "",536 onSome: (web) => ` and ${web}`,537 })}`538 );539447 const report = yield* smoke(origin, { stage }).pipe(540 const report = yield* smoke(origins.platform, {541 stage,542 ...Option.match(origins.web, {543 onNone: () => ({}),544 onSome: (web) => ({ web }),545 }),546 }).pipe(547 Effect.tapError(({ failures }) =>548 Effect.forEach(549 failures,550 ({ probe, reason }) =>
13 unmodified lines
modified:infra/stages.md+4 added-2 removed
92 unmodified lines
93bun run smoke -- --stage dev-oscabriel94bun run smoke -- --stage dev-oscabriel --url http://localhost:878795```9697The second form points smoke at another origin, such as `wrangler dev --env dev-oscabriel` in `apps/platform`. Plain `wrangler dev` serves stage `local`, which no `--stage` names, so its `health` probe fails.97The second form points smoke at another origin, such as `wrangler dev --env dev-oscabriel` in `apps/platform`. Plain `wrangler dev` serves stage `local`, which no `--stage` names, so its `health` probe fails. Smoke finds the stage's web at `https://web-<s>.<subdomain>.workers.dev`; with `--url` it probes a web only when `--web-url <origin>` names one.9899Smoke only reads. Every probe runs even when others fail, and the output names each probe that failed and why. It also prints how long each probe took. A probe the platform answers with its own failure (a 5xx, or an RPC defect) asks again every second for up to 30 s, since a fresh deploy gives those for its first seconds (seen on `dev-oscabriel`'s first deploy); any other wrong answer fails the probe at once.99Smoke only reads, from the platform and then the web. Every probe runs even when others fail, and the output names each probe that failed and why. It also prints how long each probe took. A probe the platform answers with its own failure (a 5xx, or an RPC defect) asks again every second for up to 30 s, since a fresh deploy gives those for its first seconds (seen on `dev-oscabriel`'s first deploy); any other wrong answer fails the probe at once.100101| Probe | Passes when |102| --- | --- |103| `health` | `GET /health` answers `200 {"ok":true,"stage":"<s>"}`, naming the stage asked for |104| `oauth-metadata` | `GET /.well-known/oauth-protected-resource` answers 200 with JSON that names its `resource` |105| `mcp-needs-credential` | `POST /mcp` without a credential answers 401 |106| `anonymous-unknown-project` | an anonymous `/rpc` `listAsks` for `no-such-project` answers with a typed `UnknownProject` |107| `missing-repo-404` | `GET /no-such-project.git/info/refs?service=git-upload-pack` answers 404 |108| `web-front-page` | the web's `GET /` answers 200 with HTML |109| `web-llms-txt` | the web's `GET /llms.txt` answers 200 with Markdown that opens with its title; the web builds it from the platform's project list, so it passes only when the web reaches the platform through its service binding |110111## Tear down a stage112113None of this is automated: the scripts never delete, and the hook policy refuses `wrangler delete` and cf's `delete`. Tear down only what this build created, which means only names from the table above, and never `witness`. A person runs these in their own terminal. Wrangler's commands run from the app's folder with that app's `node_modules/.bin/wrangler`.
7 unmodified lines
modified:infra/stages.ts+4 added
148 unmodified lines
149150/** The platform's public origin at `stage`, on the account's workers.dev. */151export const platformOrigin = (stage: Stage, subdomain: string) =>152 `https://${resources(stage).platform}.${subdomain}.workers.dev`;153154/** The web's public origin at `stage`, on the account's workers.dev. */155export const webOrigin = (stage: Stage, subdomain: string) =>156 `https://${resources(stage).web}.${subdomain}.workers.dev`;
modified:packages/config/test/smoke.test.ts+106 added-4 removed
10 unmodified lines
11import { NoStage, UnknownStage } from "../../../infra/stages.ts";12import {13 main,14 NoOrigin,15 platformProbes,16 probes,17 smoke,18 SmokeFailed,19 webProbes,20} from "../../../scripts/smoke.ts";2122/** What the fake platform answers one request with. */23interface Reply {24 readonly status: number;25 readonly body?: string;26 readonly contentType?: string;27}2829/** A request as the fake platform sees it. */30interface Seen {
98 unmodified lines
129130 return reply.body === undefined131 ? HttpServerResponse.empty({ status: reply.status })132 : HttpServerResponse.text(reply.body, {130 contentType: "application/json",133 contentType: reply.contentType ?? "application/json",134 status: reply.status,135 });136 });137
16 unmodified lines
154155 expect(report.origin).toBe(origin);156 expect(report.stage).toBe("dev-oscabriel");157 expect(report.probes.map(({ probe }) => probe)).toStrictEqual([155 ...probes,158 ...platformProbes,159 ]);160 expect(161 report.probes.every(({ elapsedMs }) => elapsedMs >= 0)162 ).toBeTruthy();
36 unmodified lines
199200 expect({201 asked,202 probes: report.probes.map(({ probe }) => probe),200 }).toStrictEqual({ asked: { health: 3, rpc: 2 }, probes: [...probes] });203 }).toStrictEqual({204 asked: { health: 3, rpc: 2 },205 probes: [...platformProbes],206 });207 }).pipe(Effect.scoped, Effect.provide(FetchHttpClient.layer))208 );209210 it.live("names each probe that fails, and why", () =>
34 unmodified lines
245 expect(246 Result.isFailure(result)247 ? result.failure.failures.map(({ probe }) => probe)248 : []243 ).toStrictEqual([...probes]);249 ).toStrictEqual([...platformProbes]);250 }).pipe(Effect.provide(FetchHttpClient.layer))251 );252});253254/**255 * The web as smoke expects to find it (W5 599): its front page renders, and256 * its `/llms.txt` answers with the Markdown it builds from the platform's257 * project list, which only a web that reaches the platform can.258 */259const healthyWeb = ({ method, path }: Seen): Reply => {260 if (method === "GET" && path === "/") {261 return {262 body: '<!DOCTYPE html><html lang="en"><head></head><body></body></html>',263 contentType: "text/html; charset=utf-8",264 status: 200,265 };266 }267268 if (method === "GET" && path === "/llms.txt") {269 return {270 body: "# Platform\n\n> A Git platform.\n",271 contentType: "text/markdown; charset=utf-8",272 status: 200,273 };274 }275276 return { status: 404 };277};278279describe("smoke against a stage's web", () => {280 it.live(281 "passes the front page and /llms.txt from the web, after every platform probe",282 () =>283 Effect.gen(function* () {284 const origin = yield* fakePlatform(healthy);285 const web = yield* fakePlatform(healthyWeb);286 const report = yield* smoke(origin, { web });287288 expect(report.probes.map(({ probe }) => probe)).toStrictEqual([289 ...probes,290 ]);291 expect(webProbes).toStrictEqual(["web-front-page", "web-llms-txt"]);292 }).pipe(Effect.scoped, Effect.provide(FetchHttpClient.layer))293 );294295 it.live(296 "fails the web's probes when its front page is not HTML and its /llms.txt cannot reach the platform",297 () =>298 Effect.gen(function* () {299 const origin = yield* fakePlatform(healthy);300301 const web = yield* fakePlatform((seen) =>302 seen.path === "/llms.txt"303 ? {304 body: "# Unavailable\n\nThe platform did not answer.\n",305 contentType: "text/markdown; charset=utf-8",306 status: 503,307 }308 : { body: "{}", contentType: "application/json", status: 200 }309 );310311 const result = yield* Effect.result(312 smoke(origin, { settling: "1 second", web })313 );314315 expect(316 Result.isFailure(result) ? result.failure.failures : []317 ).toStrictEqual([318 {319 probe: "web-front-page",320 reason: "GET / on the web answered application/json, not HTML",321 },322 {323 probe: "web-llms-txt",324 reason: "GET /llms.txt on the web answered 503, not 200",325 },326 ]);327 }).pipe(Effect.scoped, Effect.provide(FetchHttpClient.layer))328 );329});330331describe("smoke's own checks", () => {332 it.live("fails health when the platform serves another stage", () =>333 Effect.gen(function* () {334 const origin = yield* fakePlatform(healthy);
83 unmodified lines
418 expect(failed.message).toBe(`health failed at ${origin}`);419 }).pipe(Effect.scoped, Effect.provide(NodeServices.layer))420 );421422 it.live("probes the web at --web-url, and only there, beside --url", () =>423 Effect.gen(function* () {424 const origin = yield* fakePlatform(healthy);425 const web = yield* fakePlatform(() => ({ status: 404 }));426427 yield* main(["--stage", "dev-oscabriel", "--url", origin]);428429 const failed = yield* Effect.flip(430 main(["--stage", "dev-oscabriel", "--url", origin, "--web-url", web])431 );432433 expect(434 Schema.is(SmokeFailed)(failed)435 ? failed.failures.map(({ probe }) => probe)436 : []437 ).toStrictEqual([...webProbes]);438 }).pipe(Effect.scoped, Effect.provide(NodeServices.layer))439 );440441 it("says to bootstrap first when neither --url nor bootstrap's record names the origin", () => {442 const failed = new NoOrigin({443 file: "infra/workers-dev.json",444 stage: "demo",
7 unmodified lines
modified:packages/project/src/projection/memory.ts+24 added-17 removed
1/**2 * `Projection` in memory, for tests: it keeps every row it was given, once3 * per row id, in the order it first took them, and reads them back as the4 * events they carry.2 * `Projection` in memory, for tests and the platform's local composition: it3 * keeps every event it was given once per `(project, event.seq)`, as the port4 * asks, in the order it first took them, and reads them back. Not once per5 * row id: every project's outbox names its rows `projected:<seq>`, so two6 * projects' rows share ids (502 found burrow's events dropped that way).7 */8import { Context, Effect, Layer, Ref, Schema } from "effect";98import type { OutboxRow } from "../project-store/rows.ts";10import { Projection, ProjectedEvent } from "../projection.ts";1112const decodeProjected = Schema.decodeUnknownEffect(ProjectedEvent);13
6 unmodified lines
20/** A fresh, empty projection each time the layer is built, and its reading. */21export const ProjectionMemory: Layer.Layer<Projection | ProjectedRows> =22 Layer.effectContext(23 Effect.gen(function* () {23 const taken = yield* Ref.make<ReadonlyMap<string, OutboxRow>>(new Map());24 const taken = yield* Ref.make<ReadonlyMap<string, ProjectedEvent>>(25 new Map()26 );2728 return Context.make(Projection, {29 apply: (rows) =>30 Effect.flatMap(31 Effect.forEach(rows, (row) =>32 Effect.orDie(decodeProjected(row.body))33 ),34 (projected) =>27 Ref.update(taken, (kept) => {28 const next = new Map(kept);35 Ref.update(taken, (kept) => {36 const next = new Map(kept);3730 for (const row of rows) {31 next.set(row.id, next.get(row.id) ?? row);32 }38 for (const one of projected) {39 const key = `${one.project}:${one.event.seq}`;4041 next.set(key, next.get(key) ?? one);42 }4334 return next;35 }),44 return next;45 })46 ),47 }).pipe(48 Context.add(ProjectedRows, {38 events: Effect.flatMap(Ref.get(taken), (kept) =>39 Effect.forEach([...kept.values()], (row) =>40 Effect.orDie(decodeProjected(row.body))41 )42 ),49 events: Effect.map(Ref.get(taken), (kept) => [...kept.values()]),50 })51 );52 })53 );
added:packages/project/test/projection-memory.test.ts+58 added
1/**2 * `ProjectionMemory`, the read models' feed in tests and in the platform's3 * local composition: it keeps each project's events once by4 * `(project, event.seq)`, as the `Projection` port asks, even though every5 * project's outbox names its rows by the event's number alone6 * (`projected:<seq>`). Found by 502's dev world: burrow's events vanished7 * from a projection datekit's had reached first.8 */9import { describe, expect, it } from "@effect/vitest";10import { ProjectEvent } from "@repo/protocol/domain/event";11import { AskId, ProjectName } from "@repo/protocol/ids";12import { DateTime, Effect } from "effect";1314import { projectedRows } from "../src/outbox.ts";15import { Projection } from "../src/projection.ts";16import { ProjectedRows, ProjectionMemory } from "../src/projection/memory.ts";1718const now = DateTime.makeUnsafe("2026-10-07T09:00:00Z");1920const datekit = ProjectName.make("datekit");2122const burrow = ProjectName.make("burrow");2324const released = (ask: string, seq: number) =>25 ProjectEvent.cases.Released.make({ ask: AskId.make(ask), at: now, seq });2627describe("the memory projection", () => {28 it.effect("keeps two projects' events that share a number, each once", () =>29 Effect.gen(function* () {30 const projection = yield* Projection;3132 const datekitRows = yield* projectedRows(33 datekit,34 [released("parse-iso-week", 1)],35 now36 );3738 const burrowRows = yield* projectedRows(39 burrow,40 [released("migrate-legacy-fetch", 1)],41 now42 );4344 yield* projection.apply(datekitRows);45 yield* projection.apply(burrowRows);46 yield* projection.apply([...datekitRows, ...burrowRows]);4748 const kept = yield* (yield* ProjectedRows).events;4950 expect(51 kept.map(({ event, project }) => [project, event.seq])52 ).toStrictEqual([53 [datekit, 1],54 [burrow, 1],55 ]);56 }).pipe(Effect.provide(ProjectionMemory))57 );58});
modified:packages/protocol/src/ids.ts+36 added-2 removed
222 unmodified lines
223224export type RepoPath = typeof RepoPath.Type;225226/**227 * Words a project may not be named: the web serves its own pages and files228 * at these first path segments (`/today`, `/people/<handle>`, `/auth/…`,229 * `/rpc`, `/releases/…`, `/icons/…` and the client build's `/assets/…`), so a230 * project so named would be unreachable at `<web>/<project>`. A name with a231 * dot (`llms.txt`, `install.sh`, `.well-known`) is no project's name anyway.232 * `apps/web/test/routes.test.ts` holds this list to the web's routes.233 */234export const reservedProjectNames = [235 "assets",236 "auth",237 "icons",238 "people",239 "releases",240 "rpc",241 "today",242] as const;243244/**245 * A project's name. Lowercase words joined by single dashes, like an ask's,228 * so a command that names it is safe to paste into a shell.246 * so a command that names it is safe to paste into a shell; none of247 * `reservedProjectNames`, which the web's own pages take.248 */249export const ProjectName = Schema.String.pipe(231 Schema.check(Schema.isPattern(Words)),250 Schema.check(251 Schema.isPattern(Words),252 Schema.makeFilter(253 (name: string) =>254 reservedProjectNames.some((reserved) => reserved === name)255 ? `${name} is a path the web serves its own pages at, so no project takes it`256 : true,257 {258 expected: `a project name other than ${reservedProjectNames.join(" or ")}`,259 toCode: () => ({260 runtime: `Schema.makeFilter((name: string) => !${JSON.stringify(reservedProjectNames)}.includes(name))`,261 }),262 toJsonSchema: () => ({ not: { enum: [...reservedProjectNames] } }),263 }264 )265 ),266 Schema.brand("ProjectName")267);268269export type ProjectName = typeof ProjectName.Type;
18 unmodified lines
modified:packages/protocol/test/domain.test.ts+11 added
247 unmodified lines
248 expect(refuses(ProjectName, name)).toBeFalsy();249 }250 );251252 // The web serves its own pages and files at these first path segments, so253 // a project so named would be unreachable at `<web>/<project>` (503 #8,254 // 505 #6). An ask may still take them: an ask's page is under its project.255 it.each(["assets", "auth", "icons", "people", "releases", "rpc", "today"])(256 "a project may not be named %j, a path the web takes for itself",257 (name) => {258 expect(refuses(ProjectName, name)).toBeTruthy();259 expect(refuses(AskId, name)).toBeFalsy();260 }261 );262263 const tree = "5555555555555555555555555555555555555555";264265 const patchId = "6".repeat(64);266
38 unmodified lines
modified:scripts/smoke.ts+17 added-6 removed
1/**2 * smoke: `bun scripts/smoke.ts --stage dev-<user>|demo [--url <origin>]`.3 * Read-only probes against a live stage's platform; it fails loudly, naming2 * smoke: `bun scripts/smoke.ts --stage dev-<user>|demo [--url <origin>]3 * [--web-url <origin>]`. Read-only probes against a live stage's platform and4 * web; it fails loudly, naming5 * every probe that broke, and prints how long each took (the benches' input).6 * `infra/deploy.ts` runs it last (AGENTS.md principle 11).7 *7 * The stage's origin is `https://platform-<s>.<subdomain>.workers.dev`, with8 * the subdomain `bun run bootstrap` records in `infra/workers-dev.json`;9 * `--url` points it anywhere else. The probes live in `infra/smoke.ts`.8 * The stage's origins are `https://platform-<s>.<subdomain>.workers.dev` and9 * `https://web-<s>.<subdomain>.workers.dev`, with the subdomain `bun run10 * bootstrap` records in `infra/workers-dev.json`; `--url` points it at another11 * platform (the web's probes then run only with `--web-url`). The probes live12 * in `infra/smoke.ts`.13 */14import { BunRuntime, BunServices } from "@effect/platform-bun";15import { Effect, Stdio } from "effect";1617import { main } from "../infra/smoke.ts";1816export { main, NoOrigin, probes, smoke, SmokeFailed } from "../infra/smoke.ts";19export {20 main,21 NoOrigin,22 platformProbes,23 probes,24 smoke,25 SmokeFailed,26 webProbes,27} from "../infra/smoke.ts";2829export type { SmokeReport } from "../infra/smoke.ts";3031if (import.meta.main) {
8 unmodified lines
modified:AGENTS.md+3 added-3 removed
23 unmodified lines
24| 2 | **Parse at the boundary, trust inside.** Decode every external input (HTTP, git, DO RPC, WebSocket, rule facts, env) with Effect Schema; inside, use branded types (`AskId`, `LandedSha`, `PatchId`). Decode the Worker `env` once, in one Layer. | The Effect diagnostics at error in `tsconfig.base.json`; `anti-slop/no-unknown-parameters`, `anti-slop/no-widen-then-assert` and `anti-slop/require-safety-comment-for-type-assertion`; the generated `apps/platform/worker-configuration.d.ts` types the env, `apps/platform/src/platform.ts` decodes it once, and `apps/platform/test/platform.test.ts` proves a bad env fails at start; `apps/platform/test/bindings.test.ts`: the decoded bindings, vars and secrets equal each wrangler.jsonc block's, and each port's factory takes its binding as the generated Env types it, without a cast |25| 3 | **Refusals are a closed `Schema.TaggedError` union and a public contract.** Handle them with `Match.exhaustive` or `catchTags`. Each carries a `retryable` and a `next` command fixed per tag, an optional `at`, and no `message` field. A `_tag` is renamed only with an alias. `protocol/render` is the one renderer for git `remote:`, CLI and MCP text. Stage-1 refusals accumulate. | `packages/protocol/test/refusal.test.ts` (the tag list is closed; each refusal reaches MCP as JSON with retryable and next); `packages/protocol/test/render.test.ts`; `packages/protocol/test/mcp.test.ts` (a refusal from tools/call keeps its tag); `gen:check` on `docs/reference/refusals.md`; `anti-slop-effect/prefer-effect-match` and `anti-slop-effect/no-manual-tag-comparison`; `packages/gate/test/shape.test.ts` (one push hears every stage-1 refusal at once, in the union's order); `apps/platform/test/mcp.test.ts` (one tools/call per refusing MCP contract comes back as its exact refusal, and a new refusing contract fails typecheck until it has a case); `apps/cli/test/policy.test.ts` (the CLI prints a refusal once, and under --json stdout holds one envelope); `apps/cli/test/local/check.test.ts` (the CLI's local check gives the gateway's stage-1 refusals for the same commit) |26| 4 | **One schema, many surfaces.** Change `packages/protocol`, then run `bun run gen`. `skills/`, `plugins/` and `docs/reference/` are generated. Projections live only in `apps/*/src/surfaces.ts`. | `gen:check` (`scripts/gen.ts`, tested by `packages/config/test/gen.test.ts`) fails on a stale, missing or hand-written generated file; `apps/cli/test/commands-doc.test.ts` holds the generated command list to the real CLI's commands, flags and positionals; per-package `allowedUnstableApis` with `unstableApiUsage` at error keep Rpc and Tool construction in protocol and the apps |27| 5 | **The name lives only in `packages/brand`.** Internal packages use `@repo/*`. DO classes, Workflows, queues and databases carry job names. | `brand:check` (`scripts/brand.ts`, tested by `packages/brand/test/leaks.test.ts`) in `verify`. No fence yet: `scripts/acceptance.ts` renames the brand at random on a cold clone and runs `verify` (W7 714) |28| 6 | **Pure core, thin hosts.** Only `@repo/artifacts` calls Artifacts. Each beta dependency sits behind one job-named port with a `/memory` adapter in the owning package. Apps import packages only. Worker code stays free of `node:child_process`, `@effect/platform-bun` and OpenTUI. `rules` and `gate` run in both Workers and Bun. `alchemy/*` stays in `infra/`. | `imports:check` (`scripts/imports.ts`, tested by `packages/config/test/imports.test.ts`): the package matrix, apps never importing apps, host-free Worker code, adapters only through their subpaths (the CLI reaches rules, artifacts and visibility only through their host adapters), alchemy only in infra; scoped `allowedUnstableApis`; `fence/no-module-level-mutable-state`; `packages/artifacts/test/repo-host-contract.ts` (one RepoHost contract that the memory, local, binding and REST adapters each pass); `apps/platform/src/ports.ts` composes every port from the decoded env in one place, each beta dependency behind its port with a memory adapter beside it, and `apps/platform/test/bindings.test.ts` and `apps/platform/test/worker-init.test.ts` fail when a binding is lost or the Worker cannot start on its real adapters |29| 7 | **Deny by default for visibility.** Land the answer's tree, never the composed tree. Nothing from a layer enters a public tree. Snapshot before held-back files are written. Public-serving Workers have no private-namespace binding. Public commits, trailers, notes and errors name public paths only. | `PrivatePathInPublicTree` in the closed refusal union, raised by the gate's stage 1 for a layer's path in an answer (`packages/gate/test/shape.test.ts`); `apps/platform/test/bindings.test.ts` (the platform's Env has no private-namespace binding until W6 adds one deliberately); `apps/sandbox/test/checker.test.ts` (the Checker takes no snapshot once the held-back slot is reached). No fence yet: the gateway's layer guard (W6 606); the web Worker's Env type test, no private namespace (W5 501 `apps/web/test/env.test-d.ts`) |28| 6 | **Pure core, thin hosts.** Only `@repo/artifacts` calls Artifacts. Each beta dependency sits behind one job-named port with a `/memory` adapter in the owning package. Apps import packages only. Worker code stays free of `node:child_process`, `@effect/platform-bun` and OpenTUI. `rules` and `gate` run in both Workers and Bun. `alchemy/*` stays in `infra/`. | `imports:check` (`scripts/imports.ts`, tested by `packages/config/test/imports.test.ts`): the package matrix, apps never importing apps, host-free Worker code, adapters only through their subpaths (the CLI reaches rules, artifacts and visibility only through their host adapters), alchemy only in infra; scoped `allowedUnstableApis`; `fence/no-module-level-mutable-state`; `packages/artifacts/test/repo-host-contract.ts` (one RepoHost contract that the memory, local, binding and REST adapters each pass); `apps/platform/src/ports.ts` composes every port from the decoded env in one place, each beta dependency behind its port with a memory adapter beside it, and `apps/platform/test/bindings.test.ts` and `apps/platform/test/worker-init.test.ts` fail when a binding is lost or the Worker cannot start on its real adapters; `apps/web/test/production-bundle.test.ts` builds the web for production and fails on any dev-world module or string in it |29| 7 | **Deny by default for visibility.** Land the answer's tree, never the composed tree. Nothing from a layer enters a public tree. Snapshot before held-back files are written. Public-serving Workers have no private-namespace binding. Public commits, trailers, notes and errors name public paths only. | `PrivatePathInPublicTree` in the closed refusal union, raised by the gate's stage 1 for a layer's path in an answer (`packages/gate/test/shape.test.ts`); `apps/platform/test/bindings.test.ts` (the platform's Env has no private-namespace binding until W6 adds one deliberately); `apps/sandbox/test/checker.test.ts` (the Checker takes no snapshot once the held-back slot is reached); `apps/web/test/env.test-d.ts` (the web Worker's Env has no private-namespace binding, and no Artifacts binding at all). No fence yet: the gateway's layer guard (W6 606) |30| 8 | **Deterministic and idempotent.** Rule evaluation sees frozen time and randomness and only injected facts. Re-running an operation converges. Check results are keyed by (tree SHA, check version), push events deduped by (repo, sha), and land requests carry a `requestId`. | `globalDate`, `globalRandom`, `globalTimers` and `cryptoRandomUUID` at error, with their in-Effect twins; `packages/rules/test/replay.test.ts` (equal facts give equal policies, with the clock and randomness frozen); `packages/project/test/project-store.contract.ts` (a replayed push event or request writes nothing twice); `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts` (any command delivered twice converges); `apps/platform/test/workflows/answer.test.ts` (the Answer Workflow run twice over one step record, or replayed from the engine's, lands once); `apps/platform/test/workflows/on-push.test.ts` (one push event, replayed or delivered twice, opens one decision); `apps/platform/test/core-loop.test.ts` (a replayed request id returns the first receipt and lands nothing). No fence yet: one push deduped by (repo, sha) across the gateway's record and OnPush's, which today dedupe by their own event ids (W3 313 #2) |31| 9 | **Effect v4 only.** Read `node_modules/effect/src`, or `.agent_sources/effect` (see Commands), as API truth. Off limits: `effect/unstable/*`, v3 `@effect/platform` and `@effect/cli`, and `effect/workflow` or `effect/cluster` on Workers. | `outdatedApi`; `no-restricted-imports`; `fence/no-manual-effect-runtime-in-tests` |32| 10 | **Escapes need a reason and only shrink.** Every `oxlint-disable`, `@effect-diagnostics` or `@ts-expect-error` carries a reason after `--` and is counted. The count rises only with sign-off. | `debt` (`scripts/debt.ts` over `oxlint.debt.config.ts`, tested by `packages/config/test/debt.test.ts`) against `debt.baseline.json` in `verify`; `check` fails on an unused directive |33| 11 | **Hooks are early feedback; `bun run verify` and CI are the authority.** Deploy only to an explicit stage, after `verify`, with smoke after. A red gate is fixed, never deployed around. | `scripts/hooks/vcs-policy.ts`, wired into Claude Code (`.claude/settings.json`), Cursor (`.cursor/hooks.json`) and pi (`.pi/extensions/vcs-policy/`), refusing every bypass variant in `packages/config/test/vcs-policy.test.ts`; `verify`; `infra/deploy.ts` refuses without a known stage and spawns nothing, runs `verify` first and `scripts/smoke.ts` after (`packages/config/test/deploy.test.ts`, `packages/config/test/smoke.test.ts`). No fence yet: `scripts/acceptance.ts` runs `verify` on a cold install in place of CI (W7 714) |34| 12 | **Lifecycles are pure transitions.** `transition(state, command, now)`. Per DO call: hydrate, transition, persist, settle. Deadlines run on DO alarms. Call them lifecycles. | `globalTimers` and `globalTimersInEffect` refuse JavaScript timers outside and inside Effect; `fence/no-effect-sleep-in-project` refuses Effect.sleep and Effect.delay in the project package's source; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts`, model tests over effect/Arbitrary histories, each seen catching its planted bug; `apps/platform/test/project-do.test.ts` (the Project Durable Object hydrates, transitions, persists and settles per call, has only call and alarm as methods, and sets its alarm to the next deadline) |34| 12 | **Lifecycles are pure transitions.** `transition(state, command, now)`. Per DO call: hydrate, transition, persist, settle. Deadlines run on DO alarms. Call them lifecycles. | `globalTimers` and `globalTimersInEffect` refuse JavaScript timers outside and inside Effect; `fence/no-effect-sleep-in-project` refuses Effect.sleep and Effect.delay in the project package's source; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts`, model tests over effect/Arbitrary histories, each seen catching its planted bug; `apps/platform/test/project-do.test.ts` (the Project Durable Object hydrates, transitions, persists and settles per call, has only call and alarm as methods beside the hibernation API its watchers use, and sets its alarm to the next deadline) |3536## Fence3738`bun run verify` is the gate (see Commands). Run it before you stop. When a hook or check fails, fix the cause. Loosening, skipping or disabling a check needs the user's sign-off.
115 unmodified lines