diff --git a/.github/workflows/portable.yml b/.github/workflows/portable.yml index e1be155..774cf18 100644 --- a/.github/workflows/portable.yml +++ b/.github/workflows/portable.yml @@ -35,6 +35,12 @@ jobs: CARGO_INCREMENTAL: "0" CARGO_PROFILE_DEV_DEBUG: line-tables-only CARGO_PROFILE_TEST_DEBUG: line-tables-only + # macOS: a Unix socket path holds 104 bytes, and the runner's default + # temp folder (/var/folders/...) plus a test home plus + # `Library/Application Support/wanderbooks/run/` is longer than that; + # the server then refuses the root ("too long for its sockets"). The + # tests' temp homes go under /tmp there. Windows ignores TMPDIR. + TMPDIR: /tmp steps: - uses: actions/checkout@v4 - name: Rust (the version mise.toml pins) diff --git a/crates/ledger-cli/tests/spec_mcp.rs b/crates/ledger-cli/tests/spec_mcp.rs index d88ef2f..ce1beb6 100644 --- a/crates/ledger-cli/tests/spec_mcp.rs +++ b/crates/ledger-cli/tests/spec_mcp.rs @@ -1302,15 +1302,20 @@ fn happy_path(name: &str) -> Mcp { "books.export", json!({"format": "iif", "report": "general_journal", "as_of": "2026-12-31"}), ); + // The script ran an audit above, so the package's gate (P8) is live + // and the run no longer stands at the head: the owner's override, as + // a human would give it. m.ok( "books.export_cpa_package", json!({"as_of": "2026-12-31", "include_receipts": false, "include_tins": false, - "allow_open_drafts": {"reason": "the test books keep drafts open"}}), + "allow_open_drafts": {"reason": "the test books keep drafts open"}, + "without_audit_reason": "the script's audit is behind the head; the test exports anyway"}), ); m.ok( "books.export_cpa_package", json!({"as_of": "2026-12-31", "include_receipts": false, - "allow_open_drafts": {"reason": "the test books keep drafts open"}}), + "allow_open_drafts": {"reason": "the test books keep drafts open"}, + "without_audit_reason": "the script's audit is behind the head; the test exports anyway"}), ); // The access log, the backups' status, and a backup now (none is set