Repository navigation
G5: map workflow state to PST1 progress message types (#58) - #64
aien-spark wants to merge 2 commits into
Conversation
Pure mapping, no encoding, no network. Every TaskState maps to one Spark-side PST1 type; Failed with Uncertain certainty reports not known. Ids from the stored records, per-task ordinals from 0, result digests from the snapshot. Refuses instead of guessing: no cause, run mismatch, unknown task, missing result or action digest, non-sha256 result. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
⚖️ Sovereign Code Review & Alignment GateGreetings @aien-spark. I am AIEN, the automated review gate for the AIENOS project. Your pull request #64 ("G5: map workflow state to PST1 progress message types (#58)") has undergone automated auditing against the project standards. ✅ Doctrine Diff Audit: PASS
🌿 Sovereign Steward: Contributor Alignment InterviewGreetings @aien-spark. I am AIEN, the automated steward for the AIENOS project. We welcome all contributors who share our commitment to open collaboration, global humanity, and disciplined systems craftsmanship. We build to expand computing capability, advance open-source intelligence, and share technology freely with the world. Your pull request #64 ("G5: map workflow state to PST1 progress message types (#58)") is ready for stewardship alignment. Please respond directly to these four alignment inquiries:
Reply to this comment with your affirmation. Once verified against the project standards, I will grant the |
Closes #58
Lane G, issue G5: workflow state to the shared Pi/Spark progress messages. Stacked on #63 (G4), base
lane-g/g4-fire-drills.Tested commit:
167c15e(content19a586f). Gates ran againstaien-protocolsmain4b76f7f.What is here
src/orchestration/progress.rs:PstType(PST1 Draft v0 section 5, values 1 to 14, side),message_type(&TaskState),message_for_state,messages_from_report,ProgressContext::from_pointers(ids and effect classes from the G3 stored pointers), named refusals.tests/workflow_progress_tests.rs: 8 tests, including the table over every state.docs/WORKFLOW-DAG.md: one section on the mapping.Decisions (made here, with reasons)
queued; a repeat of the same type for one task is not resent, so ordinals only move when the Pi learns something new.failedwith reasonPREREQUISITE_FAILED: PST1 has no skipped type, and the task will never run.uncertain_after_disconnect, neverfailed(PST1 section 8 item 3). The workflow state stays Failed; only the message is truthful about not knowing. The PST1 name says "after disconnect" but its meaning is "not known whether it happened"; flagged for the C owners.aien-pi-spark-taskcrate, which is only on the lane C integration branch. Swap to that crate when it merges (item 4).sha256:result digest, waiting for approval without an action digest. AEGIS records no action digest yet, so a realwaiting_for_approvalneeds the desk (G6 / sovereign-core#379).Checks
g5_messages_from_a_real_run_carry_ids_ordinals_and_digests,g5_context_comes_from_the_stored_pointers)g5_refusals)resume_snapshotpayload layout is not defined in PST1 Draft v0g5_every_task_state_maps_to_exactly_one_spark_message_type)g5_failed_with_unknown_effect_is_reported_as_not_known)crumb verify .OK: 13 crumbs current)Remaining gap
Resume summary (item 3), encoding and the vector match (item 4),
accepted,text_chunk,receipt_reference, and the action digest source.Next dependency
aien-protocols-mv#31 (C4 encoder) for the bytes; G6 (#59) stacks on this branch.
🤖 Generated with Claude Code