Commit Graph

958 Commits

Author SHA1 Message Date
github-actions[bot]
2c4a82d11d chore: bump manifest version [skip ci] 2026-04-29 06:25:30 +00:00
Youzini-afk
899774d636 feat: add maintenance concurrency modes 2026-04-29 14:25:16 +08:00
github-actions[bot]
9c84d71889 chore: bump manifest version [skip ci] 2026-04-28 19:38:50 +00:00
Youzini-afk
d956de4a61 Add post-generation extraction toggle 2026-04-29 03:38:24 +08:00
github-actions[bot]
a12b59b2b7 chore: bump manifest version [skip ci] 2026-04-28 19:26:01 +00:00
Youzini-afk
6e4ba691a8 Optimize bulk rerun extraction consolidation 2026-04-29 03:25:38 +08:00
github-actions[bot]
9eadbc0470 chore: bump manifest version [skip ci] 2026-04-28 18:43:23 +00:00
Youzini-afk
0749ef29c5 fix(extraction): add SSE stream idle timeout and vector sync timeout to prevent extraction hang
Root cause analysis: extraction can appear stuck at '正在提取xx-xx楼层' indefinitely
when the LLM API connection goes half-open (server stops sending data but keeps the
TCP connection alive). The SSE stream reader.read() would block forever with no
per-chunk idle timeout.

Changes:
1. llm/llm.js: Add LLM_STREAM_IDLE_TIMEOUT_MS (90s default) to
   parseDedicatedStreamingResponse. When no SSE data is received for 90 seconds,
   the read loop aborts with a clear timeout error instead of hanging forever.
   The idle timeout is configurable per-request (defaults to 30% of config timeout,
   minimum 30s).

2. index.js: Add EXTRACTION_VECTOR_SYNC_TIMEOUT_MS (120s) timeout wrapper around
   syncVectorState in handleExtractionSuccess. Vector sync now uses a combined
   AbortSignal (extraction signal + timeout) so that either user abort or 120s
   timeout will break out. Vector sync timeout is treated as non-fatal (doesn't
   abort the entire extraction batch).
2026-04-29 02:43:05 +08:00
github-actions[bot]
cb7ce45572 chore: bump manifest version [skip ci] 2026-04-28 17:16:23 +00:00
Youzini-afk
d702e267d3 fix(migration): 7 critical fixes for Authority migration safety and data integrity
- Fix #2: _executeStatements fallback now batches transactions (150/batch)
  and reorders upsert-before-delete to prevent data loss on payload overflow
- Fix #3: Read/write migratedToAuthority marker in chat_metadata to prevent
  re-overwriting from legacy sources after Authority migration
- Fix #1: Add OPFS → Authority migration channel (exportOpfsSnapshotForChat,
  maybeImportLegacyOpfsSnapshotToLocalStore) inserted before IndexedDB in
  migration chain
- Fix #4: Mark runtimeVectorIndexState dirty with triviumRebuildRequired
  and trigger submitAuthorityVectorRebuildJob after all three migration paths
- Fix #5: Dual-save safety snapshots to Authority blob; rollback can now
  recover from blob when local IndexedDB snapshot is unavailable
- Fix #6: Add isEmptyCheck detail and console.warn for near-empty stores
  to help diagnose residual vs real data in store-not-empty skips
- Fix #7: Add overflow warning logs and sessionStorage persistence for
  Authority offline queue max-items/max-bytes exceeded events
2026-04-29 01:15:37 +08:00
github-actions[bot]
79fbd369ba chore: bump manifest version [skip ci] 2026-04-28 15:56:26 +00:00
Youzini-afk
edaaca4bbd fix: convert named SQL params to positional for Authority server compatibility
Authority server expects params: SqlValue[] (positional array) but
ST-BME was sending params as a named map with :placeholders, causing
'invalid type: map, expected a sequence' deserialization errors.

Added convertNamedParamsToPositional() in AuthoritySqlHttpClient that
transforms :name placeholders to ? and extracts values in order before
sending to the server. This fixes the SQL probe failure that kept the
graph stuck in LOADING state.
2026-04-28 23:56:02 +08:00
github-actions[bot]
801d580a4c chore: bump manifest version [skip ci] 2026-04-28 14:29:40 +00:00
Youzini-afk
2dee3cd8ff harden(authority): add pre-scale diagnostics and request safety 2026-04-28 22:29:14 +08:00
github-actions[bot]
aa62efe5b9 chore: bump manifest version [skip ci] 2026-04-28 13:46:28 +00:00
Youzini-afk
a7e2edac88 refactor(authority): complete v0.6-only sql/blob/jobs rollout 2026-04-28 21:45:59 +08:00
github-actions[bot]
a5b822682a chore: bump manifest version [skip ci] 2026-04-28 11:35:23 +00:00
Youzini-afk
8979b89646 feat(authority): harden jobs repair and diagnostics 2026-04-28 19:35:06 +08:00
github-actions[bot]
080813ae46 chore: bump manifest version [skip ci] 2026-04-28 10:27:33 +00:00
Youzini-afk
07188feeb1 feat(authority): compare performance baselines 2026-04-28 18:27:12 +08:00
github-actions[bot]
769263344d chore: bump manifest version [skip ci] 2026-04-28 10:12:26 +00:00
Youzini-afk
7f3ea4f36f feat(authority): add diagnostics artifact manifest UX 2026-04-28 18:12:01 +08:00
github-actions[bot]
97d380ab82 chore: bump manifest version [skip ci] 2026-04-28 09:49:15 +00:00
Youzini-afk
dc76d1ea4c feat(authority): add consistency repair actions 2026-04-28 17:48:52 +08:00
github-actions[bot]
c733394398 chore: bump manifest version [skip ci] 2026-04-28 09:42:04 +00:00
Youzini-afk
6747263eb2 test(authority): expand e2e roundtrip coverage 2026-04-28 17:41:43 +08:00
github-actions[bot]
9cecb82617 chore: bump manifest version [skip ci] 2026-04-28 09:06:13 +00:00
Youzini-afk
e1d6d3193a feat(authority): add diagnostics baseline ux 2026-04-28 17:05:47 +08:00
github-actions[bot]
5c23c3129f chore: bump manifest version [skip ci] 2026-04-28 08:49:33 +00:00
Youzini-afk
3a6f577678 feat(authority): add checkpoint audit scaffolding 2026-04-28 16:49:14 +08:00
github-actions[bot]
3762a951a6 chore: bump manifest version [skip ci] 2026-04-28 08:26:26 +00:00
Youzini-afk
d5dd4b64a8 feat(authority): surface recent jobs in panel 2026-04-28 16:25:58 +08:00
github-actions[bot]
4f7fe81024 chore: bump manifest version [skip ci] 2026-04-28 08:02:42 +00:00
Youzini-afk
333a6104b0 test(authority): add server contract smoke harness 2026-04-28 16:02:21 +08:00
github-actions[bot]
f4c0b48064 chore: bump manifest version [skip ci] 2026-04-28 07:35:37 +00:00
Youzini-afk
cabbe72e23 feat(authority): track job status in panel 2026-04-28 15:35:18 +08:00
github-actions[bot]
6a583fa1f6 chore: bump manifest version [skip ci] 2026-04-28 07:16:26 +00:00
Youzini-afk
217573e8bb feat(authority): export diagnostics bundle 2026-04-28 15:16:09 +08:00
github-actions[bot]
6693a036dd chore: bump manifest version [skip ci] 2026-04-28 07:01:47 +00:00
Youzini-afk
6c8c56df62 feat(authority): add recall candidate provider 2026-04-28 15:01:34 +08:00
github-actions[bot]
93c562015f chore: bump manifest version [skip ci] 2026-04-28 04:55:41 +00:00
Youzini-afk
d7cbbb20c1 Integrate Authority Blob storage 2026-04-28 12:53:18 +08:00
github-actions[bot]
322804a12a chore: bump manifest version [skip ci] 2026-04-27 19:55:18 +00:00
Youzini-afk
1018376c85 Add Authority jobs task backend 2026-04-28 03:53:56 +08:00
github-actions[bot]
e28e9a693c chore: bump manifest version [skip ci] 2026-04-27 19:32:40 +00:00
Youzini-afk
35fee7d08d feat(authority): add Trivium vector primary adapter 2026-04-28 03:31:46 +08:00
github-actions[bot]
24506b7e66 chore: bump manifest version [skip ci] 2026-04-27 19:02:58 +00:00
Youzini-afk
3f70d63a86 feat(authority): migrate local graphs to server primary 2026-04-28 03:02:43 +08:00
Youzini-afk
dc37d22dcf feat(authority): add graph SQL store 2026-04-28 02:20:15 +08:00
Youzini-afk
ee9b0afa35 feat(authority): add server-primary capability probe 2026-04-28 01:40:38 +08:00