Skip to content

Commit 975b6ff

Browse files
committed
Resolve the lexicon agents checkout portably
Probe ../agents, honor AGENTS_CHECKOUT, else ask the operator instead of assuming a machine-specific default path.
1 parent 324d7f8 commit 975b6ff

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

plugins/corbits-skills/skills/lexicon/SKILL.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ Linear issues for drift.
2525
All comparisons in one run use a single pinned commit of the agents
2626
checkout — never float mid-run.
2727

28-
1. Resolve the checkout (default `/Users/thegreataxios/abklabs/agents`;
29-
accept an operator override path).
28+
1. Resolve the checkout — probe `../agents` beside this repo, then
29+
`$AGENTS_CHECKOUT` when set, else ask the operator for the path.
30+
Never assume a machine-specific default.
3031
2. Record the pin: `git -C <checkout> rev-parse HEAD`.
3132
3. Read every agents-side file with `git show <pin>:<path>` so local
3233
working-tree edits cannot skew the diff.

tests/unit/lexicon-skill.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ describe("lexicon skill shape", () => {
3333
expect(skill).toContain("linear-issue-workflow");
3434
});
3535

36+
test("checkout resolution is portable (no hardcoded machine path)", async () => {
37+
const skill = await Bun.file(skillPath).text();
38+
expect(skill).not.toMatch(/\/Users\/[\w-]+/);
39+
expect(skill).toMatch(/AGENTS_CHECKOUT/);
40+
expect(skill).toMatch(/ask the operator/);
41+
});
42+
3643
test("lexicon is a slash command", async () => {
3744
const cmds = await loadSkillCommands(pluginRoot);
3845
expect(defined(cmds, "skill commands").map((c) => c.name)).toContain(

0 commit comments

Comments
 (0)