mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4790] [Other] Windows nested-job supervision: supported creation-handle integration #2198
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrdenisborisov25-art on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4790
We are integrating Strata into a custom Windows application with an independent process supervisor.
Environment: Windows build 10.0.26300; .NET 10 application targeting net10.0 (the exact loaded servicing patch was not captured). Control 0.1.51, commit
562a0c2ed7; native engine 0.1.50, commit1aff6d1411, Windows x86-64/CUDA 13.0; bundled Python 3.12.15.The supervisor owns a private kill-on-close Job containing a worker and Control. Control also uses its own Job for subprocess containment. During startup, the supervisor enumerated its own Job and called OpenProcess for one returned PID with PROCESS_QUERY_LIMITED_INFORMATION | SYNCHRONIZE (0x00101000), with handle inheritance disabled. This returned ERROR_ACCESS_DENIED (5).
The failure occurred before executable identity and creation time could be established. We therefore cannot identify that PID as strata.exe or attribute the denial to Strata protection. This was observed in our custom integration; it has not been reproduced with the stock launcher.
The supervisor stopped immediately, without retrying or requesting broader access, terminated its own Job, and confirmed an empty Job in two subsequent queries. No generation request was sent.
Does Control provide a supported process-creation or lifecycle interface that would let an independent supervisor retain a creation-time process handle and verify Job membership, creation time, termination and exit code without reopening descendants by PID? The reviewed Windows containment code uses Popen._handle, which is not a public Popen interface.
We need to preserve independent deadlines, resource monitoring and fail-closed cleanup. We are not seeking changes to ACLs, elevation, Windows protections, or a workaround for denied access. Please advise on a supported integration contract and any relevant documented limitations.
@Niko1221 commented on GitHub (Oct 31, 2026):
Control keeps its own kill-on-close job for what it starts (strata_control/runtime.py). There is no interface that hands out a creation-time process handle. The supported ways to follow a run are
strata launch --status/--stopand the HTTP interface in docs/MANAGEMENT_PROTOCOL.md; we have not documented the job layout as a contract. We can look at a documented, supported handle hand-over if you describe what your supervisor needs to verify.@mrdenisborisov25-art commented on GitHub (Oct 31, 2026):
Thanks for clarifying. Our independent supervisor needs to:
For a supported creation-time handle hand-over, what would the ownership/lifetime rules, minimum rights and hand-over point be? How would failures before hand-over be handled?
Which of these guarantees do the existing status/stop commands and management interface provide? Does a successful stop response confirm process exit and descendant cleanup, or only acknowledge the request? An existing supported approach meeting these requirements would also work.
We are not requesting elevation, ACL changes or a workaround for denied access. The earlier denial was observed in our custom integration; we have not attributed it to Strata.
@mrdenisborisov25-art commented on GitHub (Nov 4, 2026):
Hi Niko, just following up on our questions above. We’re still waiting for your guidance on the supported process handle and cleanup guarantees. Could you please take a look when you have a chance? Thank you.