Repository navigation
Description
Four more readers of a project manifest's legs: should read it the way #714 (#826) makes the three gates read it. A legs: that is not a list is the manifest-legs finding, and an entry that is not a mapping is manifest-leg: a leg is not a mapping: …. It is never a TypeError traceback, and never a project with no legs.
From lane 3's RV826 review of #826 (#714), S4 (#826 issuecomment-6236637437). It was measured on #826's head cf376b7a, and RV826 asked for it to be filed as a v1.1.1 follow-up. Lane 4 files it, because #714 is lane 4's.
Parent: #714 (#826). Milestone: v1.1.1, which lane 3, the release owner, may move.
Lands after:
- validate-repository-naming.py, validate-manifest.py and validate-pins.py: a
legs:that is not a list ismanifest-legsin every gate, a chain link or pin that is not a name is a finding, and the naming gate never reads stdin under--project(#714) #826 (validate-repository-naming.py and validate-pins.py: a manifest'slegs:that is not a list ends in a TypeError or waits on stdin, a chain link that is not a name passes, and--explainends in a UnicodeEncodeError on a name that is not UTF-8 #714): the finding words and the idiom come from it. - repo_shape.py strips only YAML's space and tab, so a value a Unicode space opens reads as PyYAML reads it, and validate-manifest, bootstrap, bump-leg and update-shape refuse a branch holding a character that does not print or is white space (#715) #823 (repo_shape.py's YAML reader: Unicode spaces are stripped from text YAML keeps, the empty block key and
k: {?: 1}still read, and three texts about the reader are one word out of date (what #635 left) #715) and bootstrap.py: step (a) decodes git's output as the system decodes a name it is given, so a branch whose upstream is not UTF-8 is moved back, and a good branch this system's encoding cannot write gets a line of its own, not a traceback (#710) #824 (bootstrap.py and repo_shape.py: a leg on a branch whose name is not UTF-8 makes every latermake bootstrapend in a UnicodeDecodeError, and a character the filesystem encoding lacks still ends step (a) in a traceback #710): both changetemplates/assembly-root/scripts/bootstrap.py.
Effort: S–M: #714's idiom at four more sites. Platform: all.
Files:
shape-doctor.py(at the repository root);templates/assembly-root/scripts/bootstrap.py, a pinned shape copy, whichupdate-shape.py checkwill show asupstream-changed;scripts/bump-leg.py;update-shape.py(at the repository root).
The four sites. Each iterates legs or [].
shape-doctor.py:1182(Context.legs):legs: 5ends in aTypeErrortraceback.legs: openXdox,{a: b}and[5]give alegsrow ofn/a, "a one-repository project has none", which is untrue of each.
templates/assembly-root/scripts/bootstrap.py:1111: aTypeError. It is a pinned copy shipped beside the three gates validate-repository-naming.py and validate-pins.py: a manifest'slegs:that is not a list ends in a TypeError or waits on stdin, a chain link that is not a name passes, and--explainends in a UnicodeEncodeError on a name that is not UTF-8 #714 fixes.scripts/bump-leg.py:205: aTypeError.update-shape.py:2504(on mainfc86720, moved from:2461by d17564d): aTypeError.
Expected:
- Each refuses by name, or reports the finding in validate-repository-naming.py and validate-pins.py: a manifest's
legs:that is not a list ends in a TypeError or waits on stdin, a chain link that is not a name passes, and--explainends in a UnicodeEncodeError on a name that is not UTF-8 #714's words, with the value spelled. - The doctor's
legsrow says the manifest'slegs:is not a list, rather than that the project has no legs. - A test per site covers
5,openXdox,{a: b}and[5].
Corrected 2026-10-17T20:15:56Z (lane 3's RV826, #826 issuecomment-6240291087, NIT 2):
- The doctor and
update-shape.pyare at the repository root, not underscripts/. update-shape.py's site is now:2504.- One more doctor point. On the doctor's naming row, the lead "the naming policy is not satisfied" now introduces a
manifest-legsfinding, since validate-repository-naming.py, validate-manifest.py and validate-pins.py: alegs:that is not a list ismanifest-legsin every gate, a chain link or pin that is not a name is a finding, and the naming gate never reads stdin under--project(#714) #826 makes the naming gate reportmanifest-legsfor alegs:that is not a list.
Activity
brettheap commentedon Oct 17, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-17T19:15:44Z, for #832
Logged in
lanes/log/openRepoShape-4.mdatd6e8d4cda3294234471b752e978cf0ae101ce55c.The three reads (lane-collision-protocol Rule 1):
validate-repository-naming.py, validate-manifest.py and validate-pins…
#862 round 1: absent, null and `[]` are held to each reader's old sen…
tests/test_legs_readers_not_a_list.py: with #826 merged, the doctor e…
shape-doctor.py, bootstrap.py, bump-leg.py and update-shape.py: a `le…
Merge main acc5a7b into fix/864-members-not-a-list: #862 (#832) has l…