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
49 changes: 30 additions & 19 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,17 @@ first publish and later OIDC releases.

## Where things stand

Source preparation, 2026-11-13, synchronizes all five packages and internal
Support pins at `0.2.10`; the root remains private at `0.0.0`. It adds optional
third-argument `signal`/`verifyBeforeCommit` options to customer success and
resolution evidence, retaining two-argument compatibility and receipt-first
recovery under current authority. Exact KB `0.1.8`, `zod@4.6.7` and other
external selections are unchanged. The combined source still needs the normal
release gates and a publication receipt. See [patch notes](docs/RELEASE_NOTES.md#0210-final-success-evidence-guards)
and [release status](docs/RELEASING.md#source-version-0210).

Task 15's bounded deployment-owned canned-response catalog is implemented in
the unpublished source candidate. Staff preview literal values and explicitly
the released SDK source. Staff preview literal values and explicitly
submit an existing reply/note command; exact version/body/target validation and
transactional Audit provenance retain current authorization, revision, replay
and internal-note boundaries. It adds no collection or package version. See
Expand Down Expand Up @@ -179,19 +188,19 @@ collision hints. Customer DTOs and automatic customer mail omit these fields.
Calendars and presence stay host-owned. Task 12 remains pending on both hosts'
durable-store production evidence. Source work does not publish a package.

The five local manifests and exact internal Support pins target unpublished
`0.2.9`. It adds optional per-attempt model-planning/completion, proposal and
All five synchronized packages are published and strictly verified at `0.2.9`.
It adds optional per-attempt model-planning/completion, proposal and
dispatch observations while retaining fresh proof, authority, opaque-version
confirmation and exact ACK recovery. Legacy structural ports keep their full
fallback. See the [candidate notes](docs/RELEASE_NOTES.md#029-engineering-worker-observations)
fallback. See the [release notes](docs/RELEASE_NOTES.md#029-engineering-worker-observations)
and [worker contract](docs/ENGINEERING_EXPORT.md#candidate-029-worker-observations).
The candidate now pins exact verified public KB application/contracts `0.1.8`.
Its changed dependency graph requires fresh SDK qualification; published
`0.2.8` retains its exact KB `0.1.6` pins. The
root stays private at `0.0.0`; source or candidate packs do not qualify registry
publication or a host's complete query/CPU budget.
The optional AI package pins exact public KB application/contracts `0.1.8`.
Its changed dependency graph passed strict registry, native cryptographic/source
and clean-public-consumer qualification. Historical `0.2.8` retains its exact KB
`0.1.6` pins. The root stays private at `0.0.0`; host integration and complete
query/CPU acceptance retain their own gates.

The unpublished `0.2.9` candidate also adds opt-in
Published `0.2.9` also adds opt-in
[`deliveryMode: 'staged'`](docs/RESOLUTION_LEARNING.md#opt-in-staged-draft-delivery-029-candidate)
with durable prepare/write checkpoints that release the claim and a later
physical completion phase.
Expand All @@ -200,14 +209,16 @@ yields after one retirement attempt for later fresh readback.
Closing policy/receipt checks apply to inline delivery too. The optional
[`./openrouter` entry](packages/ai/README.md#optional-openrouter-adapter-source-candidate)
keeps the AI root provider-neutral and requires explicit host binding with
separate host stores, keys and current privacy/configuration evidence. Native
Workers Free 50/100 qualification remains pending.
separate host stores, keys and current privacy/configuration evidence. The
Sessions `0.3.0` prerequisite is public. Final site integration, complete host
Workers Free 50/100 invocation/CPU acceptance, provider/privacy and requested-client
acceptance, and supervised pilots remain pending.

All five packages have verified published `0.2.8` versions. The synchronized
All five packages have verified published `0.2.9` versions. The synchronized
`0.2.1` and `0.2.0` artifacts remain immutable history. The original four names also retain
their published `0.1.0`/`0.1.1` artifacts; the AI name's `0.1.1` is a separate
registration-only bootstrap. Follow the
[publication receipt](docs/RELEASING.md#verified-028-publication-2026-11-12)
[publication receipt](docs/RELEASING.md#verified-029-publication-2026-11-13)
and release operations. Customer services return safe DTOs; staff
services return the authoritative ticket for authorized staff only, and the
staff queue scans a confirmed projection that is never authorization evidence.
Expand Down Expand Up @@ -257,13 +268,13 @@ messages with exact completion fences, and adds deterministic owned
request-person, staff takeover, private success evidence, human queue
selection, and bounded atomic handoff work. It adds no model, KB dependency,
or package; its behavior first shipped in synchronized `0.2.0` and remains in
current `0.2.8`. Do not overwrite registry `0.1.1` or install a source substitute. Host adoption retains its own
published `0.2.9`. Do not overwrite registry `0.1.1` or install a source substitute. Host adoption retains its own
activation gates after verified SDK publication.
Standalone KB-01 through KB-04, AUTH-01 Agent Access, partial KB-05 source
preparation ([KB #4](https://github.com/pegma-dev/knowledge-base/pull/4)), and
both producers' final release preparation are merged. The
[standalone authoring recipe](docs/HOST_COMPOSITION.md#kb-authoring-producers)
selects all four strictly verified KB `0.1.6` packages and verified Agent
[historical standalone authoring recipe](docs/HOST_COMPOSITION.md#kb-authoring-producers)
selected all four strictly verified KB `0.1.6` packages and verified Agent
Access `0.1.1`. The trusted releases close the producer publication gates.
Their manual `0.1.0` bootstrap receipts remain historical and have no OIDC
provenance. SD-02
Expand All @@ -281,8 +292,8 @@ signed `v0.2.0` at `efc9d733b3d305d24cf4197444e1d76c99bdb777`; see
`docs/RELEASING.md` for the dated receipt. Its public composition example lives in `examples/ai`;
the migration and operations handbooks are `docs/UPGRADING.md` and
`docs/AI_OPERATIONS.md`. The base application has no KB or provider dependency; actual KB
`0.1.6` application/contracts dependencies belong only to the current
optional AI `0.2.8` package. Older `0.2.0` and
`0.1.8` application/contracts dependencies belong only to the current
published optional AI `0.2.9` package and prepared `0.2.10` metadata. Historical `0.2.8` retains `0.1.6`; older `0.2.0` and
`0.2.1` AI manifests retain their original `0.1.2` pins. See [assistant coordination](docs/ASSISTANT_COORDINATION.md)
and its [layout checkpoint](docs/COLLECTIONS.md#sd-02-assistant-turn-layout-checkpoint).
PG-01/RG-01 consume exact verified published producers and still require actual
Expand Down
53 changes: 32 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,36 @@
A composable, open-source support queue for web and email.

> [!IMPORTANT]
> Support Desk is in early `0.x` development. All five synchronized `0.2.8`
> Support Desk is in early `0.x` development. All five synchronized `0.2.9`
> packages are published and strictly verified. Hosts consume exact published
> versions and retain their own adoption and activation gates.

The local synchronized source version is **`0.2.9`** and remains unpublished.
Source preparation, 2026-11-13, selects synchronized **`0.2.10`** with optional
final host guards/cancellation on customer success and resolution evidence.
Existing two-argument calls remain valid. Exact accepted receipts recover
under current permissions before obsolete proofs, the optional final guard or
abort checks. See the [patch notes](docs/RELEASE_NOTES.md#0210-final-success-evidence-guards)
and [release status](docs/RELEASING.md#source-version-0210); preparation is not
publication or host acceptance.

The dated verified synchronized publication is **`0.2.9`**.
It adds optional per-attempt engineering model-planning/completion, proposal
and dispatch observations through existing mutation kernels. Current proof,
authority, opaque-version confirmation and exact receipt recovery remain;
older structural ports retain their full fallback. See the
[candidate notes](docs/RELEASE_NOTES.md#029-engineering-worker-observations) and
[release notes](docs/RELEASE_NOTES.md#029-engineering-worker-observations) and
[worker contract](docs/ENGINEERING_EXPORT.md#candidate-029-worker-observations).
Use verified published artifacts for host adoption; source metadata is not a
publication or host-qualification receipt.

The current [verified `0.2.8` release](docs/RELEASING.md#verified-028-publication-2026-11-12)
adds optional late host guards/cancellation and authorized reassessment/post
observations for release follow-up. It retains `0.2.7` engineering read batching
and actual provider-usage accounting, earlier guarded controls, attachments,
staged human learning reviews and recovery APIs. Its optional AI package pins
exact KB application/contracts `0.1.6`. The unpublished `0.2.9` candidate now
targets exact verified public KB `0.1.8` and requires fresh dependency graph
qualification. Earlier artifacts and dated receipts remain immutable.
The [verified `0.2.9` release](docs/RELEASING.md#verified-029-publication-2026-11-13)
also adds opt-in durable release-follow-up check phases and bundle observations,
corrects approval renewal and deferred receipt expiry, and screens the complete
independent-check payload for private ticket text. Its optional AI package pins
exact public KB application/contracts `0.1.8`; the changed dependency graph passed
strict registry, provenance and clean-consumer verification. It retains `0.2.8`
follow-up guards, `0.2.7` engineering read batching and earlier workflows.
Earlier artifacts and dated receipts remain immutable.

Staged retrieval remains OFF by default. Preparation consumes one existing
attempt; both application and verified-configuration caps must allow at least
Expand All @@ -38,9 +46,11 @@ one. Full configuration and authority snapshots must remain identical across
phases; live guards still run. Publication establishes no universal query or
CPU budget and does not qualify a host, provider or client.

All five synchronized `0.2.8` packages are published and strictly verified. See
All five synchronized `0.2.9` packages are published and strictly verified. See
the [release notes](docs/RELEASE_NOTES.md). Host composition, deployment,
provider/privacy and client acceptance remain separate gates.
provider/privacy and client acceptance remain separate gates. The Sessions
`0.3.0` prerequisite is public; final site integration, complete host Workers
Free invocation/CPU acceptance and supervised pilots remain pending.

Implemented in source today: the customer-facing and staff application
services, the repairable staff queue projection, declared collections,
Expand All @@ -52,7 +62,7 @@ tags, host-computed response targets and milestones, and revision collision hint
(Buildout Task 13), with all new metadata limited to staff views. Durable host
deployments, customer UI, staff UI, inbound provider adapters, and production
hardening remain later buildout tasks. Task 12 stays pending on host durable-store
evidence; the current verified package release is `0.2.8`.
evidence; the dated verified package receipt records `0.2.9`.

Buildout Task 14 [attachment APIs](docs/ATTACHMENTS.md) are also implemented
in published `0.2.5`: a host blob port, transactional message metadata,
Expand Down Expand Up @@ -86,8 +96,8 @@ human controls and atomic handoff work, private customer success evidence,
and human queue separation. That source slice includes no model or KB integration
and shipped in `0.2.0`. Standalone KB-01 through KB-04, AUTH-01 Agent Access, partial
KB-05 source preparation ([KB #4](https://github.com/pegma-dev/knowledge-base/pull/4)),
and both producers' final release preparation are merged. The standalone
authoring recipe selects all four strictly verified KB `0.1.6` packages and
and both producers' final release preparation are merged. The historical
standalone authoring recipe selected all four strictly verified KB `0.1.6` packages and
verified `@pegma/agent-access@0.1.1`. The producer releases close SD-02's
KB-05 publication prerequisite. SD-02's optional
`@pegma/support-desk-ai` coordinator and bounded ticket-partition turn jobs
Expand All @@ -100,11 +110,12 @@ See the [producer evidence and bootstrap handoff](docs/HOST_COMPOSITION.md#kb-au
The [assistant coordination guide](docs/ASSISTANT_COORDINATION.md) and
[layout checkpoint](docs/COLLECTIONS.md#sd-02-assistant-turn-layout-checkpoint)
describe the SDK contracts. The base application works without AI; only
the optional coordinator depends on KB. Its current released `0.2.8` manifest
pins exact KB application/contracts `0.1.6`; the older `0.2.1` manifest retains
the optional coordinator depends on KB. Its current released `0.2.9` manifest
pins exact KB application/contracts `0.1.8`; historical `0.2.8` retains `0.1.6`,
and the older `0.2.1` manifest retains
its original `0.1.2` dependencies. The standalone-authoring recipe and Agent
Access selection in the producer handoff remain separate compositions. The
[verified 0.2.8 publication receipt](docs/RELEASING.md#verified-028-publication-2026-11-12)
[verified 0.2.9 publication receipt](docs/RELEASING.md#verified-029-publication-2026-11-13)
records the exact release; host adoption retains its own acceptance gates.
Use the [implementation ledger](docs/KNOWLEDGE_AI_PLAN.md#status-and-reading-order)
for source/release evidence and the remaining activation gates.
Expand Down Expand Up @@ -194,9 +205,9 @@ The organization profile is at
| `@pegma/support-desk-ai` | Optional answers, resolution learning, engineering export and follow-up |

All five packages are published under the `@pegma` scope at verified
[`0.2.8`](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.8). The optional AI package's
[`0.2.9`](https://github.com/pegma-dev/support-desk/releases/tag/v0.2.9). The optional AI package's
registration-only `bootstrap` remains `0.1.1`; earlier registry versions are
immutable history. The [publication receipt](docs/RELEASING.md#verified-028-publication-2026-11-12)
immutable history. The [publication receipt](docs/RELEASING.md#verified-029-publication-2026-11-13)
records the original artifacts and strict verification. There is
deliberately no storage package and no access package. Inbound mail processing
is implemented (Buildout Task 11); host adapters, production hardening, and the
Expand Down
23 changes: 13 additions & 10 deletions docs/AI_OPERATIONS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Optional AI operations

This runbook describes the merged SD-01 through SD-05 contracts assembled by
the current verified published synchronized `0.2.8` release; see its
[publication receipt](RELEASING.md#verified-028-publication-2026-11-12).
the current verified published synchronized `0.2.9` release; see its
[publication receipt](RELEASING.md#verified-029-publication-2026-11-13).
SDK publication does not establish production deployment, verified host data
controls, or pilot acceptance. Use exact published artifacts and complete each
host's own [upgrade rehearsal](UPGRADING.md).
Expand All @@ -16,10 +16,13 @@ usable with all optional AI capabilities disabled.
Published `0.2.6` introduced final host guards and cancellation on seven
engineering controls. Published `0.2.7` adds compatible approval observations
and authorized engineering reads, retaining fresh proof and host authority.
The current `0.2.8` tuple pins exact public KB application/contracts `0.1.6`.
The unpublished `0.2.9` candidate now pins exact verified public KB `0.1.8`;
its changed dependency graph requires fresh SDK qualification.
The published `0.2.8` graph and earlier artifacts remain unchanged.
The current `0.2.9` tuple pins exact public KB application/contracts `0.1.8`
and passed strict registry and clean-consumer qualification. Local source
prepares unpublished `0.2.10` with the same external KB pins; its guards need
their own combined-source qualification and publication before adoption.
See the [source handoff](RELEASING.md#source-version-0210). The historical
[`0.2.8` receipt](RELEASING.md#verified-028-publication-2026-11-12) and its KB
`0.1.6` graph remain unchanged.

The `0.2.8` source additions retained in `0.2.9` add optional late host guards/cancellation to non-post
follow-up controls and forwards staff reassessment guards. Reassessment may
Expand All @@ -29,10 +32,10 @@ ports keep the full legacy path. Use the existing
current-browser/permission/deadline fence; a guard is read-only and does not
replace SDK proof. Web posting retains its authorization/delivery guarantees
and can use a per-attempt application-owned read observation with fresh opaque
confirmations; the compatibility fallback remains. Keep hosts on
the verified `0.2.8` tuple until the next release is published and qualified.
confirmations; the compatibility fallback remains. Use the verified `0.2.9`
tuple and qualify the host's actual composition separately.
See the [published 0.2.8 contract](ENGINEERING_FOLLOWUP.md#candidate-028-followup-host-guards)
and [current source handoff](RELEASING.md#source-version-029).
and [current source handoff](RELEASING.md#source-version-0210).

## Controls and human fallback

Expand Down Expand Up @@ -95,7 +98,7 @@ retest Audit/receipt rows use ordinary capacity. Use explicit staff retry for
eligible draftless held/expired work, reassessment for retained drafts, or local
abandonment to release reservations. None clears parent privacy withdrawal.

The unpublished `0.2.9` follow-up `invocationMode: 'staged'` separates durable
Published `0.2.9` follow-up `invocationMode: 'staged'` separates durable
not-called planning, one conditional generator attempt and fresh completion.
Use deferred Work checks for their separate prepare, provider and receipt
invocations. A received verdict carries no check receipt. Original attempt
Expand Down
12 changes: 6 additions & 6 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,17 +368,17 @@ previous limits. All admission remains under the hard partition cap.
See [declared collections](COLLECTIONS.md#sd-01-handling-and-handoff-layout-checkpoint)
for row, serialized-byte, and capacity bounds before changing durable work.

Changes need their own tests/review. The current synchronized `0.2.8` release is
Changes need their own tests/review. The current synchronized `0.2.9` release is
published and strictly verified; its
[publication receipt](RELEASING.md#verified-028-publication-2026-11-12)
[publication receipt](RELEASING.md#verified-029-publication-2026-11-13)
records the exact artifacts. Older base registry `0.1.1` artifacts remain
immutable history. AUTH-01, KB-04 transport source/SDK proof, partial KB-05
source preparation ([KB #4](https://github.com/pegma-dev/knowledge-base/pull/4)),
and both producers' final release preparation are merged. The
[standalone authoring recipe](HOST_COMPOSITION.md#kb-authoring-producers)
selects all four strictly verified KB `0.1.6` packages and verified Agent
selects all four strictly verified KB `0.1.8` packages and verified Agent
Access `0.1.1`, closing SD-02's producer publication prerequisite. The current
AI release pins the KB application and contracts packages at `0.1.6`.
AI release pins the KB application and contracts packages at `0.1.8`.
PG-01/RG-01 retain actual two-host existing-login/Admin consent and
requested-client proof before activation or pilots. Synthetic proof uses
no actual customer data and cannot close those host gates. Host privacy, operations, full-workflow,
Expand All @@ -387,8 +387,8 @@ activation, and pilot gates remain pending. Follow the

### SD-02 optional coordination

The optional `@pegma/support-desk-ai@0.2.8` package composes exact published KB
`0.1.6` APIs with five fixed turn operations on the base application. The
The optional `@pegma/support-desk-ai@0.2.9` package composes exact published KB
`0.1.8` APIs with five fixed turn operations on the base application. The
application has no KB/provider dependency. Causal signed-in web ingress writes
bounded `assistant_turn` work in the existing ticket partition with its
message, Ticket, Audit, receipt, and quota changes. Lease, preparation, and
Expand Down
Loading
Loading