Three defects in the unmatched-pattern warning, all reported against a
path that is in fact correct.
`report`, `overview` and `status` judged a pattern against the live parse
plus the day cache, while `sessions`, `models`, `audit`, `compare`,
`optimize`, `yield` and `spend` judged it against the live parse alone.
On a project whose transcripts have expired, `overview --project <path>`
bills it while `sessions --project <path>` called the path wrong. The
check now falls back to the day cache, and only for what the live parse
missed, so the normal path reads no cache at all.
The warning also reached two places that must never see it. An Ink screen
owns the terminal, so it now honours the same `setInteractiveScanUI`
latch the parser checks before printing scan progress: `report --project
/typo` no longer writes over the dashboard. And `serve` routes every
stderr write into the progress-frame emitter, so `runStdioServe` calls
`suppressProjectFilterWarnings()` at startup rather than the module
reading argv, which a leading `--verbose` would have shifted.
SERVE_OPTIONS gains --project/--exclude for the seven commands that just
declared them, as the comment above it requires. Without that a filtered
request falls back to a cold spawn instead of the resident.
A quoted '~/work/app' reaches the CLI unexpanded, and a pattern typed
into a field has no shell behind it at all. It was neither rooted nor a
substring of any stored path, so it selected nothing and said nothing.
The README made it worse by telling people to quote it.
A leading ~ is now expanded against the home directory and anchored like
any absolute path, so the quoted form selects the same project as the one
the shell would have expanded, and a wrong one is reported.
Two more from reading the hot path: the compiled filter only pays for the
project path key when some pattern is rooted and can read it, which the
day cache runs per project, per day, per provider slice; and
unmatchedRootedPatterns now calls matchesProjectPattern instead of
open-coding it.
A rooted pattern selects one project or nothing, so a typo does not
fail: it reports a total over a set nobody asked for, which reads
exactly like a correct answer. The run now says so on stderr, and the
exit status is untouched.
unmatchedRootedPatterns() tries each pattern on its own against the
UNFILTERED project list, which is what keeps it honest. Judged inside
filterProjectsByName instead, an earlier --project would mask a later
one selecting the same project, and an --exclude would be tested against
what --project had already removed. The message is period-scoped, since
a range-scoped parse is what was checked, and the durable path passes
the carried days' project identities alongside the live parse, so a
pattern naming only an expired-source project stays silent.
Nothing is reported under `serve`. That path routes process.stderr.write
into the progress-frame emitter (runCaptured), so a warning would reach
the desktop app as a scan-progress line.
The tests spawn the real CLI over a seeded corpus of two path siblings:
sessions for the commands that filter at the call site, spend and yield
for the two that take the patterns as arguments and filter inside, so
dropping the argument anywhere fails the suite. They also pin the shapes
that must stay silent: a pattern that selects something, a loose word, a
second --project overlapping the first, and an --exclude naming a
project --project had already removed.
filterProjectsByName matched every pattern as a raw substring, so
--exclude /a/my-company also removed the sibling /a/my-company-kit, and
no pattern the caller could type expressed "this project and not its
neighbours".
A rooted pattern (POSIX, Windows drive, UNC) now keys through
normalizeAbsProjectPathKey, the helper #1271 added for project identity,
and matches the way isProxiedPath matches proxyPaths: equal to the
project path, or a prefix of it on a path-segment boundary. Going
through that helper keeps one identity rule in the parser: identified
Windows paths casefold, POSIX case stays identity, and a Codex-style
stripped absolute path ("root/vault") keys the same as the pattern
"/root/vault" the user types. A pattern that is not rooted stays the
loose substring people type on the command line, so --project
my-company keeps covering my-company-kit and worktrees.
The rule lives in one closure (makeProjectFilter) applied to the live
parse and to the carry-forward day cache alike. The cache path had its
own copy, lowercasing and substring-matching, so a filtered headline
anchored today's live days while matching every cached day loosely: on a
carried day split across /Users/gone/app ($30) and /Users/gone/app-kit
($70), --exclude /Users/gone/app returned 0 instead of 70, and --exclude
/users/gone/app excluded both instead of neither. Both shapes are in
tests/project-filter-durable-totals.test.ts, the suite that exists to
pin that a filter selects the same projects whether it is resolved
against a fresh parse or against the cache.
The README gains the rules that were not written down: an absolute POSIX
path is case-sensitive while a Windows drive or UNC path folds case, and
a leading ~ is the shell's to expand.
The README says these flags work on every command. They did not: only
report, overview, web, status, today, month and export declared them, so
sessions, models, compare, audit, optimize, yield and spend either
rejected the flag outright or silently reported the whole corpus.
Each command already funnels through parseAllSessions, so the filter is
applied at that single point with the shared filterProjectsByName. yield
and spend parse inside computeYield / computeSpendFlow, which now take
the patterns as optional arguments and default to filtering nothing.
README now states the matching rule instead of claiming "all commands".
Every kiro session was attribution-blind: `codeburn sync push --attribution`
reported "0 facts total" regardless of window, so no session→commit correlation
ever reached the endpoint.
project-path-v1 set out to fix exactly this and wired the session's directory to
`projectPath`. But sync attribution does not read that field. computeAttributionRecords
calls buildRepoGroups in "trusted-session-cwd" mode:
const sourcePath = identityMode === 'trusted-session-cwd'
? session.workingDirectory
: project.projectPath
so it resolves the repo from `workingDirectory`, then filters to sessions whose
own directory resolved (`group.ownIdentity`). With that field unset,
`isTrustedAbsoluteWorkingDirectory(undefined)` returns false on its first clause,
every session is dropped, and attributeCommits joins the repo's commits against
an empty session list. The path was being carried the whole time, just on the
field nothing consumed.
All three kiro parsers now emit workingDirectory from the same provider-recorded
value they already use for projectPath:
- CLI (~/.kiro/sessions/cli/<id>.jsonl): companion .json `cwd`
- v2 IDE (~/.kiro/sessions/<hash>/sess_<id>/): session.json `workspacePaths[0]`
- workspace sessions: record `workspaceDirectory`
Nothing downstream needed changing. parser.ts already stamps
`workingDirectoryProvenance: 'provider-field'` on any provider-set value that
passes the trust check, which is what the consumer requires — an unmarked value
is treated as synthesized from projectPath and fails closed.
Bumps PROVIDER_PARSE_VERSIONS.kiro to working-directory-v1. Entries cached under
project-path-v1 hold projectPath but no workingDirectory, so without the bump the
fix would miss every user who already has a warm cache — that is, everyone
upgrading.
Verified against a real corpus (2457 CLI sessions, 8 v2 IDE sessions):
before: Attribution: 0 facts total, would push 0 (0 sessions, 0 commits)
after: Attribution: 190 facts total, would push 190 (21 sessions, 169 commits)
Tests cover workingDirectory for all three session shapes, the home-root
rejection (observed in 5 of 8 real IDE sessions, whose workspacePaths is the
user's home directory), and re-parse of a project-path-v1 cache.
AI-Origin: human
Nil-quota Capacity Dock used generic OAuth retry copy. Explicit
Disconnect leaves credentials, so reuse the existing disconnected
Settings detail for Copilot only.
Below md, brand/Usage/Context left ~22px for controls on one row. Wrap the
header and give the controls row basis-full so 390px stays usable.
Co-authored-by: Cursor <cursoragent@cursor.com>
min-w-0/overflow-x-auto and shrink-0 were max-md-only, so mid widths
(e.g. 900px) spilled provider/theme off-document and wrapped period labels.
Co-authored-by: Cursor <cursoragent@cursor.com>
Plan and Settings treated sticky .notBootstrapped after Disconnect as
missing credentials. Keep first-use and real noCredentials sign-in copy;
disconnected state says quota tracking is off, credentials untouched,
and Connect resumes.
Repo Actions policy forbids bot-created pull requests
(can_approve_pull_request_reviews: false). Keep contents: write and
the rolling chore/star-history branch; emit a compare URL for a
maintainer to open the PR. Limit the job to the default branch.
Main rejects direct pushes (GH013). Keep the pinned generator, disable
its commit/push, and publish chart updates through a persistent
chore/star-history PR authored by github-actions[bot].
Same-package render-5 records omit the field, so empty identity-0 is
served as unavailable. Bump STATUS_SNAPSHOT_RENDER_VERSION to 6. Daily
and session caches stay put so unknown retained accounting remains a
partial bound.
The regression spawned dist/cli.js, which is absent in a clean npm-test
checkout. Drive the same end-to-end check through src/cli.ts and keep the
fixture on owned temporary paths isolated from inherited provider dirs.
Independent default app npmtest killed the chatty optimize child at 614ms
because the 600ms idle timer started at spawn and the first progress byte
waited on Node boot plus setInterval. Emit the first stderr byte immediately
after boot, then ten 400ms ticks (result ticks 11) under a 2s silence budget.
Node boot still counts; the larger smoke window absorbs it. Work still
outlives a fixed total-runtime cap. Production already resets on every byte;
timeout constants unchanged.
Close forge/mux/open-design/openclaw/zcode/zed/zerostack filesystem gaps.
Vercel remains the network-only exception. OpenClaw SQLite/JSONL
accounting stays in the following #1259 commit; this commit only adds
OpenClaw probeRoots so empty-root diagnostics can see an agents path.
Source-DIFF: 00ebf26c (1259-899-sqlite-discovery) / carried in d91b6a71
Lane: local core-wave 2026-09-07