Repository navigation
Description
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-skillgenerates a project-localverify-<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-skillis its upkeep pass. It sends one read-only source reader per feature, then makes one live pass that drives every feature. The pass endsclean,changed(at most one PR of proven doc or harness fixes) orblocked. It never edits product code, and product regressions are reported, not papered over.create-formal-verification-skillpicks 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-skillbrings 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
- 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.
- 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.
- 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?
- 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?
- 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?
- Evals. Grow the parked tasks into a
verificationsuite with criteria written for this skill, and measure it with an Experiment like code review. - Licence and attribution. Adapting from cursor/plugins means checking its licence and crediting it, as
skills/does for upstream skills.
Activity