# AI coding task card example: repair a mobile article list

Status: an original example, not independently tested in a demo project. Adaptable under MIT. Contains no third-party code or real project configuration.

## Outcome
Make an existing article list readable and usable at 390px, 768px and 1440px, without horizontal overflow.

## Inspect first
Read the list component, shared card rules, type and spacing tokens, existing tests and startup commands. Report an unknown stack instead of assuming a framework or creating a replacement project.

## Allowed changes
The article list and the local layout rules it actually uses; relevant assertions in existing tests. Reuse shared title, summary and metadata components.

## Forbidden changes
Article content, URLs, language routes, authentication, payment, production variables, databases and deployment configuration. Do not upgrade dependencies, rebuild global navigation or deploy.

## Model routing
Use advanced reasoning to establish the cause and acceptance criteria. Delegate bounded styling to economy or standard capability where the tool supports it; otherwise hand off manually. Never claim automatic switching without actual support. Escalate any privacy or authorization changes before proceeding.

## Execution
1. Record reproduction steps and the current screenshot.
2. Make one minimal change using existing components and tokens.
3. Run the actual project's typecheck and build.
4. Check title wrapping, 4:3 thumbnails, keyboard focus and overflow at all three widths.
5. Review the real diff for scope and side effects. Record unverified paths.

## Acceptance
No horizontal overflow at the three widths. Titles and summaries remain readable. Card links work and keyboard focus is visible. Relevant language editions and old URLs still work. Mark a check passed only after running it.

## Failure and rollback
After two failed repairs of the same problem, stop and reconsider the constraints and root cause. Revert this task's exact changes while preserving prior user edits; do not reset the whole workspace.

## Handoff
Provide changed files, rationale, actual commands and results, screenshot locations, remaining risks and rollback instructions. Remove personal data from logs. Include no credentials.

## MIT License

Copyright (c) 2026 Future Slice

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
