Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
058e85e
feat(inference): expand OAuth subscription support
PsiACE Nov 9, 2026
c183b6c
refactor(inference): isolate subscription providers
PsiACE Nov 10, 2026
c1e2868
docs(inference): clarify subscription setup and fixtures
PsiACE Nov 10, 2026
6b6b1ee
fix(inference): preserve Claude truncation and sync project locks
PsiACE Nov 10, 2026
7e9e15b
fix(inference): reject length stops regardless of response state
PsiACE Nov 10, 2026
083f17e
fix(inference): handle CLI EOF and Code Assist candidate counts
PsiACE Nov 11, 2026
7cda4c7
fix(build): keep OAuth out of resource bootstrap
PsiACE Nov 12, 2026
fe1e79e
Merge remote-tracking branch 'origin/master' into codex/oauth-subscri…
PsiACE Nov 12, 2026
a674525
fix(dsh): own the automatic operation deadline
PsiACE Nov 12, 2026
9e9548d
feat(gateway): add OAuth subscription transports (#2563)
PsiACE Nov 13, 2026
6aec20c
merge: sync master into OAuth subscriptions
PsiACE Nov 16, 2026
9141664
fix(gateway): preserve Gemini stops and complete license headers
PsiACE Nov 16, 2026
d451902
merge: sync master fixes for CI
PsiACE Nov 16, 2026
a2435ee
fix(oauth): preserve response evidence and credential metadata
PsiACE Nov 17, 2026
3dd72d4
merge: sync master integration fixes
PsiACE Nov 17, 2026
488af8c
test(desktop): qualify OAuth API contract against SQLite Server
PsiACE Nov 17, 2026
bdc2b6b
fix(oauth): preserve release and CLI composition contracts
PsiACE Nov 18, 2026
fabc9c5
merge: sync master and DSH companion fix
PsiACE Nov 18, 2026
6832af4
merge: sync master and regenerate API contracts
PsiACE Nov 18, 2026
7af7088
test(desktop): qualify merged OAuth API contract
PsiACE Nov 18, 2026
2cf3f1f
merge: sync master and Desktop Scope contract
PsiACE Nov 18, 2026
55281d6
test(desktop): qualify OAuth and Scope contract together
PsiACE Nov 18, 2026
10d4757
merge: sync master and Gateway batch capture
PsiACE Nov 19, 2026
ceb62d0
test(desktop): qualify OAuth and batch capture contract
PsiACE Nov 19, 2026
d3113d0
merge: sync OAuth subscriptions with master
frf12 Nov 22, 2026
8dd736a
fix(oauth): preserve protected streams and tool identities
frf12 Nov 22, 2026
daad335
ci: route Python tests to the 16-CPU runner profile
frf12 Nov 20, 2026
547adb6
fix(inference): reject aliased Responses stream identities
frf12 Nov 22, 2026
3f022fd
test(runtime): separate scheduler cooldown from wall time
frf12 Nov 22, 2026
8055660
test(runtime): separate usage recovery from short deadlines
frf12 Nov 22, 2026
70cd153
merge: sync OAuth subscriptions with current master
frf12 Nov 22, 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
40 changes: 40 additions & 0 deletions LICENSES/oauth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# OAuth subscription licenses

The subscription adapters and test vectors use the sources below. Fixture metadata records the source commits, files and tests. Apache-2.0 terms are in the repository's [LICENSE](../LICENSE); the MIT terms follow this table.

| Source | License | Attribution |
| --- | --- | --- |
| [republic](https://github.com/bubbuild/republic) | Apache-2.0 | Chojan Shang; Frost Ming |
| [Magpie](https://github.com/yetone/magpie) | MIT | Copyright (c) 2026 yetone |
| [Goose](https://github.com/block/goose) | Apache-2.0 | Copyright 2024 Block, Inc. |
| [Qwen Code](https://github.com/QwenLM/qwen-code) | Apache-2.0 | Copyright 2025 Google LLC; Copyright 2025 Qwen; Copyright 2026 Qwen Team |
| [Kimi Code](https://github.com/MoonshotAI/kimi-code) | MIT | Copyright (c) 2026 Moonshot AI |

## MIT license

These terms apply to the adapted Magpie and Kimi Code content, with both copyright notices retained.

```text
MIT License

Copyright (c) 2026 yetone
Copyright (c) 2026 Moonshot AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
27 changes: 27 additions & 0 deletions desktop/VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -3525,6 +3525,20 @@ These results qualify the observed local SQLite protocol, not installed WebView
behavior, native credential persistence, other platforms, external providers,
native database upgrades or the formal release acceptance matrix.

## Server 3dd72d45 OAuth protocol qualification

`sqlite-oauth-3dd72d45-v1` qualifies the thirteen bundled Desktop protocol operations against Server source `3dd72d45f3e9e54743e9826615531c0e0262d51b`. The exact tested wheel is `powercontext-1.5.2.dev0-py3-none-any.whl`; all 822 packaged runtime files match a Git archive of that commit. Historical qualifications retain their original source and artifact identities.

- OpenAPI SHA-256: `c13b97964d250d91a60cbba7e1683e62a9ca7d847fafe8d5bd5a3df0a915f772`.
- Wheel SHA-256: `ee42ec54dc7ceb6821a0069a907cca956b8da2bac1bb440cef670e7a265e6c79`.
- Native debug probe SHA-256: `32dad6cd6413b6b0591ecdf3b4fd64d0be2888ae130159ee57b627d18d25ea29`.

On 2026-11-17, the unchanged `desktop/tests/real_server.py` passed anonymous loopback, static Bearer, HTTPS with an explicit CA/base path, and injected-provider/enforced-access modes on Linux 5.10 x86_64, glibc 2.32 and Python 3.14.6. The ordinary ConnectionManager selected the bundled product record. Checks cover save, search, exact revision reads, lost write responses without replay, Server survival after client exit, Principal changes and revocation, 51 same-title Scopes, and scoped authorization without observation permission. Model usage is controlled fixture input.

The host lacks WebKitGTK 4.1. Rust 1.97.1 compiled an isolated protocol-only crate from unchanged product connections, credentials, error, Ops bridge, session observations and transport modules, plus the unchanged `server_probe.rs`. Every registry dependency version and checksum matches the product Cargo lock. The crate omits Tauri/WebView and uses keyring without platform features; no `ci-fixtures` are enabled. These results qualify the local SQLite protocol, not the installed GUI, native credential persistence, other platforms or external providers.

The wheel, probe crate and four-mode report are retained locally under `/tmp/pc-oauth-nov17-repro/`; the report is `desktop-real-server.json`. The report records a dirty Desktop working tree because this new qualification was not committed during the run.


## Server 0d56ec37 plugin reload protocol qualification

Expand Down Expand Up @@ -3586,3 +3600,16 @@ uv run --no-sync python desktop/tests/real_server.py \
--product-qualification sqlite-source-plugins-9f113a72-v1 \
--wheel desktop/.artifacts/source-plugins/powercontext-1.5.2.dev248+g9f113a729-py3-none-any.whl
```

## Server 6832af4e merged OAuth protocol qualification

`sqlite-oauth-6832af4e-v1` qualifies all thirteen bundled Desktop operations against Server source `6832af4e2ecc253566559c8b0d30ab9c1162dbe1`, which combines the OAuth response evidence contract with the plugin and Source API changes from master. All 813 packaged runtime files match a Git archive of that commit.

- OpenAPI SHA-256: `463d5307d44c5d1ab7655f9379a207a768ac453fd75e51fff92527f292cf87ad`.
- Wheel: `powercontext-1.5.2.dev0-py3-none-any.whl`.
- Wheel SHA-256: `49d9e2fc932fd1b0c2ab6632e17259d6833983f4fbaa2dba6519e23646352ea5`.
- Native debug probe SHA-256: `c064a25d2d05ffe88523ef3cd1f87297e5a48260e2d6a7bba9a6c3717ec34f42`.

On 2026-11-18, the unchanged `desktop/tests/real_server.py` passed anonymous loopback, static Bearer, HTTPS with an explicit CA/base path, and injected-provider/enforced-access modes on Linux 5.10 x86_64, glibc 2.32 and Python 3.14.6. The product ConnectionManager selected the bundled qualification and both contract digests matched. The harness checks save, search, exact revision reads, lost write responses without replay, Server survival, Principal changes and revocation, Scope pagination, and scoped authorization. Model usage is fixture input.

The native probe used Rust 1.97.1 and the unchanged product adapter modules in an isolated Cargo crate. Registry dependency pins match the product Cargo lock. The crate omits Tauri/WebView and platform keyring features and enables no `ci-fixtures`. This evidence covers the local SQLite protocol. The wheel and report are retained locally in `/tmp/pc-oauth-nov18-sync/`.
44 changes: 44 additions & 0 deletions desktop/src-tauri/src/connections/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,28 @@
],
"evidence": "desktop/VALIDATION.md#server-be5f0f76-v152-release-protocol-qualification"
},
{
"id": "sqlite-oauth-3dd72d45-v1",
"serverCommit": "3dd72d45f3e9e54743e9826615531c0e0262d51b",
"contractSha256": "c13b97964d250d91a60cbba7e1683e62a9ca7d847fafe8d5bd5a3df0a915f772",
"artifactSha256": "ee42ec54dc7ceb6821a0069a907cca956b8da2bac1bb440cef670e7a265e6c79",
"operations": [
"get_access_principal",
"get_artifact_revision",
"get_capabilities",
"get_connection_identity",
"get_default_scope",
"get_liveness",
"get_readiness",
"get_scope",
"get_server_info",
"get_stats",
"list_scopes",
"remember_memory",
"search_memory"
],
"evidence": "desktop/VALIDATION.md#server-3dd72d45-oauth-protocol-qualification"
},
{
"id": "sqlite-plugin-reload-0d56ec37-v1",
"serverCommit": "0d56ec3773e7a65a95538e38eb8ae9c150eb3461",
Expand Down Expand Up @@ -1772,5 +1794,27 @@
"search_memory"
],
"evidence": "desktop/VALIDATION.md#server-9f113a72-source-plugins-protocol-qualification"
},
{
"id": "sqlite-oauth-6832af4e-v1",
"serverCommit": "6832af4e2ecc253566559c8b0d30ab9c1162dbe1",
"contractSha256": "463d5307d44c5d1ab7655f9379a207a768ac453fd75e51fff92527f292cf87ad",
"artifactSha256": "49d9e2fc932fd1b0c2ab6632e17259d6833983f4fbaa2dba6519e23646352ea5",
"operations": [
"get_access_principal",
"get_artifact_revision",
"get_capabilities",
"get_connection_identity",
"get_default_scope",
"get_liveness",
"get_readiness",
"get_scope",
"get_server_info",
"get_stats",
"list_scopes",
"remember_memory",
"search_memory"
],
"evidence": "desktop/VALIDATION.md#server-6832af4e-merged-oauth-protocol-qualification"
}
]
2 changes: 1 addition & 1 deletion desktop/src-tauri/src/transport/operations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"contractSha256": "d133a4c382a734d1e6fd194b1dbf4d90f7ffabc37fe335fc27d93f59fa4e636f",
"contractSha256": "463d5307d44c5d1ab7655f9379a207a768ac453fd75e51fff92527f292cf87ad",
"operations": {
"get_liveness": {
"method": "GET",
Expand Down
9 changes: 8 additions & 1 deletion desktop/ui/src/generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4516,6 +4516,11 @@ export interface components {
/** @description Complete raw UTF-8 JSON text. Duplicate keys and non-finite numbers are unsupported. */
body: string;
};
UpstreamResponsePayload: {
content_type: string;
/** @description Complete raw UTF-8 provider JSON or Responses SSE before conversion. */
body: string;
};
ModelJsonTextLocation: {
/** @enum {string} */
schema: "powercontext.model-json-text-location.v1";
Expand Down Expand Up @@ -4548,6 +4553,8 @@ export interface components {
target_profile: string;
request_binding: string;
payload: components["schemas"]["ModelJsonPayload"];
/** @description Optional pre-conversion response evidence. Core inspects it in addition to the final payload; both bodies share the response byte limit. */
upstream_payload?: components["schemas"]["UpstreamResponsePayload"];
/** @enum {string} */
completion: "complete";
};
Expand Down Expand Up @@ -4582,7 +4589,7 @@ export interface components {
* @description Protocol of the Core-configured endpoint; present under the same condition as target_endpoint.
* @enum {string}
*/
target_protocol?: "openai-chat" | "openai-responses" | "anthropic-messages" | "openai-embeddings" | "minimax-embeddings" | "jev-rerank";
target_protocol?: "openai-chat" | "openai-responses" | "anthropic-messages" | "openai-embeddings" | "minimax-embeddings" | "jev-rerank" | "google-codeassist" | "google-codeassist-chat" | "claude-cli-prompt";
};
ContextProtectionCapabilities: {
check_versions: string[];
Expand Down
2 changes: 1 addition & 1 deletion desktop/ui/src/generated/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

// Generated from openapi/powercontext.yaml. Do not edit.
export const contractSha256 = "d133a4c382a734d1e6fd194b1dbf4d90f7ffabc37fe335fc27d93f59fa4e636f";
export const contractSha256 = "463d5307d44c5d1ab7655f9379a207a768ac453fd75e51fff92527f292cf87ad";
export const operations = {
"get_liveness": {
"method": "GET",
Expand Down
Loading
Loading