sflow-submit
Validate and submit the active Singularity Flow phase for human approval, registering changed artifacts and running configured quality commands.
SKILL.mdplugin/skills/sflow-submit/SKILL.md
GitHubSubmit
<!-- sflow-copilot-pause -->Reuse a verified pause-aware entry supplied in this invocation before any mutation or selection change; otherwise first run singularity-flow session current --for-agent --json once; pause precedes Git. If paused: native Copilot, only /sf-pause off, never resume implicitly. Reuse binding/personalization.replyName; fresh operation checks/consent remain required.
Output contract: Show artifact references, hashes, warnings, and confirmation before a decision. Summarize artifacts with verified Markdown-preview links; never paste document bodies, code or diffs into Copilot. For code, list touched paths and observed added/deleted/created line counts; unavailable stays unavailable. Use existing evidence, not extra calls solely for display. Summaries, links and opened previews are not human review or approval. For every next action, honor returned commandGuidance in order: Copilot, Shell, VS Code (model-free) using modelFreeCommand; if absent, say "not available for this action". Missing Copilot: "no verified equivalent". Never invent routes. Run a check only when a returned field or command asks for it; never decide from a step's name, kind or route that it applies. A refusal saying a check does not apply to this step is not a blocker: skip it and continue. Act on a result's act first: its state, do routes and any ask. A bounded result names agentOutput.read ranges and omittedFields text files; read all in one response with your file tool. If your host saved a result to a file you cannot open, run that command again with --for-agent --json; never read the host's copy with shell tools.
Boundary: reuse entry ready/workId, cwd=repositoryPath; CLI/workItemRoot paths only; never $HOME. No duplicate lookup. Use exact CLI-returned paths. repositoryPath is command cwd, not a prefix for absolute file paths. Never rebase paths or strip .git/worktrees. Issued private/external files are exact exceptions to repository confinement, not wider read/write permission; writes still need authorization. Resolve relative paths only against their declared base. On failure, preserve the path and error; never search or recreate it.
Out of sequence: stop; humans confirm soft warnings.
- Run
singularity-flow status <WORK-ID> --submission-readiness --for-agent --json --submit-if-ready; require matching work/phase and its readiness fields. TrustlifecycleReady; never republish. Forterminal-obligations-required, relay blockers/actions and stop—no submit or generic recovery. lifecycleReady: true: Published generation <N> — ready to submit; otherwise disable Submit. Generation zero means unpublished, not missing code.generation-required: relayauthoringProgress.stage, preservation instruction and exactnextCommand/nextSkill. Finish missing summary/planned bindings or validate the authored draft; never redo existing code, infer publication from manual tests, use session UUID as WORK-ID or generate/publish here.- Source review is part of readiness: only when it reports
source-review-required, relaysourceReviewFindingsand its exact review actions; never run a separate review check. Reviewer reports are not approval. Pending amendment acknowledgement requires the person's explicit choice. confirmationRequired: true: show full warning and returned Work-ID-pinned command; human providescontinue.- Readiness
classificationconvergence-advance-required: never genericsingularity-flow submit. Run returnedsingularity-flow story advancewithout--confirm; show review/digest, stop on unresolved dispositions. Invoked with--confirm sha256:<DIGEST>equal to the shown digest, or the person confirms it here: run it with--confirmonce. Changed digest requires fresh review. - Unless
submitIfReady.submitted, run returned Work-ID-pinned submit command.--skip-checksrequires authorization. - On failure, fingerprint refusal plus artifact/check hashes and diagnosed runtime evidence. Nonzero exit fails despite passing JUnit. Proven environment repair permits retry without republishing unchanged source; changed source/artifacts need reviewed rollover. Stop on an unchanged condition or after three distinct repairs. Never loop quality commands or waive tests/integrity/policy.
/sf-recovernever substitutes for terminal decisions. - Use
submitIfReady.review, elsesingularity-flow phase show <phase> --for-agent --json. Summarize submitted status/checks/warnings and list each artifact/brief's identity, generation/hash and verified Markdown-preview link. PreservedisplayBindingand freshreviewBinding; never reproduce document bodies, code or diffs. Tool output or summaries are not review. - Offer the approval route, not an approval decision. The human must review the complete linked documents; changed/null bindings or incomplete material need fresh review before approval. Never infer review from a summary, opening a preview or successful submission.
- Report commit/push/hashes/checks/cost; offer
/sf-approve <PHASE-ID> --work-id <WORK-ID>with real IDs; never approve.
TRP: follow singularity-flow explain test-recovery.