feat: watch one-shot mode + always-on security-lite#76
Merged
Conversation
`observatory watch <cmd>` runs a server, auto-diffs against the last run, and exits 1 on regression — replacing the manual run+diff workflow that accounts for 88% of usage. Continuous polling still available via --interval. Every run now includes a security-lite check (static rule matching on tool schemas, zero extra network calls). The --security flag remains for deep scanning with credential pattern analysis. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MCP Observatory ReportGenerated by MCP Observatory action |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🎉 This PR is included in version 0.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
observatory watch <cmd>— single command that runs a server, auto-diffs against the previous run, and exits 1 on regression. Replaces the manual run→diff workflow (88% of user activity).--securityflag remains for deep scanning.Changes
src/storage.ts—findLatestArtifact()to locate previous runssrc/checks/security.ts—runLightweightSecurityCheck()operating on already-fetched toolssrc/runner.ts— always runs security-lite after tools checksrc/commands/watch.ts— one-shot run+diff+alert mode (default), continuous polling via--intervalsrc/commands/test.ts+scan.ts— updated--securityhelp textsrc/cli.ts— watch added to interactive menuTest plan
npm test— 222 tests passobservatory watch tests/fixtures/fixture-server.mjs— runs, shows result, no diff on first run🤖 Generated with Claude Code