v0.3.12 — Cost card workflow ordering
Cost card agent ordering fix (DG-105 A). Closes a small but persistent user-feedback item from the v0.3.9 capture: the Brain Layer cost card in the sidebar showed agents in a counter-intuitive order driven by cost USD (descending). After v0.3.12, agents are ordered by the Brain Layer workflow instead.
Changed
- Cost card agents are now ordered by Brain Layer workflow —
triage → context → remediation, instead of by descending cost. The new SQL order ingetCostHistoryisCASE agent_id WHEN 'triage' THEN 1 WHEN 'context' THEN 2 WHEN 'remediation' THEN 3 ELSE 99 END, provider_label. Within each agent, rows are stable-sorted alphabetically byprovider_label, so multi-provider setups (e.g. 3 providers × 3 agents = 9 rows) render in a predictable order. This affects:- The cost card in the SYNAPTIC Sentinel sidebar (after
Triage Findings) - The CLI table output of
synaptic-sentinel cost-history - The JSON output of
synaptic-sentinel cost-history --json
- The cost card in the SYNAPTIC Sentinel sidebar (after
Notes
- Scope only DG-105 A. No changes to the Scout Layer, Brain Layer adapters, benchmark runner, sidebar layout,
colony.dbschema, or activate path. - 1-line SQL change covered by 2 new unit tests.
- How to validate: install v0.3.12, open any workspace with a previous triage in
.sentinel/colony.db, and confirm the cost card showstriage → context → remediation(instead of the previous cost-descending order). - Deferred — provider-reported badge per-row: the cost card surfaces a
~estimated USDcaveat at the card header (since v0.3.9 / DG-099 A), but doesn't yet distinguish per-row whether the tokens came from the provider's ownusagefield (real) or thechars/4fallback proxy. That breakdown lives in thesynaptic-sentinel triageterminal output today. Surfacing it per-row in the sidebar requires a small schema migration (triage_token_usagev5 → v6 to persistusage_source); will land in a future release if there's empirical demand.
Known Issues
Unchanged from v0.3.11 — 1 caveat structurally closed:
- Ground truth dataset is AI-drafted (DG-075 caveat heredado, DG-095 A structured in v0.3.7). External citation remains blocked until the corpus reaches ≥ 10 human-reviewed entries.
Install
Download synaptic-sentinel-0.3.12.vsix and run:
code --install-extension synaptic-sentinel-0.3.12.vsix
Or use Install from VSIX... in the VS Code Extensions view.
SHA-256: c5031f8da5b48a898c88c247a2c5d6c16712d2b070929ae66a2d18d6eea42406
The Marketplace listing remains at v0.3.3 until the publisher uploads with their PAT — semver permits skipping intermediate versions, so a future upload may go from v0.3.3 directly to v0.3.12 (9 versions skipped, max distance of the project so far).