Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4d64c4f
feat(dashboard): show passive artifact processing status
Zxf-xufeng Nov 19, 2026
d6e0036
chore(desktop): qualify dashboard processing contract
Zxf-xufeng Nov 19, 2026
2cfd63f
merge: reconcile dashboard processing with latest master
Zxf-xufeng Nov 19, 2026
b28d863
chore(desktop): qualify merged processing status contract
Zxf-xufeng Nov 19, 2026
41ecb04
merge: update processing dashboard with latest master
Zxf-xufeng Nov 23, 2026
dfe4d18
fix(dashboard): authorize processing evidence in its read snapshot
Zxf-xufeng Nov 23, 2026
2c2f414
chore(desktop): qualify snapshot-authorized processing contract
Zxf-xufeng Nov 23, 2026
c30bacd
merge: reconcile dashboard status with the v1.6.0 contract
Zxf-xufeng Nov 23, 2026
7c1bfb9
chore(desktop): qualify dashboard status on the 1.6.0 contract
Zxf-xufeng Nov 23, 2026
f2b960a
fix(dashboard): correct processing freshness and diagnostic evidence
Zxf-xufeng Nov 23, 2026
88bddd5
fix(contract): bind status reads and preserve nullable processing evi…
Zxf-xufeng Nov 23, 2026
d284335
build(integrations): ship and qualify the processing status contract
Zxf-xufeng Nov 23, 2026
17befd2
fix(dashboard): distinguish executor evidence and retain block ranges
Zxf-xufeng Nov 24, 2026
f99775e
fix(dashboard): resume status refresh after navigation transport errors
Zxf-xufeng Nov 24, 2026
75e9f04
fix(dashboard): report structural block reasons and executor read time
Zxf-xufeng Nov 24, 2026
9018396
fix(dashboard): distinguish dirty inputs and surface known Dream fail…
Zxf-xufeng Nov 24, 2026
61c9761
fix(runtime): keep binding scan deadlines out of scope observations
Zxf-xufeng Nov 24, 2026
ddfb692
fix(dashboard): show scoped failure observations and cancel outgoing …
Zxf-xufeng Nov 24, 2026
b4a1090
test(dashboard): verify late navigation responses and failure redaction
Zxf-xufeng Nov 24, 2026
7ecda1f
build(desktop): qualify scoped failure observations on the native pro…
Zxf-xufeng Nov 24, 2026
df7486d
fix(dashboard): restore failed scope selections and narrow Dream hist…
Zxf-xufeng Nov 24, 2026
24df3df
fix(processing): bound mixed history reads and align HTTP error handling
Zxf-xufeng Nov 24, 2026
7ca9c52
test(server): cover cache policy before routing and on unhandled errors
Zxf-xufeng Nov 24, 2026
1cc7bb0
build(desktop): qualify the processing status query error contract
Zxf-xufeng Nov 24, 2026
5dab8e5
fix(dashboard): preserve cleared scope during option discovery
Zxf-xufeng Nov 24, 2026
c162735
fix(processing): preserve scoped evidence and bound status reads
Zxf-xufeng Nov 24, 2026
134602b
merge: integrate current master into dashboard processing status
Zxf-xufeng Nov 30, 2026
f3775cb
fix(dashboard): preserve independent processing evidence after mergin…
Zxf-xufeng Nov 30, 2026
c9b652b
test(desktop): record native qualification for the merged processing …
Zxf-xufeng Nov 30, 2026
2672c76
merge: reconcile processing status with configurable tag limits
Zxf-xufeng Nov 30, 2026
4f891d3
test(desktop): qualify the processing and tag limits contract
Zxf-xufeng Nov 30, 2026
0f236d3
Merge remote-tracking branch 'origin/master' into codex/dashboard-pro…
Zxf-xufeng Nov 30, 2026
67a8166
fix(dashboard): address processing status review findings
Zxf-xufeng Nov 30, 2026
ce886ad
test(dashboard): align processing status fixtures with runtime types
Zxf-xufeng Nov 30, 2026
3d80335
chore(desktop): align conflicting files with master before branch update
Zxf-xufeng Dec 1, 2026
8331a27
Merge branch 'master' into codex/dashboard-processing-status
Zxf-xufeng Dec 1, 2026
732c766
fix(desktop): restore processing status contract and compatibility en…
Zxf-xufeng Dec 1, 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
14 changes: 14 additions & 0 deletions desktop/VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -3928,3 +3928,17 @@ Reproduce with the recorded artifact (allow sufficient local startup time):
--product-qualification sqlite-release-1-6-0-98a9b1f7-v1 \
--wheel /data/codex-tmp/release-1.6.0/wheel/powercontext-1.5.3.dev327+g98a9b1f7f-py3-none-any.whl
```

## Processing status query errors

The ordinary macOS Desktop client selected `sqlite-processing-status-24df3df1-v1` for all 13 native operations against the SQLite server with the processing-status query error contract. Anonymous loopback, static Bearer, HTTPS with an explicit CA and base path, and enforced Provider authentication passed. The verification checkout was `65e856f14306eb173c70c94ed7bcac050d28f142`. It regenerated the Desktop bindings and compiled the native probe with the candidate compatibility profile. [Qualification run and retained evidence](https://github.com/oceanbase/powercontext/actions/runs/45339568375)

| Input | Identity |
| --- | --- |
| Server source | `24df3df190e5f6650f0e1479daeb603d38eb4699` |
| OpenAPI SHA-256 | `0c2d4a26da2669f6fd917b13a668a53dfb952efe11727d2efd9a5cd2cadcb47a` |
| Wheel | `powercontext-1.5.3.dev352+g24df3df19-py3-none-any.whl` |
| Wheel SHA-256 | `5d37d4df1fd3ca22694f5c460840cc36b97f0ea83acbe5e8effeeac395e20cce` |
| Native probe SHA-256 | `44e07ee1ae91624e4b160054b6d92e38c6fb745489b2ae18164127184abfe579` |

The `desktop-protocol-qualification-2725` artifact contains the wheel and the four-mode report. Run `desktop/tests/real_server.py --product-qualification sqlite-processing-status-24df3df1-v1 --wheel PATH_TO_WHEEL` with the recorded wheel and the product `server_probe` build.
22 changes: 22 additions & 0 deletions desktop/src-tauri/src/connections/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -2058,5 +2058,27 @@
"search_memory"
],
"evidence": "desktop/VALIDATION.md#powercontext-160-release-protocol-qualification"
},
{
"id": "sqlite-processing-status-24df3df1-v1",
"serverCommit": "24df3df190e5f6650f0e1479daeb603d38eb4699",
"contractSha256": "0c2d4a26da2669f6fd917b13a668a53dfb952efe11727d2efd9a5cd2cadcb47a",
"artifactSha256": "5d37d4df1fd3ca22694f5c460840cc36b97f0ea83acbe5e8effeeac395e20cce",
"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#processing-status-query-errors"
}
]
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": "dba1e669da2c38f0c52a5720a300ea43b7020c58c62f503e18b588237f870374",
"contractSha256": "0c2d4a26da2669f6fd917b13a668a53dfb952efe11727d2efd9a5cd2cadcb47a",
"operations": {
"get_liveness": {
"method": "GET",
Expand Down
179 changes: 179 additions & 0 deletions desktop/ui/src/generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,26 @@ export interface paths {
patch?: never;
trace?: never;
};
"/v1/scopes/{scope_id}/processing-status": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Inspect existing artifact processing evidence
* @description Read bounded existing progress, safe blocks and Dream outcomes for one Scope and family without invoking models, readiness probes, processing, retries or business-state writes. Requires Scope read access. Local observations are not remote worker coverage.
*/
get: operations["get_artifact_processing_status"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/v1/scopes/{scope_id}/dream": {
parameters: {
query?: never;
Expand Down Expand Up @@ -3912,6 +3932,131 @@ export interface components {
totals: components["schemas"]["RecallTokenValue"];
daily: components["schemas"]["RecallTokenDay"][];
};
GetArtifactProcessingStatusRequest: {
family: string;
};
ArtifactProcessingProgress: {
source_cursor: number;
source_head: number;
target_source_through: number | null;
pending_inputs: boolean;
};
ArtifactProcessingObservation: {
binding: string;
family: string | null;
state: components["schemas"]["ProcessingState"];
reason: components["schemas"]["ProcessingReason"];
/** Format: date-time */
observed_at: string;
scheduler_observed: boolean;
requested_generation: number;
handled_generation: number;
dirty_generation: number;
clean_generation: number;
running_seconds: number | null;
next_check_seconds: number | null;
retry_failures: number | null;
};
ArtifactProcessingExecutor: {
binding: string;
family: string | null;
state: components["schemas"]["ProcessingState"];
reason: components["schemas"]["ProcessingReason"];
/** Format: date-time */
observed_at: string;
scheduler_observed: boolean;
running_seconds: number | null;
next_check_seconds: number | null;
retry_failures: number | null;
/** @description Known failure category from the last observed failed attempt for this Scope and binding. */
last_error_code?: string | null;
/** @description Safe observation boundary of that failure, when known. */
last_error_stage?: string | null;
/**
* Format: date-time
* @description Time of that failed attempt in the current local retry cycle.
*/
last_error_at?: string | null;
};
ArtifactProcessingBlock: {
reason: string | null;
stage: string | null;
source_after: number;
/** @description Inclusive end of the attempted Source window, when recorded. */
source_through: number | null;
/** @description Inclusive end of the Source window used for budget accounting, when recorded. */
budget_source_through: number | null;
target_source_through: number;
attempts: number;
requests: number;
tokens: number;
block_id: string | null;
/** Format: date-time */
blocked_at: string | null;
persisted: boolean;
};
ArtifactProcessingDream: {
run_id: string;
operation: string;
status: components["schemas"]["ArtifactProcessingDreamState"];
outcome: components["schemas"]["ArtifactProcessingDreamOutcome"] | (null);
/** Format: date-time */
accepted_at: string;
/** Format: date-time */
completed_at: string | null;
candidate: components["schemas"]["DreamCandidateRef"] | (null);
reason: string | null;
stage: string | null;
};
ArtifactProcessingEvidence: {
origin: string;
durability: components["schemas"]["ArtifactProcessingDurability"];
scope_id: string;
binding: string | null;
/** Format: date-time */
observed_at: string | null;
/** Format: date-time */
read_at: string;
freshness: components["schemas"]["ArtifactProcessingFreshness"];
};
/** @description Passive evidence for one Scope and family. Consumption, invocation acknowledgement, local execution, blocks and historical Dream outcomes are independent. Idle does not prove publication. Missing execution observations do not prove stopped work. */
ArtifactProcessingStatusResponse: {
scope_id: string;
family: string;
state: components["schemas"]["ArtifactProcessingSummaryState"];
/** Format: date-time */
observed_at: string;
/** Format: date-time */
queried_at: string;
source_consumption_applicable: boolean;
progress: components["schemas"]["ArtifactProcessingProgress"] | (null);
invocation: components["schemas"]["ArtifactProcessingObservation"] | (null);
executor: components["schemas"]["ArtifactProcessingExecutor"] | (null);
/** Format: date-time */
executor_expires_at: string | null;
block: components["schemas"]["ArtifactProcessingBlock"] | (null);
dream_operations: components["schemas"]["ArtifactProcessingDream"][];
dream_pending: boolean | null;
unavailable_reason: string | null;
availability: {
[key: string]: components["schemas"]["ArtifactProcessingAvailability"];
};
evidence: {
[key: string]: components["schemas"]["ArtifactProcessingEvidence"];
};
};
/** @enum {string} */
ArtifactProcessingSummaryState: "idle" | "pending" | "blocked" | "unknown";
/** @enum {string} */
ArtifactProcessingDreamState: "queued" | "running" | "succeeded" | "failed";
/** @enum {string} */
ArtifactProcessingDreamOutcome: "proposed" | "no_change" | "needs_evidence";
/** @enum {string} */
ArtifactProcessingDurability: "durable" | "process_local";
/** @enum {string} */
ArtifactProcessingFreshness: "fresh" | "stale" | "unknown" | "not_applicable";
/** @enum {string} */
ArtifactProcessingAvailability: "available" | "unavailable" | "not_applicable";
/** @enum {string} */
ProcessingState: "idle" | "dirty" | "pending" | "acknowledged" | "queued" | "running" | "retry_wait" | "blocked";
/** @enum {string} */
Expand Down Expand Up @@ -9166,6 +9311,40 @@ export interface operations {
503: components["responses"]["Unavailable"];
};
};
get_artifact_processing_status: {
parameters: {
query: {
family: string;
};
header?: never;
path: {
scope_id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Existing processing evidence; unsupported families are explicitly unavailable. */
200: {
headers: {
"X-PowerContext-Request-ID": components["headers"]["RequestId"];
/** @description Always no-store. */
"Cache-Control"?: string;
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ArtifactProcessingStatusResponse"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
422: components["responses"]["InvalidRequest"];
500: components["responses"]["InternalError"];
503: components["responses"]["Unavailable"];
};
};
list_dream_runs: {
parameters: {
query?: {
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 = "dba1e669da2c38f0c52a5720a300ea43b7020c58c62f503e18b588237f870374";
export const contractSha256 = "0c2d4a26da2669f6fd917b13a668a53dfb952efe11727d2efd9a5cd2cadcb47a";
export const operations = {
"get_liveness": {
"method": "GET",
Expand Down
33 changes: 33 additions & 0 deletions desktop/ui/tests/processing-status-contract.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2026 OceanBase.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import type { components } from "../src/generated/api";

type Status = components["schemas"]["ArtifactProcessingStatusResponse"];
type Dream = components["schemas"]["ArtifactProcessingDream"];

// Both shapes are returned by the status endpoint and checked by the strict Desktop typecheck.
export const emptySkill = {
progress: null,
invocation: null,
executor: null,
block: null,
} satisfies Pick<Status, "progress" | "invocation" | "executor" | "block">;

export const failedDream = {
outcome: null,
candidate: null,
} satisfies Pick<Dream, "outcome" | "candidate">;
30 changes: 30 additions & 0 deletions docs/en/development/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,36 @@ Prefer Tabler's default typography, font weights, buttons and form states. Use r

Chinese, English, light and dark settings apply across the Dashboard, including login and standalone source pages. Translations may wrap naturally, but should preserve navigation order, button groups and column proportions. Theme changes retain the information hierarchy and readability. Changing the interface language does not rewrite business content. Use existing brand assets for the full logo and only the graphic for the favicon.

## Artifact processing evidence

Memory, Topic Memory, Experience, Skill, current Profile, Handoff and Prompt collection pages load a shared processing summary independently of saved content. The summary applies to the current Scope and family, regardless of search, period or artifact lifecycle filters. Historical Profile revisions and generation forms keep their existing content views.

`GET /v1/scopes/{scope_id}/processing-status?family={family}` requires `scope.read`. It reuses the built-in passive inspector and returns `Cache-Control: no-store`. The Python client exposes `get_artifact_processing_status`. Supported families are `atomic-memory` (`memory` is an alias), `topic-memory`, `experience`, `skill`, `profile`, `handoff` and `prompt`. Unsupported families return an explicit unavailable reading; runtimes without the built-in inspector return HTTP 503. Inspection does not create processing intents, acquire worker leases, retry work or call a model. No database migration is required.

Source consumption, invocation intent, execution observation, blocks and Dream records are independent evidence. A Source block can coexist with pending Dream work. Skills, Handoffs and Prompts have no Source consumption path. A caught-up cursor or acknowledged invocation does not establish publication. Dream history is bounded to ten records, while pending work is checked independently. Proposed candidates remain subject to review; successful `no_change` and `needs_evidence` retain their separate meanings.

The four generation counters belong to the durable invocation. For Topic Memory, the drawer shows the attempted Source interval (exclusive start, inclusive end), the budget end when recorded, and the target associated with the block. The current journal head can advance beyond all three.

| Artifact page | Source evidence | Dream operations |
| --- | --- | --- |
| Memory | Consumption cursor and journal head | `revise_memory` |
| Topic Memory | Cursor, journal head, target window and blocking budget or block record | `revise_topic_memory` |
| Experience | Consumption cursor and journal head | `refine_experience` |
| Skill | Not applicable | `derive_skill`, `revise_skill` |
| Current Profile | Consumption cursor and journal head | `revise_profile` |
| Handoff | Not applicable | `refresh_handoff` |
| Prompt | Not applicable | `revise_prompt` |

The drawer shows the last failed attempt for this Scope and binding when the local supervisor has a known failure category and timestamp. It also shows the stage when available. A later successful acknowledgement clears that observation.

Each page also includes `revise_tags` runs targeting that family. Invocation counters come from the Scope’s processing intent. The executor observation comes from the local supervisor for that binding.

The details drawer shows safe diagnostic reasons and each dimension's source and time, without raw errors, private input or worker identifiers. Budget-derived blocks are distinguished from retained block records. Execution observations apply only to this process, Scope and shared binding; they do not identify a specific Dream run or establish other workers' activity. After 30 seconds, a local execution snapshot is marked stale without polling.

Status reads have a separate three-second deadline and do not replace the saved-content workspace on failure. Manual refresh preserves search and selection. Scope or family changes cancel outstanding reads and close the drawer; late responses cannot replace another Scope's evidence. Links open the existing Scope-wide processing records, exact Dream run, candidate review or whole-service runtime page with their normal authorization.

With Playwright available to Node, run `node scripts/dashboard_processing_browser.cjs SERVER_URL SCOPE_ID OTHER_SCOPE_ID` against two existing readable Scopes. Use `POWERCONTEXT_TOKEN` for an authenticated server. The script reads existing data and intercepts responses to exercise failures, expiration and navigation races; it does not write server data. A Scope containing a memory also exercises record selection.

## Enablement and access

Enable Dashboard with `POWERCONTEXT_SERVER_DASHBOARD_ENABLED=true`. Local `ACCESS_MODE=disabled` opens directly without a token. With `ACCESS_MODE=enforced`, it requires `AUTH_TOKEN` and uses the built-in static Bearer identity, with the same permissions for every token holder. Team deployments that inject authentication or authorization Providers must disable it. Pages follow the Server access mode and current authority, and provide no member or role management. See [Install and run](../docs/get-started/install-and-run.md) for personal setup.
Expand Down
Loading