These flows describe the target v0.1 behavior, not a list of active endpoints. Use the capability ledger for delivered and remaining work. The review and revision portions are the planned v0.1 contract and remain unavailable until their owning REV chunks, exact AUTH activation, and REV-13 joint release complete. Earlier project/task/submission/checker behavior keeps its separately recorded implementation status.
The detailed review flow below describes human_review_required=true, the
default in the existing versioned ReviewPolicy setting. False is a separately
planned post-check TASK handoff to authorized FinalAcceptance and CON, without
human queues, leases, Reviews or reviewer contributions. Required checks and
exact immutable evidence still apply. The shared acceptance contract
defines both triggers. Runtime remains unavailable until the same participant
input/schema requires verified authority/evidence and gains routing/currentness and exact
shared release proof. REV-04C supplies only the hidden mechanical
FinalAcceptance/TASK/CON participant.
The first user flows prove that Workstream can run real work from intake to acceptance. These flows come before any advanced routing or settlement.
POL-04B delivers the automatic compilation and immutable draft/findings stop below. POL-05A delivers hidden manager proposal review, correction and pre-submit approval. AUTH-12F4 and POL-05B deliver public manager authority and manual dispatch. POL-06A owns post-policy projection/read/approval/correction; AUTH-12G supplies authority and POL-06B exposes public manager decisions plus automatic deterministic derivation after pre-submit approval. The complete activation flow below describes the target lifecycle.
- A system-scoped Project Manager creates the project.
- Project owner provides open-ended guide material and business terms.
- An authorized covered Project Manager adds guide metadata with at least one
ordinary-text task example in PostgreSQL and uploads the assigned
PDF/DOCX/PPTX or UTF-8 Markdown (
.md) guide originals to ArtifactStore/S3. - Once ART commits every assigned original guide document, Workstream automatically queues its authorized unified compilation in Celery.
- One unified compilation assesses sufficiency and proposes artifact, pre-submission and post-submission policy components from the exact guide and catalogue snapshots together with every supplied task example.
- Blocking sufficiency gaps stop the setup pipeline and create clarification requests for the project owner.
- An authorized covered Project Manager acknowledges non-blocking sufficiency warnings.
- Workstream finalizes the exact compilation and its permitted projections. The finalized setup run and receipt remain immutable; no second derivation agent runs to fill the post-submit component.
- An authorized covered Project Manager reviews and approves the derived submission artifact policy.
- Workstream persists the effective project submission artifact policy hash.
- Workstream compiles, persists, and locks the project
PreSubmitCheckerPolicy. - A separate operation deterministically projects and compiles the post-submit component from that same unified result; it does not execute a checker.
- An authorized covered Project Manager approves the current compiled post-submit checker policy.
- A manager may correct a compiled or already approved policy while its setup remains current. Workstream supersedes it and preserves its body/hash and immutable attributed receipts. Correction creates the existing unified successor with bounded feedback; it never resumes the finalized run or retries an uncertain provider operation. The successor needs fresh upstream approval, deterministic post-policy projection and separate approval. Its canonical policy hash may be unchanged; its generation and approval custody are new. Correction does not satisfy activation.
- An authorized covered Project Manager enables review policy.
- An authorized covered Project Manager enables revision policy.
- The owning Finance Authority publishes the ContributionPolicy version selected by the active policy, with explicit submitter and reviewer compensated/unpaid rules.
- Project becomes active.
Acceptance:
- Project cannot become active without guide, immutable guide source snapshot,
passed or acknowledged guide sufficiency report for that immutable guide
source snapshot, submission artifact policy, effective project submission
artifact policy hash, project pre-submit checker bundle hash, an approved
current compiled project post-submit checker policy with matching guide,
source snapshot, effective project policy, and pre-submit checker provenance,
review policy, revision policy, and the current published version of the active
ContributionPolicycontaining exactly one explicit compensated/unpaid rule for each ofaccepted_submissionandcompleted_review. - Guide-policy activation and contribution-policy publication are independently
governed. Project activation requires both to be complete and binds the
exact published version. Task readiness locks it;
TaskAssignmentcopies the task lock, Submission stamps the attempt version, andReviewLeasecopies the Submission stamp without policy selection. - Normal setup starts from guide/source capture and one authorized compilation request, not separate requests for sufficiency and each policy derivation.
- All pre/post capability-gap dispositions block projection/approval/activation.
Explicit approved
human_reviewrequirements remain valid, but unsupported automation is never silently relabelled. An uncertain provider outcome stays blocked without a fresh call until same-operation recovery is supported. - Submission artifact policy is Workstream-derived and approved by an authorized covered Project Manager; project owners do not author or approve the machine policy schema directly.
- This flow uses unified compilation and its deterministic verified-report projection. Manual reports and policies retain separate diagnostic/manual provenance and cannot replace or satisfy unified compilation evidence.
- Submission artifact, checker, review, and revision policies are visible on the project page; contribution policy/version is an independently governed project record.
- A covered Project Manager selects the active project.
- The Project Manager creates a task with title, description, source reference, acceptance criteria, rejection criteria, deadline, and difficulty.
- Workstream validates the task source and reviewability fields, then confirms the task fits the active project guide and policy bundle.
- Task enters
SCREENING. - Screening locks the guide source snapshot id/hash, effective project submission artifact policy hash, project pre-submit checker bundle hash, and approved provenance-matched project post-submit checker policy reference, then confirms the task contract, review policy, revision policy, and reviewability.
- Task enters
READY.
Acceptance:
- Missing required fields block
SCREENING. - Missing required fields block
READY. - Task shows project guide, required artifacts, generated project pre-submit checker policy summary, permission-appropriate post-submit checker policy summary, review policy, and revision policy. After claim, the contributor sees the Assignment-frozen submitter compensation terms.
- Contributor opens assigned task.
- Contributor uploads one outer ZIP containing every required output and evidence file.
- Contributor writes the required summary and attestation.
- Workstream safely inspects and manifests the ZIP in bounded private scratch.
- Workstream executes the single effective pre-submission plan: platform defaults plus the task-locked Project Guide policy.
- Failure returns bounded same-request
pre_submission_checker_faileddetails and creates no submission or durable artifact. - Passing bytes are stored and independently verified, producing a ready admission.
- Contributor creates the immutable Submission by consuming that admission under fresh authority.
- Task enters
SUBMITTED.
Acceptance:
- Submission cannot be created when blocking pre-submit checks fail.
- Blocking pre-submit failures are not review decisions and never return
accept,needs_revision, orreject. - Submission cannot be created without required artifacts, evidence references, hashes, and contributor attestation defined by the locked project pre-submit checker policy.
- Submission packet is immutable after checks start.
- Checker runner validates the submission-stamped locked
PostSubmitCheckerPolicyid/version/hash/body. - Runner executes enabled checks from that locked policy body.
- Results are saved with
passed,warning, orfailed, plus severity, message, and evidence. - Contributor-fixable checker failures route the Task to
NEEDS_REVISIONwithCheckerResultlineage and no Review or reviewer contribution. - Setup or provenance defects keep the Task
evaluation_pendingon the internaltask_setup_blockedrepair route. - For locked
human_review_required=true, only a durable, final, currentCheckerRunoutcome ofallow_reviewadmits the exact immutable Submission with verified binding facts and moves the Task toREVIEW_PENDING.
Acceptance:
- A retry, superseded run, different Submission, non-final result, or outcome
other than
allow_reviewcannot admit human review. - Warnings remain visible to reviewer.
- Every checker result is timestamped.
This flow and its downstream human-review/revision effects apply only to the human-required branch, not a project with locked false.
- Reviewer current work returns an active lease, one server-selected offer, or none.
- Reviewer claims the offer and receives the exact ReviewPacketManifest.
- Reviewer reads the leased Submission's stamped guide context, evidence, and checker results.
- Reviewer enters immutable blocking/advisory findings where applicable.
- Reviewer selects accept, needs_revision, or reject.
- Workstream atomically appends Review history, consumes the lease, closes the
queue entry, and runs the CON reviewer operation for
completed_review. - For
accept, REV then creates internal FinalAcceptance, applies accepted Task and completed Assignment effects, and runs the CON submitter operation foraccepted_submissionfrom that fact.
Acceptance:
- Review cannot be submitted without a decision.
- needs_revision requires at least one blocking finding; reject requires a bounded human reason and may include findings.
- the leased Submission must retain its exact durable, final, current
allow_reviewCheckerRun admission and verified binding facts. - Every valid human decision has exactly one reviewer contribution.
- Accept sets Task
accepted, Assignmentcompleted, and has exactly one FinalAcceptance and one submitter contribution. - Needs revision sets Task
needs_revision, keeps Assignmentactive, and has neither FinalAcceptance nor submitter contribution. - Reject sets Task
rejectedwith a bounded human reason, blocks only the same-task Assignment with its source Review, changes no grant or unrelated task, and has neither FinalAcceptance nor submitter contribution. - FinalAcceptance has no manual API/action and no adjudication/reopen path.
- Only accept has a submitter contribution.
- Contributor opens a needs-revision task rooted in an immutable
Review(needs_revision). - Workstream prepares immutable context from every applicable currently active Project Guide and policy selector.
- Exact prior component matches keep; every changed valid component rebases together; unsafe context blocks the whole preparation.
- Contributor sees the frozen preparation and each unresolved blocking finding.
- Contributor appends one SubmissionFindingResponse and optional evidence per required finding.
- Contributor resubmits.
- Checkers rerun.
- Reviewer appends one FindingResolution per required prior finding.
Checker-caused remediation is separate: it retains CheckerResult lineage,
creates no Review, ReviewFinding, SubmissionFindingResponse, FindingResolution,
or reviewer contribution, and returns through the normal submission/checker
spine before human review.
Acceptance:
- Prior review remains visible.
- Context changes are visible before the contributor revises.
- Each required finding has an immutable response and later resolution.
- Revision count is tracked against the locked revision policy.
- A reached limit/deadline blocks resubmission but never auto-rejects or auto-closes the task; manager cancellation is a separate planned command.
Both planned triggers invoke one shared acceptance operation. The human branch:
- Reviewer accepts task.
- The reviewer
completed_reviewcontribution created after the Review remains immutable. - REV creates immutable FinalAcceptance from the accepting Review.
- The Task enters
ACCEPTEDand the TaskAssignment becomescompleted. - The CON submitter operation creates
accepted_submissiononly from FinalAcceptance, TaskAssignment, frozen policy lineage, and artifact hash. - The
completed_reviewandaccepted_submissionrules from the applicable frozen ContributionPolicyVersion are evaluated independently; explicit unpaid rules create no awards. - External fulfillment runs after commit; reputation projection is deferred.
When the Submission's locked ReviewPolicy has human_review_required=false,
TASK instead validates current successful required checks, the exact immutable
ZIP and output references, zero applicable approved human_review requirements
and fresh routing authority. It invokes the same operation directly: Task
ACCEPTED, assignment completed, FinalAcceptance, submitter contribution,
applicable submitter awards, audit and outbox commit together. It never enters
REVIEW_PENDING or creates a Review, ReviewLease, reviewer contribution or
reviewer award. Checker output remains evidence, not a human decision.
Correctable checker failures follow ARCH-04F under the locked attempt context; infrastructure/setup uncertainty never accepts or invents a human revision. This false branch is planned, not currently enabled. Fulfillment remains post-commit for either trigger and cannot change accepted work.
Acceptance:
- Accepted task cannot lack FinalAcceptance or its submitter contribution record.
- Every accepted Review cannot lack its reviewer contribution record.
- A payable contribution cannot lack its immutable CompensationAward and fulfillment projection; an explicit unpaid policy creates no award.
- Compensation fulfillment status is separate from assignment status.