Repository navigation
test(config): observe HTTP install owners (diagnostic, DO NOT MERGE) - #616
agenteinstinct1-max wants to merge 3 commits into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Automated PR Cleanup Thank you for contributing to silvercode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Refs #589. Diagnostic-only draft. DO NOT MERGE, even if CI is green. Supersedes the observation capability of #610 without claiming a production fix.
Type of change
What does this PR do?
Run the existing CI unchanged with an opt-in node:http.request observer, correlating requests made during real Arborist reify promises with generated opaque admission/install IDs. Retain the prior admission-chain observations. No custom outbound headers, raw URLs, payloads or credentials are added to requests or diagnostic events.
The observer preserves the original receiver, arguments, return value and thrown errors. Observation errors are contained. Installation has a single explicit owner; disposal makes captured wrappers inert and restores only while still owned, reporting conflicts rather than overwriting a later wrapper. Tests dispose active observers before restoring the original request function in finally. The integration fixture restores its diagnostic environment flag in finally.
Coverage is node:http.request only. It does not cover all Bun fetch, HTTPS or native networking. Labels are fixed/redacted; IDs contain only generated opaque process/sequence tokens. Hashes in inherited admission diagnostics are not anonymity. Normal settled cleanup is covered, not abandoned Bun hooks or host termination. This is a new request-owner observation attempt, not a repeat of the unchanged #610 nonreproduction, proof of a historical producer, clearance for #600, or a production repair.
How did you verify your code works?
Actual candidate core loaded through isolated local workspace bindings. Final observer mechanics: 2 tests / 26 assertions. Existing Config dependency install target suite: 6 tests / 24 assertions with unchanged 30-second per-test budget. Private real Arborist concurrent redirect probes retain distinct producer contexts, leave outside-context requests unattributed and add no diagnostic headers at either redirect endpoint. Removing the disposed guard makes the captured-wrapper regression fail; restoring it passes.
Independent review of the complete six-file diagnostic diff covered opt-in lifetime, opaque admission binding, redaction, proxy/lifecycle containment and test cleanup. Windows observations remain pending. Existing CI/workflows are unchanged. DO NOT MERGE.
Screenshots / recordings
No UI claim. Diagnostic test logs only. Private TUI artifacts and raw user data are not published.
Checklist