Skip to content

fix(star): every empty list in a command's result is [], not null (#1215) - #1216

Merged
David-Noble-at-work merged 2 commits into
developfrom
fix/1215-empty-list-not-null
Nov 9, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
fix/1215-empty-list-not-null

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #1215.

Test plan

Written with AI assistance.

Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code

Time

Marker UTC Elapsed
opened (first commit) 2026-11-09T00:35:09Z —
submitted (PR opened) 2026-11-09T00:35:17Z 0 h after opened
merged 2026-11-09T00:50:24Z 0.3 h after submitted; 0.3 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

…sult as null

Step 14 of NobleFactor/noblefactor-engprod#346, ahead of #379 and #436, which it blocks. A list is always a list,
[] when it is empty, ruled 2026-11-08; goSlice starts from an empty slice, and a test pins it.
goSlice declared its slice nil, so a list with no elements stayed nil and JSON wrote it as null, at every depth of a
command's result: anything that looped over it failed. It starts from an empty slice now. result_test.go is the first
test of goValue: an empty list, an empty tuple, one in a dict and one in a list encode as [], and None as null.
@David-Noble-at-work
David-Noble-at-work merged commit 1ae1da7 into develop Nov 9, 2026
26 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/1215-empty-list-not-null branch November 9, 2026 00:50
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.

star writes an empty list in a command's result as null

1 participant