Coding agents

Make coding agents follow product decisions

See how a coding agent can implement a valid solution that contradicts an approved product decision, and how Artifact makes the current boundary available before code changes.

Short answer

A coding agent can pass tests and still ship the wrong product behavior when the approved decision lives in a meeting or stale issue. Artifact supplies that versioned decision before planning, then records whether it changed the answer.

For: Product and engineering teams using Cursor, Claude Code, Codex, Gemini, Grok, or other coding agents.

Review one answer

Before and after

Implement the intake form validation.

Model default

Require every field and disable Submit until all four values are present.

With Artifact

Require the answer and intended decision. Label company and context Optional, omit required validation for both, and test the filled and empty paths.

Applied directiveAgent answer and intended decision are required. Company and context are optional and empty values must not block submit.

Concrete failure: correct code, wrong product

A coding agent makes every onboarding field required because that simplifies validation. The approved product decision says company and context are optional, so the technically clean implementation blocks the intended flow.

  • Tests can validate the implementation while missing the product decision.
  • A stale issue or repository instruction can preserve an older choice.

Artifact workflow: make the decision retrievable

Publish the current optional-field boundary with its owner and scope. The coding agent retrieves it before planning, applies it to validation and interface copy, and records the directive version in the interaction receipt.

Privacy boundary

Artifact records the direction and outcome metadata, not the repository prompt or generated patch. The code remains in the coding client and repository.

Frequently asked questions

Is AGENTS.md enough for product decisions?

It can carry repository instructions, but changing company decisions can drift across repositories and clients. Artifact provides one versioned task-time source.

Does Artifact execute code?

No. The coding agent remains the agent. Artifact supplies direction before the response and records metadata about what ran.

Can a directive apply only to Engineering?

Yes. Scope the directive to Engineering, the organization, or Just me, and limit delivery to named agents when needed.

Bad-answer clinic

Bring one wrong answer

Submit the answer and the decision it should have followed. An operator reviews the draft directive and report before it is returned.

Review one answer