build(deps-dev): bump dev dependencies #42
Annotations
32 errors
|
test (ubuntu-latest · node 20)
Process completed with exit code 1.
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for packages/api/src/index.ts (matches **/*.ts) #when emitted #then typescript.md included:
test/integration/tool-result.integration.test.ts#L181
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for packages/api/src/index.ts:
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:181:32
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for App.tsx (matches **/*.tsx) #when emitted #then typescript.md content present in injected text:
test/integration/tool-result.integration.test.ts#L148
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:148:32
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given pi-rules-mode="off" then changed to "both" #when before_agent_start emitted before and after #then first call is undefined and second call mutates:
test/integration/sample-project.integration.test.ts#L187
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:187:29
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given same toolCallId emits two tool_results for same file #when both emitted #then first injects and second returns undefined:
test/integration/sample-project.integration.test.ts#L165
AssertionError: expected 'export function App() {\n\treturn nul…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+ export function App() {
+ return null;
+ }
+
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/sample-project.integration.test.ts:165:34
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given session is running with rules injected #when session_start emitted again with reason="reload" #then state is reset and before_agent_start injects from scratch:
test/integration/sample-project.integration.test.ts#L145
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:145:36
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given sample-project fixture #when running full session with static and dynamic injection #then each turn mutates once and preserves harness state:
test/integration/sample-project.integration.test.ts#L100
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:100:36
|
|
test/integration/before-agent-start.integration.test.ts > before_agent_start integration > #given sample-project fixture #when before_agent_start emitted with systemPromptOptions.contextFiles already containing AGENTS.md #then AGENTS.md is NOT re-injected (dedup against pi-mono native loader):
test/integration/before-agent-start.integration.test.ts#L158
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
❯ test/integration/before-agent-start.integration.test.ts:158:38
|
|
test (macos-latest · node 20)
Process completed with exit code 1.
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for packages/api/src/index.ts (matches **/*.ts) #when emitted #then typescript.md included:
test/integration/tool-result.integration.test.ts#L181
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for packages/api/src/index.ts:
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:181:32
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for App.tsx (matches **/*.tsx) #when emitted #then typescript.md content present in injected text:
test/integration/tool-result.integration.test.ts#L148
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:148:32
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given pi-rules-mode="off" then changed to "both" #when before_agent_start emitted before and after #then first call is undefined and second call mutates:
test/integration/sample-project.integration.test.ts#L187
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:187:29
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given same toolCallId emits two tool_results for same file #when both emitted #then first injects and second returns undefined:
test/integration/sample-project.integration.test.ts#L165
AssertionError: expected 'export function App() {\n\treturn nul…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+ export function App() {
+ return null;
+ }
+
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/sample-project.integration.test.ts:165:34
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given session is running with rules injected #when session_start emitted again with reason="reload" #then state is reset and before_agent_start injects from scratch:
test/integration/sample-project.integration.test.ts#L145
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:145:36
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given sample-project fixture #when running full session with static and dynamic injection #then each turn mutates once and preserves harness state:
test/integration/sample-project.integration.test.ts#L100
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:100:36
|
|
test/integration/before-agent-start.integration.test.ts > before_agent_start integration > #given sample-project fixture #when before_agent_start emitted with systemPromptOptions.contextFiles already containing AGENTS.md #then AGENTS.md is NOT re-injected (dedup against pi-mono native loader):
test/integration/before-agent-start.integration.test.ts#L158
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
❯ test/integration/before-agent-start.integration.test.ts:158:38
|
|
test (ubuntu-latest · node 22)
Process completed with exit code 1.
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for packages/api/src/index.ts (matches **/*.ts) #when emitted #then typescript.md included:
test/integration/tool-result.integration.test.ts#L181
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for packages/api/src/index.ts:
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:181:32
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for App.tsx (matches **/*.tsx) #when emitted #then typescript.md content present in injected text:
test/integration/tool-result.integration.test.ts#L148
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:148:32
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given pi-rules-mode="off" then changed to "both" #when before_agent_start emitted before and after #then first call is undefined and second call mutates:
test/integration/sample-project.integration.test.ts#L187
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:187:29
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given same toolCallId emits two tool_results for same file #when both emitted #then first injects and second returns undefined:
test/integration/sample-project.integration.test.ts#L165
AssertionError: expected 'export function App() {\n\treturn nul…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+ export function App() {
+ return null;
+ }
+
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/sample-project.integration.test.ts:165:34
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given session is running with rules injected #when session_start emitted again with reason="reload" #then state is reset and before_agent_start injects from scratch:
test/integration/sample-project.integration.test.ts#L145
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:145:36
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given sample-project fixture #when running full session with static and dynamic injection #then each turn mutates once and preserves harness state:
test/integration/sample-project.integration.test.ts#L100
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:100:36
|
|
test/integration/before-agent-start.integration.test.ts > before_agent_start integration > #given sample-project fixture #when before_agent_start emitted with systemPromptOptions.contextFiles already containing AGENTS.md #then AGENTS.md is NOT re-injected (dedup against pi-mono native loader):
test/integration/before-agent-start.integration.test.ts#L158
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /home/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
❯ test/integration/before-agent-start.integration.test.ts:158:38
|
|
test (macos-latest · node 22)
Process completed with exit code 1.
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for packages/api/src/index.ts (matches **/*.ts) #when emitted #then typescript.md included:
test/integration/tool-result.integration.test.ts#L181
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for packages/api/src/index.ts:
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:181:32
|
|
test/integration/tool-result.integration.test.ts > tool_result integration > #given read tool result for App.tsx (matches **/*.tsx) #when emitted #then typescript.md content present in injected text:
test/integration/tool-result.integration.test.ts#L148
AssertionError: expected '\n\nAdditional project instructions m…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/tool-result.integration.test.ts:148:32
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given pi-rules-mode="off" then changed to "both" #when before_agent_start emitted before and after #then first call is undefined and second call mutates:
test/integration/sample-project.integration.test.ts#L187
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:187:29
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given same toolCallId emits two tool_results for same file #when both emitted #then first injects and second returns undefined:
test/integration/sample-project.integration.test.ts#L165
AssertionError: expected 'export function App() {\n\treturn nul…' to contain 'Prefer `unknown` over `any`. Use exha…'
- Expected
+ Received
- Prefer `unknown` over `any`. Use exhaustive switch checks.
+ export function App() {
+ return null;
+ }
+
+
+
+ Additional project instructions matched for apps/web/src/App.tsx:
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.cursor/rules/ui.mdc
+
+ # UI rules
+
+ React components must be functional and prop-typed.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/CLAUDE.md
+ # CLAUDE.md
+
+ This is the secondary instruction file. AGENTS.md should win first-match.
+
❯ test/integration/sample-project.integration.test.ts:165:34
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given session is running with rules injected #when session_start emitted again with reason="reload" #then state is reset and before_agent_start injects from scratch:
test/integration/sample-project.integration.test.ts#L145
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:145:36
|
|
test/integration/sample-project.integration.test.ts > sample-project full session integration > #given sample-project fixture #when running full session with static and dynamic injection #then each turn mutates once and preserves harness state:
test/integration/sample-project.integration.test.ts#L100
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/AGENTS.md
+ # Sample project AGENTS.md
+
+ Always wear safety goggles when refactoring.
+
❯ test/integration/sample-project.integration.test.ts:100:36
|
|
test/integration/before-agent-start.integration.test.ts > before_agent_start integration > #given sample-project fixture #when before_agent_start emitted with systemPromptOptions.contextFiles already containing AGENTS.md #then AGENTS.md is NOT re-injected (dedup against pi-mono native loader):
test/integration/before-agent-start.integration.test.ts#L158
AssertionError: expected 'Base prompt.\n\n## Project Instructio…' to contain 'Use TypeScript strict mode. Always.'
- Expected
+ Received
- Use TypeScript strict mode. Always.
+ Base prompt.
+
+ ## Project Instructions
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/instructions/review.instructions.md
+
+ # Review
+
+ Reviewers MUST check tests pass before approving.
+
+
+ Instructions from: /Users/runner/work/pi-rules/pi-rules/test/fixtures/sample-project/.github/copilot-instructions.md
+ # Copilot global hints
+
+ Always include error messages with context.
+
❯ test/integration/before-agent-start.integration.test.ts:158:38
|