Web Console: Workflow-event and conversation timeline model (Phase 1) #637

Open
opened 2026-07-10 14:39:19 -05:00 by jcwalker3 · 1 comment
Owner

Problem statement

Operators cannot browse a unified timeline of internal conversations, tool calls, decisions, evidence, and workflow events. Evidence is scattered across Gitea comments, final reports, local logs, and control-plane events.

User and operational impact

Hard to audit why a stage ran, who decided, what tools fired, and what evidence backed a handoff (#626/#628).

Scope

  • Define durable timeline event schema: type, timestamp, actor/role, issue/PR, session, tool name (redacted args), decision, evidence refs, correlation id.
  • Sources: control-plane events, Gitea canonical comments/handoffs, optional local session logs if present.
  • Read-only Phase 1 API to list/filter timeline by issue/PR/session.
  • Do not require storing full chat transcripts in Gitea if redaction/size forbids; store pointers + summaries.

Explicit non-goals

  • No full chat replay product.
  • No mutation of historical events.
  • No unredacted tool argument storage containing secrets.

Required implementation investigation

control_plane_db.py events, gitea_audit.py, canonical handoff modules, final_report_validator, #507/#505, #631, #632.

Proposed architecture or implementation direction

Normalized WorkflowEvent model + adapters per source; query API with pagination; UI consumer in later view issues.

Security and workflow-safety requirements

Redact secrets; respect RBAC for sensitive events; fail closed if redaction cannot be guaranteed.

Acceptance criteria

  1. Schema documented and versioned.
  2. At least Gitea handoff comments and CP events (when available) adapt into timeline.
  3. API list/filter by issue/PR/session.
  4. Redaction tests for secret-like payloads.
  5. Pagination and stable ordering.

Required tests

Adapter unit tests; redaction tests; API pagination tests.

Observability and audit requirements

Timeline itself is an audit surface; generation errors must not drop unredacted data to logs.

Dependencies and linkage

Canonical issue state

STATE: ready-for-author
WHO_IS_NEXT: author
NEXT_ACTION: Implement timeline model + read API
NEXT_PROMPT: Author implements schema/adapters/API only; PR; stop

Required final evidence

PR with schema, adapters, API, tests.

Required final response and handoff expectations

Brief PR → reviewer.

## Problem statement Operators cannot browse a unified **timeline** of internal conversations, tool calls, decisions, evidence, and workflow events. Evidence is scattered across Gitea comments, final reports, local logs, and control-plane events. ## User and operational impact Hard to audit why a stage ran, who decided, what tools fired, and what evidence backed a handoff (#626/#628). ## Scope * Define durable timeline event schema: type, timestamp, actor/role, issue/PR, session, tool name (redacted args), decision, evidence refs, correlation id. * Sources: control-plane events, Gitea canonical comments/handoffs, optional local session logs if present. * Read-only Phase 1 API to list/filter timeline by issue/PR/session. * Do not require storing full chat transcripts in Gitea if redaction/size forbids; store pointers + summaries. ## Explicit non-goals * No full chat replay product. * No mutation of historical events. * No unredacted tool argument storage containing secrets. ## Required implementation investigation `control_plane_db.py` events, `gitea_audit.py`, canonical handoff modules, final_report_validator, #507/#505, #631, #632. ## Proposed architecture or implementation direction Normalized `WorkflowEvent` model + adapters per source; query API with pagination; UI consumer in later view issues. ## Security and workflow-safety requirements Redact secrets; respect RBAC for sensitive events; fail closed if redaction cannot be guaranteed. ## Acceptance criteria 1. Schema documented and versioned. 2. At least Gitea handoff comments and CP events (when available) adapt into timeline. 3. API list/filter by issue/PR/session. 4. Redaction tests for secret-like payloads. 5. Pagination and stable ordering. ## Required tests Adapter unit tests; redaction tests; API pagination tests. ## Observability and audit requirements Timeline itself is an audit surface; generation errors must not drop unredacted data to logs. ## Dependencies and linkage * Parent: #631 · Related: #626, #628, #613 · Soft-depends: #632, #633 ## Canonical issue state ```text STATE: ready-for-author WHO_IS_NEXT: author NEXT_ACTION: Implement timeline model + read API NEXT_PROMPT: Author implements schema/adapters/API only; PR; stop ``` ## Required final evidence PR with schema, adapters, API, tests. ## Required final response and handoff expectations Brief PR → reviewer.
jcwalker3 added the type:featurestatus:readyworkflow-hardeningdashboard labels 2026-07-10 14:39:19 -05:00
Author
Owner

Canonical Issue State

STATE:
ready-for-author

WHO_IS_NEXT:
author

NEXT_ACTION:
Implement workflow-event/conversation timeline model; link #652 #653 Phase 1

NEXT_PROMPT:

AUTHOR prgs Gitea-Tools. Implement #637. Vision #652 · Roadmap #653 Phase 1 · Umbrella #631. Lock; branches/; PR; stop. Closing ≠ vision complete.

WHAT_HAPPENED:
Linked to #652/#653. Not recreated.

WHY:
Initial batch linkage.

RELATED_ISSUES:
#652 #653 #631 #626 #628

RELATED_PRS:
none

BLOCKERS:
none

VALIDATION:
existing retained

LAST_UPDATED_BY:
jcwalker3 / prgs-author / author / 2026-07-10

## Canonical Issue State STATE: ready-for-author WHO_IS_NEXT: author NEXT_ACTION: Implement workflow-event/conversation timeline model; link #652 #653 Phase 1 NEXT_PROMPT: ```text AUTHOR prgs Gitea-Tools. Implement #637. Vision #652 · Roadmap #653 Phase 1 · Umbrella #631. Lock; branches/; PR; stop. Closing ≠ vision complete. ``` WHAT_HAPPENED: Linked to #652/#653. Not recreated. WHY: Initial batch linkage. RELATED_ISSUES: #652 #653 #631 #626 #628 RELATED_PRS: none BLOCKERS: none VALIDATION: existing retained LAST_UPDATED_BY: jcwalker3 / prgs-author / author / 2026-07-10
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#637