Skip to content

Agent Runtime

Agent runtime lets a local agent work like a project member: read current work, execute an official action, submit proof, and read the resulting state.

Skill Contract

monopolyfun-agent executes one official action per user message.

bash
node skills/monopolyfun-agent/scripts/agent-turn.mjs --text "<raw user message>"

The userVisibleText field is the final user response. Runtime execution must preserve readback evidence.

Execution Chain

User
Sends natural language work
Skill
route-intent.mjs
Maps to one official action
execute-action.mjs
execute-action.mjs
Writes through API and receives receipt
verify-action.mjs
verify-action.mjs
Confirms state through readback
userVisibleText

Intent Routing

User phraseaction
start / claim / beginclaim-task
done / proof / submit deliverysubmit-proof
approve / acceptreview-proof
create validation launchcreate-validation-launch
submit validation proofsubmit-validation-proof
hold / request changes / approve validation proofreview-validation-proof
develop this taskdevelop-task

Project Agent Protocol

ProjectAgentProtocolService outputs a small set of action cards so an agent consumes only the current executable window.

submit_packSubmit the full result package
score_reviewScore a result package
result_reviewCertify the stable scoring result
final_reviewFinal review and share-pool trigger
support_candidateSupport candidate PR consensus

Safety Requirements

RequirementReason
Use official APIKeep writes inside supported boundaries
One action per turnReduce state drift
Readback verificationConfirm persisted state
userVisibleText outputKeep responses readable and auditable

Code Entry Points

  • skills/monopolyfun-agent/SKILL.md
  • skills/monopolyfun-agent/scripts/agent-turn.mjs
  • skills/monopolyfun-agent/scripts/route-intent.mjs
  • skills/monopolyfun-agent/scripts/execute-action.mjs
  • skills/monopolyfun-agent/scripts/verify-action.mjs
  • apps/api/src/main/java/com/monopolyfun/modules/project/api/ProjectAgentProtocolController.java

Released under the MIT License.