Skip to content

Spec: a verification skill beside code review #1371

Open

Description

@JacobStephens2

Idea capture from the #1267 and #1370 follow-up. It needs a grilling session before Tickets.

Problem

The Factory thirdshift-code-review skill reviews two axes, Standards and Spec, and stays close to the upstream skill on purpose. A repository that wants correctness, robustness or performance rules enforced can write them in its CODING_STANDARDS.md, where the Standards axis enforces them.

Some bugs no reading review catches, though, because the code does what its Spec says, or no rule covers the failure. The #1267 A/A Experiment showed this. Six code-review Eval tasks (bug-24, bug-57, bug-102, bug-1153, bug-947 and bug-1105) failed every Trial in both Arms by design:

  • a signal the Spec didn't name;
  • a loop shape the Spec prescribed;
  • a once-a-second re-render;
  • weak input validation;
  • an unspecified row order.

They're parked on the host as seed tasks for this skill's suite (#1370).

Idea

Add a separate verification skill, beside code review rather than inside it. Base it on Lauren Tan's (poteto's) pstack skills:

  • create-verification-skill generates a project-local verify-<app> skill that drives the real app the way a user does, with Launch, Doctor, Drive, Evidence and Cleanup sections. It also builds a feature map: one file per user-facing feature, with how to reach it and what end state proves it works. It proves the generated skill end to end before handing it over, so that "a skill that was never executed is a draft".
  • maintain-verification-skill is its upkeep pass. It sends one read-only source reader per feature, then makes one live pass that drives every feature. The pass ends clean, changed (at most one PR of proven doc or harness fixes) or blocked. It never edits product code, and product regressions are reported, not papered over.
  • create-formal-verification-skill picks the repo's riskiest promise: concurrency, retries, state machines, parsers. It verifies one property of it with the cheapest fitting tool, with TLA+ as the default for ordering questions. Each check must be shown to fail on a broken variant, and must record the code it covers and a sync commit.
  • maintain-formal-verification-skill brings checks back in line after code changes. It classifies each change to covered code, updates the check from the code rather than from the result, and judges every result as drift in the check or a bug in the code.

Two things carry over well. First, these skills produce evidence (a driven journey, a counterexample) instead of a reviewer's opinion. Second, the generated verification lives in the target repository, so its owner can read, run and keep it.

Questions for grilling

  1. Where it runs. Possibilities:
    • a third stage of the Ticket run after code review, perhaps opt-in per repository;
    • Day shift setup only (create-*) plus a scheduled upkeep Run (maintain-*), like the Architect and Security runs;
    • both.
  2. Which half first. Behavioural (drive the app) or formal (prove a property)? Behavioural reaches more of the parked tasks, such as the re-render loop, the signal and the row order. Formal fits retry and repair loops and races.
  3. Outputs and Claims. Should a verification failure in a Ticket run start a Repair, fail the Run, or become a finding? Should upkeep PRs go through a Ticket run, or be self-merged like documentation?
  4. Sandbox. Driving a real app needs ports, browsers, PTYs and sometimes network. What can a Factory session do there, and how does Evidence survive Cleanup inside the sandbox?
  5. Vocabulary. Do Verification skill, Feature map, Doctor, Evidence and Sync commit become GLOSSARY.md terms, keeping poteto's words where they are already industry-standard?
  6. Evals. Grow the parked tasks into a verification suite with criteria written for this skill, and measure it with an Experiment like code review.
  7. Licence and attribution. Adapting from cursor/plugins means checking its licence and crediting it, as skills/ does for upstream skills.

Activity

  1. added
    needs-triage
    on Oct 26, 2026
  2. added
    ready-for-human
    enhancement
    and removed
    needs-triage
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions