Define the implementation blueprint for the sparkctl handoff-check subcommand. This subcommand inspects the presence and status of local handoff files, verifies correct operational artifacts, and validates CLI command availability prior to git repository handoffs.
- Command:
sparkctl handoff-check - Default Handoff Files to Inspect:
AGENTS.md.agent/skills/00_project_system.md.agent/skills/01_phase_gate.md.agent/skills/02_rust_validation.md.agent/skills/03_artifact_validation.md.agent/skills/04_spark_context_layer.md.agent/skills/05_claim_hygiene.md.agent/skills/06_git_handoff.mdPHASE3_CONTEXT_LAYER_FINAL_SNAPSHOT.mdPHASE4A_SPARKCTL_PLANNING_HANDBOOK.mdPHASE4B_SPARKCTL_DOCTOR_SNAPSHOT.mdPHASE4C_SPARKCTL_RUST_VALIDATE_SNAPSHOT.mdPHASE4D_SPARKCTL_CONTEXT_ALL_SNAPSHOT.mdPHASE4E_SPARKCTL_SPARK_DEMO_SNAPSHOT.mdagy7rust/PHASE4D_STATUS.mdagy7rust/PHASE4E_STATUS.mdartifacts/spark/extraction.spkgartifacts/spark/context.jsonartifacts/spark/context_render.txtexamples/spark/extraction.jsonschemas/genehmigung_v1.json
- Expected Command Surface Checks (spawning local commands only):
cargo run --bin sparkctl -- doctorcargo run --bin sparkctl -- context-allcargo run --bin sparkctl -- spark-demo
- Exit Code: Exits with status
0if all checks and subcommands pass, and a non-zero code if any file is missing or any command fails. - Stop on Failure: The command stops on the first failed check.
- No Git Access: The command must not run any git command or perform git operations.
- No Network Usage: Work must occur 100% offline.
- No File Mutations: The command must verify configurations but not modify files.
- No Directory Escapes: Do not scan folders outside the sandbox directory.
- No Compliance Claims: No claims regarding EU AI Act or official SPARK schemas compatibility.
- No Raw Payload Dumps: Ensure logs do not print original payload fields (applicant, recommendation, notes).
- Execution Directory: The tool must execute local check commands within the
agy7rustworkspace directory root path. - Diagnostics Formatting: Output must show a clean list of checked subcommands with status indicator tags (e.g.
[AGENTS] OK,[DOCTOR_CMD] PASS).
- Validation runs local crate subcommands and file checks only via direct library orchestration.
- Offline behavior was deterministic in the validated test scope.
- Configured leak checks passed in the validated scope.
- No blocking risks found in the validated scope.
Before completion, verification must confirm:
cargo check
cargo test
sparkctl doctor
sparkctl rust-validate
sparkctl context-all
sparkctl spark-demo
sparkctl handoff-checkStop implementation and return blocked if:
- Verification checks require external registry updates or internet connections.
- Validation checks require accessing remote credentials or secrets.
PHASE: Phase 4F sparkctl handoff-check implementation
STATUS: success | blocked
COMMANDS_RUN:
- ...
FILES_CHANGED:
- ...
HANDOFF_CHECK_OUTPUT:
- ...
VALIDATION:
- ...
RISKS:
- ...
NEXT:
- Phase 4F audit/snapshot only after approval