pixie-qa
Copilot instructions9 starsChanged 8 months agoMITView on GitHub
pixie-qa is a Python package and coding-agent skill for automated quality assurance of AI applications. The package is published as pixie and provides instrumentation, evaluation, and observability primitives that plug into LLM-powered apps. Test file naming: This project uses uv (not pip, Poetry, or conda) for all dependency and environment management. This project follows strict TDD practices to ensure code quality and maintainability. CRITICAL: Always write or verify tests BEFORE implementing features or making changes. Development Workflow:
- Installs packages
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- eval-driven-devSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
71 rules. About 0 are common, 53 are distinctive, and 18 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈53
Distinctive · estimate
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 67
Test files must start with test_ prefix
- Distinctive: line 105
CRITICAL: Always write or verify tests BEFORE implementing features or making changes.
- Distinctive: line 110
Write the test first: Create test cases that define expected behavior
- Distinctive: line 111
Run the test: Verify it fails (red) — this confirms the test is valid
- Distinctive: line 112
Implement the code: Write minimal code to make the test pass
- Distinctive: line 113
Run the test again: Verify it passes (green)
- Distinctive: line 115
Run all tests: Ensure no regressions
- Distinctive: line 142
Bug fixes must include regression tests: Add a test that would have caught the bug
- Distinctive: line 143
Refactoring must maintain tests: Verify all existing tests still pass
- Distinctive: line 156
Before committing changes, always run:
- Distinctive: line 197
Run manual e2e verification whenever you change anything in:
- Very specific: line 207
After making changes to CLI/eval/scorecard code, manually verify pixie test output using both console inspection and Playwright-based …
- Distinctive: line 218
All 5 dataset entries appear with correct ✓/✗ marks
- Distinctive: line 222
No unexpected errors or tracebacks
- Distinctive: line 226
Verify evaluator names appear (SimpleFactualityEval, StrictKeywordEval)
- Distinctive: line 227
Verify per-input score cells show reasonable numeric values
- Distinctive: line 228
Verify PASS/FAIL badges are present
- Distinctive: line 229
Check that "details" links exist and clicking one opens the evaluation detail modal
- Distinctive: line 268
Focused: Test one thing at a time
- Distinctive: line 269
Independent: Don't depend on other tests or execution order
- Distinctive: line 271
Fast: Use mocks/fixtures for external dependencies (OTel, LLM providers)
- Distinctive: line 315
Use pytest fixtures for common setup:
- Distinctive: line 351
Before committing, verify there are no type errors:
- Distinctive: line 361
Run these commands after making changes to ensure type safety.
- Distinctive: line 365
CRITICAL: All function signatures must have type annotations for parameters and return values.
- Very specific: line 469
When changing pixie test or scorecard-related code, also run the
- Very specific: line 485
Run uv run pytest — ensure existing tests pass
- Very specific: line 486
Run uv run mypy pixie/ — ensure no type errors
- Distinctive: line 487
Check Pylance Problems panel — ensure no Pylance errors
- Very specific: line 490
Run uv run pytest — verify tests still pass
- Very specific: line 491
Run uv run mypy pixie/ — verify no new type errors
- Distinctive: line 492
Check Pylance Problems panel — verify no new Pylance errors
- Distinctive: line 504
Add span identity extraction (span_id, trace_id, parent_span_id)
- Distinctive: line 505
Add token usage extraction
- Distinctive: line 506
Add request parameter parsing from invocation_parameters
- Distinctive: line 507
Add input message parsing (system, user, assistant, tool roles)
- Distinctive: line 508
Add output message parsing with finish_reasons
- Distinctive: line 509
Add tool definition parsing
- Distinctive: line 510
Add error handling and fallback behavior
- Distinctive: line 511
Add integration test with full pipeline
- Distinctive: line 517
CRITICAL: Avoid duplicating code. Always scan the codebase for existing similar code before adding new code.
- Distinctive: line 522
Use semantic search or grep to find similar functionality
- Very specific: line 523
Check pixie/ for existing utilities and helpers
- Very specific: line 524
Check pixie/instrumentation/ for span processing patterns
- Distinctive: line 529
Should you extract a shared helper?
- Very specific: line 541
Utility functions: Place in appropriate module or create pixie/utils.py
- Very specific: line 542
Base classes: Use ABCs for common interfaces (InstrumentationHandler)
- Very specific: line 543
Type definitions: Keep span types in pixie/instrumentation/spans.py
- Distinctive: line 544
Constants: Place in relevant module
- Distinctive: line 560
Module / API docstrings: Update public function, class, and method docstrings whenever behavior, parameters, or return values change.
- Very specific: line 561
Specs: Update relevant files in specs/ (for example specs/instrumentation.md) when architecture, data flow, or instrumentation behavior …
- Distinctive: line 565
CRITICAL: When a change introduces a new directory, adds build artifacts, or changes how a subsystem works, the relevant README(s) must be …
- Very specific: line 582
Create or update a file under changelogs/ named after the feature, e.g.
- Distinctive: line 586
Migration notes: if any API behavior changed.
- Distinctive: line 587
Commit the changelog file together with the implementation.
- Distinctive: line 606
If any of these are missing, the agent must continue working and add them before declaring completion.
- Distinctive: line 610
When introducing a new directory or subpackage, documentation must include:
- Distinctive: line 613
Update to the parent or root README referencing the new directory
- Distinctive: line 620
After each code change, immediately:
- Distinctive: line 622
Update docstrings in the same edit.
- Distinctive: line 623
Update all relevant README.md files (see README scoping rules).
- Very specific: line 624
Update relevant specs/ docs for design or behavior changes.
- Distinctive: line 625
Create/update a changelog file for non-trivial changes.
- Very specific: line 626
Update tests/README.md if test fixtures or verification steps changed.
- Distinctive: line 628
Do not defer documentation work to the end of a task.
- Distinctive: line 662
Before each task: run tests and type check
- Distinctive: line 663
Search codebase for existing similar code
- Very specific: line 664
Write test first in tests/pixie/ (TDD)
- Distinctive: line 666
After each task: run tests and type check
- Very specific: line 668
Run agent verification protocol (section 4a) if CLI/eval/scorecard code changed
- Distinctive: line 669
Update docs and changelog for the task
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions for pixie-qa
Project Overview
pixie-qa is a Python package and coding-agent skill for automated quality assurance of AI applications. The package is published as pixie and provides instrumentation, evaluation, and observability primitives that plug into LLM-powered apps.
Technology Stack
- Python 3.11+ with type hints
- uv for package management, virtual environments, and builds
- pytest for testing
- mypy for static type checking
- ruff for linting and formatting
- OpenTelemetry SDK and OpenInference for LLM call instrumentation
Package Structure
pixie/
__init__.py
assets/
index.html # compiled React scorecard (build artifact, gitignored)
cli/
test_command.py # pixie test entry point
evals/
scorecard.py # scorecard data models + template-based HTML generation
instrumentation/
__init__.py # public API: init(), flush()
spans.py # ObserveSpan, LLMSpan, message/content types
handler.py # InstrumentationHandler ABC
wrap.py # wrap() API for data-object-based tracing
processor.py # LLMSpanProcessor (OTel SpanProcessor)
queue.py # _DeliveryQueue (background worker thread)
instrumentors.py # auto-discovers and activates OpenInference instrumentors
py.typed
frontend/ # React scorecard SPA source
src/ # React components, types, styles
package.json # React 19, Vite 6, vite-plugin-singlefile
vite.config.ts # builds to ../pixie/assets/
README.md # frontend dev & build instructions
tests/
README.md # testing instructions and manual verification guide
pixie/ # automated tests (pytest)
cli/
test_test_command.py # CLI unit tests
e2e_fixtures/ # mock evaluators and datasets for e2e
evals/
test_scorecard.py
instrumentation/
test_spans.py
test_context.py
test_queue.py
test_processor.py
test_integration.py
manual/ # manual testing fixtures (not run by pytest)
mock_evaluators.py
datasets/
sample-qa.json # run with: pixie test tests/manual/datasets/sample-qa.json
specs/ # design specs and architecture docsTest file naming:
- Test files must start with
test_prefix - Mirror the structure of the source code directory
- One test file per source module
uv Package Management
This project uses uv (not pip, Poetry, or conda) for all dependency and environment management.
Common Commands
uv sync # Install/sync all dependencies (creates .venv if needed)
uv add <package> # Add a runtime dependency
uv add --dev <package> # Add a dev dependency
uv run pytest # Run a command inside the managed environment
uv run mypy pixie/ # Type check
uv run ruff check . # Lint
uv run ruff format . # Format
uv build # Build the package (sdist + wheel)
uv lock # Re-lock dependencies after editing pyproject.tomlRules
- Never use
pip installdirectly — all dependency changes go throughuv add/uv removeand are recorded inpyproject.toml. - Always run tools through
uv runto ensure the correct virtualenv is used (e.g.,uv run pytest, not barepytest, unless the venv is already activated). - Commit
uv.lockalongsidepyproject.tomlchanges.
Test-Driven Development (TDD) Requirements
This project follows strict TDD practices to ensure code quality and maintainability.
1. Test-First Development
CRITICAL: Always write or verify tests BEFORE implementing features or making changes.
Development Workflow:
- Understand the requirement: Clarify what needs to be built or changed
- Write the test first: Create test cases that define expected behavior
- Run the test: Verify it fails (red) — this confirms the test is valid
- Implement the code: Write minimal code to make the test pass
- Run the test again: Verify it passes (green)
- Refactor if needed: Improve code while keeping tests green
- Run all tests: Ensure no regressions
2. Test Location and Organization
All tests for the pixie module must be in the tests/pixie/ directory:
pixie/
instrumentation/
spans.py
handler.py
wrap.py
processor.py
queue.py
instrumentors.py
tests/
pixie/
instrumentation/
test_spans.py
test_queue.py
test_processor.py3. Test Coverage Requirements
- All new code must have tests: Functions, classes, methods, utilities
- Bug fixes must include regression tests: Add a test that would have caught the bug
- Refactoring must maintain tests: Verify all existing tests still pass
What to test:
- Function inputs and outputs
- Edge cases and boundary conditions
- Error handling and exceptions
- Integration between components
- Span attribute parsing and type conversions
- Handler dispatch and delivery queue behavior
4. Running Tests
Before committing changes, always run:
uv run pytest # Run all tests
uv run pytest tests/pixie/ # Run only pixie tests
uv run pytest tests/pixie/instrumentation/test_spans.py # Run specific test file
uv run pytest -k "test_function_name" # Run specific test
uv run pytest --cov=pixie # Run with coverage report4a. End-to-End Verification for pixie test
The pixie test CLI command uses dataset-driven mode — each dataset
JSON file specifies evaluators per row. There is no test-file mode.
Fixture layout:
tests/pixie/cli/
e2e_fixtures/
datasets/
customer-faq.json # 5-item golden dataset with evaluators per row
mock_evaluators.py # Deterministic mock evaluators (no LLM calls)
tests/manual/
datasets/
sample-qa.json # 5-item sample dataset with evaluators per row
mock_evaluators.py # SimpleFactualityEval, StrictKeywordEvalMock evaluators (e2e_fixtures/mock_evaluators.py) are deterministic
replacements for LLM-as-judge evaluators. They use string similarity, keyword
overlap, or fixed scores to produce realistic but reproducible results:
MockFactualityEval— SequenceMatcher string similarity (most items pass)MockClosedQAEval— keyword overlap ratio (strict; some items fail)MockHallucinationEval— always returns score 0.95MockFailingEval(name="MockStrictTone") — always returns score 0.2
When to run e2e verification:
Run manual e2e verification whenever you change anything in:
pixie/cli/test_command.py— thepixie testentry pointpixie/cli/main.py— CLI argument parsing and forwarding- `pixie/harness/runner.py — evaluation harness and evaluator resolution
pixie/evals/scorecard.py— scorecard models, HTML generationpixie/evals/criteria.py— pass criteria
Agent verification protocol:
After making changes to CLI/eval/scorecard code, manually verify pixie test
output using both console inspection and Playwright-based scorecard verification.
Run the manual fixture directly:
export PIXIE_ROOT=/tmp/pixie_e2e_verify uv run pixie test tests/manual/datasets/sample-qa.json --no-open- Inspect the console output — verify that:
- All 5 dataset entries appear with correct ✓/✗ marks
- Evaluator names are shown per row (e.g.
(SimpleFactualityEval, StrictKeywordEval)) - Scores are shown (e.g.
[1.00, 1.00]) - The scorecard file path is printed at the end
- No unexpected errors or tracebacks
- Inspect the HTML scorecard with Playwright — write a Playwright script to:
- Open the generated HTML file via
file://URL - Verify evaluator names appear (SimpleFactualityEval, StrictKeywordEval)
- Verify per-input score cells show reasonable numeric values
- Verify PASS/FAIL badges are present
- Check that "details" links exist and clicking one opens the evaluation detail modal
- Take a screenshot for visual confirmation
Example:
from playwright.sync_api import sync_playwright with sync_playwright() as p: browser = p.chromium.launch(headless=True) page = browser.new_page() page.goto("file:///tmp/pixie_e2e_verify/scorecards/<filename>.html") page.wait_for_load_state("networkidle") body = page.inner_text("body") assert "SimpleFactualityEval" in body assert "StrictKeywordEval" in body assert "sample-qa" in body # Verify detail modal opens details = page.locator("text=details") assert details.count() > 0 details.first.click() page.wait_for_timeout(500) assert "Evaluation detail" in page.inner_text("body") page.screenshot(path="/tmp/pixie_scorecard.png", full_page=True) browser.close()
- Open the generated HTML file via
- Evaluate holistically — given the dataset contents and evaluator definitions, do the scores and pass/fail outcomes make sense?
This verification catches rendering issues, layout regressions, and semantic correctness problems that simple string assertions can miss.
5. Test Quality Guidelines
Good tests are:
- Focused: Test one thing at a time
- Independent: Don't depend on other tests or execution order
- Readable: Clear arrange-act-assert structure
- Fast: Use mocks/fixtures for external dependencies (OTel, LLM providers)
- Maintainable: Easy to update when requirements change
Example test structure:
import pytest
from pixie.instrumentation.spans import LLMSpan, ObserveSpan, UserMessage, TextContent
class TestUserMessage:
"""Tests for UserMessage factory methods."""
def test_from_text_creates_single_text_content(self) -> None:
# Arrange & Act
msg = UserMessage.from_text("hello")
# Assert
assert msg.content == (TextContent(text="hello"),)
assert msg.role == "user"
def test_frozen_span_raises_on_mutation(self) -> None:
# Arrange
span = ObserveSpan(
span_id="abc123",
trace_id="def456",
parent_span_id=None,
started_at=...,
ended_at=...,
duration_ms=0.0,
name="test",
input=None,
output=None,
metadata={},
error=None,
)
# Act & Assert
with pytest.raises(AttributeError):
span.name = "mutated" # type: ignore[misc]6. Fixtures and Test Utilities
Use pytest fixtures for common setup:
# In tests/pixie/conftest.py
import pytest
from pixie.instrumentation.handler import InstrumentationHandler
from pixie.instrumentation.spans import LLMSpan, ObserveSpan
class RecordingHandler(InstrumentationHandler):
"""Test handler that records all delivered spans."""
def __init__(self) -> None:
self.llm_spans: list[LLMSpan] = []
self.observe_spans: list[ObserveSpan] = []
def on_llm(self, span: LLMSpan) -> None:
self.llm_spans.append(span)
def on_observe(self, span: ObserveSpan) -> None:
self.observe_spans.append(span)
@pytest.fixture
def recording_handler() -> RecordingHandler:
return RecordingHandler()Type Safety Requirements
This project uses Python type hints with strict type checking via both mypy and Pylance. Both must be clean because they use different inference engines and can catch different classes of errors. Pylance in particular will catch type mismatches with third-party libraries that mypy may miss when those libraries lack py.typed markers.
1. Always Run Type Checking
Before committing, verify there are no type errors:
uv run mypy pixie/ # Type check pixie module
uv run mypy tests/pixie/ # Type check tests
uv run mypy . # Type check entire projectAlso check Pylance diagnostics in VS Code — use the Problems panel or the Pylance language server. Zero errors in both mypy and Pylance are required before committing.
Run these commands after making changes to ensure type safety.
2. Type Annotation Rules
CRITICAL: All function signatures must have type annotations for parameters and return values.
❌ WRONG — Missing type annotations:
def process_span(span, attrs):
return extract_messages(attrs)
def calculate_duration(start, end):
return (end - start) / 1e6✅ CORRECT — Proper type annotations:
from __future__ import annotations
from pixie.instrumentation.spans import LLMSpan, Message
def process_span(span: ReadableSpan, attrs: dict[str, Any]) -> LLMSpan:
return _build_llm_span(span, attrs)
def calculate_duration(start: int, end: int) -> float:
return (end - start) / 1e63. Type Safety for Common Patterns
Union types (use | syntax, not Optional or Union):
def get_parent_id(span: ReadableSpan) -> str | None:
if span.parent is not None:
return format(span.parent.span_id, "016x")
return NoneFrozen dataclasses:
from dataclasses import dataclass
from typing import Literal
@dataclass(frozen=True)
class TextContent:
text: str
type: Literal["text"] = "text"Protocol and Abstract Base Classes:
from abc import ABC, abstractmethod
class InstrumentationHandler(ABC):
def on_llm(self, span: LLMSpan) -> None:
pass
def on_observe(self, span: ObserveSpan) -> None:
pass4. Avoid Type Checking Bypass
❌ NEVER do this:
data = fetch_data() # type: ignore
result: Any = process(data)
value = cast(str, unknown_value) # Avoid cast unless absolutely necessary✅ CORRECT approach:
from typing import TypeGuard
def is_llm_span(attrs: dict[str, Any]) -> bool:
return attrs.get("openinference.span.kind") == "LLM"
if is_llm_span(attrs):
process_llm_span(attrs)Code Quality Tools
1. Linting and Formatting
uv run ruff check . # Run linter
uv run ruff format . # Format code2. Pre-commit Checks
Before committing, run:
uv run pytest # All tests must pass (includes e2e)
uv run mypy pixie/ # Zero type errors
uv run ruff check . # No linting errorsWhen changing pixie test or scorecard-related code, also run the
agent verification protocol (section 4a) — run pixie test on the manual
fixture and inspect console output + scorecard HTML with Playwright.
Also verify zero Pylance errors in VS Code Problems panel (Pylance can catch type mismatches that mypy misses for untyped third-party packages).
Incremental Development
CRITICAL: Implement changes incrementally, one small task at a time. This ensures stability and makes debugging easier.
Development Workflow
- Break down the work: Split large features into small, independent tasks
- Before starting each task:
- Run
uv run pytest— ensure existing tests pass - Run
uv run mypy pixie/— ensure no type errors - Check Pylance Problems panel — ensure no Pylance errors
- Run
- Implement one small task
- After completing each task:
- Run
uv run pytest— verify tests still pass - Run
uv run mypy pixie/— verify no new type errors - Check Pylance Problems panel — verify no new Pylance errors
- Fix any issues before moving to next task
- Run
- Repeat for each task
Example of task breakdown:
❌ WRONG — One big task:
- "Implement the LLM span processor"
✅ CORRECT — Small incremental tasks:
- Add span identity extraction (span_id, trace_id, parent_span_id)
- Add token usage extraction
- Add request parameter parsing from invocation_parameters
- Add input message parsing (system, user, assistant, tool roles)
- Add output message parsing with finish_reasons
- Add tool definition parsing
- Add error handling and fallback behavior
- Add integration test with full pipeline
Code Reuse and DRY Principles
CRITICAL: Avoid duplicating code. Always scan the codebase for existing similar code before adding new code.
Before Writing New Code
- Search for existing implementations:
- Use semantic search or grep to find similar functionality
- Check
pixie/for existing utilities and helpers - Check
pixie/instrumentation/for span processing patterns
- Evaluate reusability:
- Can existing code be used directly?
- Can existing code be extended or modified?
- Should you extract a shared helper?
When to Extract Shared Code
Extract a shared helper/module when:
- The same logic appears in 2+ places
- Similar patterns with minor variations exist
- A piece of code could benefit other parts of the codebase
Patterns for shared code:
- Utility functions: Place in appropriate module or create
pixie/utils.py - Base classes: Use ABCs for common interfaces (
InstrumentationHandler) - Type definitions: Keep span types in
pixie/instrumentation/spans.py - Constants: Place in relevant module
Documentation and Changelog Requirements
Every code change must include corresponding documentation updates. Documentation is part of implementation, not a follow-up task.
What to Keep Up to Date
- README files: Each major directory that contains non-trivial code or assets must have its own
README.mdexplaining purpose, usage, and build/test commands. Currently required READMEs:README.md(root) — project overview, getting starteddocs/package.md— Python package API referencefrontend/README.md— React scorecard dev & build instructionspixie/assets/README.md— build artifact purpose and rebuild instructionstests/README.md— test organization, running tests, manual verification
- Module / API docstrings: Update public function, class, and method docstrings whenever behavior, parameters, or return values change.
- Specs: Update relevant files in
specs/(for examplespecs/instrumentation.md) when architecture, data flow, or instrumentation behavior changes.
README Scoping Rules
CRITICAL: When a change introduces a new directory, adds build artifacts, or changes how a subsystem works, the relevant README(s) must be created or updated in the same change set.
Which READMEs to update:
| Change type | READMEs to update |
New top-level directory (e.g., frontend/) | Create <dir>/README.md + update root README.md |
New package directory (e.g., pixie/assets/) | Create <dir>/README.md + update docs/package.md |
| New test fixtures or test directories | Update tests/README.md |
| CLI or scorecard changes | Update docs/package.md + tests/README.md (manual verification) |
| Build process changes | Update frontend/README.md + pixie/assets/README.md |
| API changes | Update docs/package.md + relevant module docstrings |
Changelog per Feature
Every non-trivial feature or bug fix must have a changelog entry.
- Create or update a file under
changelogs/named after the feature, e.g.changelogs/span-processor-error-handling.md. - The file must include:
- What changed and why.
- Files affected (modules, tests, specs, READMEs).
- Migration notes if any API behavior changed.
- Commit the changelog file together with the implementation.
Documentation Checklist (Before Every Commit)
- ✅ All new/changed public functions and classes have accurate docstrings.
- ✅ All relevant
README.mdfiles are up to date (see scoping rules above). - ✅ Relevant
specs/docs are updated for architecture or behavior changes. - ✅ A
changelogs/<feature>.mdfile exists for each non-trivial change. - ✅
tests/README.mdis updated if test structure or manual verification steps changed.
Hard Completion Gate (Non-Negotiable)
For any non-trivial implementation, a task is not complete until all of the following exist and are updated in the same change set:
- Relevant
README.mdupdates (see README scoping rules — may be multiple files) - Relevant
specs/*.mdupdate (design/behavior/architecture) changelogs/<feature>.mdentry (what changed, files, migration notes)tests/README.mdupdate if test structure or manual verification changed
If any of these are missing, the agent must continue working and add them before declaring completion.
New Directory / Package Delivery Minimum
When introducing a new directory or subpackage, documentation must include:
- A
README.mdin the new directory explaining purpose, contents, and usage - Update to the parent or root README referencing the new directory
- A minimal runnable usage example (in the README or a test fixture)
- Testing / validation commands relevant to the module
- A dedicated changelog entry for that module delivery
Automatic Documentation Updates After Every Change
After each code change, immediately:
- Update docstrings in the same edit.
- Update all relevant
README.mdfiles (see README scoping rules). - Update relevant
specs/docs for design or behavior changes. - Create/update a changelog file for non-trivial changes.
- Update
tests/README.mdif test fixtures or verification steps changed.
Do not defer documentation work to the end of a task.
Error Handling Rules
This project has strict error-handling conventions due to operating inside OTel pipelines and background threads:
- Never raise from
LLMSpanProcessor.on_end()— entire body must be wrapped in try/except - Never raise from
_DeliveryQueue._worker()— each iteration must be wrapped - Never raise from
submit()— drop silently on full queue, increment counter - Handler method exceptions are silently swallowed — the handler must not crash the delivery thread
- Malformed JSON in span attributes — fall back to
{}orNone, never raise
Summary Checklist
Before every commit:
- ✅ Write/update tests in
tests/pixie/for your changes - ✅ Run
uv run pytest— all tests must pass - ✅ Run
uv run mypy pixie/— zero type errors allowed - ✅ Check Pylance Problems panel — zero Pylance errors allowed
- ✅ Run
uv run ruff check .— no linting errors - ✅ Update docstrings /
README.md/ relevantspecs/docs - ✅ Add/update
changelogs/<feature>.mdfor non-trivial changes - ✅ Verify functionality works as expected
- ✅ If touching
pixie test/ scorecard / evaluation harness / eval code, run the agent verification protocol (section 4a) — runpixie teston the manual fixture and inspect console output + scorecard HTML with Playwright - ✅ All relevant
README.mdfiles are updated (see Documentation section — README Scoping Rules)
Development cycle:
- Break down work into small tasks
- Before each task: run tests and type check
- Search codebase for existing similar code
- Write test first in
tests/pixie/(TDD) - Implement feature (reuse existing code when possible)
- After each task: run tests and type check
- Run linting (
uv run ruff check .) - Run agent verification protocol (section 4a) if CLI/eval/scorecard code changed
- Update docs and changelog for the task
- Fix any issues
- Commit
Following these practices ensures high code quality, type safety, maintainability, and reliability.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

