An agentic skills framework & software development methodology that works.
test: realign antigravity + pi mapping assertions with pruned references
Gaurav Dubeya80b7b63865a
diff --git a/tests/antigravity/test-antigravity-tools.sh b/tests/antigravity/test-antigravity-tools.shindex e370ac06f..e10edd42c 100755--- a/tests/antigravity/test-antigravity-tools.sh+++ b/tests/antigravity/test-antigravity-tools.sh@@ -2,8 +2,9 @@# Validate the Antigravity (agy) integration. agy installs the existing plugin# directly (`agy plugin install <repo-url>`): it loads the bundled skills and# runs the SessionStart hook for bootstrap, so there is no agy-specific scaffold-# to test. What IS agy-specific is the tool mapping — agy has no `Skill` tool and-# loads skills by reading SKILL.md with view_file — and SKILL.md pointing at it.+# to test. What IS agy-specific is the tool mapping — subagent dispatch via+# invoke_subagent (self/research types) and task tracking via a task artifact —+# and SKILL.md pointing at it.## Mirrors tests/pi/test-pi-extension.mjs's "tools reference documents# harness-specific mappings" check. CI-safe: does not require `agy` installed.@@ -22,16 +23,8 @@ echo "test-antigravity-tools: checking Antigravity tool mapping"# --- Mapping exists ---------------------------------------------------------[ -f "$MAPPING" ] || fail "tool mapping missing at $MAPPING"-# --- Skill-load mechanism: view_file on SKILL.md (IsSkillFile), no Skill tool --grep -qiE "view_file" "$MAPPING" \- || fail "mapping does not document view_file as the file/skill-read tool"-grep -qiE "SKILL\.md" "$MAPPING" \- || fail "mapping does not document reading SKILL.md as the skill-load path"-grep -q "IsSkillFile" "$MAPPING" \- || fail "mapping does not document setting IsSkillFile when loading a skill"-# --- Core action→tool mappings are documented --------------------------------for tool in write_to_file replace_file_content run_command grep_search invoke_subagent; do+for tool in write_to_file replace_file_content invoke_subagent; dogrep -q "$tool" "$MAPPING" \|| fail "mapping does not document the '$tool' tool"done@@ -50,4 +43,4 @@ grep -qE 'ArtifactType.*task|task. artifact' "$MAPPING" \grep -q "antigravity-tools.md" "$SKILL" \|| fail "SKILL.md Platform Adaptation does not reference antigravity-tools.md"-echo "PASS: Antigravity tool mapping valid (view_file skill-load, agy tools, SKILL.md link)"+echo "PASS: Antigravity tool mapping valid (subagent dispatch, task artifact, SKILL.md link)"diff --git a/tests/pi/test-pi-extension.mjs b/tests/pi/test-pi-extension.mjsindex 196e97593..14380e428 100644--- a/tests/pi/test-pi-extension.mjs+++ b/tests/pi/test-pi-extension.mjs@@ -122,7 +122,7 @@ test('pi tools reference documents pi-specific mappings', async () => {assert.equal(existsSync(piToolsPath), true, 'pi-tools.md should exist');const text = await readFile(piToolsPath, 'utf8');- for (const expected of ['Skill', 'Task', 'TodoWrite', 'read', 'write', 'edit', 'bash']) {+ for (const expected of ['subagent', 'pi-subagents', 'Task', 'TODO.md']) {assert.match(text, new RegExp(expected));}});