Skip to content

Full-scan census warns about untracked files (Part of #138) - #6394

Merged
squid-protocol merged 3 commits into
mainfrom
experiment/4479-r3-A
Oct 25, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
experiment/4479-r3-A

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What changed

  • gitgalaxy/galaxyscope.py: new _untracked_files(root) / _untracked_warning() helpers. _build_file_census (git path, non-single-file) now runs git ls-files --others --exclude-standard after the census and logs one UNTRACKED_FILES warning (count, first 5 names, git add hint); the list is kept on scope.untracked_files. The delta-scan site (Delta scan (--incremental) silently drops files: 1,193 vs 1,295 for the same commit (102 missing, e.g. gitgalaxy/standards, workflows) #4483) that had its own inline copy of the same query now uses the helpers.
  • tests/core_engine/test_untracked_warning_138.py (7 tests, real temp git repos): untracked warns and is not in the census; modified-unstaged is scanned and does not warn; clean repo; gitignored untracked; non-git dir; git missing; list truncation.

Root cause

With git present the census is git ls-files, which lists only tracked paths, so untracked files are dropped silently. Modified-unstaged tracked files are listed and read from disk, so they are scanned and need no warning. .gitgalaxy/ (the engine's own cache dir, created on every run) is excluded from the report, otherwise every clean repo would warn (found by the clean-repo test).

Self-scan queries used

3 sqlite3 queries on the regenerated DB (aperture.py function list; name search for git/census functions; galaxyscope _build_file_census / _get_git_audit locations) to find that the git census lives in galaxyscope._build_file_census, not aperture.

Tests

New file 7 passed; test_galaxyscope.py -k "census or delta or incremental" 3 passed; ruff format / ruff check clean (S101 ignored for the test file, as pytest-style asserts). No golden bless, crucible_check, pr_gates or full suite run (cost cap).

Class / Sibling gaps

  • chronometer._scan_git_history also uses git ls-files and silently omits untracked files from history math; not warned there (the census warning covers the scan).
  • Staged-but-uncommitted files are scanned (tracked) and not reported; only untracked files are.
  • The warning is a log line only: not surfaced in the JSON/SQLite/LLM report outputs or the CLI summary.
  • Submodule contents and --single-file targets are not checked.

Part of #4479

🤖 Generated with Claude Code

@squid-protocol squid-protocol changed the title [experiment A] #138 warn when git status has uncommitted files (Part of #4479) Full-scan census warns about untracked files (Part of #138) Oct 24, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 15:46
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 16:00
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6394 @ eee9bbe: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40108484924/job/120918727601
repro: python -m pytest -q tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh
failing tests: tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh
errors:
fail-on-cache-miss: false
E AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
tests/tools/test_change_classifier.py:88: AssertionError
FAILED tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh - AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 202799
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 1f55d6934d6216d87c5739644784bec951cf607380cf8c6056734732118cc799
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12565769903
Artifact test-times-part-3 has been successfully uploaded! Final size is 202799 bytes. Artifact ID is 12565769903
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40108484924/artifacts/12565769903
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/2bf63f14-6ac0-4868-87fe-dbbe4a83fe46' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-25). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 25, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 021a378 into main Oct 25, 2026
53 checks passed
@squid-protocol
squid-protocol deleted the experiment/4479-r3-A branch October 25, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant