desktop/src-tauri/crates/core/tests/hermes_contract.rs
Comment 1, line 1
desktop/src-tauri/crates/core/tests/hermes_contract.rs:1
//! Hermes Agent adapter tests include synthetic samples in explicitly marked directories.Comment 2, line 2
desktop/src-tauri/crates/core/tests/hermes_contract.rs:2
//! A24 source reference: ef70b3661cbfcf57e583008ad91dd04d8ba46070.Comment 3, line 3
desktop/src-tauri/crates/core/tests/hermes_contract.rs:3
//! Read, parse, create interval aggregates, commit and query; compare the manuallyComment 4, line 4
desktop/src-tauri/crates/core/tests/hermes_contract.rs:4
//! calculated tests/fixtures/hermes/*/_expectations.md values without changing calculation rules.Comment 5, line 5
desktop/src-tauri/crates/core/tests/hermes_contract.rs:5
//!Comment 6, line 6
desktop/src-tauri/crates/core/tests/hermes_contract.rs:6
//! Real 0.21.5 CLI/resumed-session and old-position upgrade tests are separately identified below.Comment 7, line 30
desktop/src-tauri/crates/core/tests/hermes_contract.rs:30
/// serde_json to SQLite values, copied from tests/common/mod.rs json_to_sql.Comment 8, line 65
desktop/src-tauri/crates/core/tests/hermes_contract.rs:65
/// Rebuild SQLite from sanitized {schema:{schema_version,sessions_ddl,session_model_usage_ddl},Comment 9, line 66
desktop/src-tauri/crates/core/tests/hermes_contract.rs:66
/// sessions,session_model_usage} at <dir>/hermes-home/state.db;Comment 10, line 67
desktop/src-tauri/crates/core/tests/hermes_contract.rs:67
/// return the Hermes home for manual-root discovery.Comment 11, line 134
desktop/src-tauri/crates/core/tests/hermes_contract.rs:134
/// Selected fields from one interval aggregate.Comment 12, line 246
desktop/src-tauri/crates/core/tests/hermes_contract.rs:246
// Compare every field of the one interval aggregate with _expectations.md.Comment 13, line 279
desktop/src-tauri/crates/core/tests/hermes_contract.rs:279
// api_call_count does not create model_call events: zero usage_events/daily calls and unknown daily tokens.Comment 14, line 290
desktop/src-tauri/crates/core/tests/hermes_contract.rs:290
// Sum exclusive aggregates within their native interval scope.Comment 15, line 303
desktop/src-tauri/crates/core/tests/hermes_contract.rs:303
// Database-wide schema_version cannot verify each record's client version; retain latest_fallback.Comment 16, line 342
desktop/src-tauri/crates/core/tests/hermes_contract.rs:342
// No per-call details: the 2026-09-20..2026-09-30 query has zero calls and unknown tokens, without spreading or last-day assignment.Comment 17, line 369
desktop/src-tauri/crates/core/tests/hermes_contract.rs:369
// V03 example: 100 + 20 = 120; do not add auxiliary usage to the primary session again to get 220.Comment 18, line 389
desktop/src-tauri/crates/core/tests/hermes_contract.rs:389
// Backfill first_seen NULL leaves interval_start NULL; endpoint falls back to session ended_at.Comment 19, line 396
desktop/src-tauri/crates/core/tests/hermes_contract.rs:396
// Retain the live child-session interval.Comment 20, line 402
desktop/src-tauri/crates/core/tests/hermes_contract.rs:402
// Compaction inheritance does not duplicate parent usage: 500 + 300 = 800.Comment 21, line 444
desktop/src-tauri/crates/core/tests/hermes_contract.rs:444
// Cumulative tables lack per-request calls/times; token capability is Partial with limited sample coverage.Comment 22, line 502
desktop/src-tauri/crates/core/tests/hermes_contract.rs:502
// %LOCALAPPDATA%/hermes/state.db and profiles/coder/state.db with an identity marker.Comment 23, line 520
desktop/src-tauri/crates/core/tests/hermes_contract.rs:520
// The referenced _PROFILE_IDENTITY_MARKERS includes state.db itself under profiles/<name>.Comment 24, line 521
desktop/src-tauri/crates/core/tests/hermes_contract.rs:521
// A state.db file supplies that marker; upstream has a separate servable check for empty profiles.Comment 25, line 522
desktop/src-tauri/crates/core/tests/hermes_contract.rs:522
// Discovery uses the file marker, while detection checks the database format.Comment 26, line 581
desktop/src-tauri/crates/core/tests/hermes_contract.rs:581
// Discover within bounded depth from a manual parent of Hermes home, as for a user home.Comment 27, line 591
desktop/src-tauri/crates/core/tests/hermes_contract.rs:591
// An empty directory yields no source root.Comment 28, line 861
desktop/src-tauri/crates/core/tests/hermes_contract.rs:861
// Beyond overlap: only the parser reset can revisit the unchanged old row.Comment 29, line 995
desktop/src-tauri/crates/core/tests/hermes_contract.rs:995
// Inject faults in a disposable copy; the committed real sample remains unchanged.