Skip to content

docs(agents): surface docs/solutions as a searchable knowledge store#27

Merged
brettdavies merged 2 commits into
devfrom
chore/docs-solutions-discoverability
Jun 1, 2026
Merged

docs(agents): surface docs/solutions as a searchable knowledge store#27
brettdavies merged 2 commits into
devfrom
chore/docs-solutions-discoverability

Conversation

@brettdavies
Copy link
Copy Markdown
Owner

Summary

AGENTS.md mentioned docs/solutions/ only in the engineering-docs-on-dev policy context (the guard-main-docs.yml
block list). An agent reading the file learned the path is forbidden on main but did NOT learn it is a searchable
knowledge store with structure to grep against. Add a ## Documented Solutions section between the Layout block and
## Lint & Format that surfaces the path, the search invocation, the frontmatter fields, and the recreate-symlink
recipe.

Mirrors the same triage done in agentnative-site PR #138.

The symlink at docs/solutions/ was recreated as part of this work but is gitignored globally
(~/.config/git/ignore), so it does not appear in the diff. Each clone needs the symlink locally.

Changelog

Documentation

  • AGENTS.md: add ## Documented Solutions section naming docs/solutions/ as a searchable knowledge store, the
    qmd query "<topic>" --collection solutions invocation, the canonical frontmatter fields (module, tags,
    problem_type), and the ln -s ~/dev/solutions-docs docs/solutions recreate recipe.

Type of Change

  • docs: Documentation update

Files Modified

Modified: AGENTS.md

Breaking Changes

  • No breaking changes

Deployment Notes

  • No special deployment steps required

Checklist

  • Code follows project conventions and style guidelines
  • Commit messages follow Conventional Commits
  • Self-review of code completed
  • No new warnings or errors introduced

AGENTS.md mentioned `docs/solutions/` only as a `dev`-only path guarded out
of `main` by `guard-main-docs.yml`. An agent reading that learned the path
is forbidden on `main` but not that it is a searchable knowledge store of
cross-repo solutions worth consulting before researching from scratch.

Adds a short Documented Solutions section adjacent to Layout: names the
symlink target, frontmatter fields (`module`, `tags`, `problem_type`), and
the `qmd query "<topic>" --collection solutions` search command. Matches
the pattern already in `agentnative-spec/AGENTS.md` and
`agentnative-cli/CLAUDE.md`.

Discoverability-only edit; no policy change. The `docs/plans/`,
`docs/solutions/`, `docs/brainstorms/`, `docs/reviews/` guard-from-main
mention later in the file is unchanged.
…solutions from lint

The Layout table's column-2 "no" indicator was an em-dash (`—`) wrapped in
`<!-- unslop: off --> / <!-- unslop: on -->` so the prose-scorer would not
count the 8 cell em-dashes against the file's density score. Cleaner:
use `✗` directly, parallel to the existing `✓` for the "yes" rows. Drop
the wrap.

The `<!-- unslop: off -->` mechanism is for legitimate-but-flagged content
the file's author wants the scorer to skip. The Layout table's em-dashes
were always "data, not prose" — the wrap was treating them as if they
were prose-flagged-but-OK. The ✓ / ✗ pair is the structurally correct
fix: data indicators, no need to silence the scorer.

Also exclude `docs/solutions/**` from `.markdownlint-cli2.yaml`. The path
is a symlink to `~/dev/solutions-docs` (a separate private repo with its
own lint config). Once the symlink was added in this PR, this repo's
pre-push markdownlint walked into the foreign content and failed on its
line-length rules. The exclusion makes the symlink-walk safe.
@brettdavies brettdavies merged commit d15c627 into dev Jun 1, 2026
4 checks passed
@brettdavies brettdavies deleted the chore/docs-solutions-discoverability branch June 1, 2026 19:17
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