Low findings from the Nov 4 reviews: version-pinned messages, unstated vintages, cog_suggestions() edges #84
Open
opened 2026-11-13 10:41:48 -05:00 by jared
·
1 comment
No Branch/Tag Specified
main
ci/mirror-canonical-tags
chore/release-47-badges-mirror-pr
docs/readme-perf-remeasure-56
feat/pagination-search-balances-57
feat/duckdb-threads-60
feat/cohort-predicates-58
fix/windows-backslash-paths
ci/mirror-to-github
ci/github-actions-matrix
feat/public-release-0.3.0
chore/fixture-sb203
ci/apt-https
fix/pushdown-pagination
feat/all-categories-37
fix/partial-coverage-signposting-9
fix/schema-v7
fix/cog-categories-balance-subtype
feat/cog-balances-25
feat/revenue-concepts-12
feat/expenditure-concepts-11
feat/coverage-disclosure-13
feat/complete-argument-18
fix/kodor-batch-14-15-16
fix/all-scoped-series-breaks-19
fix/regen-fixture-corpus-18
test/walkthrough-findings
feat/expenditure-concept
fix/3-url-trailing-slash
feat/phase-r3-signposting
fix/fixture-option-b-aggregates
feat/phase-r2-harmonization
feat/phase-r1-forward
feat/cog-gov-search-basket-mode
v0.4.0
Labels
Clear labels
kodor
kodor/feature-proposal
kodor/fix
kodor/needs-review
kodor/triaged
madison-walkthrough
severity/high
severity/low
severity/medium
south-guide
verdict/defect
verdict/definitional
kodor
kodor/feature-proposal
kodor/fix
kodor/needs-review
kodor/triaged
Kodor should process this issue
Kodor has written a feature proposal
Kodor should implement a fix (assigned to Kodor)
Kodor's work or failure needs Jared's review
Kodor has already triaged this issue (skip)
Surfaced while building the client-facing Southern API guide
needs
human
Cannot move without a person -- a decision, a check an agent cannot make, something outside the repo
origin
client
Came from a client ask
origin
obligation
Created by a change elsewhere
origin
review
Came from human review
origin
roborev
Promoted from a roborev finding
type
chore
Maintenance with no behaviour change
type
debt
Owed work -- docs, tests, cleanup a change obligated
type
decision
Needs a decision before work can proceed
type
defect
Something is wrong
type
feature
New capability
ws
api
Query verbs and results
ws
corpus
Corpus, mirror, provenance
ws
docs
Vignettes and guides
Assign a task to kodor
Kodor thinks this needs a feature.
Kodor should fix this
Kodor thinks the user is ready to review this.
Kodor is done with this issue.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Civilytics/uscogdata#84
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Six low findings from roborev reviews 9759 and 9758 of the 2026-11-04 work, promoted so they survive. Each was checked against current main on 2026-11-13.
From review 9759 (
c363e19, coverage advice)R/session.R:120says "not found in v0.1 corpus", andR/search.R:211says "(v0.1 scope)". DESCRIPTION is at 0.4.0. Drop "v0.1" from both, and relax the regexes that still accept it (tests/testthat/test-search.R:41,47,tests/testthat/test-spending.R:57).R/peers.R:268andR/rollup.R(567 / 393 / 32 / 142) don't say which corpus build they come from, though the paragraph above them does ("corpus build of 2026-10-26"). Add it, then re-run roxygen.tests/testthat/test-coverage-disclosure.R:116-121still calls FY2012 "complete" and says most of the gap is sheriff-contract cities. Nothing in the corpus measures that. Reword it to what the counters support.From review 9758 (
2392808, cog_suggestions())cog_suggestions()never calls.check_govids_in_scope(), so a typo returnslist(), which is also what "nothing qualifies" returns, with no hint. Either call it, or document that unknown ids are ignored. Needs a call: should a typo warn here the way the verbs do?R/suggestions.R:90). Its output equalsprovenance$suggestionsonly at the defaultbasis = "harmonized"with norecipe. Bothbasis = "raw"andrecipe =calls attach an empty list. Qualify the claim.R/suggestions.Ris 681 lines, and.validate_suggestion_inputs()is about 78. Move the public surface (cog_suggestions(),.SUGGESTION_FLOWS, the validator) intoR/suggestions-api.R, and split the validator into two helpers.Items 1-3 and 5 are documentation or message edits. Item 4 needs a decision first; item 6 is a refactor.
From review 9760 (
b6b3e46, fiscal periods, #77)Four more findings, each checked against current main on 2026-11-13.
cog_fiscal_periods()andcog_survey_year()never call.check_govids_in_scope(), so a typo returns a row of NAs that reads as missing data. Same question as item 4: should a typo warn here the way the verbs do?cog_explain()is silent about fiscal periods. When a result carriestransformations$fiscal_period, neitherR/explain.Rnorinst/schemas/provenance-v1.jsonmentions it, including how many rows got no period.R/fiscal.R:362: when every date passed in is NA,cog_survey_year()returnsfiscal_year_endas logical. Wrap it inas.integer()likeyearbeside it..fiscal_year_lookupsends one quoted id per row. Plausibly slow for a cohort the size of every city; not measured.Items 7 and 4 are the same decision and should be made together.