Repository navigation
Program and connection events in the audit trail - #58
Merged
Merged
Conversation
The audit trail now carries every program a sandbox runs and every connection it opens, not only the calls made to it. They arrive as OCSF Process Activity (class 1007) and Network Activity (class 4001) events beside the existing API Activity ones, so api and src_endpoint are now absent on some events, and process, exit_code, dst_endpoint and actor.process are new. Regenerated from the aiagent spec. The examples and README no longer assume every event has api, and sandbox update documents execution_trace, which turns program recording off. The vendored spec keeps snapshot trigger optional, so responses from older API versions still parse. Signed-off-by: Mayur Das <mayur.das@neevcloud.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
mayur-tolexo
marked this pull request as ready for review
November 2, 2026 13:05
mayur-tolexo
added a commit
that referenced
this pull request
Nov 2, 2026
Conflicts with #58 resolved to this branch, which matches the current aiagent API (working_directory, device, OCSF actor captions). Keeps the auto-resume examples from #60, and updates the step-by-step README's expected output for the two audit examples to what they now print. Signed-off-by: Mayur Das <mayur.das@neevcloud.com>
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.
Why
The backend audit trail now records every program a sandbox runs and every connection it opens, not just the calls made to it (NeevCloudAI/neevaiplatform-backend#1822). Those arrive as OCSF Process Activity (1007) and Network Activity (4001) events with no
api. Recording is on by default, so with the current modelssandbox.audit()raises a validation error on the first program event.What
aiagent.pyfrom the backend spec:class_uidandcategory_uidaccept the new classes,apiandsrc_endpointare optional, andprocess,exit_code,dst_endpointandactor.processare new.triggeroptional as before, so responses from older API versions still parse.updatedocumentsexecution_trace.execution_tracealone on update.Merge after the backend PR.