mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5895] mari db CLI misparses row ids that start with '-' as flags (intermittent CI red + un-addressable rows) #3252
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5895
Originally assigned to: @SpicyMarinara on GitHub.
In one sentence: nanoid IDs can legally begin with
-, and themari dbCLI parses such an ID as a flag — making every id-positional command (patch,get,delete…) fail with a usage error for ~1 in 64 generated rows, which also intermittently fails theopen-issuesregression lane in CI.Caught in the wild
CI run 34044151642 (
complete-node-regressionson an unrelated PR):The entry's generated id was
-EwXN_y0nAZbMu0baN4O; the CLI's argv scan treated it as an option, leaving the positional<id>empty. The default nanoid alphabet includes-and_, both position-unrestricted, so roughly 1/64 of all generated ids start with-.Impact
-cannot be addressed positionally bymari db get/patch/delete, so a real user's unlucky row is un-patchable through the CLI until worked around.open-issueslane creates fresh rows each run, so CI eats an unrelated red roughly whenever an unlucky id lands in an id-positional call — the disruptive-flake class of #5788.Fix directions
-(e.g. only treat tokens as flags if they match known option names), and/or support the conventional--end-of-options separator and use it wherever the engine composes CLI calls (parseDirectMariArgv/lane helpers).-, but that hides the user-facing CLI bug rather than fixing it — parser first.@SpicyMarinara commented on GitHub (Sep 7, 2026):
Owner: @SpicyMarinara; Codex is taking this in draft issue-sweep PR #5929. Existing issue-linked branches and open/draft PRs were checked before starting. I will verify the reported behavior against current staging and keep the fix and regression proof focused.
@SpicyMarinara commented on GitHub (Sep 7, 2026):
Fixed in #5929, merged into staging as
4f67630e6after the full regression matrix and completed CodeRabbit review.