Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/SUPPORT_ASSISTANT_STAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.10` with direct Knowledge Base
The current package selection is Support Desk `0.2.11` with direct Knowledge Base
`0.1.8`; [package.json](../package.json) and the
[lockfile](../pnpm-lock.yaml) are authoritative.

Expand Down Expand Up @@ -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.10` graph. Current host
That checkpoint does not qualify the current `0.2.11` graph. Current host
validation remains pending. Deployed broker timing, retry delivery, CPU use and
wider workloads retain their qualification gates.

Expand Down
52 changes: 52 additions & 0 deletions docs/SUPPORT_CHECKER_UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Preparing the independent checker wire upgrade
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved

The host pins synchronized public Support Desk `0.2.11`, released from
`8f6bc9f033c93dc8166a15c5c214dd4319894c1f` 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
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 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.

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
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.
The host preserves nonpaid Source intake when checker qualification is absent.

The host wrapper regressions check policy placement, unchanged complete outbound
data, full-message byte/token admission and prior-wire refusal. They require
the new public producer behavior and remain unqualified until executed against
the verified public graph. Fictional fixture evidence is never an operator
approval or a successful model-quality evaluation.

After verified public adoption, run the complete normal check, ordinary tests,
all unfiltered Native D1 files, both benchmarks and build on actual Node22 and
Node24. Keep the existing physical D1 meter at 50 calls per invocation and 100
bound parameters per statement, including actual batch calls. Do not substitute
logical call counts or a selected passing case for the complete path. Recheck
provider preparation/check stages, staged review, history, paid-profile
withdrawal and exact acknowledgements using fictional provider responses only.

Native tests measure real local D1 calls, not deployed Free CPU acceptance.
[Workers limits](https://developers.cloudflare.com/workers/platform/limits/)
currently give Free invocations 10ms CPU; waiting for network or D1 is distinct
from CPU time. The longer trusted system policy adds real encoding/tokenizer
work, so retain a separate current-build cold/warm CPU measurement and quota
acceptance gate. Do not increase CPU/D1 caps or enable customer AI to obtain a
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).
17 changes: 10 additions & 7 deletions docs/SUPPORT_COMPOSITION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.10`, Knowledge Base `0.1.8`
Public selection as of 2026-11-13: Support Desk `0.2.11`, 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.10`
- `@pegma/support-desk-contracts@0.2.10`
- `@pegma/support-desk-core@0.2.10`
- `@pegma/support-desk-templates@0.2.10`
- `@pegma/support-desk-ai@0.2.10` (optional coordinator)
- `@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/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)
Expand All @@ -35,8 +35,11 @@ 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.10),
acceptance. [Public Support Desk release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.11),
[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
acceptance gate.
The earlier [Support `0.2.7`](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.7)
and [KB `0.1.6`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.6)
producer checkpoints remain historical; they do not qualify the current host.
Expand Down
8 changes: 4 additions & 4 deletions docs/SUPPORT_LEARNING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ activation evidence.

## Packages and authority

The host selects all five published Support Desk packages at **0.2.10** and its
The host selects all five published Support Desk packages at **0.2.11** and its
four direct Knowledge Base packages at **0.1.8**. The qualified
[Support 0.2.10 release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.10)
[Support 0.2.11 release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.11)
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
Expand All @@ -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.10 graph.
ordinary fixture passes nor that failure qualifies the current 0.2.11 graph.

The current [host policy](../worker/src/support-access.ts), `pegma.dev-policy-8`,
grants four human learning permissions through the actual stored, audited
Expand Down Expand Up @@ -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.10`
passed 1,125 tests locally and in CI. It does not qualify the current `0.2.11`
graph. Current host validation, review and deployment acceptance remain pending.

Relevant executable sources are the
Expand Down
6 changes: 3 additions & 3 deletions evals/assembly-eval.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ const EVAL_NPM: Record<string, string | null> = {
'@pegma/authorization-tokens': '0.4.0',
'@pegma/authorization-identity': '0.4.0',
'@pegma/audit': '0.2.0',
'@pegma/support-desk-contracts': '0.2.10',
'@pegma/support-desk-core': '0.2.10',
'@pegma/support-desk-application': '0.2.10',
'@pegma/support-desk-contracts': '0.2.11',
'@pegma/support-desk-core': '0.2.11',
'@pegma/support-desk-application': '0.2.11',
'@pegma/support-desk-templates': '0.1.1',
'@pegma/webhooks': '0.1.1',
'@pegma/sessions': '0.3.0',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.10",
"@pegma/support-desk-application": "0.2.10",
"@pegma/support-desk-contracts": "0.2.10",
"@pegma/support-desk-core": "0.2.10",
"@pegma/support-desk-templates": "0.2.10",
"@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/webhooks": "0.1.1",
"agents": "^0.20.1",
"gpt-tokenizer": "4.1.2",
Expand Down
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/data/recipe-backlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.10',
'@pegma/support-desk-contracts@0.2.10',
'@pegma/support-desk-core@0.2.10',
'@pegma/support-desk-application@0.2.11',
'@pegma/support-desk-contracts@0.2.11',
'@pegma/support-desk-core@0.2.11',
'@pegma/authorization-core@0.4.0',
'@pegma/storage-core@0.4.0',
'@pegma/spine@0.1.1',
Expand Down
4 changes: 2 additions & 2 deletions worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public acknowledgement endpoint.

## Support Desk composition

Authenticated product feedback composes exact `0.2.10` versions of
Authenticated product feedback composes exact `0.2.11` 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
Expand All @@ -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.10` package is installed for the
The optional `@pegma/support-desk-ai@0.2.11` 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);
Expand Down
2 changes: 1 addition & 1 deletion worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ return {
probe: 'disabled' | 'ok' | 'fail';
} = {
storage: 'cloudflare-d1',
packages: '@pegma/support-desk-application@0.2.10',
packages: '@pegma/support-desk-application@0.2.11',
probe: 'disabled',
};
if (supportHealthProbeEnabled(env)) {
Expand Down
Loading
Loading