Repository navigation
feat(pi): add structured work continuity tools - #1617
Merged
Teingi merged 3 commits intoSep 15, 2026
Merged
Conversation
Lore: Make the native Pi argument schema no stricter than the OpenAPI contract, and stop the project-context Skill from linking a prepared Handoff Receipt to a Task Outcome. Constraint: TaskCheck.details stays nullable and optional; handoff_receipt_ref remains valid only for an accepted exact (committed) Handoff Receipt. Tested: pnpm test (92 passed) and pnpm typecheck in integrations/pi/plugins/powercontext; the new regression test fails against the previous declarations. Not-tested: No live Server run; the Receipt rule is asserted from the server-side validator and the documented interfaces.
Lore: Keep the Pi project-context Skill complete for the structured work loop it now advertises, so callers do not discover the Server's claim rules only through a 422. Constraint: Skill guidance only; no tool schema, payload, or Server contract change. Tested: pnpm test (92 passed) and pnpm typecheck in integrations/pi/plugins/powercontext; Skill line lengths match their section. Not-tested: No live Server run; the claim rules mirror the WorkClaim and TaskCheck validators.
Contributor
Author
|
Follow-up commit Skill fixes found in that pass:
Everything else I re-checked is consistent and needed no change:
Local verification: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the missing structured work-continuity operations to the native Pi integration:
pc_work_contract->create_work_contractpc_handoff_current->handoff_current_workpc_handoff_acknowledge->acknowledge_handoffpc_task_outcome->record_task_outcomeRefs #1338
Final design
The implementation follows the original plan while keeping the scope at the Recommended Pi profile:
pc_handoff_currentat a current-work transfer boundary. It prepares a temporary Handoff from the current Scope; the returned Handoff carrier is passed unchanged to the receiving task or to an explicitly requested durable commit.All four tools use the existing OpenAPI contracts, including nested citation/reference and generation metadata schemas. They are marked mutating and included in the write-operation set, so interactive confirmation, no-UI refusal, Scope injection, and secret filtering apply consistently. The project-context Skill documents when to use each operation and requires exact pass-through of Handoff and citation references.
This PR does not claim the Full profile and does not add External Skills, Experience/Skill generation, candidate decisioning, Stats/Memory Changes, or Workstream persistence.
Verification
ty check: passedgit diff --check: passedImplementation and verification were performed with Codex (GPT-5.6 Sol). An independent read-only review was performed in a separate Codex session using GPT-5.6 Luna with medium reasoning; all actionable findings were resolved before submission.