Skip to content

fix(architecture): refuse reformatted landscape records as empty (#4640) - #4710

Merged
cursor[bot] merged 6 commits into
mainfrom
cursor/4640-landscape-layout-refuse-37e9
Sep 27, 2026
Merged

cursor[bot] merged 6 commits into
mainfrom
cursor/4640-landscape-layout-refuse-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #4640

Summary

map-landscape line readers treated compacted/pretty-printed valid JSON as empty. Renderer and drift check now refuse non one-object-per-line layout with exit 1 and a regenerate message. Empty arrays still work.

architecture → 0.11.2.

Test plan

  • render-landscape 120/0; record 81/0; new cases fail on main (per implementer)
Open in Web Open in Cursor 

… of reading it as empty (#4640)

render-landscape.sh and landscape-record.sh --drift-against match record
objects by line, so a valid JSON record compacted to one line or printed one
key per line read as empty: an empty landscape at exit 0, or every repository
and edge reported as added. Both now check the layout after the schema check
and exit 1 with a message naming the problem. Genuinely empty arrays still
read as empty.

Co-authored-by: Kyle Sexton <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Fix" section. State the concrete change and how it addresses the problem.
  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@cursor
cursor Bot marked this pull request as ready for review September 27, 2026 22:55
cursoragent and others added 5 commits September 27, 2026 23:08
The DLSS selftest's user-only Set-Acl deny still lets an elevated runner
list the folder, and Windows often leaves the error TargetObject empty, so
the four unreadable-folder assertions never match.

Co-authored-by: Kyle Sexton <[email protected]>
DirectoryInfo.SetAccessControl is absent in PowerShell 7, so the Windows
selftest threw before the deny cases ran. Write the same user,
Administrators, and Everyone list deny through FileSystemAclExtensions.

Co-authored-by: Kyle Sexton <[email protected]>
A Deny ACE, including one for Everyone, still lets the elevated Windows
runner list the folder. Hold the directory open with no sharing so the
next Get-ChildItem fails with a sharing violation, and recover a quoted
path from the error message when TargetObject is empty.

Co-authored-by: Kyle Sexton <[email protected]>
The runner's pwsh has no FileOptions.BackupSemantics, so the selftest
threw before the sharing lock was taken. Open the directory with
CreateFileW and FILE_FLAG_BACKUP_SEMANTICS instead.

Co-authored-by: Kyle Sexton <[email protected]>
@cursor
cursor Bot merged commit 4e4ac27 into main Sep 27, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/4640-landscape-layout-refuse-37e9 branch September 27, 2026 23:47
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.

fix(architecture): map-landscape reads a reformatted record as empty, exit 0

2 participants