Repository navigation
Description
Problem
A devops-cli command that runs in a checkout of this repository writes its data folder .data/ into the checkout, and .gitignore does not ignore it. .gitignore holds .venv/ only.
Evidence of 2026-11-30, in a new clone:
devops roadmap intakewrote files under.data/cache/llm/and.data/roadmap/.mise exec -- scripts/private-data-scan.sh dir .then reported onegeneric-api-keyfinding in a file of.data/cache/llm/, and failed. After the removal of.data/cache, the guard passed.
So the local command of the CI job "Private-data guard" fails on a cache file, and git add --all can stage the files. CI uses a new checkout, so CI is not affected.
Change
Add .data/ to .gitignore, and keep the local guard command from reading an ignored data folder.
Existing tool considered
.gitignore covers the untracked files. The change adds no code.
Done when
- In a checkout that holds
.data/,git status --shortlists no file of it. - The command of the job "Private-data guard" in README.md passes in that checkout.
Alternatives check of 2026-12-01: not-applicable.
Class: chore, no model call.
Tool: none found.
Proposed design
Problem statement
devops-cli writes its data folder .data/ into a checkout of this repository. .gitignore lists .venv/ only, so git add --all can stage the folder. The local private-data guard reads the folder and fails on a cache file. The change ignores .data/ and keeps the guard clean.
Acceptance criteria
Requirement: Ignore the devops-cli data folder
The .gitignore of the repository SHALL list .data/.
Scenario: A checkout that holds a data folder
- WHEN a person writes
.data/cache/llm/example.jsonin a clone that holds this change and runsgit status --short - THEN the output lists no path under
.data/
Requirement: Keep the guard out of the data folder
The private-data guard MUST report no finding in a file under .data/.
Scenario: A cache file that holds a refused value
- WHEN a clone holds
.data/cache/llm/example.jsonwith a value that the rulegeneric-api-keyrefuses, and a person runsmise exec -- scripts/private-data-scan.sh dir . - THEN the command exits with code 0 and prints no finding
Requirement: Test the data folder case
The test of the private-data guard SHALL hold a case for a refused value in a folder under .data/.
Scenario: The guard test runs the data folder case
- WHEN a person runs
mise exec -- tests/test-private-data-scan.sh - THEN the case passes and the test exits with code 0
Existing Tool Considered
The alternatives check in the issue body records the verdict not-applicable for 2026-12-01: class chore, no model call, and Tool: none found. The block holds no Covers: or Lacks: list. The change adds no code. git reads .gitignore and gitleaks reads the allowlist of .gitleaks.toml. Both are open, maintained tools that the repository already pins. The proposal adds one line to each file.
Key questions
- How does the private-data guard stop reporting a file under
.data/?: Add the path pattern(^|/)\.data/to the allowlist of.gitleaks.toml. The guard keeps its command, and gitleaks reports no finding in a file under.data/. The pattern matches the path at any depth, so the guard test can use a temporary folder. (best practice) [sources: scripts/private-data-scan.sh, README.md, .gitleaks.toml]- Chosen: Allowlist path in
.gitleaks.toml. gitleaks already reads this config for each scan, and the pattern matches the path at any depth. - Rejected: Change the local command in README.md to scan tracked files only. gitleaks
dirtakes one folder, so the command cannot exclude one subtree, and no test runs the README command. - Rejected: Add
.data/to.gitignoreonly. git then ignores the folder, but the localdir .scan still reads it and still fails on a cache file.
- Chosen: Allowlist path in
- Does this issue also render a
.gitignorein the repository template?: No. This issue changes this repository. A follow-up issue renders the file, because the reply of 2026-11-30 reports that the template renders no.gitignoreand each repository needs the line. (best practice) [sources: templates/README.md, tests/test-repository-template.sh, AGENTS.md]- Chosen: Keep this issue to this repository and file the template change as a follow-up. The rendered file needs its own content decision, a row in
templates/README.mdand a case intests/test-repository-template.sh. - Rejected: Render the
.gitignorein this pull request. The reply of 2026-11-30 reports that the template renders no.gitignore, so the rendered file is a change of its own and not part of this issue as written.
- Chosen: Keep this issue to this repository and file the template change as a follow-up. The rendered file needs its own content decision, a row in
- Does the change need a new CI job or a workflow change?: No. The job Private-data guard runs on each event of
.github/workflows/ci.yml, and README.md gives its local command. The change adds no job and changes no workflow. [sources: README.md, .github/workflows/ci.yml]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 30, 2026
dan-petty/devcontainer-featureshas the same gap. On 2026-11-30,devops roadmap intakein a new clone wrote files under.data/cache/llm/and.data/roadmap/listing/.git statuslisted.data/as untracked, because.gitignoreof that repository does not list it. The template renders no.gitignore, so each repository needs the line.devops-cli-service commentedon Dec 1, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.