Commit ec2e005
fix(test): T07 Admin-Key + Mig-118-Zählstand, T19 excluded-Typen generisch
Zwei belegte Defekte aus dem test.sh-Lauf 2026-07-25T12:21Z (post-deploy,
v4.19.0 / Mig 108–118):
[FAIL] T07 SCHEMA_INTEGRITY -- Zähl-Fallback (Prä-Deploy, Exit
3/Transport-Auth-Fehler): expected 46 tables + 40 columns, got tables=50
columns=41
[FAIL] T19 GRAPH_EGO -- payload check: success!=true;nodes=0;edges=0;
stats.truncated missing
T07: der `ctx contract`-Aufruf lief ohne Key-Override, die CLI zog damit
den Private-Key aus ~/.config/ctx/config. /api/contract ist admin-gated →
HTTP 403 → Exit 3 → stiller Abstieg in den Zähl-Fallback, der seinerseits
auf dem Prä-Deploy-Stand (46/40, Mig 107) festhing. Fix: Aufruf mit
CTX_KEY="$CTX_ADMIN_KEY" (Env schlägt Datei, internal/cli.LoadConfig;
CTX_BASE_URL bleibt aus der Datei), und die Fallback-Erwartung auf den
Ist-Stand 50 Tabellen / 41 Spalten gehoben — als benannte Konstanten
T07_EXPECT_TABLES/T07_EXPECT_COLUMNS, mit Kommentar, dass die Zahlen an
Migration 118 hängen und bei Schema-Migrationen nachzuziehen sind.
T19: die Fokus-Block-Auswahl (höchster Grad in context_dream_links) schloss
nur den Hardcode-Typ 'system-meta' aus. Seit M107 existiert der Typ
'checkpoint' mit retrieval-Policy 'excluded', und der aktuelle Top-Grad-
Block war genau so einer → /api/graph/ego antwortet 404, alle vier
Assertions fielen. Fix: LEFT JOIN auf context_block_types (scope='_global',
Join-Schlüssel context_blocks.type_name) und Filter
config->'retrieval'->>'policy' IS DISTINCT FROM 'excluded' — generisch statt
Hardcode-Liste; LEFT JOIN, damit Blöcke ohne Registry-Zeile drinbleiben.
Verifikation (Einzel-Proben gegen das Live-System, kein voller Lauf):
- T07 Primärpfad: Exit 0, "Schema Contract: ok (mode=warn source=default)
… manifest_max=118 live_max=118 excluded_snapshot_tables=4 …
no drift findings"
- T07 Zähl-Fallback: tables=50, columns=41 gegen die neuen Konstanten → OK
- T19 Fokus-SQL: 019e9adf-f21c-7ac5-bfcc-bdb0c15bd0f6, type_name=
audit-trail (Policy damped) statt vorher checkpoint;
GET /api/graph/ego → HTTP 200, "OK 242 nodes 563 edges";
404-Gleichheit: invisible=404 missing=404 bodies_equal=yes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 137ca74 commit ec2e005
1 file changed
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
265 | 274 | | |
266 | 275 | | |
267 | 276 | | |
268 | 277 | | |
269 | 278 | | |
270 | | - | |
| 279 | + | |
271 | 280 | | |
272 | 281 | | |
273 | | - | |
| 282 | + | |
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
277 | 286 | | |
278 | 287 | | |
279 | 288 | | |
280 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
281 | 294 | | |
282 | 295 | | |
283 | 296 | | |
| |||
368 | 381 | | |
369 | 382 | | |
370 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
371 | 390 | | |
372 | 391 | | |
373 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
374 | 395 | | |
375 | 396 | | |
376 | 397 | | |
| |||
0 commit comments