2.2 KiB
2.2 KiB
Link Two Entries Through Bundled CLI
Test Type
- forward skill execution
Purpose
- validate that a single agent can use
skills/repo-memory/to add two durable knowledge entries, create a relation between them through the bundled CLI, and leave a durable graph edge in the SQLite database
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 any evidence files needed for the two entries
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 any files needed to justify two durable knowledge entries.
- Ask the agent to use
$repo-memoryagainstDB_PATH. - Have the agent add one
termentry and onechainentry for the same repo. - Have the agent link the first entry to the second with relation
related_to. - Capture the agent summary and the concrete entry ids it reports.
Validation Commands
Run these from the main thread after the agent stops:
SKILL_PATH/assets/repo-memory list --db DB_PATH --repo REPO_PATH
SKILL_PATH/assets/repo-memory events --db DB_PATH --id 1
SKILL_PATH/assets/repo-memory events --db DB_PATH --id 2
sqlite3 DB_PATH "SELECT relation FROM knowledge_links WHERE from_entry_id = 1 AND to_entry_id = 2;"
Expected Outcomes
- both
addcalls succeed and leave two queryable entries linksucceeds and reports the relation textually- the final SQL validation returns one
related_torow
Assertions
- the agent used the bundled CLI for entry creation and relation creation
- the relation is durable in the packaged SQLite DB, not just mentioned in the summary
- both entries remain independently inspectable through
events
Cleanup
- keep the temporary DB and repo on failure
- remove temporary artifacts on success only if replay evidence is not needed