Skip to content

fix(ci): scan actual environment reads - #14

Open
localai-org-maint-bot wants to merge 1 commit into
mudler:mainfrom
localai-org-maint-bot:codex/cpu-maintenance-20260801
Open

fix(ci): scan actual environment reads#14
localai-org-maint-bot wants to merge 1 commit into
mudler:mainfrom
localai-org-maint-bot:codex/cpu-maintenance-20260801

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Contributor

Summary

  • make check-env-doc.py inventory literal names passed to actual environment-reader calls instead of every quoted VT_* / VLLM_* token
  • strip C/C++ comments before scanning and cover getenv, std::getenv, plus the seven local reader wrappers
  • add RED-first mutations for comments, unrelated strings, multiline direct calls, and every shipped wrapper
  • keep the canonical A6/status/benchmark/ledger records current without changing any feature lifecycle or support claim

Design

I evaluated three approaches: comment stripping alone, getenv-only matching, and a full C++ lexer. Comment stripping still counts unrelated constants; getenv-only matching was proven incomplete because 21 shipped reads go through local wrappers; a full parser is unnecessary for literal call-site inventory. The implemented middle ground is a small comment-aware scanner with an explicit, tested reader-call family. Adding a future wrapper requires adding it to the family and its mutation case.

The shipped result remains 196 covered production reads, proving the precision fix does not drop current real reads. No production C/C++, model, kernel, build configuration, environment classification, README claim, GPU path, or benchmark behavior changes.

Verification

  • python3 -m unittest discover -s tests/scripts -p "test_*.py" (98 tests)
  • python3 scripts/check-env-doc.py (196 reads covered)
  • python3 scripts/check-agent-record.py
  • python3 scripts/check-doc-checkpoint.py --commit HEAD
  • python3 scripts/check-readme-structure.py
  • python3 scripts/check-model-checklist.py
  • python3 scripts/check-fusion-consistency.py
  • python3 scripts/check-device-leakage.py
  • git diff-tree --check HEAD

Benchmark disposition

NOT APPLICABLE. This is CPU-only CI governance; no runtime path or performance axis changes.

FOLLOWING_AGENTS_PROTOCOL

Restrict the environment documentation inventory to literal names passed through the shipped environment-reader call family. Ignore comments and unrelated strings while retaining all 196 real reads, with RED-first mutation coverage for direct calls, wrappers, and false positives.

FOLLOWING_AGENTS_PROTOCOL

Assisted-by: Codex:gpt-5 [Codex]
@localai-org-maint-bot
localai-org-maint-bot force-pushed the codex/cpu-maintenance-20260801 branch from cc55fdd to f629a22 Compare August 3, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant