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.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.

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.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.

Expand Down
31 changes: 21 additions & 10 deletions docs/SUPPORT_CHECKER_UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
# 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
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
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
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
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.

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.
Expand Down Expand Up @@ -48,5 +59,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).
14 changes: 7 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.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)
Expand All @@ -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
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.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
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.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
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.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
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.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',
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.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",
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.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',
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.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
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.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);
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.11',
packages: '@pegma/support-desk-application@0.2.12',
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
probe: 'disabled',
};
if (supportHealthProbeEnabled(env)) {
Expand Down
13 changes: 12 additions & 1 deletion worker/src/support-independent-checks-model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,23 @@ 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);
expect(f.model.parseVerdict(result.outputJson)).toEqual(verdict);
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(
'<!-- hidden unverified claim -->',
);
Expand All @@ -228,11 +238,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({
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
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',
Expand Down
Loading