Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ body:
- type: textarea
id: alternatives
attributes:
label: Alternatives Considered
description: What other approaches or existing tools have you considered?
placeholder: Describe alternative libraries, manual workarounds, or reason for rejection.
label: Existing Tool Considered
description: Which open tool or library covers this? If you propose to build instead, state the cost, which is the tokens to implement, maintain and fix until it matches the tool, plus the elapsed time.
placeholder: Name the tool and what it lacks, or the cost of building.
validations:
required: true

- type: checkboxes
id: checklist
Expand Down
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ This document provides foundational context, architectural principles, and opera
- Matching against a list of strings or regular expressions is **ONLY acceptable if it covers 100% of possible scenarios** (mathematically bounded, closed domains defined by official RFCs or language grammars).
- Matching against a limited or arbitrary subset of a larger or unknown list of possible values is strictly prohibited. Use mature engineering solutions such as programming language symbol parsers (Python AST visitors, tokenizer pipelines) or official registries (Mozilla Public Suffix List via `tldextract`).
- Any string list, tuple, or frozen set for matching, classification, or filtering **MUST be declared in `src/devops_cli/config/constants.py` or `src/devops_cli/config/defaults.py`**, never scattered across functional modules.
- **Modern Python Ecosystem**: Track Python 3.14+ runtime features, typing standards, and established libraries (`pydantic v2`, `httpx2`, `pytest`, `ruff`, `mypy`, `uv.lock`). Avoid custom workarounds when standard library or established open-source tools exist. Never hallucinate CVEs or false malicious alerts against verified dependencies like `httpx2`.
- **Modern Python Ecosystem**: Track Python 3.14+ runtime features, typing standards, and established libraries (`pydantic v2`, `httpx2`, `pytest`, `ruff`, `mypy`, `uv.lock`). Never hallucinate CVEs or false malicious alerts against verified dependencies like `httpx2`.
- **Open Tools Before Internal Code**: Before building a capability, name the open tool or library that covers it. Building instead needs a written cost in the issue or PR: tokens to implement, maintain and fix until it matches the tool, plus elapsed time. A plan that prescribes a build is a proposal.
- **Zero-Trust Security & Egress Safety**:
- Never store plaintext secrets or tokens in code, configuration files, or logs. Always use OS Keyring or secure secret stores (HashiCorp Vault).
- **Zero Information Leakage & Environment Sanitization**:
Expand Down
2 changes: 2 additions & 0 deletions changelog.d/1833.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Changed
- AGENTS.md asks for a written cost (tokens to implement, maintain and fix, and elapsed time) before internal code is built where an open tool covers the capability, and the feature request form requires naming the existing tool considered ([#1833](https://github.com/dan-petty/devops-cli/issues/1833)).
17 changes: 17 additions & 0 deletions docs/agent/tasks/task-1833-open-tools-before-internal-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Task: Building Internal Code Instead of Using an Open Tool Needs a Written Cost (#1833)

**Issue**: [#1833](https://github.com/dan-petty/devops-cli/issues/1833)
**Scope**: scope/github
**Feasibility**: AGENTS.md section 1 held the rule as one sentence inside the "Modern Python Ecosystem" bullet ("Avoid custom workarounds when standard library or established open-source tools exist"), and the feature request form asked for "Alternatives Considered" as an optional field. Neither asked for the choice to be justified. The release workflow shows what that cost: about 3,000 lines in `src/devops_cli/release/`, `src/devops_cli/roadmap/close.py` and `src/devops_cli/commands/release.py`, a 403-line `release.yml`, 16 test files, and 94 issues and 138 merged pull requests with release, changelog, cut or fragment in the title on 2026-10-22. AGENTS.md had 293 characters of headroom under `CONST_AGENTS_MD_MAX_CHARS` (40,000), and has 81 after this change, which `tests/test_agents_md_claims.py` enforces.

## Description

- [x] AGENTS.md has a top-level bullet, "Open Tools Before Internal Code", that replaces the buried sentence. Before building a capability the author names the open tool or library that covers it. Building instead needs a written cost in the issue or pull request: the tokens to implement it, to maintain it and to fix it until it matches the tool, plus the elapsed time. A plan that prescribes a build is a proposal.
- [x] The feature request form requires "Existing Tool Considered" in place of the optional "Alternatives Considered", and asks for the same cost.
- Not done: the roadmap refine prompts and the builder and reviewer briefs ask the same question. They change the structured reply of the in-cluster refine job, so they follow with the OpenSpec work that realigns refine.

## Acceptance Criteria

- [x] AGENTS.md has the bullet, the old sentence is gone, and `tests/test_agents_md_claims.py` passes.
- [x] The feature request form requires "Existing Tool Considered" with the cost prompt.
- [x] `devops ci` passes.