Agent skill

Warp Rust Unit Tests

by warpdotdev in warpdotdev/warp

Guides writing, improving and running crate-level Rust unit tests in the Warp codebase, and says when a unit test is the wrong level.

AGPL-3.0Auto-check passedTesting & QA

Install Warp Rust Unit Tests

skills CLI
$ npx skills add warpdotdev/warp --skill rust-unit-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install warpdotdev/warp rust-unit-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/warpdotdev/warp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rust-unit-tests .claude/skills/rust-unit-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rust-unit-tests
GitHub stars
65k
Used in
1 other repo
Token cost
~3.4k tokens
SKILL.md length
1,744 words
Files
1
Skills in repo
46
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Guides writing, improving and running crate-level Rust unit tests in the Warp codebase, and says when a unit test is the wrong level.

  • Works in 4 steps: The real implementation. The default for… → A fake the repo already provides. These… → A stubbed return value, only to push the… → …
  • Adding unit tests for a parser or data transformation in Warp
  • SKILL.md covers Scope, What to unit test, When a unit test is the wrong… and When NOT to write a unit test, plus 10 more sections
  • Calls cargo

What it does

The skill covers crate-level unit tests that exercise one function or behavior per case. It says to default to a unit test when the logic is deterministic and reachable without booting the app: parsing, encoding and escaping, data transformations, state machines such as block lifecycle and selection, boundary cases like empty input, off-by-one range ends and invalid UTF-8, error paths and fallbacks, and bug fixes, with the failing test written before the fix.

It is equally direct about limits. Warp is a terminal emulator with a GPU renderer, PTY and shell integration, and IPC, so behavior that needs a real PTY, shell or window, depends on the wiring between components, or would need a test-only trait to become testable belongs at a higher level. In those cases it points to `gui-integration-test` for end-to-end GUI behavior instead of forcing mocks. The skill also covers how to structure and run the tests.

When your agent uses it

  • Adding unit tests for a parser or data transformation in Warp
  • Writing a regression test before fixing a reproducible bug
  • Deciding whether a change needs a unit test or a higher-level test

Example prompts

  • “Add unit tests for the escape-sequence parser covering empty and invalid UTF-8 input.”
  • “Write the failing test for this selection bug first, then fix it.”
  • “Does the keybinding dispatch change need a unit test or an integration test?”

Requirements

  • A checkout of the Warp repository
  • A Rust toolchain with cargo

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. The real implementation. The default for value types and pure logic. Running real collaborator code is what makes a test meaningful, and a…
  2. A fake the repo already provides. These are maintained alongside the real thing, so they don't drift the way hand-rolled doubles do…
  3. A stubbed return value, only to push the unit into a state you cannot otherwise reach, such as a rare error branch. Each stub should map…
  4. Asserting that a call happened, as a last resort, and only for state-changing effects (a write, a send, a spawn) whose result you cannot…

What it can do on your machine

Read from SKILL.md and the folder at commit f571865. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Warp Rust Unit Tests loads about 3.4k tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 1,744 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~3.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from warpdotdev/warp at commit f571865, republished under its AGPL-3.0 licence (© warpdotdev). 1,744 words, ~3,425 tokens.

Download SKILL.mdSave it as .claude/skills/rust-unit-tests/SKILL.md (or your agent's skills folder).
name
rust-unit-tests
description
Write, improve, and run Rust unit tests in the warp Rust codebase.

Rust Unit Tests in warp

Scope

  • This skill focuses on crate-level unit tests.
  • Favor incremental, well-scoped tests that exercise a single function or behavior per case.
  • For how to structure and run tests, read on. For whether a change needs a test and at what level, start with "What to unit test".

What to unit test

Default to a unit test when the logic is deterministic and reachable without booting the app:

  • Parsing, encoding, escaping, and any pure data transformation.
  • Domain logic and state machines (block lifecycle, selection, ranges, diffing).
  • Boundary and edge cases: empty input, single element, off-by-one at range ends, min/max, invalid UTF-8, zero-width and wide grapheme clusters.
  • Error paths and fallbacks, not just the happy path.
  • Bug fixes, where the bug is reachable at this level. A reproducible bug usually means a case was missing from the suite, so add the failing test first and then fix it. Not every bug is unit-testable — a rendering artifact, a PTY timing race, or a crash that needs a real window will not reduce to one. Cover those at the level where they actually reproduce, and don't reshape the code just to force a unit test.

Prefer unit tests for anything that fits: they are fast, deterministic, and point straight at the failure.

When a unit test is the wrong level

Be honest about this codebase. Warp is a terminal emulator with a GPU renderer, PTY and shell integration, and IPC. The common "80% unit tests" heuristic assumes a business-logic-heavy system where units exchange messages and transform data. Large parts of this repo are not that, and forcing them under a unit test usually means mocking away the only thing that could actually break.

Escalate to a higher level when any of these hold:

  • The behavior needs a real PTY, shell, window, or display to exist at all.
  • What can break is the wiring between components — a setting taking effect, a keybinding dispatching, focus moving across panes — rather than logic inside any one of them.
  • Reproducing it requires real IO, spawned processes, or cross-process timing.
  • The only way to make it unit-testable is to add a trait and an indirection layer that exist solely for the test.
  • You find yourself stubbing so much that the test no longer exercises anything real.

Where to go instead:

  • gui-integration-test — GUI end-to-end behavior, terminal and shell integration, settings and keybinding wiring.
  • tui-testing — TUI element and screen rendering.
  • gui-integration-test-video or computer_use — when the real question is visual and someone needs to look at it.

Before escalating, try splitting the problem. Most "untestable" code is a thin shell of IO wrapped around logic that tests fine once separated: extract the decision-making into a pure function, unit test that, and let an integration test cover the thin shell that remains. That is usually cheaper than either a heavily stubbed unit test or a full app-boot test.

That said, weigh the indirection on its own merits. Code that is hard to test is sometimes genuinely badly designed — if extracting the logic would make the code clearer regardless of testing, do it. If the seam would exist only to satisfy a test, don't.

When NOT to write a unit test

Tests cost real maintenance, and a bad test costs more than no test. Skip or delete these:

  • Change-detector tests. A test that restates the implementation — inject two collaborators, assert they were called in order — fails on every refactor and catches no defects. It has negative value. Rewrite it as a state assertion or delete it.
  • Trivial code with no logic. Getters, From/Into passthroughs, Default impls, plain struct construction. There is nothing that can break independently.
  • Code you don't own. Don't test the standard library, tokio, or wgpu. Test your usage of them.
  • Redundant tests. If a case is already covered, a near-identical test adds maintenance cost and no signal. Prune tests as ruthlessly as production code.

Don't chase a coverage number. Coverage says a line executed, not that anything was verified, and a target reliably turns into a ceiling.

Where unit tests live

  • Put unit tests in separate files named ${filename}_tests.rs or mod_test.rs.
  • Include the test module at the end of the corresponding source file:
rust
#[cfg(test)]
#[path = "filename_tests.rs"] // or "mod_test.rs"
mod tests;

Writing good tests

Aim for a test you never touch again unless the behavior changes. Refactors, new features, and bug fixes should not require editing existing tests; only a deliberate behavior change should. If a refactor breaks your tests, that is usually a defect in the tests.

Test behavior through the public API

Exercise the unit the way its callers do. Reaching into private state makes the test fail on refactors no caller would notice. If a helper type exists only to serve one or two callers, test it through them rather than directly.

Assert on state, not on interactions

Assert what the system is after the action, not which functions it called to get there.

rust
// Brittle: still passes if the entry is dropped right after insertion, and
// fails on an equivalent refactor that calls a different internal method.
assert!(recorder.saw_call_to_insert(id));

// Better: asserts the outcome the caller actually cares about.
store.insert(id, entry.clone());
assert_eq!(store.get(id), Some(&entry));
One behavior per test, named after that behavior

The test name is often the only thing visible in a failure report, so make it a sentence about behavior rather than about the method:

rust
#[test]
fn parses_utf8_sequence_when_valid() { /* ... */ }

#[test]
fn returns_replacement_char_for_invalid_utf8() { /* ... */ }

If the name needs an "and", you are testing two behaviors — split it. Structure the body as arrange / act / assert, separated by blank lines.

Keep the test complete and concise

Everything a reader needs to understand the result belongs in the test body; everything irrelevant belongs out of it. Prefer a builder or helper constructor that takes only the fields the test cares about over one large shared fixture. If a test asserts on a specific value, set that value in the test rather than inheriting it from shared setup.

Prefer duplication over indirection

Test code has no tests of its own, so it has to be obviously correct on inspection. Some repetition is a fair price for a test that reads top to bottom. Extract a helper when it removes noise, not merely to remove repetition.

No logic in tests

No conditionals, loops, arithmetic, or string concatenation to compute an expected value. Write expected values literally — computing them re-implements the code under test and can reproduce the same bug in the assertion.

Make failures diagnosable
  • Prefer assert_eq!/assert_ne! over assert! for readable diffs.
  • Add a message when the values alone aren't self-explanatory: assert_eq!(got, want, "cursor should clamp to line end for {input:?}").
  • Use #[should_panic] only when panicking is intended API, and pin the message with expected = "...".
Show full SKILL.md (683 more words)Show less
Repo-specific
  • Minimize global state; inject dependencies via traits/constructors so logic is testable without heavy mocking.
  • When adding an enum variant or expanding behavior, prefer exhaustive matches in the code under test and mirror the new cases in tests.
  • Be mindful of terminal model locking: avoid patterns that acquire multiple model.lock() calls in the same call stack from tests, and prefer passing an already-locked reference down.

Test doubles: prefer real code, then fakes

Work down this list and stop at the first option that is fast and deterministic:

  1. The real implementation. The default for value types and pure logic. Running real collaborator code is what makes a test meaningful, and a failure caused by a real dependency's bug is a true positive worth having.
  2. A fake the repo already provides. These are maintained alongside the real thing, so they don't drift the way hand-rolled doubles do: warpui::App::test, VirtualFS, TerminalModel::mock(..), TestBlockListBuilder/TestBlockBuilder, Appearance::mock(), and FeatureFlag::X.override_enabled(..). See "Common helpers to use" below for usage.
  3. A stubbed return value, only to push the unit into a state you cannot otherwise reach, such as a rare error branch. Each stub should map to an assertion in the same test. Needing many stubs is a signal the unit does too much.
  4. Asserting that a call happened, as a last resort, and only for state-changing effects (a write, a send, a spawn) whose result you cannot observe any other way. Never assert on calls to pure getters — the return value is already covered by whatever you assert next.

Keeping tests deterministic

A flaky test is worse than no test: once people learn to re-run a red test, they stop trusting every other test too. Fix the cause instead of adding retries.

  • Time — never read the system clock from logic under test. Inject a clock or timestamp so the test can pin it.
  • Async — never sleep to wait for something. Await the future, use a callback, or poll for the state transition with a generous timeout.
  • Ordering — tests must pass in any order and in parallel. Watch for statics, singletons, OnceCell, and environment variables.
  • Shared state — when a test must touch global or external state, use serial_test's #[serial] or scope the state locally.

If you can't make a test deterministic quickly, quarantine it (#[ignore] with a linked issue) rather than leaving an intermittently red test in the suite — and treat that as debt to pay down, not a place to leave it.

Async and feature-gated code

  • For async logic, use #[tokio::test] when the code requires a runtime.
  • Prefer runtime feature checks (e.g., FeatureFlag::X.is_enabled()) over #[cfg(...)] so tests don’t require recompilation to toggle behavior.

Quickstart harness (UI/model tests)

  • Prefer warpui::App::test for deterministic unit tests around views/models.
  • Initialize app models once, then mutate via update and assert via read.
rust
use warpui::App;
// In app crate tests prefer `crate::test_util::...`; from other crates use `warp::test_util::...`.
use warp::test_util::{terminal::initialize_app_for_terminal_view, add_window_with_terminal};

#[test]
fn example() {
    App::test((), |mut app| async move {
        // One-time app setup for terminal/view tests
        initialize_app_for_terminal_view(&mut app); // includes settings init
        let term = add_window_with_terminal(&mut app, None);

        // Act
        term.update(&mut app, |view, _ctx| {
            view.model.lock().simulate_block("ls", "out");
        });

        // Assert
        term.read(&app, |view, _ctx| {
            assert!(view.model.lock().block_list().len() > 0);
        });
    })
}

TUI element tests

Tests for the headless TUI render an element tree to text lines rather than drawing pixels. Use warpui_core::elements::tui::test_support::render_to_lines and TuiBuffer::to_lines, and keep them in *_tests.rs files next to the source in crates/warp_tui and crates/warpui_core/src/elements/tui. They are plain unit tests and do NOT use the GUI integration / real-display / computer_use framework. See the tui-testing skill for details. The warpui::App::test harness above still applies to shared model logic that both front-ends use.

Common helpers to use

  • Terminal model shortcuts: TerminalModel::mock(..), .simulate_block(..), .finish_block(), .simulate_cmd(..).
  • Builders for focused tests: terminal::model::test_utils::{TestBlockListBuilder, TestBlockBuilder}.
  • Virtual filesystem for IO-heavy code:
rust
use virtual_fs::{VirtualFS, Stub};
VirtualFS::test("case", |_dirs, mut fs| {
    fs.with_files(vec![Stub::FileWithContent("path/file.txt", "contents")]);
    // run logic and assert
});
  • Feature flags (scoped):
rust
use warp::features::FeatureFlag; // or `use crate::features::FeatureFlag;` inside the app crate
let _flag = FeatureFlag::CreatingSharedSessions.override_enabled(true);
  • UI numeric assertions (lines):
rust
assert_lines_approx_eq!(actual_lines, INLINE_BANNER_HEIGHT);
  • Concurrency: keep model.lock() scopes minimal; avoid nested/re-entrant locks in the same call chain.
  • Don’t call initialize_settings_for_tests directly when using initialize_app_for_terminal_view (it already calls it).
  • Async needs: use #[tokio::test] when a real runtime is required; otherwise prefer App::test.
  • Tests touching global/external state: consider serial_test's #[serial] or local mocking instead of parallelism.

Running unit tests

  • Workspace (parallel):
bash
cargo nextest run --no-fail-fast --workspace
  • Single crate:
bash
cargo nextest run -p <crate_name>
  • Single test (filter by name):
bash
cargo nextest run -E 'test(<substring>)'
  • Doc tests:
bash
cargo test --doc

Final validation order

After the relevant tests pass, run Clippy, fix its findings, and then format once:

bash
cargo clippy -p <package_name> --all-targets --tests -- -D warnings
./script/format

Do not rerun tests or Clippy after formatting, and do not add a full ./script/presubmit run, unless the user, task, or approved spec explicitly requires it. Follow the repository's Implementation Validation Order in AGENTS.md for invalidation and follow-up changes.

© warpdotdev, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/rust-unit-tests of warpdotdev/warp.

Open the folder on GitHubat commit f571865

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in warpdotdev/warp, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Warp Rust Unit Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Warp Rust Unit Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Warp Rust Unit Tests this skillwarpdotdev/warp65k1 repos~3.4kAutomated safety check: PassAGPL-3.0
Testing OpenLogi UIAprilNEA/OpenLogi23k—~1.1kAutomated safety check: PassApache-2.0
Rust Testingkurealnum/dotfiles2906 repos~2.9kAutomated safety check: PassNone
Rust TDD Workflowrtk-ai/rtk83k—~753Automated safety check: NotesApache-2.0
RTK Filter TDD in Rustrtk-ai/rtk83k—~1.9kAutomated safety check: NotesApache-2.0
OpenLogi Change VerificationAprilNEA/OpenLogi23k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Testing OpenLogi UI

    AprilNEA/OpenLogi

    Verifies OpenLogi's native GPUI interface with focused tests, the component gallery and a mock agent, choosing the evidence that fits each change.

    23k GitHub stars~1.1k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Rust Testing

    kurealnum/dotfiles

    Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage.

    290 GitHub starsUsed in 6 repos~2.9k tokens
    Testing & QAAuto-check passed
  • Enforces red-green-refactor for Rust work, with idiomatic test patterns, a naming convention and a pre-commit gate of cargo fmt, clippy and test.

    83k GitHub stars~753 tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Enforces red-green-refactor for new RTK output filters in Rust, using real captured fixtures, snapshot tests with insta and token-savings assertions.

    83k GitHub stars~1.9k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Plans the smallest check that could disprove a code change in the OpenLogi project, then escalates through reproduction, focused tests and a final gate before a push.

    23k GitHub stars~1.4k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • A skill your agent uses when the user asks to create, draft, prepare, or publish a GitHub issue for the rocketmq-rust project — bugs, features, enhancements, refactors, docs, unit tests, CI…

    1.5k GitHub stars~1.6k tokensUpdated today
    Testing & QAAuto-check passed

More from warpdotdev/warp

All 46 skills in this repo
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Auto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Auto-check passed
  • Warp Factory Files

    warpdotdev/warp

    Authors and edits file-based Warp software factory definitions rooted at factory.yaml, covering agents, automations, scorers and webhooks, and validates them before a pull request.

    65k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Figma Design to Code

    warpdotdev/warp

    Turns a Figma frame or component into production code that matches the design, using the Figma MCP server and the project's own design system.

    65k GitHub starsUsed in 4 repos~2.9k tokens
    Auto-check passed
  • Migrates the compatible subset of settings and global file-based MCP servers from the Warp desktop app into Warp Agent CLI without exposing credentials or state.

    65k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Creates project-specific design system rules from your codebase so coding agents implement Figma designs with your components, naming and tokens.

    65k GitHub starsUsed in 3 repos~4.6k tokens
    Auto-check passed

Works with

Categories

Questions about Warp Rust Unit Tests

What does Warp Rust Unit Tests do?

Guides writing, improving and running crate-level Rust unit tests in the Warp codebase, and says when a unit test is the wrong level. The skill covers crate-level unit tests that exercise one function or behavior per case. It says to default to a unit test when the logic is deterministic and reachable without booting the app: parsing, encoding and escaping, data transformations, state machines such as block lifecycle and selection, boundary cases like empty input, off-by-one range ends and invalid UTF-8, error paths and fallbacks, and bug fixes, with the failing test written before the fix.

When should I use Warp Rust Unit Tests?

Warp Rust Unit Tests fits situations like: adding unit tests for a parser or data transformation in Warp; writing a regression test before fixing a reproducible bug; deciding whether a change needs a unit test or a higher-level test.

How do I install Warp Rust Unit Tests in Claude Code?

Run `npx skills add warpdotdev/warp --skill rust-unit-tests -a claude-code`. Or copy the skill folder (.agents/skills/rust-unit-tests in warpdotdev/warp) into .claude/skills/rust-unit-tests in your project. Claude Code loads it when a task matches its description.

How do I install Warp Rust Unit Tests in Codex?

Run `npx skills add warpdotdev/warp --skill rust-unit-tests -a codex`. Or copy the skill folder (.agents/skills/rust-unit-tests in warpdotdev/warp) into .agents/skills/rust-unit-tests in your project. Codex loads it when a task matches its description.

Can I use Warp Rust Unit Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add warpdotdev/warp --skill rust-unit-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust-unit-tests, .gemini/skills/rust-unit-tests, .github/skills/rust-unit-tests and .opencode/skills/rust-unit-tests in your project.

What does Warp Rust Unit Tests need to run?

Going by SKILL.md and its folder, Warp Rust Unit Tests needs the command-line tools its instructions call (cargo). Our summary lists: A checkout of the Warp repository; A Rust toolchain with cargo.

Does Warp Rust Unit Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Warp Rust Unit Tests safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Warp Rust Unit Tests use?

Warp Rust Unit Tests is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Warp Rust Unit Tests use?

About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Warp Rust Unit Tests?

Skills that share tags, products or a category with Warp Rust Unit Tests: Testing OpenLogi UI (AprilNEA/OpenLogi, 23k stars), Rust Testing (kurealnum/dotfiles, 290 stars), Rust TDD Workflow (rtk-ai/rtk, 83k stars) and RTK Filter TDD in Rust (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Warp Rust Unit Tests?

warpdotdev (a GitHub organization) maintains it in warpdotdev/warp, which has 65,380 GitHub stars. The repository holds 46 skills in this directory. The repository was last updated on October 7, 2026.

Source: warpdotdev/warp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.