Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e8aa2af
Compose staff-reviewed release follow-up with published Support 0.2.8
FlyOverCoderKY Nov 12, 2026
3c311a6
Align support recipe and evaluation metadata with published 0.2.8
FlyOverCoderKY Nov 12, 2026
6b802dc
feat: compose trusted engineering production ports
FlyOverCoderKY Nov 12, 2026
43a0861
Add deferred checks and resolved-ticket learning composition
FlyOverCoderKY Nov 12, 2026
a5841d3
Wire shared learning sources and bounded support processing queue
FlyOverCoderKY Nov 12, 2026
84d933a
Preserve human intake when optional learning settings fail
FlyOverCoderKY Nov 12, 2026
6d656f1
Wire customer confirmation and verified-test support evidence
FlyOverCoderKY Nov 12, 2026
2275186
Keep success-evidence changes scoped to affected code
FlyOverCoderKY Nov 12, 2026
15c7e95
fix(support): bind GitHub creation to durable acceptance receipts
FlyOverCoderKY Nov 12, 2026
6269d5e
feat(support): admit human resolution evidence independently of model…
FlyOverCoderKY Nov 12, 2026
d8fe8b7
feat(support): bind staff-confirmed KB reports to successful test evi…
FlyOverCoderKY Nov 12, 2026
7f96acd
Wire bounded source-only resolution learning into the default Worker
FlyOverCoderKY Nov 12, 2026
5a8c7e3
Reuse admitted access across internal test-report reads
FlyOverCoderKY Nov 12, 2026
829c9f3
Sweep expired test-report associations in bounded maintenance pages
FlyOverCoderKY Nov 12, 2026
6e6ea77
Confirm support test evidence through current KB report observations
FlyOverCoderKY Nov 12, 2026
4e12d3f
Compose default paid support profiles with purpose-bound checker access
FlyOverCoderKY Nov 12, 2026
c32eae7
Compose default release-follow-up workers and verified KB retests
FlyOverCoderKY Nov 13, 2026
f79b025
Add staff queue, audience and engineering review controls
FlyOverCoderKY Nov 13, 2026
ea58c2a
Add staff retest report selection and exact request recovery
FlyOverCoderKY Nov 13, 2026
42e79fc
Exercise queued comparison preparation in checker fixtures
FlyOverCoderKY Nov 13, 2026
2342874
Bind learning checks to the exact KB private-source verifier
FlyOverCoderKY Nov 13, 2026
1c8343c
Exercise the real catalog MCP transport and request limits
FlyOverCoderKY Nov 13, 2026
f61ab01
Resume release follow-up through durable invocation phases
FlyOverCoderKY Nov 13, 2026
aab2778
Use fresh read-only session observations at protected closing checks
FlyOverCoderKY Nov 13, 2026
19549ac
Accept the qualified Azure output token parameter
FlyOverCoderKY Nov 13, 2026
5744fb0
Adopt verified public packages and align session observation fixtures
FlyOverCoderKY Nov 13, 2026
e6f9f4d
Align deterministic catalog evaluation with public Sessions 0.3.0
FlyOverCoderKY Nov 13, 2026
232d169
Fix reviewed support recovery and release projection boundaries
FlyOverCoderKY Nov 13, 2026
5a5d95f
Align remaining support learning and staging guides
FlyOverCoderKY Nov 13, 2026
95ef7ff
Align host guidance with verified Support Desk 0.2.10
FlyOverCoderKY Nov 13, 2026
4d212bb
Adopt verified Support Desk 0.2.10 packages
FlyOverCoderKY Nov 13, 2026
78ad180
Fix support authority, bounded retests and staff workflow admission
FlyOverCoderKY Nov 13, 2026
4f2489c
Close KB confirmation after governance checks and recover terminal re…
FlyOverCoderKY Nov 13, 2026
fe9035c
Await retry acknowledgement and refresh in late-commit browser tests
FlyOverCoderKY Nov 13, 2026
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
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ retiregolden.org, runs the stack on Azure).
Datadog. Workers Logs persistence is enabled via Wrangler
`observability` (the Cloudflare log store). Datadog ships when
`DATADOG_API_KEY` is set as a Worker secret.
- The **portability exhibit**: the account API composes exact
`@pegma/storage-cloudflare-d1@0.4.7`, `@pegma/sessions@0.2.1`,
- The **portability exhibit**: the account API composes
`@pegma/storage-cloudflare-d1@0.4.7`, `@pegma/sessions`,
`@pegma/identity@0.1.2`, and `@pegma/authorization-identity@0.4.0`
through `worker/src/identity-runtime.ts`.
through `worker/src/identity-runtime.ts`. Current dependency selections are
recorded in [`package.json`](package.json) and [`pnpm-lock.yaml`](pnpm-lock.yaml);
the [Support composition snapshot](docs/SUPPORT_COMPOSITION.md#packages)
distinguishes the current public graph from historical qualification receipts.
- **Environment runbooks** for a synthetic Bench Ticket demo (email-code
identity, sessions, mail catcher, support desk, health):
[https://pegma.dev/runbooks](https://pegma.dev/runbooks).
Expand Down
34 changes: 20 additions & 14 deletions docs/KNOWLEDGE_COMPOSITION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ the existing deployment workflow, which deploys the Worker before the Pages
site. Confirm that run and the metadata readback below before client tests.
Native-client acceptance and broader rollout remain pending. The host uses
exact published `@pegma/agent-access@0.1.1` and all four
`@pegma/knowledge-base-*` packages at `0.1.6`, over its existing Identity,
`@pegma/knowledge-base-*` packages in the
[current public graph](SUPPORT_COMPOSITION.md#packages), over its existing Identity,
Sessions, stored roles and D1 Store. The public catalog at `/api/mcp` remains
separate from protected article authoring.

Expand All @@ -20,21 +21,21 @@ at signed source
[`72358940203e1d398087f2fbe49d33ee95b6fb71`](https://github.com/pegma-dev/rate-limit/commit/72358940203e1d398087f2fbe49d33ee95b6fb71)
passed independent exact-byte, signature/provenance and registry-consumer
verification. Existing Identity and Support Desk keep their
`@pegma/rate-limit@0.2.0` dependency. The current host selects all five Support
Desk packages at `0.2.7`, including the optional AI coordinator. The separate
synthetic stage remains default-disabled. The
[verified Support Desk `0.2.7` release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.7)
pins its optional AI dependency on KB application/contracts `0.1.6`.
`@pegma/rate-limit@0.2.0` dependency. The current host uses the
[public Support/KB/Sessions graph](SUPPORT_COMPOSITION.md#packages), including the
optional AI coordinator's exact direct KB application/contracts dependencies.
The manifest and lockfile are authoritative for current selections. The separate
synthetic stage remains default-disabled.

The learning port forwards actual KB errors without the obsolete `0.1.2`
constructor alias or class-translation shim. The earlier `0.2.1` / nested `0.1.2`
assembly and its failed isolated production-layout diagnostic remain historical;
they neither establish nor replace current-graph qualification.

All four exact KB `0.1.6` packages are installed in the manifest and lockfile.
The release adds bounded native-client MCP request-metadata compatibility and
retains the shared report factory and governed authoring-context/report-query
APIs. Its producer verification covers
The current four direct KB selections are recorded in the linked graph above.
The earlier KB `0.1.6` producer checkpoint added bounded native-client MCP
request-metadata compatibility and retained the shared report factory and
governed authoring-context/report-query APIs. Its producer verification covers
original registry bytes, signatures/source provenance and public-consumer
checks at signed source
[`b2946e149078e0ef460f970c2271c196ea9fc759`](https://github.com/pegma-dev/knowledge-base/commit/b2946e149078e0ef460f970c2271c196ea9fc759).
Expand All @@ -60,7 +61,7 @@ model. It adds no public ingress or sixth cron to the existing human/KB
handlers. Actual stage broker and CPU proof remain pending, together with the
existing production, customer and provider acceptance gates.

The current manifest and lockfile pin released KB `0.1.6`,
The current manifest and lockfile pin the released KB graph linked above,
`@pegma/storage-cloudflare-d1@0.4.7` and genuine `@pegma/storage-core@0.4.0`.
The D1 adapter itself retains that exact Core `0.4.0` dependency; no source alias,
local archive, override or forced Core deduplication supplies the canonical
Expand Down Expand Up @@ -222,9 +223,11 @@ The [host policy](../worker/src/support-access.ts) keeps authority explicit:
- `Support` retains its original six Support Desk permissions (queue read,
staff reply, notes, assignment, management and Audit read) and adds explicit
human takeover plus explicit learning read, evidence submission, review and
withdrawal introduced by policy `pegma.dev-policy-5`. Current policy
`pegma.dev-policy-6` retains them and adds human engineering read, evidence
submission, review, withdrawal and repository-policy read. Learning processing
withdrawal introduced by policy `pegma.dev-policy-5`. The
[current policy](SUPPORT_COMPOSITION.md#authorization) retains them alongside
human engineering read, evidence
submission, review, withdrawal and repository-policy read, plus named human
release-follow-up read, review and evidence submission. Learning processing
is not granted. Existing assignments are not migrated or silently granted KB
powers.
- `Knowledge` is a separately assigned role for collection reads, draft and
Expand All @@ -237,6 +240,9 @@ The [host policy](../worker/src/support-access.ts) keeps authority explicit:
Authenticated accounts receive the named article-read permission; collection
audience policy and the released KB's current publication checks still decide
which guides they can read. Role names do not bypass those checks.
Their separate customer Support defaults include owned success confirmation,
as defined by the [host policy](../worker/src/support-access.ts); this does not
grant KB test-report confirmation or publication authority.
Portal article, search and collection results are withheld if the session or
principal changes, or any captured permission is lost during the read. Added
grants do not invalidate an otherwise authorized result.
Expand Down
7 changes: 4 additions & 3 deletions docs/SUPPORT_ASSISTANT_STAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ 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.7` with direct Knowledge Base
`0.1.6`; [package.json](../package.json) is authoritative.
The current package selection is Support Desk `0.2.10` with direct Knowledge Base
`0.1.8`; [package.json](../package.json) and the
[lockfile](../pnpm-lock.yaml) are authoritative.

From the repository root:

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

Expand Down
74 changes: 47 additions & 27 deletions docs/SUPPORT_COMPOSITION.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,35 @@ provider and customer activation retain their acceptance gates. See the

## Packages

Exact published versions:

- `@pegma/support-desk-application@0.2.7`
- `@pegma/support-desk-contracts@0.2.7`
- `@pegma/support-desk-core@0.2.7`
- `@pegma/support-desk-templates@0.2.7`
- `@pegma/support-desk-ai@0.2.7` (optional coordinator)
Public selection as of 2026-11-13: Support Desk `0.2.10`, 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/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)
- `@pegma/authorization-storage@0.4.0` (D1-backed role store)

All five Support Desk packages have completed producer publication and
registry qualification. The optional AI package selects exact KB application
and contracts `0.1.6`; the host selects all four KB packages at that version.
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. [Verified Support Desk `0.2.7` release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.7),
[verified KB `0.1.6` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.6).
acceptance. [Public Support Desk release](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.10),
[public KB release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.8).
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.

Peers already present on the host: `@pegma/storage-core@0.4.0`,
`@pegma/storage-cloudflare-d1@0.4.7`, `@pegma/sessions@0.2.1`,
`@pegma/rate-limit@0.2.0`, `@pegma/identity@0.1.2`, `@pegma/spine@0.1.1`.
`@pegma/storage-cloudflare-d1@0.4.7`, `@pegma/sessions@0.3.0`,
`@pegma/rate-limit@0.2.0`, `@pegma/identity@0.1.2` and `@pegma/spine`
(declared range and resolution are recorded in the manifest and lockfile).
These are direct host selections; the lockfile retains each released package's
own dependencies, including Support Desk's Spine `0.1.2`. No override or forced
deduplication replaces that graph.
Expand All @@ -48,10 +55,10 @@ uses signed source
[Strict release verification](https://github.com/pegma-dev/support-desk/actions/runs/42907283767/job/130161276758)
qualifies those historical producer packages. The earlier public `0.2.5` graph
passed the [normal local and CI validation checkpoint](KNOWLEDGE_COMPOSITION.md#public-025-adoption-checkpoint).
That checkpoint does not qualify the current `0.2.7` host graph. Current host
validation, review and deployment acceptance remain pending. The current
[Sessions `0.2.1` selection](https://github.com/pegma-dev/sessions/releases/tag/v0.2.1)
includes the verified producer fix for the earlier `0.2.0` default-clock
That checkpoint does not qualify the current public graph above. Current host
validation, review and deployment acceptance remain pending. The earlier
[Sessions `0.2.1` checkpoint](https://github.com/pegma-dev/sessions/releases/tag/v0.2.1)
included the verified producer fix for the earlier `0.2.0` default-clock
concurrency defect under a consistent advancing clock.

## Storage namespace
Expand Down Expand Up @@ -82,9 +89,13 @@ unified host policy's `defaults` (no paid entitlement):
- `support.ticket.read.own`
- `support.ticket.reply.own`
- `support.ticket.request_person.own`
- `support.ticket.confirm_success.own`

Policy version: `pegma.dev-policy-6` — one `PolicyDocumentV1` for the whole
host, schema-validated in tests (see `docs/ROLE_ADOPTION_PLAN.md`).
The current [stored-role policy](../worker/src/support-access.ts) is
`pegma.dev-policy-8` — one `PolicyDocumentV1` for the whole host,
schema-validated in tests (see `docs/ROLE_ADOPTION_PLAN.md`). Version 8 adds
authenticated owner success confirmation; version 7 introduced the three human
release-follow-up rights. These are authority revisions; the schema remains v1.

### Staff (stored `Support` role)

Expand Down Expand Up @@ -113,6 +124,9 @@ The `Support` role maps to:
- `support.engineering.review`
- `support.engineering.withdraw`
- `support.engineering.policy.read`
- `support.engineering.followup.read`
- `support.engineering.followup.review`
- `support.engineering.followup.evidence.submit`

`Admin` and `Knowledge` alone do not grant Support queue authority. Taking over
changes handling authority; the existing assignment action remains separate.
Expand Down Expand Up @@ -162,6 +176,7 @@ Worker routes (same-origin session + CSRF `X-Pegma-CSRF` for mutations):
| `GET` | `/api/support/tickets/:id` | Read own; missing/non-owned → same 404 |
| `POST` | `/api/support/tickets/:id/replies` | Reply (rate-limited) |
| `POST` | `/api/support/tickets/:id/request-person` | Owned human request; body `{ commandId }` |
| `POST` | `/api/support/tickets/:id/confirm-success` | Owned success confirmation; body `{ commandId, lastSeenVisibleMessageId }` |

### Staff (`/api/support/admin/…`)

Expand Down Expand Up @@ -191,7 +206,7 @@ Worker routes (same-origin session + CSRF `X-Pegma-CSRF` for mutations):

### Human controls

The three human-control routes require the original same-origin browser
The human-control routes require the original same-origin browser
session; bearer `Authorization` is rejected. Mutations use the current
`csrfToken` from the account/ticket response in `X-Pegma-CSRF`. The server
rechecks current Identity, stored Support authority where required, original
Expand Down Expand Up @@ -287,16 +302,16 @@ invocation.

## Optional resolution learning

The current source selects all five published Support Desk `0.2.7` packages
with the four direct KB `0.1.6` packages. AI `0.2.7` also declares exact KB
`0.1.6` dependencies. The public forwarding port preserves KB error instances;
The current source uses the [public package graph above](#packages), including
the optional AI coordinator's exact direct KB dependencies. The public
forwarding port preserves KB error instances;
no KB `0.1.2` alias, translation shim, second Store, override or private SDK
import supplies this assembly. The earlier Support `0.2.1` / nested KB `0.1.2`
compatibility assembly and its failed isolated production-layout diagnostic are
historical, not current graph or host-acceptance evidence.

The staged learning review admission and Queue worker retained in this branch
use the published, strictly verified Support Desk `0.2.7` APIs. The earlier
use the published Support Desk APIs in that graph. The earlier
`0.2.5` host validation checkpoint remains historical. Current host validation,
review and deployment acceptance remain pending. Runtime availability and
feature activation retain their existing trusted composition and readiness
Expand All @@ -315,8 +330,10 @@ approval nor delivery publishes a guide: ordinary KB evidence, review and
publication gates still apply.

Policy `pegma.dev-policy-5` introduced four explicit learning permissions to
`Support`. Current policy `pegma.dev-policy-6` retains those grants and adds
human engineering permissions; learning processing and KB staff access remain
`Support`. The [current host policy](../worker/src/support-access.ts) retains
those grants alongside human engineering and release-follow-up permissions;
authenticated owner success confirmation is a separate customer default.
Learning processing and KB staff access remain
separate. Private proposal reads and new review commits also require separately
current KB `draftRead` and
`provenanceRead`, normally through `Knowledge` or `Admin`. Browser submissions
Expand Down Expand Up @@ -369,7 +386,7 @@ request/maintenance batching and activation limits remain documented in
## Staged assistant retrieval is separate

AI `0.2.2` introduced explicit `stagedRetrieval:true`, retained by the current
`0.2.7` selection; omission remains monolithic. The preparation attempt retrieves authorized sources and records a
public graph above; omission remains monolithic. The preparation attempt retrieves authorized sources and records a
bounded no-call request without reserving paid usage. Only its durably
acknowledged finish returns `prepared`. The host must return and schedule a
genuinely later physical invocation at or after `nextAttemptAt`, never loop or
Expand Down Expand Up @@ -446,7 +463,10 @@ Built in the open by RetireGolden, LLC.

## Optional engineering human composition

The [engineering assembly](SUPPORT_ENGINEERING.md) uses policy version 6.
The [engineering assembly](SUPPORT_ENGINEERING.md) introduced its grants in policy
version 6. Version 7 added the separate
[release-follow-up controls](SUPPORT_RELEASE_FOLLOWUP.md). Current policy
version 8 retains both sets of grants and adds owner success confirmation.
Support receives the five named human engineering permissions. Admin adds
repository-policy read and manage permissions. Policy operations require
current Admin and Support queue authority together.
Expand Down
Loading
Loading