Preflight Review

v0.3.0
io.github.mqfarooqi1/preflight-review Checked 2 days ago Published 3 days ago

Launch-readiness reviews for AI workflows: blocker-first checks, evidence, sign-off, client brief

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_templates

Compare launch review templates before calling start_review. Takes no inputs and returns each template name with its built-in check IDs, severities, and questions.

start_review

Start a launch review for a workflow with no prior review. Supply the workflow scope and template. Returns an open review with a blocker-first checklist. Call get_next_question to start the interview. Use revise_workflow for a follow-up linked to an earlier review. Saves the review in local SQLite. Use the returned review.id as review_id in later calls.

ParameterTypeDescription
actions *stringWhat the workflow can do and what effects it can cause, such as drafting a reply, sending it to a customer, or issuing a refund.
approval *stringWhich actions require approval and who or what authorizes them, such as a support lead approving each outbound reply.
data *stringWhat the workflow reads and which systems it reads from, such as ticket text and the current policy from a knowledge base.
recovery *stringHow to stop the workflow and undo or contain its effects after a failure.
template *stringChoose customer_support for ticket and reply flows, document_search for retrieval, or internal_operations for back-office automation. Use list_templates to inspect each checklist before choosing.
title *stringA single-line workflow name, up to 200 characters, such as 'Support reply drafts'.
trigger *stringThe event, schedule, or user action that starts the workflow, such as a new support ticket.

list_reviews

Find a saved review ID in local SQLite. Returns newest-first summaries with the title, state, recommendation, and decision. Set include_closed to find reviews closed without a decision. Use get_review for the full record or get_next_question to resume an open review.

ParameterTypeDescription
include_closedbooleanSet true to include reviews closed without a decision. Defaults to false. Decided reviews are included either way.

get_next_question

Get one question to ask the user in an open launch review, with blockers first. Call after start_review or revise_workflow, when resuming, or after recording a control or test result. For control or remediation, follow up with record_control. For test or retest, follow up with record_test_result once the user reports evidence. This read-only call returns no question when done=true (all checks passed) or blocked_by_deferral=true (deferred_check_ids skipped every remaining open check). Use get_review for a decided or closed review.

ParameterTypeDescription
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.
deferred_check_idsOpen check IDs from this review to skip for this call only, for example while waiting for evidence. The skipped checks stay open.

add_review_check

Add a new custom risk check to an open launch review when its template misses a workflow-specific failure. Supply a severity, a reviewer question, and a test scenario with the expected result. Find the generated check ID in the updated checklist. Use record_control to assign a safeguard to an existing check. Saves the update in local SQLite and returns the review status.

ParameterTypeDescription
question *stringThe question to ask the reviewer about the specific risk, such as 'Who prevents a reply from sending after its ticket is reassigned?'.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.
scenario *stringA test setup and observable expected result, such as 'Reassign a ticket while approval is pending and verify the reply stays unsent.'.
severity *stringChoose blocker if this check must pass before recommending readiness. An open major check yields 'ready with conditions' once all blockers pass.

record_control

Record a user-confirmed owner and safeguard for an existing check in an open review. This replaces the current owner and control, increments control_version, and clears the current result while keeping the test history. After a failure, record a changed control before asking for retest evidence. Saves the update in local SQLite and returns the review status.

ParameterTypeDescription
check_id *stringA check ID from check.id in get_next_question or review.checks[].id in get_review, such as 'rollback'.
control *stringThe user-confirmed safeguard that prevents, detects, or contains this risk. After a failed test, describe the changed safeguard.
owner *stringThe user-confirmed name of the person responsible for this control, on one line and up to 200 characters.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.

record_test_result

Record a user-reported test result and evidence for a check in an open review. The check needs a recorded owner and control. After failure, call record_control with the remediation before recording a retest. Pass the tested control_version as expected_control_version to guard against stale evidence. This appends a test attempt, updates the current outcome, and recalculates the recommendation. Saves the update in local SQLite and returns the review status.

ParameterTypeDescription
check_id *stringA check ID from check.id in get_next_question or review.checks[].id in get_review, such as 'rollback'.
evidence *stringThe observed behavior and any supporting ticket, log, or run ID reported by the user. For example, 'Run 42 confirmed an unapproved reply stayed unsent'.
outcome *stringUse the reported test outcome. Use passed when the expected result was observed, failed when it was unmet, or inconclusive when the test was insufficient to tell.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.
expected_control_versionOptional stale-evidence guard. Copy check.control_version from get_next_question when asking for the test, and pass that same integer with the result. A mismatch rejects the write.

withdraw_test_result

Correct a test result recorded in error, for example evidence from the wrong build. Requires a current result in an open review. Clears that result, reopens the check, and marks the attempt withdrawn in the history with the reason. Use record_test_result to record newly reported test evidence. Saves the update in local SQLite and returns the review status.

ParameterTypeDescription
check_id *stringA check ID from check.id in get_next_question or review.checks[].id in get_review, such as 'rollback'.
reason *stringWhy the existing result should stop counting, such as 'Run 42 used an older build'. This reason is retained in the test history.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.

record_decision

Record an explicit launch decision from a named human reviewer. This freezes the open review as decided and snapshots the checks that were still open. approve requires all checks to have passed. Record 'approve with conditions' with the reviewer's conditions, or hold with their reason, when they state either decision. Use close_review when the review is ending without a decision. Saves the update in local SQLite and returns the review status.

ParameterTypeDescription
decision *stringThe named reviewer's stated decision. approve requires all checks to have passed. For 'approve with conditions', include the conditions in reason. Use hold when the reviewer has decided to hold the la…
reason *stringThe reviewer's rationale. For 'approve with conditions', record the specific conditions the reviewer gave.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.
reviewer *stringThe name of the human who stated the decision, on one line and up to 200 characters.

close_review

End an open review without a launch decision when the work is abandoned or superseded. Record the person and reason for closure. The review becomes closed and frozen. Use record_decision when a named reviewer states an approval or hold. Saves the update in local SQLite and returns the review status. Find closed reviews using list_reviews with include_closed=true.

ParameterTypeDescription
reason *stringWhy the review is ending without a launch decision, such as 'The workflow was abandoned'.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.
reviewer *stringThe name of the person closing the review, on one line and up to 200 characters.

revise_workflow

Create a new review linked to an earlier review when the workflow scope changes. Supply all five workflow fields, including unchanged values. The new review has a new ID, records what changed, and needs fresh evidence on every check. The earlier review is preserved. To revisit an unchanged workflow, the earlier review must be decided or closed and revision_reason is required. Use start_review for a workflow with no prior review. Saves the new review in local SQLite. Use its review.id as review_id in later calls.

ParameterTypeDescription
actions *stringWhat the workflow can do and what effects it can cause, such as drafting a reply, sending it to a customer, or issuing a refund.
approval *stringWhich actions require approval and who or what authorizes them, such as a support lead approving each outbound reply.
data *stringWhat the workflow reads and which systems it reads from, such as ticket text and the current policy from a knowledge base.
recovery *stringHow to stop the workflow and undo or contain its effects after a failure.
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.
trigger *stringThe event, schedule, or user action that starts the workflow, such as a new support ticket.
omit_custom_check_idsIDs of checks with custom=true in the earlier review to omit from the new review. Requires revision_reason. Leave unset to keep all custom checks.
revision_reasonWhy a fresh review is needed. Required when omitting custom checks or when revisiting an unchanged workflow after a decision or closure.

get_review

Read the complete launch review as structured data for status or audit. Returns the workflow, state, recommendation, progress, open blockers and findings, checks with owners, controls and test history, and any recorded decision or closure. Use get_next_question to continue the interview or export_brief for a Markdown handoff.

ParameterTypeDescription
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.

export_brief

Render a human-readable Markdown brief for a launch meeting, client handoff, or review archive. Includes workflow scope, recommendation, checks, owners, evidence and test history, and any recorded decision, closure, or revision. Rendering is read-only. The caller handles delivery. Use get_review for structured data.

ParameterTypeDescription
review_id *stringThe saved review ID, from review.id in start_review or revise_workflow, or from reviews[].id in list_reviews.