busya
65121cac6b
feat(logging): self-diagnosing EXPLORE + shared/ absorption + belief analytics (ADR-0021/0022)
T0: absorb shared/ into backend — cot_logger→src/core, CotJsonFormatter→src/core/cot_formatter.py, _llm_http/_llm_health/ssl→src/core/utils; imports rewritten (26 prod + tests, patch targets); run.sh/backend.Dockerfile/requirements/.axiom source_dirs/semantic_health/AGENTS/INSTALL cleaned; ADR-0022 supersedes ADR-0015; fixed latent CI defects (ss_tools ImportError, record.message in logger tests, same-name test-module collision).
ADR-0021 wire enrichment (additive): contract_id/claim/error_code/loc fields; _contract_id ContextVar + resolve_contract_id (explicit > belief_scope > declared-src mirror, derived src never mirrors); EXPLORE auto-loc via single frame walk; facade error auto-fill; 2KB payload cap with payload_truncated/payload_bytes markers; migrated 85 error="CODE" sites to error_code= (12 files); pilot editor/load.py; superset preview payload-bomb inlined bodies removed.
Analytics SSOT src/core/log_stats.py (bond transition matrix, orphan-EXPLORE ratio, REFLECT pairing, intent families, coverage, insufficient-sample flag); pretty_cot.py --stats/--digest/--trajectory/--story over one engine; log_gap_service three-tier ground-truth triangulation (FAILED w/o EXPLORE etc.) + GET /api/reports/log-stats|task-log-gaps (polling-suppressed); scripts/cot_audit.py CLI; enriched fields persisted into task_logs.payload for tier queries.
Frontend: ReportsAnalyticsModel + AnalyticsStatsPanel (Logs tab) + TaskGapPanel and per-row T1/T2/T3 gap badges (Tasks tab); cot-logger.ts ADR-0021 opts; i18n en/ru. Scheduler console spam fixed: apscheduler logger demoted to WARNING via LoggingConfig.scheduler_log_level. .axiom belief patterns -> $OBJ.* (alias undercount). molecular-cot-logging skill updated (fields, decision rules, tie-break, CLI) and synced.
Reviewed orthogonally: F1 cot_span contract pollution, F2 cap boundary accounting, F3 digest over-dedup, F4 trace-state bound, F5 tier metadata — fixed with regression tests. Validation: backend 11287 passed + ruff + compileall; frontend 3446 passed + lint + build; CLI smoke on live app.log.
2026-09-04 20:56:41 +03:00
..
2026-09-04 20:56:41 +03:00
2026-09-04 20:56:41 +03:00
2026-08-24 17:02:06 +03:00
2026-09-03 07:37:14 +03:00
2026-08-20 11:32:26 +03:00
2026-09-04 20:56:41 +03:00
2026-08-19 17:14:32 +03:00
2026-08-25 11:42:31 +03:00
2026-09-04 20:41:38 +03:00
2026-09-04 13:07:08 +03:00
2026-09-04 20:56:41 +03:00
2026-08-25 11:42:31 +03:00
2026-08-25 11:42:31 +03:00
2026-08-13 08:23:43 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-08-19 17:14:32 +03:00
2026-08-06 18:26:50 +07:00
2026-08-25 11:42:31 +03:00
2026-08-19 17:14:32 +03:00
2026-09-04 20:56:41 +03:00
2026-08-19 17:14:32 +03:00
2026-08-19 17:14:32 +03:00
2026-08-24 17:00:17 +03:00
2026-08-19 17:14:32 +03:00
2026-08-25 11:42:31 +03:00
2026-06-15 17:31:43 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-06-16 12:01:03 +03:00
2026-08-18 12:20:42 +03:00
2026-08-10 07:29:08 +03:00
2026-07-22 11:48:15 +03:00
2026-09-04 13:07:08 +03:00
2026-07-22 11:48:15 +03:00
2026-09-04 13:07:08 +03:00
2026-07-22 11:48:15 +03:00
2026-08-25 11:42:31 +03:00
2026-09-04 20:56:41 +03:00
2026-07-22 11:48:15 +03:00
2026-08-10 15:56:03 +03:00
2026-08-13 08:23:43 +03:00
2026-08-28 19:01:42 +03:00
2026-09-03 13:02:57 +03:00
2026-09-04 13:07:08 +03:00
2026-09-03 13:02:57 +03:00
2026-09-03 13:02:57 +03:00
2026-08-28 19:01:42 +03:00
2026-08-28 19:01:42 +03:00
2026-09-04 13:07:08 +03:00
2026-09-04 13:07:08 +03:00
2026-09-04 13:07:08 +03:00
2026-09-04 13:07:08 +03:00
2026-09-04 13:07:08 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-23 16:45:15 +03:00
2026-08-25 15:30:10 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-06-16 12:01:03 +03:00
2026-08-25 11:42:31 +03:00
2026-08-13 08:23:43 +03:00
2026-09-04 20:56:41 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-08-03 23:52:03 +07:00
2026-07-22 11:48:15 +03:00
2026-08-25 11:42:31 +03:00
2026-09-04 20:56:41 +03:00
2026-08-25 11:42:31 +03:00
2026-07-22 11:48:15 +03:00
2026-07-23 16:45:15 +03:00
2026-07-22 11:48:15 +03:00
2026-07-22 11:48:15 +03:00
2026-08-21 16:15:40 +03:00
2026-08-21 16:15:40 +03:00
2026-08-21 16:15:40 +03:00
2026-07-22 11:48:15 +03:00