Add Copilot Product qualification and fixture ownership checks

Reviewed partition of the current-master Copilot integration. Complete v30 live qualification is retained; current v31 recovery compatibility, CI and review are tracked explicitly.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-08 07:35:27 -05:00
1 parent fcbb80554e
commit c48b89618f
74 files changed
+13325 -58

No files matched your search

+9 -1
View File
@@ -41,7 +41,15 @@ export function createProcessTreeOwner(root: ChildProcess, options: {
for (const pid of anchors) {
for (const group of observeDescendantProcessTree(next, pid).groups) {
if (group.processGroupId !== callerGroup) {
byGroup.set(group.processGroupId, group);
// A descendant traversal can cover only part of an already
// validated group. Keep every observed peer as an identity anchor.
const previous = byGroup.get(group.processGroupId);
const members = new Map(previous?.members.map(member => [member.pid, member]) ?? []);
for (const member of group.members) members.set(member.pid, member);
byGroup.set(group.processGroupId, { ...group,
depth: Math.max(group.depth, previous?.depth ?? group.depth),
members: [...members.values()],
});
if (covered.has(next.find(row => row.pid === pid)!.processGroupId)) covered.add(group.processGroupId);
}
}