Repository navigation
feat(tools): read .qqignore alongside .gitignore and .ignore - #172
Merged
Merged
Conversation
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
Author
There was a problem hiding this comment.
Devin Review found 4 potential issues.
2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
Adds .qqignore to the per-directory matcher stack search and tree share, so a project can hide paths git tracks (fixtures, vendored trees, generated docs) from every listing tool with one file in gitignore syntax. The tool schemas are unchanged; search and tree output honors the new file. Only .gitignore, .ignore, and .qqignore are read, and tools.md records why tool-private and other-VCS ignore files are not. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Replaces the bundled ADR-0042 draft (number already taken on main) and the kern-primitives plan with the parts QQ needs, filed where they belong: - run-snapshots gains § Atomic Multi-File Edits: a one-record journal per edit batch under the QQ data directory, recovered under the apply lock, instead of a per-transaction blob store inside the workspace; and § Change Detection naming the incremental Merkle index as the dirty scan. - decisions-needed row 9 records the digest-only prompt manifest as not pursued, with the reason. - tool-layer ledger receipt for .qqignore with the search_walk A/B.
lg2m
force-pushed
the
devin/1790293834-k2-workspace-index
branch
from
September 25, 2026 21:15
dcb5453 to
c030c77
Compare
lg2m
added a commit
that referenced
this pull request
Sep 25, 2026
…ange detection (#191) Adds qq_core::WorkspaceIndex (workspace/index.rs) over the search/tree walker: build hashes every admitted file and directory; refresh against a previous index reuses a file's hash when size and mtime are unchanged and the mtime is strictly older than the previous walk, so a checkpoint on a quiet tree is a walk with no reads; diff yields sorted added/modified/ deleted paths. A budget-stopped build is IndexOutcome::Partial, which has no root hash and cannot be diffed. Hashes are qq_protocol::ContentHash; directory hashes cover child names so a moved subtree keeps its hash. Reworked from the contribution in #172: chunking dropped (no consumer), hex-String hashes replaced, partial root hash removed, incremental refresh added. EntryKind::File gains modified from the metadata call the walker already makes; search_walk is unchanged within noise. Bench workspace_index, 10k files / 17.6 MB, original -> reworked: build 52.0 -> 26.1 ms; diff 73 -> 35 us; refresh_quiet 6.8 ms with every hash reused; refresh_one_edit 7.3 ms. Co-authored-by: romy <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Narrowed in review from a Merkle workspace index plus a three-part ADR. Review notes are in the ledger and
decisions-needed.md; the index follows as a stacked PR.What
.qqignorejoins.gitignore/.ignorein the per-directory matcher stacksearchandtreeshare (tools/walk.rs::directory_matcher). A project can hide git-tracked paths (fixtures, vendored trees, generated docs) from every listing tool with one file in gitignore syntax. Tool schemas are unchanged;search/treeoutput honors the new file.Only these three files are read.
tools.md§ Read-Side Walk records why tool-private (.rgignore,.cursorignore, …), other-VCS, and global git excludes are not: they would make the tree depend on which editors a developer has installed, and each is another probe per directory on thesearchhot path.Docs
mainby the trust-prompt ADR; next free stays 0044) along with thekern-primitivesplan and ledger. A Proposed ADR for unimplemented work is not how this repo records decisions.docs/plans/run-snapshots.md§ Atomic Multi-File Edits with the design corrected: one journal record per batch under the QQ data directory, recovered under the apply lock, instead of a per-transaction blob store inside the workspace. § Change Detection names the index. Sequencing updated.decisions-needed.mdrow 9, with the reason.docs/plans/progress/tool-layer.md.Measured
search_walkA/B:tree_depth2(200 dirs) 4.82 → 5.03 ms — the extra probe;content_absent_10k_full_scan20.3 → 18.1 ms,references_10k_full_scan20.1 → 20.2 ms,names_10k1.98 → 2.00 ms — noise.Verification
cargo fmt --check,cargo clippy -p qq-core --all-targets --all-features -D warnings,cargo test -p qq-coregreen; thetools::testssearch/tree case covers a.qqignorerule hiding a file from both.No Linear issue exists for this work.