fix: address PR review comments for Agent Sentinel (#5)#7
Conversation
…ay, export, sign, verify
- Fix duplicate imports in trace_claim_generator.py - Add real test stubs for detectors and integration - Populate docker-compose.yml and .trace-tests-config.yml - Fix broken Markdown in README, remove absolute paths - Update maintainer email in integration.yaml - Add __pycache__/ to .gitignore - Remove tracked __pycache__ directories
|
🔴 Contributor Check: HIGH
Automated check by AGT Contributor Check. |
|
Thanks @a1k7 - looks like we have some merge conflicts, can you resolve? |
|
@imran-siddique .Recheck whether conflicts are resolved or not? |
|
Small blocker: Could you resolve that block and run at least the Sentinel tests or a CLI import smoke test before this is reviewed again? |
|
@carloshvp I tried to resolve the conflicts . ready for re-review |
|
Thanks for resolving the conflict markers. I re-ran the Sentinel tests locally, since the repo Current result:
fails 3/4 tests:
One structural note too: this integration still lives under top-level |
|
@carloshvp Ready for re-review |
|
Thanks for the update. I re-ran the review on the current head ( Resolved:
There are still a few blockers before this is ready:
Suggested next step: make the directory layout and manifest conform to the repo first, then run both the Sentinel tests and a CLI smoke test from the documented command path. Once those pass, this should be much easier to review. |
|
Thanks @carloshvp for the thorough re-review, agreed on all four blockers. @a1k7 to set a clear bar before the next re-review request:
Please don't request re-review until |
- Use only DelegationEscalationDetector to avoid import issues - Add action and evidence fields to DetectionResult - Implement custom JSON encoder for datetime handling - Fix CLI and risk_engine to produce clean reports - Update .gitignore to exclude generated files
carloshvp
left a comment
There was a problem hiding this comment.
Thanks for the update. I re-ran the current head (c370488) and there is some progress, but this is still not ready for re-review yet.
Improved:
- The package import path now works when run with
PYTHONPATH=sentinel:sentinel.cli,sentinel.trace_ingester,sentinel.risk_engine,sentinel.server, andsentinel.mainall import successfully.
- CLI smoke succeeds via the new package path:
PYTHONPATH=sentinel python3 -m sentinel.cli sentinel/sample_trace.json --output /tmp/sentinel-report.json
Still blocking:
- Sentinel is still under top-level
sentinel/, notintegrations/sentinel/, so the repo validator still does not validate it. A local scan ofintegrations/*/integration.yamlstill does not include Sentinel. sentinel/integration.yamlstill uses the oldapiVersion/kind/metadata/specshape and fails the current schema withAdditional properties are not allowed ('apiVersion', 'kind', 'metadata', 'spec' were unexpected).- The focused Sentinel tests now fail on current head:
PYTHONPATH=sentinel python3 -m pytest sentinel/tests -q->2 failed, 1 passed- both failures are
AttributeError: 'DetectionResult' object has no attribute 'detected'intest_clean_delegation/test_risky_delegation.
- The documented/runtime commands are still inconsistent with the package move:
sentinel/README.md,sentinel/integration.yaml, andsentinel/Dockerfilestill referencesrc.*commands/modules. - Tracked generated files remain under
sentinel/tests/__pycache__/.
Suggested next step is still to make the layout/manifest conform first, then update docs/runtime paths and rerun both the Sentinel tests and CLI smoke from the documented command path before requesting another review.
This PR addresses the review comments from #5:
Follow-up to #5.
@imran-siddique