fix(setup): preserve Cordis ownership across uncertain patch structure
Separate stable registration ownership from setup editability. Keep group-owned rows removable, retain expression-backed structures without edits, and reject malformed literal patches before setup writes. Preserve foreign rows and backups during uninstall. Correct stale alias fixtures to use valid Harness patch rows and remove redundant alias coverage. Validation: 78 configuration boundary tests, 6 public setup/uninstall CLI tests, full static checks, and docs checks passed. Harness behavior was verified from pinned source; no real Harness runtime verification is claimed.
This commit is contained in:
@@ -310,6 +310,15 @@ const removeClient = async (
|
||||
// still belongs to that id, and so does a direct patch that projects no row.
|
||||
const carriesDshEntry =
|
||||
parsed.dialect === "dsh" && dshDocument(parsed.document).carriesEntry;
|
||||
if (
|
||||
parsed.dialect === "dsh" &&
|
||||
dshDocument(parsed.document).hasUnknownStructure
|
||||
)
|
||||
return item(
|
||||
client.name,
|
||||
"retained",
|
||||
"A Cordis expression may produce registration rows, so the patch was retained without changes.",
|
||||
);
|
||||
if (!hasNative && legacyPath === undefined && !carriesDshEntry)
|
||||
return item(client.name, "skipped", "REA registration is absent.");
|
||||
const removeNative =
|
||||
|
||||
Reference in New Issue
Block a user