Skip to content

docs(cloud): list the event's ts field - #1610

Merged
frahlg merged 1 commit into
masterfrom
claude/doc-event-ts
Oct 13, 2026
Merged

frahlg merged 1 commit into
masterfrom
claude/doc-event-ts

Conversation

@frahlg

@frahlg frahlg commented Oct 13, 2026

Copy link
Copy Markdown
Member

Master fails TestFieldsMatchTheProtocolDocument in go/protocol/cloudwire:

event: document [args eventId kind lp severity src], code [args eventId kind lp severity src ts]

#1607 added ts to the event body and its allowlist. #1604 then brought in docs/protocol-cloud.md without that row. CI on master did not catch it because #1604 changed only docs, so the Go jobs were skipped. #1609 fails on the same test.

This adds the row, worded from the field's comment in push.go. go test ./... in go/protocol passes.

🤖 Generated with Claude Code

#1607 added ts to the event body and its allowlist. #1604 then brought
in docs/protocol-cloud.md without that row, so the test that compares the
allowlist with the document failed on master. CI did not see it because
#1604 changed only docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T08:48:38.979883Z c3e9f90 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3e9f906ca

ℹ️ 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".

Comment thread docs/protocol-cloud.md
| Field | Type | Meaning |
|---|---|---|
| `eventId` | text | Unique per event |
| `ts` | int, optional | The box's wall time of the event, in ms. Present only while NTP has synced the box clock. It can be earlier than `wallMs` when the event waited for the uplink. The phone dates the alert by the earlier of this and the send time |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reconcile ts with the field-omission rule

When the box clock is unsynchronized, this row requires ts to be absent, but the normative envelope rules at lines 88–90 still state that only wallMs, sources, and fieldSources may ever be omitted. Implementers following that rule could encode ts as null or reject the event that Core emits with cbor:"ts,omitempty"; add ts to the earlier omission list or otherwise clarify the exception.

Useful? React with 👍 / 👎.

@frahlg
frahlg merged commit 2e3d41f into master Oct 13, 2026
12 checks passed
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.

1 participant