Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7adfbe3
feat(dashboard): add processing, usage, and runtime observability
happy-v587 Oct 31, 2026
bd226dc
feat(dashboard): add cloud-native monitoring guide and restructure Dr…
happy-v587 Nov 9, 2026
8a633f8
chore: retrigger CI
happy-v587 Nov 9, 2026
9476bed
chore: retrigger CI
happy-v587 Nov 9, 2026
be4bec4
chore: sync PR head
happy-v587 Nov 9, 2026
5fd5312
chore: retrigger CI
happy-v587 Nov 10, 2026
e9ff41d
feat(dashboard): show source save time
happy-v587 Nov 10, 2026
38ee86a
fix(ci): restore integration contracts and pin ACP runner SDK
happy-v587 Nov 10, 2026
0965f70
fix(ci): review source save metadata compatibility
happy-v587 Nov 10, 2026
706faed
test(persistence): expect unknown save time for legacy sources
happy-v587 Nov 10, 2026
e27fca3
fix(desktop): qualify current dashboard server contract
happy-v587 Nov 10, 2026
6e7c579
fix(dashboard): preserve source preview metadata and attribution
happy-v587 Nov 10, 2026
9608296
test(handoff): isolate report query budget from background SQL
happy-v587 Nov 10, 2026
e7bd019
test(dsh): install compatible plugin in web doctor fixture
happy-v587 Nov 10, 2026
2e5b3ba
fix(dashboard): preserve exact source navigation
happy-v587 Nov 11, 2026
ea7b073
fix(topic-memory): bound related history candidates
happy-v587 Nov 12, 2026
f94a655
fix(rebase): reconcile migration manifests and upgrade review
happy-v587 Nov 12, 2026
3be6c00
chore(rebase): regenerate API models
happy-v587 Nov 12, 2026
3e32757
fix(ci): add missing license headers to dashboard templates
happy-v587 Nov 12, 2026
90ea28a
test(e2e): rewind registered schema by the whole pending chain
happy-v587 Nov 12, 2026
7408253
chore: retrigger CI
happy-v587 Nov 12, 2026
bd54aff
fix(desktop): requalify the merged Dashboard contract
happy-v587 Nov 12, 2026
c1ca71c
fix(dashboard): prefill the saved feedback reason when editing
happy-v587 Nov 12, 2026
c749213
fix(dashboard): keep failure navigation consistent with its summary
happy-v587 Nov 13, 2026
c328f92
fix(desktop): requalify the Dashboard contract on SQLite
happy-v587 Nov 13, 2026
685f4ad
fix(release): review the status-filtered processing read
happy-v587 Nov 13, 2026
4e12b39
fix(integrations): rebuild bundles for the all-history summary
happy-v587 Nov 13, 2026
5cf73ec
test(native): wait out launchd's respawn throttle in the retry test
happy-v587 Nov 13, 2026
b2be0b6
refactor(dashboard): remove ledgers and show source artifacts
happy-v587 Nov 13, 2026
8596ad4
fix(dashboard): complete source lineage views and remove stale ledger…
happy-v587 Nov 13, 2026
a377df7
refactor: separate topic memory history fix
happy-v587 Nov 13, 2026
f56630c
merge: synchronize dashboard with master
happy-v587 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
Prev Previous commit
Next Next commit
test(e2e): rewind registered schema by the whole pending chain
The upgrade regression rewound pc_schema_revision to v1_5_0_003 but only
dropped the table introduced by v1_5_0_004. Once v1_5_0_005 and v1_5_0_006
were registered, their tables and indexes stayed installed and replaying
the chain failed with "index ix_pc_memory_processing_started already
exists".

Derive the tables to drop from the pending revision chain so the
reconstructed layout stays a faithful older schema as migrations are added.

Co-Authored-By: Claude Code <noreply@anthropic.com>
  • Loading branch information
happy-v587 and claude committed Nov 12, 2026
commit 90ea28ac7be4f093bdfa5f01220f651a41eda5cb
25 changes: 22 additions & 3 deletions tests/e2e/test_source_citation_locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""Source citations survive real Server startup, persistence and both transports."""

import json
import re
import sqlite3

from fastapi.testclient import TestClient
Expand All @@ -41,6 +42,25 @@ def _handoff(refs):
}


def _roll_back_to(runner, revision, connection):
"""Undo every registered table introduced after ``revision``.

The test reconstructs an older registered layout by rewinding the recorded
version. Dropping the tables each later revision creates keeps that rewrite
honest as the revision chain grows, instead of replaying DDL that is still
installed.
"""
snapshot = runner.bundle.snapshot_directory
for later in reversed(runner.bundle.pending(revision)):
schema = json.loads((snapshot / f"schemas/sqlite-{later}.json").read_text(encoding="utf-8"))
statements = [*schema.get("create", []), *schema.get("statements", [])]
for statement in reversed(statements):
table = re.match(r"\s*CREATE TABLE\s+(\w+)", statement, re.IGNORECASE)
if table:
connection.execute(f"DROP TABLE IF EXISTS {table.group(1)}")
connection.execute("UPDATE pc_schema_revision SET version_num = ?", (revision,))


def _settings(database):
return ServerSettings(
database=SQLiteConfig(url=f"sqlite+aiosqlite:///{database}"),
Expand All @@ -67,11 +87,10 @@ def test_locators_survive_upgrade_reopen_http_and_mcp(tmp_path):
legacy_id = legacy.json()["artifact_id"]

# Reconstruct the previous registered layout, preserving its real historical evidence.
runner = deployment_runner(_settings(database))
with sqlite3.connect(database) as connection:
connection.execute("DROP TABLE pc_artifact_source_locators")
connection.execute("UPDATE pc_schema_revision SET version_num = 'v1_5_0_003'")
_roll_back_to(runner, "v1_5_0_003", connection)

runner = deployment_runner(_settings(database))
plan = runner.plan()
assert plan.revisions == ("v1_5_0_004", "v1_5_0_005", "v1_5_0_006")
runner.apply(plan_id=plan.plan_id, accepted=True, maintenance_confirmed=True)
Expand Down