# Versioned artifacts and specs

> Work produces versioned documents that the next step reads: intent, spec, plan, diff, PR, incident report. How many depends on the size of the work. The commit history doubles as an audit trail.

These artifacts connect the stages. How many you need depends on the size of the work: a bug only needs a ticket and a failing test. For larger work, product, design and engineering shape the intent together with the agent: the need, the reason for it, the constraints, the open questions. The agent turns it into a spec. The spec applies brand, security, compliance and user experience rules, and flags any conflicts between them.

For large or ambiguous work, the engineer then has the agent produce a plan without touching the code: files changed, order, risks, expected evidence. The plan is committed, and review will check that the diff follows it. With a good plan, implementation often works on the first pass.

At first, each step is started by hand. Over time, the next step starts as soon as the previous one’s checks are green. Customer needs summarized by AI can also become intent files stored in the repository.

Many organizations already have an issue tracker or a requirements tool. Name one source of truth per artifact. At a minimum, each file cites the ticket ID and each ticket cites the commit. Where a change board still exists, move its rules into the pipeline and the review policy. Both leave a record on every merge.

**When**: For large or ambiguous work, or work that touches several teams. A bug or a small change only needs a ticket and a failing test. For something new that nobody can specify yet, start with a throwaway prototype.

**Trade-offs**: For large work, writing the intent, spec and plan takes time up front. You win it back in implementation and review, as long as the documents are updated when the work drifts from the plan. For a small change, that time would be wasted.

## Where to start

- Adopt an intent file template
- Have the agent write the spec using the organization’s skills
- Write a plan before code for large or ambiguous work
- Update the plan when implementation drifts from it
- Link every artifact to its ticket

## Common mistakes

- Writing code for large work without a plan
- Keeping two unlinked sources of truth
- Changing the spec mid-development without a record

## Metrics

- Time from first conversation to a ready intent
- Share of intents accepted
- Time from a ready intent to production
- Share of changes merged on the first implementation pass

## Sources

- [Anthropic, The AI-native SDLC playbook](https://claude.com/fr/resources/articles/the-ai-native-sdlc-playbook)
- [Atlassian, The AI SDLC transformation playbook](https://www.atlassian.com/blog/ai-at-work/ai-sdlc-transformation-playbook)
- [SFEIR, An AI-driven SDLC (in French)](https://www.sfeir.com/articles/sdlc-ai/)
