feat(PR-05): Trace provenance annotations, grouped chips and stale semantics

- mark static anchors data-annotation-source=analysis and observed run chips
  data-annotation-source=trace with run seq/kind; group events per source anchor
  into one chip (>3 events collapse to ×N with a truthful title)
- add controller tests for source edits during a run (stale=true and all
  anchors/source ids null), mismatched Trace digest (run succeeds,
  trace.status=invalid, no events) and truncated Trace (event_budget preserved)
- ADR-0010 records the annotation/staleness strategy and the allowed inline-chip
  degradation instead of SVG curves
- extend browser suite with provenance/grouping assertions and dark-theme run
  screenshot; record PR-05 evidence (real Chromium, RFC width matrix)
- unit 63 + contract 41 + integration 43 + security 11 pass; clippy clean
This commit is contained in:
cflmy committed 2026-11-22 14:36:09 +08:00
1 parent 046834bcb6
commit 807c24b952
14 files changed
+462 -18

No files matched your search

+3 -3
View File
@@ -1123,7 +1123,7 @@ fn render_inline(
);
let _ = write!(
html,
" class=\"mq-anchor\" data-source-id=\"{id}\" data-statement-kind=\"{kind}\" title=\"静态语句:{label}\"",
" class=\"mq-anchor\" data-annotation-source=\"analysis\" data-source-id=\"{id}\" data-statement-kind=\"{kind}\" title=\"静态语句:{label}\"",
id = escape_attr(&id),
kind = statement.kind.data_value(),
label = statement.kind.label()
@@ -1151,7 +1151,7 @@ fn render_inline(
);
let _ = write!(
html,
" class=\"mq-anchor\" data-source-id=\"{id}\" data-statement-kind=\"{kind}\" title=\"静态语句:{label}\"",
" class=\"mq-anchor\" data-annotation-source=\"analysis\" data-source-id=\"{id}\" data-statement-kind=\"{kind}\" title=\"静态语句:{label}\"",
id = escape_attr(&id),
kind = statement.kind.data_value(),
label = statement.kind.label()
@@ -1179,7 +1179,7 @@ fn render_inline(
);
let _ = write!(
html,
" class=\"mq-anchor\" data-source-id=\"{id}\" data-statement-kind=\"{kind}\" title=\"静态语句:{label}\"",
" class=\"mq-anchor\" data-annotation-source=\"analysis\" data-source-id=\"{id}\" data-statement-kind=\"{kind}\" title=\"静态语句:{label}\"",
id = escape_attr(&id),
kind = statement.kind.data_value(),
label = statement.kind.label()