Skip to content

test(config): observe HTTP install owners (diagnostic, DO NOT MERGE) - #616

Closed
agenteinstinct1-max wants to merge 3 commits into
dev-vibecodedfrom
diagnostic/http-request-owner
Closed

agenteinstinct1-max wants to merge 3 commits into
dev-vibecodedfrom
diagnostic/http-request-owner

Conversation

@agenteinstinct1-max

Copy link
Copy Markdown
Collaborator

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

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

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:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

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.

@github-actions github-actions Bot closed this Nov 25, 2026
@github-actions github-actions Bot added the automated-pr-cleanup PR was closed by automated cleanup label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-pr-cleanup PR was closed by automated cleanup needs:issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant