Skip to content

Demonstrate optional sinks for guard observations - #1

Closed
blitzcrieg1 wants to merge 1 commit into
mainfrom
feature/optional-event-sinks
Closed

blitzcrieg1 wants to merge 1 commit into
mainfrom
feature/optional-event-sinks

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

Demonstration for the optional sink proposal in huggingface#24, opened on this fork for review. This is not an upstream pull request.

The patch adds repeatable --sink MODULE:FACTORY loading and Config(sinks=[...]) for journal-shaped observations of non-passed calls. Sinks are off by default, receive independent payload copies, and deliver outside the response loop with bounded queues and deadline warnings.

docs/sink.md documents the raw-payload privacy boundary, metadata-only example, delivery loss and shutdown behavior, and possible Agentmetry/SIEM uses. Python callback threads cannot be forcibly cancelled; this is not a hard latency or delivery guarantee. There is no destination-specific adapter or claim of live Agentmetry integration.

The branch includes CLI, guard, journal and scripted proxy regressions. Private standalone validation evidence is not included in this PR. The implementation follows the RFC's opt-in scope and the upstream contribution process.

Expose repeatable module or file factories and Config callbacks for
non-passed journal-shaped observations, including without a local journal.
Use bounded per-sink background delivery and preserve guard decisions.

Document trusted-code and raw-payload boundaries, callback deadline and
shutdown limits, and possible audit integrations. Add synthetic guard,
CLI, journal and scripted proxy regression coverage.

Refs: huggingface#24
@blitzcrieg1

Copy link
Copy Markdown
Owner Author

Superseded by huggingface#30, merged upstream.

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