Skip to content

Adopt public Support Desk 0.2.11 checker policy wire - #70

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
codex/pg211-adoption-20261113
Nov 14, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
codex/pg211-adoption-20261113

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Adopt the five verified public Support Desk 0.2.11 packages so the SDK places the configured independent-review policy in the system message and accounts for both complete message contents. Keep Knowledge Base 0.1.8, Sessions 0.3.0 and the existing security pins, and align health output, composition fixtures and current package documentation.

The host regressions exercise configured policy authority, complete outbound preservation, exact inclusive/one-below byte, token and context boundaries, and refusal of prior-wire route/tokenizer evidence before credential access, while preserving nonpaid Source intake.

Validation:

  • All five registry archives match the original release bytes; all 335 installed SDK members and seven Sessions members match their public artifacts. The installed KB graph has one 0.1.8 class identity.
  • Actual Node 22.18.0 and 24.18.0: complete normal check, Worker types, 132 focused tests, 2,899 ordinary tests, all 22 unfiltered Native D1 files (256 tests), both benchmark cases and build passed with zero skips.
  • The original physical D1 limits remain 50 calls per invocation and 100 bound parameters per statement. The genuine 32-proof high-history case passed under its unchanged 180-second deadline on both Nodes. Source, metadata and installed-member guards held throughout.
  • Exact-head CI passed its frozen install, check, tests and build. The configured OpenRouter review returned clean, and all four fixed inline threads are resolved.

Customer AI remains OFF. Provider semantic quality, deployed Free CPU, actual client/UI and pilot acceptance retain their separate gates.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-14T00:38:26.619869Z 2c5115a 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.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

OpenRouter review posted (clean). #70 (review)

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: 2c5115a7a3ba74b77aa4048fe15b9166507be93e
Judge: openai/gpt-5.6-luna (repaired(canonical+4): source coverage preserved before publication cap)
Cost: $0.2270 (lanes $0.2241 + judge $0.0029)

Lanes

  • openai/gpt-6.1-sol: ok (3 finding(s), 60.4s, 181171+2597 tokens (135093 cached), 5 tool round(s), via Azure, $0.17)
  • z-ai/glm-5.3-flash: ok (3 finding(s), 90.1s, 973632+15455 tokens (882368 cached), 29 tool round(s), via Particle AI, $0.0540)

Findings

🟠 Issue 1 — worker/README.md still claims the host composes Support Desk 0.2.10

worker/README.md:251 · risk · identified by z-ai/glm-5.3-flash

An operator reading worker/README.md after this PR will believe the host runs Support Desk 0.2.10, while package.json, the lockfile, the health endpoint and all other docs now select 0.2.11. In a repository where exact-version claims drive qualification evidence (this PR's own docs tie acceptance to exact package versions), a stale version claim can send a reviewer or operator to qualify against the wrong public graph.

Two stale instances survive the bump:

  • worker/README.md:251 — "Authenticated product feedback composes exact 0.2.10 versions of @​pegma/support-desk-contracts, @​pegma/support-desk-core, @​pegma/support-desk-application, and @​pegma/support-desk-templates"
  • worker/README.md:262 — "The optional @​pegma/support-desk-ai@​0.2.10 package is installed"

Both are contradicted by package.json:49-53 (0.2.11) and by the updated docs (docs/SUPPORT_COMPOSITION.md, docs/SUPPORT_ASSISTANT_STAGE.md, docs/SUPPORT_LEARNING.md). The 0.2.5 checkpoint sentence on the following lines is intentionally historical and stays correct.

I grepped the whole repository for remaining 0.2.10 references: these two lines are the only stale ones (the third hit is the new doc's intentional "supersedes the host's 0.2.10" sentence).

🔵 Issue 2 — Stale Worker composition package versions

worker/README.md:251 · nit · identified by openai/gpt-6.1-sol

Operators reading worker/README.md after this upgrade are told that the Worker composes Support Desk 0.2.10, although the manifest, lockfile and health response now select 0.2.11. This leaves the main Worker runbook describing the prior checker dependency graph.

Both the four-package composition description at line 251 and the optional AI package at line 262 need updating together.

I searched the checkout for 0.2.10; these are the remaining current-selection claims outside the intentionally historical upgrade description. The updated root README links to the current composition snapshot but does not correct the Worker runbook's explicit versions.

🔵 Issue 3 — Full-message admission regression lacks an exact boundary

worker/src/support-independent-checks-model.test.ts:242 · nit · identified by openai/gpt-6.1-sol

An adapter that counts only part of the system message—for example, the static checker preamble but not the newly added configured policy—can still pass both new admission cases. Each limit is set to the user-message size alone, so counting any additional system content is sufficient to reject the request.

The cases therefore establish that admission counts something beyond the user envelope, not that it accounts for both complete message contents as the upgrade documentation claims. Add passing and failing boundaries calculated from the complete captured system and user contents, with the qualified framing allowance; also pin the input-plus-reserved-output context boundary for this wire.

I checked support-independent-checks-model.test.ts, support-independent-checks.test.ts and the composition tests. The new cases check rejection before credential access, which is valuable, but do not distinguish complete system accounting from partial accounting. The SDK implementation is external to this tracked checkout, so this is a regression-test gap rather than evidence that the installed SDK currently miscounts.

🔵 Issue 4 — Policy-placement assertion does not distinguish policy authority

worker/src/support-independent-checks-model.test.ts:229 · nit · identified by openai/gpt-6.1-sol

A producer regression that copies input.trustedInstructions into the system message instead of using the current route configuration would pass the new policy-placement assertion. The fixture gives both values the same string, so the test cannot identify which source supplied the system policy.

The upgrade's important authority boundary is specifically the server-configured policy, with the user envelope retained as data. Add a case with distinguishable configuration and envelope values, asserting the producer's documented behavior for that mismatch and that envelope data cannot replace the configured system policy.

I checked the complete model test and searched the Worker tests for differing or malicious trustedInstructions cases. The existing configuration-mutation case checks route-digest invalidation, not which source is used to construct the system message. The host adapter delegates construction to the external SDK; this finding concerns the new regression's inability to pin that authority boundary, not a demonstrated SDK vulnerability.

🔵 Issue 5 — New docs/SUPPORT_CHECKER_UPGRADE.md has no inbound link from any doc index

docs/SUPPORT_CHECKER_UPGRADE.md:1 · nit · identified by z-ai/glm-5.3-flash

The new qualification-runbook document is unreachable by navigation: nothing links to it. The repository's convention is to cross-link support docs from docs/SUPPORT_COMPOSITION.md (it links SUPPORT_ASSISTANT_STAGE.md, SUPPORT_LEARNING.md, SUPPORT_ENGINEERING.md, SUPPORT_RELEASE_FOLLOWUP.md) and the root README.md links docs/SUPPORT_COMPOSITION.md#packages. A grep for SUPPORT_CHECKER_UPGRADE across the repository matches only the file itself.

Concrete cost: the doc carries the operational gates for the new openrouter-support-independent-check-v2 wire (CPU re-measurement, D1 meter, refusal of v1 evidence). A future operator following the existing doc graph from README.md → SUPPORT_COMPOSITION.md will never find it and may qualify the checker using only the older docs, which no longer describe the v2 transport.

Cheapest repair: add a link from the packages/checker section of docs/SUPPORT_COMPOSITION.md (or worker/README.md's Support Desk composition section) to SUPPORT_CHECKER_UPGRADE.md.

🔵 Issue 6 — Byte/token admission tests use exact-equality budgets, so they can pass for the wrong reason if SDK user serialization differs

worker/src/support-independent-checks-model.test.ts:242 · nit · identified by z-ai/glm-5.3-flash

The new 'holds a payload that fits only the user message bytes/tokens' tests set the budget to exactly the user envelope's size: maxInputBytes = encode(payload).byteLength and maxInputTokens = count(payload) + framingTokens, where payload = JSON.stringify(reference.input). The tests then assert withinBudget(...) is false and generate rejects before any credential read.

The discriminating power of these tests — that it is the system policy content that pushes the payload over the budget — depends on the SDK serializing the user message byte-identically to JSON.stringify(reference.input) and counting only structural framing inside framingTokens. If the SDK ever wraps, reserializes, or key-reorders the user envelope (so its own user-message byte/token count exceeds the computed budget), the user message alone overflows and the tests keep passing even if a future SDK regression stops counting the system message entirely — exactly the property the PR claims to pin ("accounts for both complete message contents").

A more robust pin would leave slack in the user-message budget (e.g., budget = payload + generous margin smaller than the system policy's size), so the assertion can only fail when system-message accounting is lost. I could not falsify this against the current SDK because node_modules is not present in the review checkout, so whether 0.2.11's serialization is byte-identical today is unverified; the finding is about the test's fragility, not a current failure.

Workflow run

Comment thread docs/SUPPORT_CHECKER_UPGRADE.md Resolved

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: clean
Scope: latest-commit (commit-range)
Mode: verify
Commit: 4991bc34c5860bb69bda6285fa26f311b7dde4c1
Judge: openai/gpt-5.6-luna
Cost: $0.0678 (lanes $0.0677 + judge $0.0001)

Lanes

  • openai/gpt-6.1-sol: ok (0 finding(s), 17.0s, 46393+704 tokens (30101 cached), 3 tool round(s), via Azure, $0.0559)
  • z-ai/glm-5.3-flash: ok (0 finding(s), 84.5s, 193928+13455 tokens (163520 cached), 12 tool round(s), via CoreWeave, $0.0119)

Round 2 resolution

  • ✅ r1-1 fixed correctly — worker/README.md still claims the host composes Support Desk 0.2.10: Both stale claims in worker/README.md now specify 0.2.11: the four composed Support Desk packages at line 251 and the optional AI package at line 262. These match all five direct selections in package.json, their pnpm-lock.yaml resolutions, and the current package snapshot in docs/SUPPORT_COMPOSITION.md. No 0.2.10 claim remains in the Worker README.
  • 5 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is risk).
  • Open findings after this round: 0 (0 bug-severity).

No structured findings from the successful lane(s).

Workflow run

@FlyOverCoderKY
FlyOverCoderKY merged commit ab1f325 into main Nov 14, 2026
2 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the codex/pg211-adoption-20261113 branch November 14, 2026 01:27
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