Skip to content

Preserve newsletter observations and decode milestone positions - #54

Open
purpshell wants to merge 1 commit into
codex/upstream-sync-20261027from
codex/newsletter-observations-20261027
Open

purpshell wants to merge 1 commit into
codex/upstream-sync-20261027from
codex/newsletter-observations-20261027

Conversation

@purpshell

@purpshell purpshell commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Current source readiness, 2026-10-30

Not review-ready yet at 1bd6d720307722740fee39ba2fd8cdbd8cb8a4ce. Company attribution source/template changes are prepared locally, preserving personal/upstream attribution, years and license terms. Actual MEX producer execution and focused qualification remain unrun; incomplete generated-source work has not been pushed. The one bounded standard producer/focused-check claim expired with exit75 before CLAIMED; no command started. Old-head CI and prior publication receipts are historical. No independent approval, package publication, deployment or legal/activation acceptance is inferred. Release owns merges; H53 independent approval remains a merge gate. No new review or watch was requested.

Actual git rebase --rebase-merges --onto completed against current target 7c0cd0e3c1739dbc7292a822bc5dd9e6c2ce71a1. Head 1bd6d720307722740fee39ba2fd8cdbd8cb8a4ce → 1bd6d720307722740fee39ba2fd8cdbd8cb8a4ce is unchanged. Current target is an ancestor; full tree cc4c252323c20a768973ebff0bea18fbe40ac554 is unchanged. Old/new parent mapping is exact; no cosmetic commit or source push. Existing combined-head CI admission/deployment holds remain where applicable. Recovery ref refs/heads/backup/parity-rebase-20261028/pr-54-1bd6d720 is verified remotely at 1bd6d720307722740fee39ba2fd8cdbd8cb8a4ce. Release alone owns source merge slots. Legal/independent-review, package/activation/publication and effective deployment-pause gates remain; staging DEFERRED. POL35 and Business H55/migration20 remain separate.

Preserve reported newsletter counter presence and both view definitions without choosing an account gate. Keep existing scalar APIs; missing/malformed counters stay distinct from reported zeros and an explicit empty reaction map. Over-limit or ambiguous observations are omitted as a whole rather than truncated.

Decode milestone positions from quoted or numeric decimal integers without floating-point conversion, while retaining the existing quoted JSON output. Position-only live updates keep their absent original ID. No protobuf/version change, message-body export, active request or flag change.

Stacked on #53; retarget to main after its separately authorized merge and requalify exact downstream pins. Tracks POL-81. Backend, six SDKs, CLI and docs follow in the same confirmed cycle.

Verification: the numeric milestone and reported-zero regressions failed before their fixes. Focused native MEX/counter tests, full Go 1.26 tests, full Go 1.27 race suite, MEX generation check, WASM compile and full pre-commit passed. Includes missing/zero/empty, multiple view definitions, malformed/overflow IDs and reaction-limit fixtures. No live account, phone, browser, deployment or package-availability claim.

Confirmed scope checkpoint, registration #511. Owner: Codex/T3/OpenAI, gpt-6.1-sol/xhigh; one writer, no implementation subagents or automated reviews requested. Partial manual provenance; complete recorder capture unavailable. No UI changed. This is a Polymorfa fork change, not an upstream submission.

Keep draft through consumer qualification and required checks/review. No protected merge, tag/release, publication, deployment or activation. Roll back the producer and consumer pin together, preserving stored data and current retirement/authority guards.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 1
  • dev

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 4f326bb7-48c6-473e-9849-0bde79cbf99a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-31T04:47:46.277174Z 1bd6d72 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-31T04:48:11.273729Z 1bd6d72 Draft marked ready
ℹ️ 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: 1bd6d72030

ℹ️ 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 newsletter_observation.go
Comment on lines +27 to +31
if !valid || len(msg.ViewCounts) == 2 {
badViews = true
}
if !badViews {
msg.ViewCounts = append(msg.ViewCounts, types.NewsletterViewCount{Type: definition, Count: count})

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 Reject duplicate view definitions before marking counts present

When a message contains exactly two views_count nodes with the same definition (both untyped or both type="views") and conflicting counts, this check accepts both and sets ViewsCountPresent to true. The new observation API therefore exposes two contradictory counts for one definition as valid, despite its documented guarantee that ambiguous observations are omitted. Track the definitions already seen and invalidate the view observation on a duplicate, while continuing to accept the untyped and views pair in either order.

Useful? React with 👍 / 👎.

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