Repository navigation
Conversation
The log takes v1, dual-coded and v2-only events. A v2 signature is checked by the protocol package's verifyEvent against the org-state head the Project caches from Registry.head(): read again on each stateAdvanced announcement, on an unknown signer at most once a second, and when older than 60 s at the moment it is needed. A cache an announcement outran is never used; an unreadable head refuses the event state-unavailable, so no v2 event is stored unchecked. - log-store: an event carries a mac, a sig or both; a hub/ event without a mac carries a 16-byte nonce, by which its resend is known; legacy/ stays v1-only. - project: uploads check every storable v2 event before the synchronous store step (bad-signature / state-unavailable refusals); a device's signed human is positioned as today and verified against its member's devices; humans are taken one at a time; the conflict rule still compares the full canonical body, sig included. - protocol: LogEvent gains optional sig and nonce, SignedHumanEvent is added, Refusal gains bad-signature and state-unavailable (all additive). - desk-web: its reader is proved to accept the package's dual-coded vectors. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…reads - An unknown signer's re-read follows the announcement rule: a read older than the newest announced version is sent again, else the refusal stands. - An upload's v2 events are judged against one head (SignedEvents.checkAll): verdicts from a head older than the newest held or announced are rechecked. - The post-check fence also refuses a stream DX7 revoked during the read. - Every dequeued human checks its member against the newest announced state. - Registry.head() reads are bounded (5 s): a stall fails closed state-unavailable and the in-flight read is let go. Humans queue per member, so another member's sealed human never waits on a signed one's read. - A test pins that a v2-only event reaches a DX2 stream without a mac and the daemon's rejection is recorded (sminos refuses it bad-code and moves on). Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…vailable When the unknown-signer refresh of the org-state head times out or fails, the signer is undecided, so the event is refused state-unavailable (its sender retries) instead of keeping the stale unknown-signer verdict as bad-signature. A head read that completes and still lacks the signer stays bad-signature. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Conflicts were the test seams only (send-fault.ts, local.ts, worker-under-test.ts): M5's head-fault and state-cache seams and M3's as-member and lacks seams, kept side by side. project.ts merged clean (M3 does not touch it); M3's stored, alarm-resent announcements keep stateAdvanced(version, members?), and M5's refresh rides on it. The package now anchors retirement on every v2 event's signed `created` and refuses one without it; M5's events already carry it. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…esis) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…into p5-o11-m5 project.ts merged clean: M4's push now names the uploading machine (Registry.push(notice, looking, waiting, machine)), and M5's signed upload feeds the same push loop, since a v2 event reaches it only once stored. The conflicts were the test seams, where M5's head-fault and state-cache seams sit beside M4's registry-rpc seam, and the O11 document, where both M4 and M5 are ticked and M4's Surprises and Decision Log entries come before M5's, each once. push-owners pins owner-only push for a v2-signed upload too. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… chromium flake Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eb261f28a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (isHubWriter(e.writer) && (e.nonce !== undefined || mac === undefined) && !isBase64urlOf(e.nonce, 16)) { | ||
| return 'a hub/ event without a mac carries nonce, and a nonce is 16 bytes in canonical base64url'; |
There was a problem hiding this comment.
Require a signed nonce for dual-coded hub events
For a signed hub/ human that omits its top-level nonce, supplying a mac bypasses this nonce requirement. verifyEvent accepts that event because its signing input excludes the entire mac, while takeHuman deduplicates it using mac.nonce. Consequently, replaying the same signed draft with different canonical mac.nonce values stores it repeatedly at new positions without invalidating its signature; the hub never verifies the MAC. I confirmed that both variants pass eventShapeError and verifyEvent while producing different resend nonces. Require the top-level nonce whenever a hub event carries sig, including dual-coded events, so its resend identity is authenticated.
Useful? React with 👍 / 👎.
| if (!verdict.ok && verdict.code === 'unknown-signer' && this.now() - this.lastRead >= UNKNOWN_SIGNER_READ_MS) { | ||
| // A re-read that cannot complete leaves the signer undecided, not refused: the sender retries. | ||
| const fresher = await this.readAnnounced(); | ||
| if (!fresher) return { check: STATE_UNAVAILABLE }; |
There was a problem hiding this comment.
Preserve unavailable-state refusals during the refresh cooldown
When a cached head lacks a newly added signer and its refresh fails, the first check correctly returns state-unavailable, but fresh() has already updated lastRead. Another check within one second therefore skips the refresh and falls through to bad-signature against the same outdated cache, even while the Registry remains unreachable. I reproduced this with two consecutive checks of the identical valid event: the first returned state-unavailable and the immediate retry returned bad-signature (unknown-signer) without another read. This can also give different refusal reasons to events from the same signer across writers in one upload. Track unsuccessful refreshes and retain state-unavailable for affected unknown signers during the cooldown instead of treating the failed read as confirmation that their signatures should be refused.
Useful? React with 👍 / 👎.
P5 O11 M5: the Project DO's v2 events (
docs/doperpowers/plans/2026-10-27-p5-o11-hub-v2.md, M5).What this lands
mac), dual-coded (macandsig) and v2-only (sig) events.hub/<member>event carries its own 16-bytenoncefor resend dedupe.mac.sigincluded.apps/org-protocol'sverifyEventagainst the head that the Project caches fromRegistry.head().stateAdvancedannouncement, on an unknown key id (at most once a second), and whenever it is older than 60 s.forgetafter the read.bad-signature, with the package's code in the message.state-unavailable.refusedframe.humans are queued per member. They are checked for membership when dequeued and again after their signature check, so a removal announced mid-check stores nothing.bad-code, reports itrejectedand goes on; a test pins the hub's side.Validation Evidence
OwnerNoticeto the listed owner's device alone.bad-signaturerather thanstate-unavailable.eb261f28a(static, unit, probes, e2e:desk-web): https://github.com/SSFSKIM/MAWS/actions/runs/40449106023. An earlier run one01e438c8(the same code before master's docs commits) failed one desk-web layout test,e2e/stream-scroll.spec.ts:231on chromium only ("Jump to latest" still shown after a clamp to the end). M5 touches no desk-web code, and the same test passed on webkit in that run and on chromium here, so it is recorded as a flake.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)