How should a multi-step feature be decomposed?
Break the feature into observable milestones with dependencies, tests, and rollback points. Finish and verify one coherent slice at a time, and revise...
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 769–780 of 3610 questions
Break the feature into observable milestones with dependencies, tests, and rollback points. Finish and verify one coherent slice at a time, and revise...
Humans should approve high-impact decisions involving security, deletion, production changes, access grants, licensing, and ambiguous requirements. Au...
Use a bounded state machine: gather context, plan, call an authorized tool, validate results, update state, and continue or finish. Add step budgets, ...
Give the agent only the repository, commands, credentials, and network access needed for the task. Separate read and write capabilities, use short-liv...
A sandbox should restrict filesystem access, process execution, network egress, credentials, and resource consumption. Containers alone are not always...
Injection can occur when untrusted paths, issue text, or tool output are interpolated into shell commands. Prefer structured process APIs, argument ar...
Resolve paths against an approved workspace root, normalize them, and reject paths that escape it, including symlink escapes where relevant. Revalidat...
Avoid exposing credentials in model context unless necessary. Use secret brokers or narrow tools that perform actions without returning credentials, r...
Risks include hallucinated packages, typosquatting, malicious dependencies, compromised MCP servers, and hostile instructions in external content. Ver...
A policy engine enforces deterministic rules independently of model intent, such as allowed paths, commands, data classes, and approvals. Validate eve...
Tools should have narrow purposes, typed schemas, explicit side effects, predictable errors, and minimal outputs. Separate read and write capabilities...
Use stable operation identifiers, detect completed work, and verify state before retrying. This prevents duplicate tickets, commits, resources, or dep...