mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 20:46:28 +01:00
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:
1 parent
fcbb80554e
commit
c48b89618f
74 files changed
+13325
-58
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user