Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pm-stack/book/concepts/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Four applications the stack did not write provide its boards, tables, planning s

## Edge Workers and the platform registry

`pm-stack/platform/` is not a service. It is the registry: `workers.json` lists 22 Workers, and `workers.test.ts` holds that list to the repository's wrangler files. The platform README's count of eighteen is stale (D6). The console's Platform screen is drawn from this file. Four of the 22 belong to this stack's own operation:
`pm-stack/platform/` is not a service. It is the registry: `workers.json` lists 23 Workers, and `workers.test.ts` holds that list to the repository's wrangler files. The platform README now states the same registry figures (twenty-three listed, nineteen in service; its earlier count of eighteen was stale, D6, corrected 2026-11-30). The console's Platform screen is drawn from this file. Four of the 23 belong to this stack's own operation:

| Worker | State in `workers.json` | Job |
| -------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -37,7 +37,7 @@ Four applications the stack did not write provide its boards, tables, planning s
| `voice-line` | In service | Push-to-talk over a WebSocket in a Durable Object; Workers AI speech-to-text and text-to-speech; answers are template-built from intent and a Turso queue snapshot, with no LLM |
| `pm-notify` (notify relay) | Not deployed, address null | The dead-man's switch design: heartbeat in, one silence push out. Step 1 only in code; the event-mirror and edge answer-intake routes are not routed (D5) |

The other 18 Workers in the registry belong to the wider estate and are covered by their own books; the registry is the shared list, not a claim that this stack operates them.
The other 19 Workers in the registry belong to the wider estate and are covered by their own books; the registry is the shared list, not a claim that this stack operates them.

## Execution

Expand Down
2 changes: 1 addition & 1 deletion pm-stack/book/development/building-and-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Both follow the aggregator's shape: `bun install --frozen-lockfile` inside the d

Each Worker directory carries its own `package.json`, `tsconfig.json`, and `wrangler.toml`, and the surveyed Workers carry their own test directories: `pm-stack/decision-events-worker/test/`, `pm-stack/notify-relay/test/`, `pm-stack/voice-line-worker/test/`. The console edge Worker is the fourth: its tests sit in `pm-stack/console/test/` (the edge and direct tests). The exact per-Worker test command beyond the console edge's is UNVERIFIED in the sources this chapter grounds on; read the Worker's own `package.json` before running it.

One registry test stands apart. `pm-stack/platform/workers.test.ts` holds `pm-stack/platform/workers.json` to the repository's wrangler files: a Worker added to the repository without a registry entry, or a registry entry with no wrangler file behind it, fails that test. The stack workflow runs it in the `pm-stack/platform/` directory. The registry lists 22 Workers; its README's count of eighteen is stale (D6).
One registry test stands apart. `pm-stack/platform/workers.test.ts` holds `pm-stack/platform/workers.json` to the repository's wrangler files: a Worker added to the repository without a registry entry, or a registry entry with no wrangler file behind it, fails that test. The stack workflow runs it in the `pm-stack/platform/` directory. The registry lists 23 Workers; its README now states the same figures (its earlier count of eighteen was stale, D6, corrected 2026-11-30).

## The Python and shell suites

Expand Down
2 changes: 1 addition & 1 deletion pm-stack/book/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Three parts of the stack do not deploy by the laptop rebuild:

The notify relay Worker, `pm-notify`, is recorded in `workers.json` as not deployed, with a null address (D5). Do not treat the relay as part of a working installation: the dead-man's switch and the edge answer routes do not exist in production.

The Workers registry itself is `pm-stack/platform/workers.json`, which lists 22 Workers. The platform README still says eighteen; the JSON is the live list, held to the repository's wrangler files by `workers.test.ts` (D6).
The Workers registry itself is `pm-stack/platform/workers.json`, which lists 23 Workers. The platform README now states the same figure (its earlier count of eighteen was stale, D6, corrected 2026-11-30); the JSON is the live list, held to the repository's wrangler files by `workers.test.ts` (D6).

## Keeping the laptop clone current

Expand Down
2 changes: 1 addition & 1 deletion pm-stack/book/operations/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The console does, and the aggregator service does not (D4). The aggregator's cen

## How many Cloudflare Workers are there?

Twenty in the platform registry, 22 in the programme census's estate scope (D6). `pm-stack/platform/workers.json` lists 20, and its test holds the list to the repository's wrangler files. The platform README's "eighteen" is stale. The census ledger counts 22 across its wider estate scope. Cite the count with its source.
Twenty-three in the platform registry, 22 in the programme census's estate scope (D6). `pm-stack/platform/workers.json` lists 23, and its test holds the list to the repository's wrangler files. The platform README now states the same registry figure (its earlier "eighteen" was stale, corrected 2026-11-30). The census ledger counts 22 across its wider estate scope. Cite the count with its source.

## Does the PM stack call an LLM, or use embeddings?

Expand Down
8 changes: 4 additions & 4 deletions pm-stack/book/operations/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ Symptom → cause → fix. Each entry names the check that confirms the cause be
- **Confirm:** Refresh through `POST /quota/refresh` (or `POST /api/quota/refresh`) and re-read `/api/quota.json`. Check the collection scripts' last runs on `/health`, which reports last job runs and feed section ages.
- **Fix:** Take the post-refresh read as the view's state. If the refresh itself fails, the fault is in collection — the gather scripts and, for browser-dependent sources, the exporter watchdog's failure class and ladder rung in `pm-stack/exporters/src/watchdog-state.ts`, with the rung-4 hand-off in `watchdog-escalation.ts` (incident issue first, then a queue task, then the NEEDS DREW line). Do not patch the page's numbers by hand; figures carry dates and live with the dated reads. See [Tutorial: read the quota and usage views](../tutorials/read-the-quota-view.md).

## Worker counts disagree: 18, 20, 22
## Worker counts disagree: 18, 22, 23

- **Symptom:** Three documents give three Worker counts: the platform README says eighteen, `workers.json` lists 20, and the programme census counts 22.
- **Cause:** Staleness in the README, and two different counting scopes (D6). `workers.json` lists 22 Workers, counted directly, and its own test, `workers.test.ts`, holds the JSON to the repository's wrangler files — the JSON is the live list. The README's "eighteen", "fourteen answered", and "two Actions-deployed" figures are stale as of the file's own checked date, 2026-11-23. The census count of 22 covers the estate scope of its ledger, a wider scope than the platform registry.
- **Symptom:** Three documents give three Worker counts: the platform README says eighteen, `workers.json` lists 23, and the programme census counts 22.
- **Cause:** Staleness in the README, and two different counting scopes (D6). `workers.json` lists 23 Workers, counted directly, and its own test, `workers.test.ts`, holds the JSON to the repository's wrangler files — the JSON is the live list. The README's "eighteen", "fourteen answered", and "two Actions-deployed" figures were stale as of the file's own checked date, 2026-11-23; the README was corrected on 2026-11-30 and now states the registry figures (twenty-three listed, nineteen in service, seventeen Actions-deployed, two deployed by hand). The census count of 22 covers the estate scope of its ledger, a wider scope than the platform registry.
- **Confirm:** Count `workers.json` and run its test. Read the census ledger's Table A for its scope.
- **Fix:** Cite the count with its source: 20 in the platform registry, 22 in the census ledger's estate scope. Correct the README figure in the platform docs; do not edit `workers.json` to match the README — the test holds the JSON to the wrangler files, and the JSON is right.
- **Fix:** Cite the count with its source: 23 in the platform registry, 22 in the census ledger's estate scope. Correct the README figure in the platform docs; do not edit `workers.json` to match the README — the test holds the JSON to the wrangler files, and the JSON is right.

## The board is not the fork the program page describes

Expand Down