Skip to content

[context-intelligence] Local events.jsonl mirror is unconditional — add a config option to disable it #334

Description

@danshapiro

Summary

hook-context-intelligence writes a near-duplicate of the session event stream to <session>/context-intelligence/events.jsonl unconditionally — the local disk write is always-on even when no CI server is configured. This is asserted by design:

  • test_silent_by_default.py: "Disk always writes even without server config (always-on JSONL)"
  • mount() docstring: "Always: ... LoggingHandler — writes events.jsonl + dispatches to CI server(s)"

The only way to avoid the duplicate today is to not compose the bundle at all.

Measured impact (one real machine)

Ask

A config knob to disable the local disk copy while keeping server dispatch, for users who compose the bundle only for the graph-server features, e.g.:

hooks:
  - module: hook-context-intelligence
    config:
      local_mirror: false

Related: #332, #333.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions