Add self-scoped Centaur investigator - #66
Closed
fineas-bot[bot] wants to merge 2 commits into
Closed
Conversation
Adds a self-scoped Centaur investigator for current sandbox/thread debugging, gates broad investigator and raw vlogs access behind operator mode, and updates sandbox prompt guidance away from raw log tools by default. Safety notes: - centaur-investigator self defaults to the current CENTAUR_THREAD_KEY/session scope. - Cross-thread investigate/search requires CENTAUR_INVESTIGATOR_OPERATOR_MODE=1. - Raw vlogs query/fields/field-values/streams requires operator mode. - Returned debug context avoids raw Slack text, message parts, session event payloads, and raw log rows.
Keeps the sandbox prompt consistent with the new self-scoped observability guidance by replacing the remaining raw vlogs example with centaur-investigator self.
Author
|
Closing as intentionally retired by the upstream-first Centaur sync in #76/paradigmxyz#311, not as an upstream-provided replacement. This tool can run only after a sandbox is healthy enough to execute it, so it does not cover pre-start failures, dead/stuck sandboxes, fleet failures, or most image/deployment drift. Maintaining a second Python authorization and self-query surface is not justified for that limited coverage. If self-triage later proves useful, it should return as a sanitized principal-JWT diagnostic endpoint on the upstream architecture. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
centaur-investigator selfas the default current-sandbox/current-thread debug pathcentaur-investigator investigate/search-sessionstoCENTAUR_INVESTIGATOR_OPERATOR_MODE=1vlogs query/fields/field-values/streamsbehind operator mode and point agents to the self-scoped investigator insteadSafety boundary
CENTAUR_THREAD_KEY/session context.vlogs healthremains available, but raw VictoriaLogs exploration is operator-only.Validation
PYTHONPATH=/Users/fin-sa/worktrees/centaur-safe-investigator:/Users/fin-sa/worktrees/centaur-safe-investigator/services/sandbox:/Users/fin-sa/worktrees/centaur-safe-investigator/tools/infra uv run --with pytest --with asyncpg --with httpx --with rich --with typer --with python-dotenv pytest --import-mode=importlib tools/infra/centaur_investigator/tests/test_client.py tools/infra/vlogs/tests/test_client.py tools/infra/vlogs/test_client.py services/sandbox/test_install_tool_shims.py-> 24 passedgit diff --checkuvx --from tools/infra/centaur_investigator centaur-investigator healthuvx --from tools/infra/vlogs vlogs query level:error --limit 1-> denied without operator mode