From 1c83d8b9dad9c40834d6759dd55f8f7eb03617bd Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Fri, 13 Nov 2026 23:24:33 -0500 Subject: [PATCH 1/2] Adopt verified public Support Desk 0.2.12 --- docs/SUPPORT_ASSISTANT_STAGE.md | 4 +- docs/SUPPORT_CHECKER_UPGRADE.md | 20 ++++--- docs/SUPPORT_COMPOSITION.md | 14 ++--- docs/SUPPORT_LEARNING.md | 8 +-- evals/assembly-eval.test.ts | 6 +- package.json | 10 ++-- pnpm-lock.yaml | 58 +++++++++---------- src/data/recipe-backlog.ts | 6 +- worker/README.md | 4 +- worker/src/index.ts | 2 +- .../support-independent-checks-model.test.ts | 3 +- 11 files changed, 71 insertions(+), 64 deletions(-) diff --git a/docs/SUPPORT_ASSISTANT_STAGE.md b/docs/SUPPORT_ASSISTANT_STAGE.md index 04ee5d5..6cee562 100644 --- a/docs/SUPPORT_ASSISTANT_STAGE.md +++ b/docs/SUPPORT_ASSISTANT_STAGE.md @@ -51,7 +51,7 @@ checked during cloud qualification. See ## Run the local checks Use the repository's supported Node version and frozen dependency install. -The current package selection is Support Desk `0.2.11` with direct Knowledge Base +The current package selection is Support Desk `0.2.12` with direct Knowledge Base `0.1.8`; [package.json](../package.json) and the [lockfile](../pnpm-lock.yaml) are authoritative. @@ -91,7 +91,7 @@ reconciliation, with the persisted ledger stable across later duplicates. These historical results apply to that fictional fixture. The earlier public `0.2.5` graph passed the normal 1,125-test local/CI [adoption checkpoint](KNOWLEDGE_COMPOSITION.md#public-025-adoption-checkpoint). -That checkpoint does not qualify the current `0.2.11` graph. Current host +That checkpoint does not qualify the current `0.2.12` graph. Current host validation remains pending. Deployed broker timing, retry delivery, CPU use and wider workloads retain their qualification gates. diff --git a/docs/SUPPORT_CHECKER_UPGRADE.md b/docs/SUPPORT_CHECKER_UPGRADE.md index 7a2c8bd..069ddbc 100644 --- a/docs/SUPPORT_CHECKER_UPGRADE.md +++ b/docs/SUPPORT_CHECKER_UPGRADE.md @@ -1,20 +1,26 @@ # Preparing the independent checker wire upgrade -The host pins synchronized public Support Desk `0.2.11`, released from -`8f6bc9f033c93dc8166a15c5c214dd4319894c1f` after strict public registry and +The host pins synchronized public Support Desk `0.2.12`, released from +`b41b301c955b1960ca2c6f9d3a186f2c6be28ca2` after strict public registry and release-artifact verification. The -[public release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.11) -supersedes the host's `0.2.10` dependency selection. Publication and local tests +[public release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.12) +supersedes the host's `0.2.11` dependency selection. Publication and local tests do not establish provider quality, deployed Free CPU acceptance or customer activation. -The new producer wire is `openrouter-support-independent-check-v2`. It places +The producer wire remains `openrouter-support-independent-check-v2`. It places the current server-configured review policy in the system message while retaining the complete user envelope as data. The verdict schema remains named `support_independent_check_v1`; that schema name does not identify the wire. The host's [checker adapter](../worker/src/support-independent-checks-model.ts) delegates this contract and the route-policy hash to the SDK. +The SDK's explicit provider-group mode is opt-in. This host retains its existing +endpoint-qualified route configuration and model allowlists; this dependency +adoption does not enable provider-group selection or add a price policy. Any +future opt-in requires separate current route, pricing, privacy and tokenizer +qualification. Customer AI remains off. + Before enabling a selected checker profile, qualify the actual installed wire and exact endpoint/model, tokenizer implementation, complete system and user contents, framing allowance and structured schema. Both message contents count @@ -48,5 +54,5 @@ passing qualification. Cloud execution and live provider evaluation remain separately authorized host operations. Producer contract: -[AI adapter](https://github.com/pegma-dev/support-desk/blob/8f6bc9f033c93dc8166a15c5c214dd4319894c1f/packages/ai/README.md), -[upgrade notes](https://github.com/pegma-dev/support-desk/blob/8f6bc9f033c93dc8166a15c5c214dd4319894c1f/docs/UPGRADING.md). +[AI adapter](https://github.com/pegma-dev/support-desk/blob/b41b301c955b1960ca2c6f9d3a186f2c6be28ca2/packages/ai/README.md), +[upgrade notes](https://github.com/pegma-dev/support-desk/blob/b41b301c955b1960ca2c6f9d3a186f2c6be28ca2/docs/UPGRADING.md). diff --git a/docs/SUPPORT_COMPOSITION.md b/docs/SUPPORT_COMPOSITION.md index fc411d5..eb11687 100644 --- a/docs/SUPPORT_COMPOSITION.md +++ b/docs/SUPPORT_COMPOSITION.md @@ -16,16 +16,16 @@ provider and customer activation retain their acceptance gates. See the ## Packages -Public selection as of 2026-11-13: Support Desk `0.2.11`, Knowledge Base `0.1.8` +Public selection as of 2026-11-14: Support Desk `0.2.12`, Knowledge Base `0.1.8` and Sessions `0.3.0`. [`package.json`](../package.json) and [`pnpm-lock.yaml`](../pnpm-lock.yaml) are the source of truth for current direct selections and the installed graph. -- `@pegma/support-desk-application@0.2.11` -- `@pegma/support-desk-contracts@0.2.11` -- `@pegma/support-desk-core@0.2.11` -- `@pegma/support-desk-templates@0.2.11` -- `@pegma/support-desk-ai@0.2.11` (optional coordinator) +- `@pegma/support-desk-application@0.2.12` +- `@pegma/support-desk-contracts@0.2.12` +- `@pegma/support-desk-core@0.2.12` +- `@pegma/support-desk-templates@0.2.12` +- `@pegma/support-desk-ai@0.2.12` (optional coordinator) - `@pegma/authorization-admin@0.4.0` (role administration service) - `@pegma/authorization-core@0.4.0` (AccessContext resolution) - `@pegma/authorization-policy@0.4.0` (PolicyDocumentV1 schema validation) @@ -35,7 +35,7 @@ All five Support Desk packages have completed producer publication and registry qualification. The optional AI package selects exact KB application and contracts `0.1.8`; the host selects all four KB packages at that version. Producer qualification and installation do not complete host or provider -acceptance. [Public Support Desk release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.11), +acceptance. [Public Support Desk release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.12), [public KB release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.8). The [checker wire upgrade](SUPPORT_CHECKER_UPGRADE.md) describes fresh route and tokenizer qualification, complete-message admission and the separate Free CPU diff --git a/docs/SUPPORT_LEARNING.md b/docs/SUPPORT_LEARNING.md index 28f576f..b3b9b92 100644 --- a/docs/SUPPORT_LEARNING.md +++ b/docs/SUPPORT_LEARNING.md @@ -17,9 +17,9 @@ activation evidence. ## Packages and authority -The host selects all five published Support Desk packages at **0.2.11** and its +The host selects all five published Support Desk packages at **0.2.12** and its four direct Knowledge Base packages at **0.1.8**. The qualified -[Support 0.2.11 release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.11) +[Support 0.2.12 release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.12) also uses exact KB **0.1.8** public contracts. The [public forwarding port](../worker/src/support-learning-ports.ts) preserves the actual KB error instances; the obsolete KB 0.1.2 constructor alias and translation @@ -31,7 +31,7 @@ Historically, Support **0.2.1** used nested KB **0.1.2** while this host selecte direct KB **0.1.5**. The exact `@pegma/knowledge-base-ai-compat` registry alias and recognized-error translation belonged to that earlier assembly. Its failed isolated production-layout diagnostic remains historical evidence; neither its -ordinary fixture passes nor that failure qualifies the current 0.2.11 graph. +ordinary fixture passes nor that failure qualifies the current 0.2.12 graph. The current [host policy](../worker/src/support-access.ts), `pegma.dev-policy-8`, grants four human learning permissions through the actual stored, audited @@ -329,7 +329,7 @@ cases, with zero errors in its Astro, Worker and recipe check. These historical counts overlap the assembly baseline. They predate the earlier 0.2.2 adoption and full-intent/commit-guard changes and do not qualify the current host source. The earlier public `0.2.5` [adoption checkpoint](KNOWLEDGE_COMPOSITION.md#public-025-adoption-checkpoint) -passed 1,125 tests locally and in CI. It does not qualify the current `0.2.11` +passed 1,125 tests locally and in CI. It does not qualify the current `0.2.12` graph. Current host validation, review and deployment acceptance remain pending. Relevant executable sources are the diff --git a/evals/assembly-eval.test.ts b/evals/assembly-eval.test.ts index d3ddcdf..d96713c 100644 --- a/evals/assembly-eval.test.ts +++ b/evals/assembly-eval.test.ts @@ -39,9 +39,9 @@ const EVAL_NPM: Record = { '@pegma/authorization-tokens': '0.4.0', '@pegma/authorization-identity': '0.4.0', '@pegma/audit': '0.2.0', - '@pegma/support-desk-contracts': '0.2.11', - '@pegma/support-desk-core': '0.2.11', - '@pegma/support-desk-application': '0.2.11', + '@pegma/support-desk-contracts': '0.2.12', + '@pegma/support-desk-core': '0.2.12', + '@pegma/support-desk-application': '0.2.12', '@pegma/support-desk-templates': '0.1.1', '@pegma/webhooks': '0.1.1', '@pegma/sessions': '0.3.0', diff --git a/package.json b/package.json index 9e19917..654c8da 100644 --- a/package.json +++ b/package.json @@ -46,11 +46,11 @@ "@pegma/spine": "^0.1.1", "@pegma/storage-cloudflare-d1": "0.4.7", "@pegma/storage-core": "0.4.0", - "@pegma/support-desk-ai": "0.2.11", - "@pegma/support-desk-application": "0.2.11", - "@pegma/support-desk-contracts": "0.2.11", - "@pegma/support-desk-core": "0.2.11", - "@pegma/support-desk-templates": "0.2.11", + "@pegma/support-desk-ai": "0.2.12", + "@pegma/support-desk-application": "0.2.12", + "@pegma/support-desk-contracts": "0.2.12", + "@pegma/support-desk-core": "0.2.12", + "@pegma/support-desk-templates": "0.2.12", "@pegma/webhooks": "0.1.1", "agents": "^0.20.1", "gpt-tokenizer": "4.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4edb563..a150190 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,20 +89,20 @@ importers: specifier: 0.4.0 version: 0.4.0 '@pegma/support-desk-ai': - specifier: 0.2.11 - version: 0.2.11 + specifier: 0.2.12 + version: 0.2.12 '@pegma/support-desk-application': - specifier: 0.2.11 - version: 0.2.11 + specifier: 0.2.12 + version: 0.2.12 '@pegma/support-desk-contracts': - specifier: 0.2.11 - version: 0.2.11 + specifier: 0.2.12 + version: 0.2.12 '@pegma/support-desk-core': - specifier: 0.2.11 - version: 0.2.11 + specifier: 0.2.12 + version: 0.2.12 '@pegma/support-desk-templates': - specifier: 0.2.11 - version: 0.2.11 + specifier: 0.2.12 + version: 0.2.12 '@pegma/webhooks': specifier: 0.1.1 version: 0.1.1 @@ -1240,24 +1240,24 @@ packages: resolution: {integrity: sha512-aWbRhhis4Qs4TvH1Sb+OCI0a0ddOyV+6pm6HhPs+XPlaP86mTaV7OlwkIIPqk5Hw45t//tNaqfaggUeOc7rIGA==} engines: {node: '>=22'} - '@pegma/support-desk-ai@0.2.11': - resolution: {integrity: sha512-Rzrj2m3NC9EjNkGmHtaKnxSo6GIyVMtXbRGHFtB1Z0WlBxQi4pa8e91rfokUii8inkHaEYdEaWFf1I7VOBP1pQ==} + '@pegma/support-desk-ai@0.2.12': + resolution: {integrity: sha512-K9KoutI61ksMt8g2xn8aT3rOAXeNc8HLoFC8gdAzIjTm9k0RQ7KS4LgKvfwkw6++px/hOFlXZwRxaJ6ESJDbLA==} engines: {node: '>=22'} - '@pegma/support-desk-application@0.2.11': - resolution: {integrity: sha512-zv78NW0AaUIEewcWYsyh8mfK0QyECEquIeCNtRfPfWWlNydO6XJGxaai0yNWmeySYWmwGMewhmlChmpCDFTgyA==} + '@pegma/support-desk-application@0.2.12': + resolution: {integrity: sha512-ag5K/dWM3Y7si6/+XvSYFMjqVwSlFTnnC3xAIOLDasTBntJCJJC3VyPX4wiI13SxhGArq8CxmOmHPM0PEBhD0w==} engines: {node: '>=22'} - '@pegma/support-desk-contracts@0.2.11': - resolution: {integrity: sha512-Pdn6DdBMydDxuuptnfTH0h4byIbpXR5NDYlMs8xAUuj0A2wRcapemYJbaCCEsy1P5Z52yvE5GEtBAFy5ZdGxZA==} + '@pegma/support-desk-contracts@0.2.12': + resolution: {integrity: sha512-RG/fKyCC7Wl4ev6xn3fdKMDQIvvjMfWNOuvJ1x/egqJ2JcAuJ8T33v7Ef/mSSIhogYttaBsELqqs3tIehbBckQ==} engines: {node: '>=22'} - '@pegma/support-desk-core@0.2.11': - resolution: {integrity: sha512-o8YPOWxE0GhnpJaRXbP29FMpNu+Xp42w7HTXDKN81jHFHNo0YKO+JNceBFoHEL7mVCOCQ35yGJ9KOkEnTNPgIQ==} + '@pegma/support-desk-core@0.2.12': + resolution: {integrity: sha512-xAWASDcjux4heGV3WuJKEPf22FpkJ8A1nI4Xwh3+D2tI77wdvPktYk2addL5jzOXfeYP1Q8AH0F7RUyQ0uSLLQ==} engines: {node: '>=22'} - '@pegma/support-desk-templates@0.2.11': - resolution: {integrity: sha512-sReVde5S3660YMraVsZeL2ZzanPr6g/gadJ53svml8ZSghVlIfJS4aJojaejEJZ15Enw0/F/iwx415axjs4uDg==} + '@pegma/support-desk-templates@0.2.12': + resolution: {integrity: sha512-hTHbATrWofzR0RLV67fVJU5D41nsW/0F975VHT7PourArEMoM/QND4WCR+Ib7vE8vkr4oEUxMv8rZEO81N7PSQ==} engines: {node: '>=22'} '@pegma/webhooks@0.1.1': @@ -4245,35 +4245,35 @@ snapshots: '@pegma/storage-core@0.4.0': {} - '@pegma/support-desk-ai@0.2.11': + '@pegma/support-desk-ai@0.2.12': dependencies: '@pegma/authorization-core': 0.4.0 '@pegma/knowledge-base-application': 0.1.8 '@pegma/knowledge-base-contracts': 0.1.8 '@pegma/spine': 0.1.2 '@pegma/storage-core': 0.4.0 - '@pegma/support-desk-application': 0.2.11 + '@pegma/support-desk-application': 0.2.12 zod: 4.6.7 - '@pegma/support-desk-application@0.2.11': + '@pegma/support-desk-application@0.2.12': dependencies: '@pegma/audit': 0.2.0 '@pegma/authorization-core': 0.4.0 '@pegma/mail': 0.1.1 '@pegma/spine': 0.1.2 '@pegma/storage-core': 0.4.0 - '@pegma/support-desk-contracts': 0.2.11 - '@pegma/support-desk-core': 0.2.11 + '@pegma/support-desk-contracts': 0.2.12 + '@pegma/support-desk-core': 0.2.12 - '@pegma/support-desk-contracts@0.2.11': + '@pegma/support-desk-contracts@0.2.12': dependencies: '@pegma/spine': 0.1.2 - '@pegma/support-desk-core@0.2.11': + '@pegma/support-desk-core@0.2.12': dependencies: - '@pegma/support-desk-contracts': 0.2.11 + '@pegma/support-desk-contracts': 0.2.12 - '@pegma/support-desk-templates@0.2.11': {} + '@pegma/support-desk-templates@0.2.12': {} '@pegma/webhooks@0.1.1': dependencies: diff --git a/src/data/recipe-backlog.ts b/src/data/recipe-backlog.ts index cda70a0..bb967ba 100644 --- a/src/data/recipe-backlog.ts +++ b/src/data/recipe-backlog.ts @@ -247,9 +247,9 @@ export const RECIPE_BACKLOG: readonly CatalogRecipe[] = [ '@pegma/mail@0.1.1', '@pegma/rate-limit@0.2.0', '@pegma/health@0.2.0', - '@pegma/support-desk-application@0.2.11', - '@pegma/support-desk-contracts@0.2.11', - '@pegma/support-desk-core@0.2.11', + '@pegma/support-desk-application@0.2.12', + '@pegma/support-desk-contracts@0.2.12', + '@pegma/support-desk-core@0.2.12', '@pegma/authorization-core@0.4.0', '@pegma/storage-core@0.4.0', '@pegma/spine@0.1.1', diff --git a/worker/README.md b/worker/README.md index b5376fe..d37999c 100644 --- a/worker/README.md +++ b/worker/README.md @@ -248,7 +248,7 @@ public acknowledgement endpoint. ## Support Desk composition -Authenticated product feedback composes exact `0.2.11` versions of +Authenticated product feedback composes exact `0.2.12` versions of `@pegma/support-desk-contracts`, `@pegma/support-desk-core`, `@pegma/support-desk-application`, and `@pegma/support-desk-templates` over the same `IDENTITY_DB` D1 binding. Support Desk collections @@ -259,7 +259,7 @@ via AccessContext defaults (not a paid entitlement). Categories: `feedback`, `bug`, `feature_request`, `documentation`, `question`. Subject marker: `[PEG-…]`. Tracking pages: `/feedback` and `/feedback/ticket/?id=…`. -The optional `@pegma/support-desk-ai@0.2.11` package is installed for the +The optional `@pegma/support-desk-ai@0.2.12` package is installed for the [isolated scripted answering stage](../docs/SUPPORT_ASSISTANT_STAGE.md). The earlier public `0.2.5` graph passed the 1,125-test local/CI [adoption checkpoint](../docs/KNOWLEDGE_COMPOSITION.md#public-025-adoption-checkpoint); diff --git a/worker/src/index.ts b/worker/src/index.ts index 1255f9e..180856f 100644 --- a/worker/src/index.ts +++ b/worker/src/index.ts @@ -976,7 +976,7 @@ return { probe: 'disabled' | 'ok' | 'fail'; } = { storage: 'cloudflare-d1', - packages: '@pegma/support-desk-application@0.2.11', + packages: '@pegma/support-desk-application@0.2.12', probe: 'disabled', }; if (supportHealthProbeEnabled(env)) { diff --git a/worker/src/support-independent-checks-model.test.ts b/worker/src/support-independent-checks-model.test.ts index 4a7f552..be6b3d1 100644 --- a/worker/src/support-independent-checks-model.test.ts +++ b/worker/src/support-independent-checks-model.test.ts @@ -228,11 +228,12 @@ describe('purpose-qualified independent checker transport', () => { ); expect(body.messages[0].content).toContain(f.c.trustedInstructions); expect(JSON.parse(body.messages[1].content)).toEqual(f.input); - expect(body.provider).toMatchObject({ + expect(body.provider).toEqual({ only: ['fictional/region'], allow_fallbacks: false, zdr: true, data_collection: 'deny', + require_parameters: true, }); expect(body.response_format.json_schema.name).toBe( 'support_independent_check_v1', From cb4c993e98c292625eb14e893e1f20d685570e50 Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Fri, 13 Nov 2026 23:47:55 -0500 Subject: [PATCH 2/2] Pin the legacy checker wire and complete request policy --- docs/SUPPORT_CHECKER_UPGRADE.md | 11 ++++++++--- worker/src/support-independent-checks-model.test.ts | 10 ++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/SUPPORT_CHECKER_UPGRADE.md b/docs/SUPPORT_CHECKER_UPGRADE.md index 069ddbc..5761fc6 100644 --- a/docs/SUPPORT_CHECKER_UPGRADE.md +++ b/docs/SUPPORT_CHECKER_UPGRADE.md @@ -21,10 +21,15 @@ adoption does not enable provider-group selection or add a price policy. Any future opt-in requires separate current route, pricing, privacy and tokenizer qualification. Customer AI remains off. +Legacy endpoint routing sends `provider.only=[endpointTag]`, +`allow_fallbacks:false`, `zdr:true`, `data_collection:'deny'` and +`require_parameters:true`. The transport regression pins this complete block +of existing routing constraints. + Before enabling a selected checker profile, qualify the actual installed wire -and exact endpoint/model, tokenizer implementation, complete system and user -contents, framing allowance and structured schema. Both message contents count -against byte/input-token admission; input plus reserved output must also fit the +and exact endpoint/model and provider routing block, tokenizer implementation, +complete system and user contents, framing allowance and structured schema. +Both message contents count against byte/input-token admission; input plus reserved output must also fit the context ceiling. Do not keep a v1 approval or tokenizer evidence, lower counts, raise budgets, infer approval from a new digest, or relabel old provider results. The SDK must refuse stale route/tokenizer evidence before credential access. diff --git a/worker/src/support-independent-checks-model.test.ts b/worker/src/support-independent-checks-model.test.ts index be6b3d1..edbe16f 100644 --- a/worker/src/support-independent-checks-model.test.ts +++ b/worker/src/support-independent-checks-model.test.ts @@ -213,6 +213,7 @@ async function fixture( } describe('purpose-qualified independent checker transport', () => { it('sends complete untrusted content through the actual transport with qualified provider policy and tokenizer', async () => { + expect(INDEPENDENT_CHECK_WIRE).toBe('openrouter-support-independent-check-v2'); const f = await fixture(); expect(await f.model.resolve()).not.toBeNull(); const result = await f.model.generate(f.input, f.context, f.c); @@ -220,6 +221,15 @@ describe('purpose-qualified independent checker transport', () => { expect(result.usage.costMicros).toBe(100); expect(f.state.calls).toBe(1); const body = JSON.parse(String(f.state.requests[0]!.init.body)); + expect(Object.keys(body).sort()).toEqual([ + 'max_tokens', + 'messages', + 'model', + 'provider', + 'response_format', + 'stream', + ]); + expect(body.stream).toBe(false); expect(body.messages[1].content).toContain( '', );