Skip to content

chore: keep the devops-cli data folder out of git #25

Backlog

Description

@dan-petty

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 intake wrote files under .data/cache/llm/ and .data/roadmap/.
  • mise exec -- scripts/private-data-scan.sh dir . then reported one generic-api-key finding 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 --short lists 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.json in a clone that holds this change and runs git 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.json with a value that the rule generic-api-key refuses, and a person runs mise 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 dir takes one folder, so the command cannot exclude one subtree, and no test runs the README command.
    • Rejected: Add .data/ to .gitignore only. git then ignores the folder, but the local dir . scan still reads it and still fails on a cache file.
  • Does this issue also render a .gitignore in 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 .gitignore and 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.md and a case in tests/test-repository-template.sh.
    • Rejected: Render the .gitignore in 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.
  • 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.

Moved to new items

#54

Activity

  1. added
    type/chore
    status/new
    value/medium
    effort/low
    source/agent
    priority/p2-medium
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    dan-petty/devcontainer-features has the same gap. On 2026-11-30, devops roadmap intake in a new clone wrote files under .data/cache/llm/ and .data/roadmap/listing/. git status listed .data/ as untracked, because .gitignore of that repository does not list it. The template renders no .gitignore, so each repository needs the line.

  3. added
    status/ready
    and removed
    status/new
    on Dec 1, 2026
  4. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agentstatus/readytype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions