Repository navigation
features tours and handoff
Active contributors: Vassiliy Kuzenkov.
These workflows start from an already saved result. Generated explanations, private reader progress and exported fix packages remain separate from the review's evidence, recommendation and finding lifecycle.
sych tour --run RUN --config sych.yaml reopens the saved result and recaptures its pinned source from --repo; the snapshot must match. crates/sych-core/src/tour.rs deterministically plans stops from material findings by severity/file, then located required UNKNOWNs. tour.target_steps is clamped to 3–6 as the stop limit, not a promise that a sparse result contains three stops.
The overview always retains coverage, every high/critical finding and every required UNKNOWN even when stops cannot show all of them. Improvements/nits are separate from the route.
The model writes prose under budgets.tour using the reviewer role. Structure, IDs, overview and source references are validated against the result and snapshot; invalid tour structure gets at most one regeneration. Gateway schema repair is separately accounted. A successful tour is an immutable artifact; regeneration gets a new tour ID.
sych tour show --run RUN --repo . --format markdown
sych tour reveal --run RUN --step stop-1
sych tour complete --run RUN
# alternatively: sych tour dismiss --run RUNThese reader commands make no model calls. They select the newest stored tour unless --tour names one, and store private progress for the reader. Answers stay hidden until revealed. Completing is not approval; dismissing does not remove the review.
Code is rendered from pinned Git blobs, never model-authored code presented as source. A newer head/result makes the tour stale without changing what it shows. Missing/pruned source is reported per location instead of silently removing the stop. Illustrative generated snippets are explicitly examples.
sych ask --run RUN --step stop-1 --config sych.yaml \
--question "What happens on a retry?"
sych ask --run RUN --step stop-1 --kind fact-request \
--question "The consumer deduplicates by order id"| Kind | Behavior | Authority |
|---|---|---|
comprehension |
Model explanation over this stop, overview and bounded typed context; one context-query round | Reviewer role answers; verifier role checks newly proposed defect hypotheses |
fact-request |
Records the caller's own statement with identity/time; no model | Human statement, not evidence |
risk-decision |
Scoped waiver, not a rewrite of UNKNOWN/VIOLATED | Refused by local CLI; server requires maintainer permission and waiver terms |
Follow-up uses budgets.followup_session, scoped by tour and reader, separately from analysis and tour generation; tenant spend pools remain shared. Exhausting the initial answer budget gives no answer and records no exchange. An optional later context/verification failure is a limitation rather than fabricated confirmation.
New defect claims stay session hypotheses marked confirmed/rejected/unresolved by verification. They do not become saved-review findings or PR comments; rerun the review to assess code again.
Server questions use POST /v1/runs/:id/tours/:tour/questions. The caller needs reader access to the run; waiver acceptance adds the maintainer check. Questions/replies are private to that actor's session and are not published to the PR. The local actor is local. Server and Dashboard cover access and UI integration.
sych handoff --run RUN --finding FINDING_ID \
--format markdown --output fix-handoff.mdcrates/sych-core/src/handoff.rs builds handoff@1 from the typed saved result alone. The same result and selected IDs produce the same package, in result order with duplicate selection removed. Foreign findings and an optional --snapshot mismatch are rejected.
The package contains result/revision/source/policy identities, findings with anchors/evidence/requirements, consequences, suggested actions and fix criteria. It also preserves partial coverage, required UNKNOWNs, unreviewed paths and open questions a fix does not settle.
Its procedure is explicit: propose a plan/files, wait for consent, change and verify, then push a new head for a new review. Repository/review quotations are data, not instructions.
Handoff starts no agent, calls no model, edits no source, updates no saved review row and publishes nothing. The author's separate agent uses its own credentials and budget, not Sych's reviewer account. The server equivalent is POST /v1/runs/:id/handoff.
| Source | Change entry point |
|---|---|
crates/sych-core/src/tour.rs |
Planner, artifact validation and session state |
crates/sych-core/src/analysis/tour_prompt.rs |
Generated tour output contract |
crates/sych-app/src/tour.rs |
Generation and storage |
crates/sych-app/src/tour_reader.rs |
Model-free reading and source availability |
crates/sych-app/src/followup.rs |
Session-budgeted explanation/context/verification |
crates/sych-app/src/server/questions.rs |
Private server exchanges and waiver checks |
crates/sych-core/src/handoff.rs |
Deterministic fix package |
crates/sych-storage/src/tour_sessions.rs |
Reader progress persistence |
14 source files, 7 test files; ratio 0.500; 1 unique human author. Method: capability measurements. Scope: core tour.rs, handoff.rs, analysis/tour_prompt.rs, analysis/followup.rs; app tour.rs, tour_reader.rs, followup.rs and followup/, handoff.rs, args/tour.rs, server tours.rs, questions.rs, handoff.rs; storage tour_sessions.rs, sessions.rs; core tests tour.rs, handoff.rs; app tests tour_reader.rs, tour_questions.rs, handoff.rs; storage test followup.rs.
Change artifact contracts with structural validation tests, reader behavior with stale/pruned/private-session cases, and questions with role/budget tests. Keep handoff deterministic and side-effect-free. Models explains attempt accounting; CLI documents dispatch and exits.