Skip to content

Latest commit

 

History

History
91 lines (70 loc) · 22.7 KB

DEFERRED.md

File metadata and controls

91 lines (70 loc) · 22.7 KB

Deferred Work

Items here are deferred or not scheduled; each names the condition or decision that would reopen it. They do not authorize implementation: PLAN holds open work, and an item moves there only by the owner's decision. Designs decided against live in REJECTED. PRODUCT owns supported requirements.

Windows

  • Accept UTF-16 configuration and workspace files, and add PowerShell equivalents of the jq recipes, only when Windows users ask for them. The Windows support record owns the rationale.

Built-in Detection

  • Deferred framework conventions: Storybook stories and Jest manual mocks, deferred by the owner on 2026-10-23 because their purpose needs a decision and other ecosystems were not searched; and requirements.txt as a Python descriptor, which needs its own evidence because documentation and tool folders carry such files too. The archived proposal records the measurements.
  • Deferred generated-code markers, each measured precise in at most one application: Django's migration header, which also stays on migrations with hand-written data code; OpenAPI Generator's .openapi-generator/FILES manifest, whose format is documented only in a log excerpt; @generated and __generated__/; and tool-specific headers such as jOOQ's, swag's and the protocol buffer compiler's. Add one only with measurements of its own on applications and on its generator's repository; Kotlin's @Generated is unmeasured. The archived proposal and the measurement record keep the evidence.
  • ignore directives in go.mod, which go help packages also excludes from ./...: the Go layout does not read them, because detection reads file names, not descriptor contents. Reopen when a measured project relies on one; the Go layout record quotes the rule.
  • Candidates from the policy test drives, each seen in one to four projects and without a decision: Gradle buildSrc and Maven failsafe test conventions, reasons on scope exclusions, rules that apply only to files no other stage decides, and Rstest's rstest.config.* runner configuration and snapshot files, missing beside the Vitest, Jest, Playwright and Cypress conventions in one workspace on 2026-10-25. The except list shipped with the policy entry review. A built-in candidate needs the research checks before it is proposed.
  • A cargo-fuzz convention for fuzz/fuzz_targets/** as test:fuzz, a draft: the Cargo layout leaves those targets unclaimed because fuzz/Cargo.toml declares them as [[bin]] paths, which detection does not read. Seen once, in the Tokei fork on 2026-10-31. Reopen with measurements on real cargo-fuzz projects in both directions, and a search for fuzz_targets folders that are not fuzz targets.
  • Reading Lake files to tell test drivers from library modules: the Lake layout claims every .lean file, and Lean projects whose tests are plain modules set builtin_modules = false. Detection reads file names, not descriptor contents, as for the go.mod item above; reopen only with a decision to read descriptors.
  • Built-in language corrections for project-independent names, in a set selected by version: add one only when a name recurs across measured projects. The first one observed, proguard-rules.pro, needs none since fork 15.0.0+locmetry.42 leaves ProGuard rules unrecognized (language corrections).

Configuration and Categories

Requests from three projects categorizing their tests on 2026-10-24; the policy entry review implemented the rest.

  • An exact nonblank line count per file, for size rules written in nonblank lines: blank lines inside comments and multi-line strings count with them, as in Tokei, so lines - blanks exceeds the nonblank count by a few lines in files with such blocks (up to 135 lines in Django's files with the largest docstrings, measured 2026-10-31). Asked about once, by a private Lean project; the reports guide states the difference. Reopen with a second request, after checking how cloc and scc count those lines.
  • Category groups with subtotals, such as a law group over several law categories, asked for by two projects and on 2026-10-25 by a third, a Lean project that computes estate shares over groups of categories in a script. --table-category 'test:*law*' already shows the selection's subtotal as the language table's Total, and jq over summary.source_categories computes a group in JSON. Reopen when a group subtotal is needed in JSON or several groups in one table.
  • Categories of data files in tables. Full JSON breakdown has them, while --show-categories covers source. Reopen when fixture growth becomes a recurring review question, together with a decision on the source-only table contract. On 0.11.1 all three projects categorizing their tests again tallied data and documentation categories from JSON (0.11.1 feedback round), so the question recurs; the table-contract decision remains.
  • Inline test hints in other languages, such as Lean example and #guard declarations in production files, reported like Rust's inline_tests without changing purposes. Reopen when a second Lean project asks.
  • Content predicates on refinements, such as "mostly theorem declarations", which only change a category. Reopen after refinements ship, when a project's categories cannot be expressed by paths. Met on 2026-10-25: a12-rulekit defines test lanes by JUnit @Tag and bpmn-lean-experiment separates theorem files from definition files in one folder, both approximated by name globs. Both asked for content matching on refinements only, so file contents never move purpose totals. The experiments set its scope: a regex that matches when any line matches covers the tag case, while counting declarations, as theorem-dominant mixed Lean files would need, stays out. It needs a proposal. On 0.11.1 both projects asked again, and in a field-sized synthetic project every one of seven agents read test sources for tags while four still labelled untagged unit tests by name (0.11.1 feedback round). bpmn-lean-experiment proposed a second design for the proposal to weigh: a category attribute in .gitattributes that the project's own tooling writes, read like linguist-generated, which covers files only counting declarations can classify but goes stale silently. Not proposed on 2026-10-26, a decision taken under the owner's delegation: the evidence above is about correctness, not efficiency. Agents read the sources for tags anyway, so a predicate would spare them wrong claims by name, not calls or reading. Propose it when wrong claims by name are the problem to solve, with an A/B that measures false claims as well as cost on the field-sized project.
  • A display name on language mappings, so a mapping counted by another counter reports its own language, such as .tsv fixtures counted with the JSON counter as data and reported as TSV. Two projects asked on 2026-10-25 for such files to count as data rather than documentation. Mapping them to JSON already does that, at the cost of the reported name; a kind field alone would keep Plain Text's all-comment line split (experiments). Reopen together with the display name for language corrections below, when a project needs the name. On 0.11.1 a12-rulekit's .api dumps and the private Lean project's TSV tables came up again, and three of seven agents in an experiment left a TSV unmapped because Plain Text would count it as documentation (0.11.1 feedback round).
  • A refinement filter on the deciding rule, such as decided_by = ["builtin:test-directory"] for files in test folders without test cases, which today copies the convention's suffix list into except. One request on 2026-10-25; on 0.11.1 a12-rulekit and bpmn-lean-experiment both asked (0.11.1 feedback round), which meets the condition. It needs a proposal, best together with content predicates and entry references in except, since all three narrow what an entry matches.
  • References to other entries in except, such as except_entries = ["observation-bundles"], so an entry leaves out the files another one matches without copying its globs, which drift apart. bpmn-lean-experiment and the private Lean project asked on 0.11.1 (0.11.1 feedback round); the verbose note on entries that lost files to an earlier entry recommends an except list even for a deliberate catch-all, which causes the copies. It needs a proposal, together with the deciding-stage filter above.
  • Reasons for unused patterns, such as a pattern whose only matches are symbolic links selection does not follow, which today reads as a typo. One request on 0.11.1 (0.11.1 feedback round). Reopen with a second.
  • Orthogonal tags beside the category, which must not break the guarantee that categories add up to purpose totals. Reopen when a second project needs a second axis.
  • Test/prod between two chosen categories rather than purposes. Reopen with a second request.
  • decision.also_matched in explain, listing the entries that match a file without deciding it. summary.policy_entries reports such files per entry as preempted, and --files shows which entry decided each one. Reopen when reviewers need the per-file view to untangle entry order. On 0.11.1 a12-rulekit asked for a cheaper form, a few example paths under preempted and displaced (0.11.1 feedback round); reopen with a second request for either.
  • Accepting reference category names without a declaration in [categories], with reports recording their reference meaning. It would change validation and the effective-policy snapshot, as the category reference explains. Reopen when the vocabulary of --guide categories has held unchanged for a release and a contract defines which meaning wins when a project declares a reference name differently. Since 2026-10-25 the error for an undeclared reference name states what the reference uses it for, which bpmn-lean-experiment confirmed on 0.11.1 while asking again for accepted names.
  • Hints in reports when a policy uses a name the category reference replaces, such as benchmark for performance. Reopen when the vocabulary has held unchanged for a release. On 2026-10-25, agents asked to update two workspaces' policies to make the best use of LOCmetry 0.11.1 kept five replaced names from the originals (benchmark, archived-evidence, research, doc-snippet, fixture), since nothing named the replacement; the vocabulary is unchanged since 0.11.0.
  • A display name for a language correction, so a DSL whose comment syntax matches a counter language is counted with that parser but reported under its own name. Reopen when a second project needs one. On 2026-10-25 the public a12-kernel workspace, measured at the commits of its 2025.06-ext5 release, left 47 ANTLR grammars unrecognized, which a C-family counter could count by their // and /* */ comments only under that counter's name; its 529 StringTemplate files match no counter's comment syntax.
  • A reason on language mappings, which entries and corrections already carry, so a mapping's evidence reaches reports and explain. Asked for on 2026-10-25 by an agent that mapped snapshot and fixture formats. Reopen with a second request.
  • Reference rows for conformance, which a12-rulekit and the private Lean project both declared for spec or corpus suites on 0.11.1, and guard, which a12-rulekit declared for repository drift checks (0.11.1 feedback round). A reference name needs the research checks before it is added; conformance has the two projects to start them.
  • A count of unclaimed documentation and data in the verbose notes, and an exit status that fails on unclaimed or unused policy, asked for by the private Lean project on 0.11.1, which wrote its own guard (0.11.1 feedback round). review stays source-only, since documentation reaches the fallback as a matter of course, and jq -e over the JSON findings already gates. Reopen with a second request.
  • A typed purpose in the policy audit's displacements, which today key and merge by the purpose:category string and parse the purpose back for notes. Custom serialization would keep the report's string unchanged. Reopen when a category may contain : or another consumer needs the purpose, weighing the conversion code against the parse.
  • Keeping the category a refinement replaced as runtime-only evidence on file records, which contract::File would not serialize, so the audit stops reclassifying each refined file. Reopen when timings show the audit's extra classification matters; the 2026-10-24 cleanup did not demonstrate that it warrants optimization.

Guides and Help

Excluded by the guide sections proposal and its agent runs.

  • Splitting the reports guide (19 KB, 9 sections) into more topics. Self-contained sections give small reads without more routing choices. Reopen if routed reads of its sections prove too coarse.
  • Trimming the categories guide's "Write a Reviewed Policy". Its kind = ["source"] advice has no other home yet. Reopen when that advice has one.
  • One command that reads guide sections and schema definitions together. Routes read them in separate commands, which cost the configuration tasks about one call per session in the adoption decision. Reopen if calls, rather than uncached input or time, become the binding cost.

Manual Page and Completions

Excluded by the manual page proposal.

  • Guides as man pages in section 7, as git does (man locmetry-configure). Their tables, such as the category vocabulary and the index, need a Markdown-to-roff converter with table support; --guide remains their home. Reopen if people ask for man access to the guides, with a table-capable renderer checked on narrow terminals.
  • Separate man pages per command. Reopen if commands gain nested subcommands.
  • A worked Lean case in the categories guide, covering proofs, conformance locks and differential replay. Two Lean projects categorized their tests on 2026-10-25. Reopen when the owner wants the case.
  • Condensing each option's text in --help to one line, with detail moved elsewhere. It would change what agents read; reopen only with a measured experiment of its own.

Display

  • Folder-partition convergence remains deferred: adaptive folder detail and JSON unclassified_folders intentionally use different policies. Revisit only if a workflow demonstrates confusing divergence, with explicit compatibility review. The adaptive-folder decision owns the rationale.
  • JSON finding grammar, such as “1 unrecognized files”, remains an optional separate cleanup. The comparison-readability changes intentionally preserved JSON message text. The same applies to comparison coverage_gap messages that call a folder with unrecognized files one that “contains unavailable counts”, the measurement reports' term for read and parse failures; an agent read dozens of them in one workspace comparison on 2026-10-25, while human output summarizes them in one line.

Measurement and Comparison

Candidates from the 2026-10-16 measurement review; the retired follow-up record keeps their prior-art references.

  • Minified-code evidence: report suspicion with the exact property or threshold that triggered it, keeping totals and selection unchanged; generated-code markers shipped on 2026-10-23 (generated-code markers). Reopen with a real scope problem, after agreeing on sample inputs, false-positive checks and scan cost.
  • Duplicate-content evidence: exact-content groups that keep physical totals, since equal bytes can serve different purposes or members; no fuzzy clone detection or unique-content metric without its own contract. Reopen when a consumer needs to locate copied content.
  • Binary and encoding policy: establish current-source fixtures before changing defaults, since a NUL heuristic can reject text encodings. The attribution sweep of 2026-10-31 found four binary files counted under text extensions and real text that a NUL test would reject, such as NUL-padded assembly and UTF-16 without a byte order mark. Reopen when a measured project counts binary content that matters.
  • Git history analytics such as hotspots, coupling and authorship, which bring history-window and identity semantics beyond saved measurements. Reopen with a concrete history workflow existing tools cannot serve.
  • Complexity, unique-line and cost metrics, which need independent definitions and validation and do not establish effort or quality. Reopen with a named decision that needs one and an agreed validation corpus.
  • An MCP interface, which would have to share policy and result semantics with the CLI. Reopen when a client cannot use the CLI, JSON and schemas adequately.
  • HTML, CSV, SQL and OpenMetrics output. Reopen with a named consumer whose needs existing output cannot meet.
  • Streaming and resource limits, which change ordering and detail and must never truncate scope silently. Reopen with a reproducible memory, latency or oversized-file problem on a representative corpus.
  • Comments after non-ASCII whitespace, such as an INI ; after a no-break space or a Rust // after U+200E, count as code: the fork skips only ASCII blanks before a comment, and its blank symbols cannot all be skipped there, as C's \ is no blank before //. No judged corpus holds one (step 6 record). Reopen when a measured file does.
  • Judges for the languages Tokei recognizes beyond step 6's scope, which covered the 39 ranked languages, the next tier of popular languages, and build, configuration and template languages. Others were corrected against tree-sitter in steps 1 to 5 only, such as Elm, PureScript, Agda, Racket, Scheme and Lisp strings and Twig, Blade, Handlebars and ERB text, or not measured at all. Reopen for a language when a measured project reports a miscount in it or the owner adds it to the judged scope; the step 6 record shows how each judge was chosen.
  • Content checks for the remaining extensions that GitHub Linguist assigns to several languages but the fork still gives to one, such as .cls (Visual Basic 6, also LaTeX and Apex), .cl (OpenCL, also Common Lisp), .re (OCaml, also re2c and Reason), .ftl (FreeMarker, also Fluent), .l, .x, .p, .scm and .ml, and those where only the name differs in the measured repositories: .cfg (Forge Config, mostly INI), .d (D, also DTrace), .cmm (Lauterbach PRACTICE, also C--) and Tcl programs starting with #!/bin/sh, counted as Shell (attribution sweep). The shared-extension measurement found no file of another language with them in the step 6 corpora except Tree-sitter queries and a few Standard ML files. Reopen when a measured project holds such files, measuring each rule in both directions as that record did; a language correction covers a project until then.
  • Alex and Happy comments: both declare no comment syntax, so their Haskell -- and {- -} comments count as code, as in GHC's Parser.y; kept deferred by the owner on 2026-11-01 because both are niche and a correction needs a judge built on their own lexers. Reopen when a measured project depends on Alex or Happy grammars, or such a judge exists.
  • Recognizing popular languages' files that the fork leaves unrecognized and LOCmetry reports as such: Perl .t tests, .xs and .plx files, JSP files (.jsp, .jspx, .tag), Elixir .eex templates, Haskell .hsc and .lhs files, Scala .sbt and Ruby DSL files such as Podfile, found by the attribution sweep. .t needs a content check, as Raku, Turing and Terra write .t files too. Reopen by the owner's decision for a language, measuring each rule in both directions.
  • Pull requests to upstream Tokei for the fork's corrections, offered in discussion #1394. Reopen when its maintainers ask for one, sending each correction with its regression fixture.
  • Archive or remote input, custom lexers and more platforms. Reopen with a representative use case and a feasible test and release matrix.

Command-Line Options

  • Ineffective-option compatibility policy: blanket rejection remains deferred. Reopen only with a separate compatibility assessment of reusable option sets, terminal-to-pipe transitions and existing script expectations. The single-format option rule of 2026-10-25 replaced the warning with format selection for options of one format when neither --format nor --output decides; the policy for the remaining cases stays deferred.
  • A reminder in default tables when the policy has unused entries, patterns or exclusions, asked for on 2026-10-25 and again on 0.11.1 by bpmn-lean-experiment (0.11.1 feedback round). Default tables carry no routine findings by the default report output decision, so --verbose names them. Reopen only together with that decision.
  • Accepting isolation options such as --no-user-config beside --guide and --schema, which as standalone queries reject them: an agent that passes --no-user-config on every command lost a call to the error on 2026-10-26 (second route). Reopen with a second occurrence.
  • File-detail option naming: retain --files; revisit --include-files only if task evidence shows recurring confusion with input selection.