Skip to content

refactor: bound Track A RunContract formatter cleanup #133

@devkade

Description

@devkade

Summary

Child slice of #128. Preserve PR #132 as the bounded formatter cleanup slice instead of letting the parent roadmap close directly.

Evidence

Scope

  • Keep RunContract presentation formatter behavior stable.
  • Keep shared prompt rendering semantic sections readable.
  • Keep public CLI/Pi wording backward-compatible unless explicitly additive.

Non-goals

  • Do not fold GitHub/PR/kapi-agent semantics into RunContract core.
  • Do not change workflow-validation completion authority.
  • Do not merge RunContract advisory quality with runtime readiness probe.

Acceptance criteria

  • src/presentation/messages.ts delegates RunContract compact formatting to a shared presentation helper.
  • renderRunContractPrompt remains the service/CLI shared prompt renderer.
  • Regression tests cover the moved formatter/prompt behavior.
  • npm run verify passes, or unrelated failures are documented.

Verification

npm test -- test/run-contract-format.test.ts test/run-contract-prompt-renderer.test.ts test/presentation-ui.test.ts
npm run verify

Part of #128.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions