Skip to content

docs(policy): Add REVIEW.md and issue skills - #155

Merged
tony merged 3 commits into
masterfrom
docs/154-review-policy-and-issue-skills
Dec 5, 2026
Merged

tony merged 3 commits into
masterfrom
docs/154-review-policy-and-issue-skills

Conversation

@tony

@tony tony commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add repo-root REVIEW.md defining review order, 7-layer ownership, and rejected anti-patterns.
  • Require sibling-API audits during planning before adding parameters, slots, or compatibility shims.
  • Require checking public VT standards and three independent permissive lineages for nontrivial terminal semantics.
  • Update AGENTS.md and .github/CONTRIBUTING.md to reference REVIEW.md and enforce ADR-0001 copyleft quarantine.
  • Add portable libvt-study-issue and libvt-fix-issue skills under .agents/skills/ and .claude/skills.

Without explicit layer-ownership criteria and on-demand triage procedures, consumer bug reports can pull test-serializer heuristics into core VT types, leak Syrupy .ambr parsing into tool-agnostic libvt.testing, or stack shims onto pre-1.0 (0.0.x) APIs instead of fixing the owning surface.

Fixes #154

Changes by area

Review and contributor policy

  • REVIEW.md: define the four-stage review order (Layer & API fit -> Terminal spec & reference parity -> Correctness & types -> Test bite), pre-1.0 sibling-API audit rules, terminal standards and permissive reference corpus, 7-layer module ownership table, rejected bolted-on hacks, and boundary test invariants.
  • AGENTS.md: register REVIEW.md under Which policy applies, note .agents/skills/ (libvt-study-issue, libvt-fix-issue), add pre-code sibling-API audit and layer-placement rules under Change discipline, and quarantine GPL, LGPL, AGPL, and MPL sources. Verify repository, file, nested and vendored terms before reading source or fixtures.
  • .github/CONTRIBUTING.md: link REVIEW.md from Pull requests.

Portable issue skills

  • .agents/skills/libvt-study-issue/SKILL.md: add read-only issue triage across REVIEW.md, sibling public APIs, ECMA-48 / DEC / Unicode specs, and permissive terminal checkouts under ${STUDY_DIR:-$HOME/study}.
  • .agents/skills/libvt-study-issue/references/layer-boundaries-and-sources.md: map ADR-0001 copyleft quarantine rules, permissive upstream files under ${STUDY_DIR:-$HOME/study}, and the 7-layer ownership hierarchy.
  • .agents/skills/libvt-fix-issue/SKILL.md: reproduce failures before editing, fix the owning layer, and inspect the complete change including untracked files and symlinks.
  • .claude/skills: symlink to ../.agents/skills for Claude Code skill discovery without duplicating skill definitions.

Design decisions

  • Place architectural review rules, emulator cross-checks, and anti-hack criteria in REVIEW.md rather than expanding AGENTS.md inline: AGENTS.md loads on every turn and stays concise by delegating each domain to a single policy home (WRITING.md, CONTRIBUTING.md, REVIEW.md) plus on-demand skills.
  • Parameterize local reference checkouts via ${STUDY_DIR:-$HOME/study} rather than personal paths: contributors can point STUDY_DIR at any local mirror while keeping the repository free of workstation-specific paths.

Test plan

  • uv run ruff format --check . and uv run ruff check . pass
  • uv run ty check passes on Linux. The earlier PR review used --python-platform win32 for Windows types.
  • uv run pytest -m "" -n auto passes including README, module, and Sphinx doctests
  • just -f docs/justfile sphinxopts="-W --keep-going" html builds with zero warnings
  • uv build produces clean wheel and sdist artifacts excluding .agents/ and .claude/
  • Linux, macOS, Windows, and PyPy matrix in GitHub Actions CI

tony added a commit that referenced this pull request Dec 3, 2026
why: Record the branch's user-visible change in the unreleased notes.

what:
- Add the #155 entry to the Development section of CHANGES
tony added 3 commits December 3, 2026 17:20
why: Issue studies and fixes need the same API ownership, provenance,
     and regression checks as code review.

what:
- Define layer ownership and the order of review gates.
- Add skills to reproduce and repair defects at the owning layer.
- Expose the same skills to Claude through a symlink.
why: Contributors need discoverable skills with the same source and
     review rules as the repository.

what:
- Share specification and source checks across both issue skills
- Include untracked paths in the fix review and use the supported ty
  invocation
- Use portable skill metadata and document checkout isolation
why: Contributors need the same ownership and regression criteria when
     studying and fixing an issue.

what:
- Name the review guide and the two checkout-local issue skills.
@tony
tony force-pushed the docs/154-review-policy-and-issue-skills branch from ad56c9e to e0f1503 Compare December 3, 2026 23:58
@tony
tony force-pushed the docs/154-review-policy-and-issue-skills branch from e0f1503 to 38fdaba Compare December 5, 2026 11:56
@tony
tony merged commit 2a831b2 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the docs/154-review-policy-and-issue-skills branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — 38fdabaf Deployed Dec 5, 2026 by tony via build (3.14) #371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add REVIEW.md layer-boundary policy and spec-first issue skills

1 participant