Skip to content

fix: reject empty remote collection values - #417

Merged
StepenkoAnatoli merged 1 commit into
mainfrom
fix/issue-287-empty-remote-values
Oct 16, 2026
Merged

StepenkoAnatoli merged 1 commit into
mainfrom
fix/issue-287-empty-remote-values

Conversation

@StepenkoAnatoli

@StepenkoAnatoli StepenkoAnatoli commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Empty --repository=, --topic=, --client-ref=, --prior= and --prefer= now fail by name before output-directory creation or token lookup. The same refusal covers a separate empty argument and bare optional value flags.

Fixes #287.

what changed

Added repository, topic, client-ref, prior and prefer to collect-remote's existing value validation. Added CLI regressions for empty equals/separate spellings and bare optional flags, and kept the architecture map, changelog and test inventory current.

why

Fixes #287. Invalid empty input reached output-directory creation and token lookup instead of being refused by name. This uses the existing value checker and leaves absent-required-flag and run-pickup behavior intact.

what it touched

research-kit/bin/collect-remote.mjs, research-kit/test/cli.test.mjs, docs/ARCHITECTURE.md, CHANGELOG.md and research-kit/README.md. No new flags, file formats or collection routes.

what you verified

verified: before-fix CLI probes reproduced token lookup for empty repository, topic and prior values. verified: root preflight PASS and handoff OK on the current base. verified: the ordinary git commit gate ran the full staged offline suite and allowed commit 6e0021a. The local gate permits unavailable capabilities under ADR-0108 and deletes its detailed result; passed/unsupported totals are therefore not claimed here. verified: before-fix CLI group had 127 passed and the one added regression failed in cwd Research-Kit-issue-287. verified: all seven required CI jobs passed for head 6e0021a2ed514a8e4fa77ae10b07624482098bd7 in offline-suite run #776. The completed Node 24 log reports 1,846 passed, 0 failed in 180.0s.

what you got wrong and fixed

nothing to report. The deliberate red regression reproduces the existing issue, rather than an implementation failure.

what changed
Added repository, topic, client-ref, prior and prefer to collect-remote's existing value validation. Added CLI regressions for empty equals/separate spellings and bare optional flags, and kept the architecture map, changelog and test inventory current.

why
Fixes #287. Invalid empty input reached output-directory creation and token lookup instead of being refused by name. This uses the existing value checker and leaves absent-required-flag and run-pickup behavior intact.

what it touched
research-kit/bin/collect-remote.mjs, research-kit/test/cli.test.mjs, docs/ARCHITECTURE.md, CHANGELOG.md and research-kit/README.md. No new flags, file formats or collection routes.

what you verified
verified: before-fix CLI probes reproduced token lookup for empty repository, topic and prior values. verified: root preflight PASS and handoff OK on the current base. expected: the normal commit gate will run the full offline suite and check the staged architecture map and inventory; final results accompany the PR.

what you got wrong and fixed
nothing to report. The deliberate red regression reproduces the existing issue, rather than an implementation failure.
@StepenkoAnatoli
StepenkoAnatoli merged commit a332996 into main Oct 16, 2026
7 checks passed
StepenkoAnatoli added a commit that referenced this pull request Oct 16, 2026
Preserve the eight reviewed source heads from #417 through #424 after all seven integration checks passed.
@StepenkoAnatoli
StepenkoAnatoli deleted the fix/issue-287-empty-remote-values branch October 17, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

collect-remote: --topic= and --repository= (empty value) pass the required-flag check and would dispatch an empty topic or repository

1 participant