Skip to content

feat(advisor): auto-propose supervisor network failures - #20

Closed
craig-kindo wants to merge 2 commits into
mainfrom
feat/advisor-infrastructure-events
Closed

craig-kindo wants to merge 2 commits into
mainfrom
feat/advisor-infrastructure-events

Conversation

@craig-kindo

@craig-kindo craig-kindo commented Oct 10, 2026 •

Copy link
Copy Markdown

Summary

Move advisor lane triggers into the supervisor. Network denials and upstream certificate-verification failures now submit pending gateway proposals before returning structured failure bodies to the sandbox agent, so the agent can relay the event and wait for review without recognizing error shapes or constructing a proposal.

Related Issue

Owner-directed change following PR #19. This repository has GitHub Issues disabled.

Changes

  • Submit exact-endpoint destination or CA drafts through the existing gateway proposal pipeline; reuse a pending proposal for repeated failures at one host and port within a sandbox session.
  • Return an advisor object on CONNECT, forward, and inspected REST denials and on upstream TLS failures, including the mechanical event, remedy, proposal ID when submission succeeds, and next action.
  • Keep CA drafts pending with an empty upstream_ca_pem slot until a verified PEM is added. Apply the exact-host approval guard to individual and bulk approval; preserve the existing CA conflict and baseline IP checks.
  • Update advisor guidance and architecture docs for supervisor-driven events.

Testing

  • mise run test passes (full workspace suite).
  • Supervisor network crate: 1,279 passed, 2 ignored after final note change.
  • Unit tests added/updated for typed certificate detection and the CA draft edit/approval path (targeted gateway test passed).
  • Fresh memory-off chat and card/approval/retry end to end. Both cluster images are deployed; local UI sign-in is pending.
  • mise run pre-commit passes. It currently fails on pre-existing clippy findings in openshell-supervisor-process/src/log_push.rs, openshell-supervisor-network/src/proxy/destination.rs, and unchanged redundant clones in proxy.rs tests.

Checklist

  • Follows Conventional Commits.
  • Commit is signed off (DCO).
  • Architecture docs updated.

Signed-off-by: craig <craig@kindo.ai>
Signed-off-by: craig <craig@kindo.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant