Skip to content

fix(pm-console): the release's gate kept in storage, a deadline for the queue store, and the clock said in health - #14022

Merged
dezren39 merged 4 commits into
mainfrom
claude/pm-mind
Nov 24, 2026
Merged

dezren39 merged 4 commits into
mainfrom
claude/pm-mind

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The first of #14001: what else the Worker's object kept only in memory, which in service does not last from one request to the next (#14000 has how that was learned).

What this changes

  • The released Android build's gate is stored (edge/src/edge.ts). What GitHub last said of the release, and when it was asked, were in memory. Every object that started asked again, so the ten minutes between askings meant nothing. Stored under released, read back once by each object, removed when a description is found out of step with its file.
  • The queue store has a deadline (src/ops.ts). It was asked with none, alone among the requests the edge makes. Twenty seconds for its answer and the body; a read that runs out says "the queue store did not answer within 20 seconds". The token is fetched before the time starts.
  • Health says what the object's own clock is doing (clock.wanted, clock.next). After fix(pm-console): keep GitHub's answers in the object's storage; its memory did not last between reads #14000 deployed, the live Worker asked GitHub nothing for three minutes, and from outside it could not be told whether no device takes notifications or the clock had stopped. The time it has asked to be woken at is the platform's to hold, so an object that has just started can say it.
  • A fault in fix(pm-console): keep GitHub's answers in the object's storage; its memory did not last between reads #14000's own hardening. A time read back from storage further off than could have been set was cut down to the longest allowed, counted from now. Every object that starts counts from its own now, so it would have been cut down afresh each time and never come. Nothing the code writes is that far off; it would have taken a damaged record. For the release it is now asked for again at once, and a wait further off than GitHub can set is not kept to at all.
  • The same fault, older. What the edge reads back of being turned away (which actions and lists are a machine's for now) has cut a far-off time down to an hour from now since step 3, and its test asked one object and then moved the clock. Asked of a new object each time, a year written down stood for a year. It is not believed at all now, and the test starts a new object for every look.

Checked

  • bun test: 405 pass. Type check, formatter and markdown check clean; both builds succeed.
  • The release's test run again with a new object for every request: GitHub is asked once per ten minutes, each object says why when it cannot be asked, an out-of-step description is asked for again by the next object, and storage that holds something it should not (a time yet to come, a description that is not one, not a record at all) is not believed.
  • The queue store's deadline: answered, never answered, a body that never ends, refused, out of reach; no timer left running in any of them.
  • The three bounds (GitHub's wait, the release's time, what was turned away), each across several objects. The first tests of two of them used one object, which is how the fault got through.
  • 20 more single faults planted, all failing a test. (A twenty-first, believing a time that has already passed when it is read back, passes: such a time is dropped again when it is used.)
  • The real runtime: 42 checks pass, the new one being that health says the clock is wanted and when it next wakes once a device takes notifications.

Not checked

  • getAlarm in the Worker's wiring is checked only by the real-runtime run, not by a unit test.
  • The deployed Worker, until this deploys: then clock is read from live health.

Refs #14001, #13504.

https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF


Generated by Claude Code

…he queue store, and the clock said in health

The first of what else the Worker's object kept only in memory (#14001).

- What GitHub last said of the released Android build, and when it was
  asked, were in memory: every object that started asked again, and the
  ten minutes between askings meant nothing. Stored under "released".
- The queue store was asked with no deadline. It has twenty seconds for
  its answer and the body, like everything else the edge asks, and a
  read that runs out says so.
- Health says whether the object's own clock is wanted and when it has
  next asked to be woken. After #14000 deployed nothing was asked of
  GitHub for three minutes, and from outside it could not be told
  whether no device takes notifications or the clock had stopped.
- A time read back from storage further off than could have been set
  was cut down to the longest allowed, counted from now: every object
  counts from its own now, so it would never have come. For the
  release it is asked for again at once; a wait further off than
  GitHub can set is not kept to at all. Tested across several objects.

Refs #14001, #13504

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e569f825-630f-4ea8-885e-42205dd4f2c4
Commits

Reviewing files that changed from the base of the PR and between 6aab3fc and 2e963bd.

Files selected for processing: 9

  • doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core.md
  • pm-stack/console/edge/README.md
  • pm-stack/console/edge/src/direct.ts
  • pm-stack/console/edge/src/edge.ts
  • pm-stack/console/edge/src/worker.ts
  • pm-stack/console/scripts/edge-smoke.ts
  • pm-stack/console/src/ops.ts
  • pm-stack/console/test/direct.test.ts
  • pm-stack/console/test/edge.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…elieved, by any object

What the edge reads back of being turned away (which actions and lists
are a machine's for now) cut a far-off time down to an hour from now.
Every object that starts counts from its own now, and in service that
is nearly every object asked: a year written down stood for a year.
Its test asked one object and then moved the clock. Such a time is not
believed at all now, and the test starts a new object for every look.

Refs #14001

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
…rches carry no tag

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@dezren39
dezren39 merged commit fc43886 into main Nov 24, 2026
1 check passed
@dezren39
dezren39 deleted the claude/pm-mind branch November 24, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants