Skip to content

chore: add a gitignored .ai/ scratch space for cross-agent work - #29

Merged
AndresSaa merged 2 commits into
mainfrom
chore/ai-workspace
Jul 31, 2026
Merged

chore: add a gitignored .ai/ scratch space for cross-agent work#29
AndresSaa merged 2 commits into
mainfrom
chore/ai-workspace

Conversation

@AndresSaa

Copy link
Copy Markdown
Owner

What

.ai/
├── pr-audits/        # review output, one file per audit
├── context-exports/  # generated snapshots of structure or dependencies
└── temp/             # scratch, disposable without asking

Gitignored in full, documented in AGENTS.md. Verified with
git check-ignore -v rather than assumed.

The rule that makes it safe

.ai/ holds working notes, never decisions. Two PRs ago this repository
removed an external "source of truth" document that nobody could read, and the
whole point was that the contract lives in tracked files. An untracked scratch
directory could quietly recreate that problem, so AGENTS.md states the
opposite up front: an audit that changes something must land that change in a
tracked file in the same session, or it did not happen.

Plus two consequences that are easy to get wrong:

  • A file in .ai/ is one tool's opinion against a commit that may no longer
    exist. Verify claims against the code, same as any external source.
  • No secrets. The directory is untracked, not protected.

Impact

No source, no tests, nothing in the published tarball. No version bump.

More than one agent works on this repository and they do not share a session,
so they need somewhere on this machine to leave work for each other: audits,
generated snapshots, scratch.

The directory is gitignored in full, which is the point. It holds working notes,
never decisions. The contract lives in tracked files — the invariants, the
tests, the public types — so an audit that changes something must land that
change in a tracked file in the same session or it did not happen. A finding
that exists only in .ai/ is lost the moment the directory is cleaned.

AGENTS.md also states the two consequences that are easy to get wrong: a file in
.ai/ is one tool's opinion against a commit that may no longer exist, so it gets
verified against the code like any external source; and nothing secret goes in a
directory that is untracked rather than protected.
Nothing in the repository writes an architecture snapshot, and AGENTS.md says
to add structure only when something uses it. An empty convention nobody
produces is scaffolding, so the directory goes until there is a generator.

Audit filenames lead with the date. Grouping by type first meant a listing
interleaved dates and buried the newest file; the order you want when scanning
a directory of audits is the order they happened.
@AndresSaa
AndresSaa merged commit 08e89b8 into main Jul 31, 2026
13 of 15 checks passed
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