Skip to content

[Process] Issue-first execution contract for local coding agents #58

Open

Description

@fxbin

Purpose

MonetPlane development is now issue-first. Local coding agents (including GLM) should execute one well-bounded GitHub issue at a time rather than deriving work from chat history or inventing scope.

Execution contract

For every implementation issue:

  1. Read the issue, its parent epic, dependencies, and linked architecture/design docs before changing code.
  2. Confirm dependencies are merged/closed or explicitly document why work can proceed independently.
  3. Start from the latest main on a fresh branch. Do not stack unrelated issue branches.
  4. Keep the change inside the issue scope. If a new requirement appears, create/follow a separate issue instead of silently expanding scope.
  5. Preserve the architecture direction:
    • src/app — routes/server components
    • src/components / future src/features — console UI
    • src/server/control-plane — UI/application orchestration
    • src/modules — billing domain boundaries
    • src/sdk — public integration contract
  6. Do not weaken provider abstraction, application isolation, webhook idempotency, credit ledger atomicity, or secret-handling guarantees to make a task easier.
  7. Add/update focused tests for new behavior. Do not delete or relax meaningful regression coverage.
  8. Run the issue's verification commands before declaring completion.
  9. Open a draft PR that says Closes #<issue> only when the issue can truly be closed by the merge.
  10. Record exact verification evidence and known limitations in the PR.
  11. Keep external-evidence gates open when real sandbox/live proof is unavailable; mocks/fixtures must not be presented as real-provider evidence.
  12. Merge only after acceptance criteria are satisfied. Close the issue through the merged PR, not by assumption.

Default verification

Unless an issue narrows the test set during iteration, final verification should include:

pnpm lint
pnpm typecheck
pnpm test
pnpm test:integration
pnpm build

Database/schema changes must also prove fresh migration and migration repeatability.

Stop / escalate conditions

The local agent should stop and report rather than guess when:

  • the issue conflicts with DESIGN.md or durable architecture docs;
  • a provider contract cannot be confirmed from current SDK/API behavior;
  • a migration risks irreversible data loss without an explicit strategy;
  • acceptance requires credentials/external access that are unavailable;
  • the requested behavior would leak secrets or bypass application/environment isolation;
  • the issue is materially larger than described.

Definition of done

An issue is done only when code, tests, docs/copy where relevant, and acceptance evidence all agree with the implemented behavior.

This issue is a standing contributor/agent protocol and should remain open as a reference unless superseded by a durable contributor guide.

Activity

  1. added a commit that references this issue on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions