2.3 KiB
2.3 KiB
Ingest And Search Through Bundled CLI
Test Type
- forward skill execution
Purpose
- validate that a single agent can use
skills/repo-memory/to ingest repository-localdocs/aimarkdown through the bundled CLI and retrieve the imported knowledge afterwards throughsearchandlist
Preconditions
skills/repo-memory/assets/repo-memoryexists and is executable- the test runner can create a temporary Git repository fixture
- the test runner can create a temporary SQLite DB path
- the repository fixture includes one
docs/ai/repo-memory.mdfile with at leastModule MapandDanger Zonessections
Inputs
SKILL_PATH=/.../skills/repo-memoryTMPDIR=/tmp/...DB_PATH=TMPDIR/repo-memory.dbREPO_PATH=TMPDIR/repo-fixture
Execution Parameters
- one agent only
- per-agent timeout:
3m - overall timeout:
4m
Execution Steps
- Create a temporary Git repository fixture under
REPO_PATH. - Add
docs/ai/repo-memory.mdwith markdown content that describes module and danger knowledge. - Ask the agent to use
$repo-memoryagainstDB_PATH. - Have the agent initialize or bootstrap the DB as needed, run
ingestagainstREPO_PATH, then usesearchandlistto confirm the imported knowledge is visible. - Capture the agent summary and the concrete imported entry keys it reports.
Validation Commands
Run these from the main thread after the agent stops:
SKILL_PATH/assets/repo-memory ingest --db DB_PATH --repo REPO_PATH
SKILL_PATH/assets/repo-memory search --db DB_PATH --repo REPO_PATH --query "gateway"
SKILL_PATH/assets/repo-memory list --db DB_PATH --repo REPO_PATH
Expected Outcomes
ingestsucceeds and reports one imported markdown documentsearchreturns the importedmoduleentry for theModule Mapsectionlistreturns at least onemoduleentry and onedangerentry for the fixture repo
Assertions
- the agent used the bundled CLI instead of copying markdown into ad hoc notes
- the imported knowledge is attached to the target repo path
- the imported keys match the expected
repo-memory:<slug>style generated from the markdown sections
Cleanup
- keep the temporary DB and repo on failure
- remove temporary artifacts on success only if replay evidence is not needed