Skip to content

Commit 4b00e56

Browse files
sanchitrkclaude
andcommitted
test(harness): instruction discovery across host, Daytona and Vercel sandboxes
One scenario runs on the host sandbox (every vp test) and on Daytona and Vercel (test:sandbox:e2e), all against a shared artifact: nested files, overrides, a nested git worktree, and a host-dir link whose settings turn the plugin off while host files are never read. A relink case moves one session Daytona -> Vercel -> host, and a real-repository case clones a pinned fixture branch of codeworksh/69th into all three and requires the same context per directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a7c2493 commit 4b00e56

7 files changed

Lines changed: 552 additions & 1 deletion

File tree

‎packages/harness/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"test": "vp test",
7979
"test:sandbox:package": "node test/scripts/codework-sandbox-vercel-smoke.mjs",
8080
"test:sandbox:package:e2e": "node test/scripts/codework-sandbox-vercel-smoke.mjs --e2e",
81-
"test:sandbox:e2e": "CODEWORK_SANDBOX_E2E_REQUIRED=1 vp test --no-file-parallelism test/sandbox.vercel.e2e.test.ts test/sandbox.daytona.e2e.test.ts test/sandbox.remote.driver.e2e.test.ts test/tools.registry.remote.e2e.test.ts test/session.relink.e2e.test.ts",
81+
"test:sandbox:e2e": "CODEWORK_SANDBOX_E2E_REQUIRED=1 vp test --no-file-parallelism test/sandbox.vercel.e2e.test.ts test/sandbox.daytona.e2e.test.ts test/sandbox.remote.driver.e2e.test.ts test/tools.registry.remote.e2e.test.ts test/session.relink.e2e.test.ts test/plugin.instruction.e2e.test.ts",
8282
"typecheck": "tsc --noEmit"
8383
},
8484
"dependencies": {
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<project_context>
2+
Project-Specific Instructions & Guidelines:
3+
4+
<project_instructions path="<checkout>/AGENTS.md">
5+
# 69th
6+
7+
A small TypeScript monorepo: `packages/api` (HTTP service) and `packages/web` (client).
8+
9+
## Conventions
10+
11+
- TypeScript only; no `any`.
12+
- Run `npm run check` before finishing a change.
13+
- Keep functions small and pure where possible.
14+
15+
</project_instructions>
16+
17+
<project_instructions path="<checkout>/packages/api/AGENTS.md">
18+
# api
19+
20+
- Handlers live in `src/`; one route per file.
21+
- Every handler returns a typed result; never throw for expected errors.
22+
23+
</project_instructions>
24+
</project_context>
25+
26+
<project_context>
27+
Project-Specific Instructions & Guidelines:
28+
29+
<project_instructions path="<checkout>/AGENTS.md">
30+
# 69th
31+
32+
A small TypeScript monorepo: `packages/api` (HTTP service) and `packages/web` (client).
33+
34+
## Conventions
35+
36+
- TypeScript only; no `any`.
37+
- Run `npm run check` before finishing a change.
38+
- Keep functions small and pure where possible.
39+
40+
</project_instructions>
41+
42+
<project_instructions path="<checkout>/packages/web/CLAUDE.md">
43+
# web
44+
45+
- Components are function components; no classes.
46+
- Fetch through `src/client.ts` only.
47+
48+
</project_instructions>
49+
</project_context>
50+
51+
<project_context>
52+
Project-Specific Instructions & Guidelines:
53+
54+
<project_instructions path="<checkout>/AGENTS.md">
55+
# 69th
56+
57+
A small TypeScript monorepo: `packages/api` (HTTP service) and `packages/web` (client).
58+
59+
## Conventions
60+
61+
- TypeScript only; no `any`.
62+
- Run `npm run check` before finishing a change.
63+
- Keep functions small and pure where possible.
64+
65+
</project_instructions>
66+
67+
<project_instructions path="<checkout>/docs/AGENTS.override.md">
68+
# docs
69+
70+
Docs are prose for people: ignore the code conventions above and write plain English.
71+
72+
</project_instructions>
73+
</project_context>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<project_context>
2+
Project-Specific Instructions & Guidelines:
3+
4+
<project_instructions path="<sandbox>/repo/AGENTS.md">
5+
Main checkout copy.
6+
7+
</project_instructions>
8+
9+
<project_instructions path="<sandbox>/repo/pkg/AGENTS.override.md">
10+
Pkg: run vp check.
11+
12+
</project_instructions>
13+
</project_context>
14+
15+
<project_context>
16+
Project-Specific Instructions & Guidelines:
17+
18+
<project_instructions path="<sandbox>/repo/.claude/worktrees/x/AGENTS.md">
19+
Worktree copy.
20+
21+
</project_instructions>
22+
23+
<project_instructions path="<sandbox>/repo/.claude/worktrees/x/pkg/AGENTS.override.md">
24+
Pkg: run vp check.
25+
26+
</project_instructions>
27+
</project_context>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<project_context>
2+
Project-Specific Instructions & Guidelines:
3+
4+
<project_instructions path="<daytona>/repo/AGENTS.md">
5+
Daytona: repo root.
6+
7+
</project_instructions>
8+
9+
<project_instructions path="<daytona>/repo/pkg/AGENTS.md">
10+
Daytona: pkg.
11+
12+
</project_instructions>
13+
</project_context>
14+
15+
<project_context>
16+
Project-Specific Instructions & Guidelines:
17+
18+
<project_instructions path="<vercel>/repo/AGENTS.md">
19+
Vercel: repo root.
20+
21+
</project_instructions>
22+
23+
<project_instructions path="<vercel>/repo/pkg/AGENTS.md">
24+
Vercel: pkg.
25+
26+
</project_instructions>
27+
</project_context>
28+
29+
<project_context>
30+
Project-Specific Instructions & Guidelines:
31+
32+
<project_instructions path="<host>/repo/AGENTS.md">
33+
Host: repo root.
34+
35+
</project_instructions>
36+
37+
<project_instructions path="<host>/repo/pkg/AGENTS.md">
38+
Host: pkg.
39+
40+
</project_instructions>
41+
</project_context>

0 commit comments

Comments
 (0)