Skip to content

v0.3.12 — Cost card workflow ordering

Choose a tag to compare

@golab-arch golab-arch released this 28 May 19:49

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 workflowtriage → context → remediation, instead of by descending cost. The new SQL order in getCostHistory is CASE 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 by provider_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

Notes

  • Scope only DG-105 A. No changes to the Scout Layer, Brain Layer adapters, benchmark runner, sidebar layout, colony.db schema, 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 shows triage → context → remediation (instead of the previous cost-descending order).
  • Deferred — provider-reported badge per-row: the cost card surfaces a ~estimated USD caveat 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 own usage field (real) or the chars/4 fallback proxy. That breakdown lives in the synaptic-sentinel triage terminal output today. Surfacing it per-row in the sidebar requires a small schema migration (triage_token_usage v5 → v6 to persist usage_source); will land in a future release if there's empirical demand.

Known Issues

Unchanged from v0.3.11 — 1 caveat structurally closed:

  1. 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).