feat(session): add Session Audit Timeline — implement the Auditable p…#1611
Open
shaikh-amer wants to merge 1 commit intodifferent-ai:devfrom
Open
feat(session): add Session Audit Timeline — implement the Auditable p…#1611shaikh-amer wants to merge 1 commit intodifferent-ai:devfrom
shaikh-amer wants to merge 1 commit intodifferent-ai:devfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Someone is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
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
Implements the "Auditable: show what happened, when, and why" pillar
from the README and PRINCIPLES.md. Adds a Session Audit Timeline panel
that shows every agent action (tool calls, file writes, shell commands)
in real time with status badges, timestamps, and a JSON export button.
Why
The Auditable pillar was listed as a core product value but had no UI
implementation. PRINCIPLES.md explicitly states "Exportable audit logs"
as a principle. This PR delivers it.
Issue
Closes #1573
Scope
session-audit-store.ts— SSE subscriber capturing tool/pty/error eventssession-audit-timeline.tsx— React panel with timeline UI and exportsession-audit-export.ts— pure JSON download utilitysession-surface.tsx— adds Show/Hide Audit toggle and panel renderOut of scope
Testing
Ran
pnpm --filter @openwork/app typecheckResult
CI status
Manual verification
📋 Show Auditin the toolbarcreate a file called test.py with hello world and run itwritetool shows completed,bashtool shows completedExport Session Log— JSON file downloads with full session dataEvidence
Tested on Tauri desktop app (OpenWork-Dev). Agent created
audit_demo.pyand ran it successfully. Audit panel showed 2 entries:
write— completed ✓ — file content visible in input summarybash— completed ✓ — python3 command visible in input summaryToggle works: Show Audit / Hide Audit switches the panel on/off cleanly.
Store disposes on unmount (panel close) with no memory leaks.
No new npm dependencies. No server changes. 4 files total.
Risk
Low. Changes are isolated to the session surface domain. New files only
plus a minimal edit to session-surface.tsx adding one useState and one
conditional render. Existing session behavior is completely unchanged.
Rollback
Remove the 3 new files and revert the session-surface.tsx change.

