Repository navigation
Feature/process engine - #6
Merged
Merged
Conversation
- Move PROCESS_DRIVEN_AGENTS.md to PROCESS_DRIVEN_PLATFORM/ folder - Add IT1-IT4 thinking documents (analysis, architecture, DDD, UI/UX) - Add phase-based backlog files (MVP, Core, Advanced) - Add BACKLOG_INDEX.md with conventions and traceability - Add DEVELOPMENT_PROCESS.md with workflow and testing strategy This establishes the foundation for implementing the Process Engine feature.
- ProcessId: UUID wrapper with validation and generation
- ExecutionId: UUID wrapper for execution instances
- StepId: Validated string identifier (alphanumeric, hyphens, underscores)
- Version: Major.minor versioning with parsing and comparison
- Duration: Time duration with parsing ("30s", "5m", "2h", "1d")
- Money: Decimal-based currency representation
All value objects are frozen dataclasses for immutability.
Includes 67 unit tests covering all validation and operations.
Refs: IT3 Section 4.3 (Value Objects)
Domain Model: - ProcessDefinition: Aggregate root with validation, publish/archive lifecycle - StepDefinition: Entity for individual steps (agent_task, human_approval, gateway) - StepExecution: Runtime state tracking for step instances - OutputConfig: Process output configuration Step Configurations: - AgentTaskConfig: agent, message, timeout, model, temperature - HumanApprovalConfig: title, description, assignees, timeout (stub) - GatewayConfig: gateway_type, routes, default_route (stub) - TimerConfig, NotificationConfig: stubs for Advanced phase Validation: - Duplicate step ID detection - Invalid dependency reference checking - Circular dependency detection via DFS - Empty name/steps validation Schema & Documentation: - JSON Schema for editor validation (process-definition.schema.json) - Example YAML files (content-pipeline.yaml, approval-workflow.yaml) Includes 27 new tests (94 total process engine tests passing) Refs: IT3 Section 4 (Aggregates)
Repository Interfaces: - ProcessDefinitionRepository: Full CRUD + versioning + filtering - ProcessExecutionRepository: Interface for execution state (impl later) SQLite Implementation: - SqliteProcessDefinitionRepository with JSON storage - Indexed columns for name, status, and name+version uniqueness - In-memory support for testing CRUD Operations: - save: Create or update (upsert by ID) - get_by_id, get_by_name, get_latest_version - list_all, list_by_name with filtering and pagination - delete, exists, count Version Tracking: - Multiple versions per process name - Version major.minor stored separately for efficient queries - get_latest_version returns latest published Also: Updated .gitignore to allow process engine repositories folder Includes 22 new tests (116 total process engine tests passing) Refs: IT3 Section 7 (Repositories)
ProcessValidator Service: - validate_yaml(): Full validation pipeline from raw YAML - validate_definition(): Validate existing ProcessDefinition Validation Levels: 1. YAML syntax validation with line numbers 2. Schema validation (required fields, types) 3. Semantic validation (from domain layer): - No duplicate step IDs - All depends_on references exist - No circular dependencies 4. Agent existence checking (warnings only) ValidationResult: - Separates errors (blocking) from warnings (advisory) - is_valid: True if no errors - to_dict(): API-friendly response format Error/Warning Details: - message: Human-readable description - level: error | warning - path: JSON path (e.g., "steps[0].agent") - line: YAML line number (when available) - suggestion: Fix suggestion Includes 26 new tests (142 total process engine tests passing) Refs: IT3 Section 6 (Domain Services)
Domain Events: - DomainEvent: Base class with kw_only timestamp for inheritance - Process events: ProcessStarted, ProcessCompleted, ProcessFailed, ProcessCancelled - Step events: StepStarted, StepCompleted, StepFailed, StepSkipped - Approval events: ApprovalRequested, ApprovalDecided - All events immutable (frozen dataclasses) with to_dict() serialization Event Bus Infrastructure: - EventBus: Abstract interface for publish/subscribe - InMemoryEventBus: MVP implementation with async dispatch - subscribe(): Handler for specific event types - subscribe_all(): Global handler for all events - unsubscribe(), clear(): Handler management - Async non-blocking dispatch via asyncio.create_task() - Error isolation: handler errors logged but don't stop other handlers - wait_for_pending(): For testing and graceful shutdown Includes 23 new tests (165 total process engine tests passing) Refs: IT3 Section 5 (Domain Events)
Added comprehensive tests for execution-side domain model: - ProcessExecution creation and initialization - State transitions (start, complete, fail, cancel, pause, resume) - Step operations (start_step, complete_step, fail_step) - Query methods (get_completed_step_ids, all_steps_completed) - Serialization roundtrip (to_dict, from_dict) - StepExecution entity tests Fixes gap identified during Sprint 1 review. 31 new tests (196 total process engine tests passing)
Implements REST API for process definitions:
- POST /api/processes - Create new process definition
- GET /api/processes - List all (with filters, pagination)
- GET /api/processes/{id} - Get single definition
- PUT /api/processes/{id} - Update draft definition
- DELETE /api/processes/{id} - Delete draft/archived
- POST /api/processes/{id}/validate - Validate existing
- POST /api/processes/validate - Validate YAML
- POST /api/processes/{id}/publish - Publish draft
- POST /api/processes/{id}/archive - Archive process
- POST /api/processes/{id}/new-version - Create new version
Also marks E2-01 (Execution State Model) as done - was
implemented in Sprint 1 with ProcessExecution aggregate.
21 new API tests (217 total process engine tests passing)
Implements SQLite repository for process executions: - SqliteProcessExecutionRepository with save/get/delete/list operations - Tables: process_executions, step_executions - Proper serialization of Money (as cents), timestamps, JSON data - Query methods: list_by_process, list_active, list_all with filters Also adds input/cost fields to StepExecution entity for tracking step-level inputs and costs (prepares for E2-06 output storage). 21 new repository tests (238 total process engine tests passing)
Implements centralized output storage management:
- OutputStorage service for store/retrieve/delete operations
- OutputPath value object with path pattern /executions/{id}/steps/{step}/output
- Unified API for accessing step outputs regardless of backend
- get_all_outputs() for bulk retrieval
- clear_execution_outputs() for cleanup
- Handles empty dict vs None distinction properly
23 new output storage tests (261 total process engine tests passing)
Sprint 2 complete:
- E1-04: Process Definition API ✓
- E2-01: Execution State Model ✓
- E2-02: Execution Repository ✓
- E2-06: Step Output Storage ✓
Implements the core execution engine for process orchestration: ExecutionEngine: - start() - Start new execution from definition - resume() - Resume paused/partial execution - cancel() - Cancel running execution - Timeout handling per step with asyncio.wait_for - Domain event emission (ProcessStarted, StepCompleted, etc.) DependencyResolver: - get_ready_steps() - Find steps with satisfied dependencies - get_next_step() - Get next step for sequential execution - get_execution_order() - Topological sort of all steps - is_complete() / has_failed_steps() - Status checks StepHandler Interface: - Abstract base for step type handlers (AgentTask, etc.) - StepHandlerRegistry for handler lookup - StepContext for passing execution state - StepResult for success/failure responses 16 new tests (277 total process engine tests passing)
Implements handler for agent_task step type:
AgentTaskHandler:
- Executes agent_task steps by sending messages to Trinity agents
- Variable substitution for {{input.X}} and {{steps.X.output}}
- Timeout handling from step config
- Cost extraction from agent response
AgentGateway (Anti-Corruption Layer):
- Wraps Trinity's AgentClient for clean process engine integration
- Agent availability checking via Docker container status
- Message sending with context metadata
- Error handling and wrapping
10 new tests (287 total process engine tests passing)
Implements template expression evaluation for process messages:
ExpressionEvaluator:
- Evaluates {{expression}} placeholders in strings
- Supports input.X, input.X.Y for nested input data
- Supports steps.X.output, steps.X.output.Y for step outputs
- Supports execution.id, process.name context
- Strict mode raises ExpressionError for undefined expressions
- Expression extraction and validation utilities
EvaluationContext:
- Path-based access to input_data, step_outputs, metadata
- Handles nested dict navigation
AgentTaskHandler Integration:
- Now uses ExpressionEvaluator for variable substitution
- Supports all expression types in message and agent name
30 new tests (317 total process engine tests passing)
Implements REST API for managing process executions:
Endpoints:
- POST /api/processes/{id}/execute - Start new execution
- GET /api/executions - List executions with filters
- GET /api/executions/{id} - Get execution detail
- POST /api/executions/{id}/cancel - Cancel running execution
- POST /api/executions/{id}/retry - Retry failed execution
- GET /api/executions/{id}/steps/{step_id}/output - Get step output
Features:
- Background task execution via BackgroundTasks
- Status filtering (pending, running, completed, failed)
- Process ID filtering
- Pagination support (limit/offset)
- Full step execution details in response
- Authentication required for all endpoints
- Auto-generated OpenAPI docs
13 new tests (330 total process engine tests passing)
Sprint 4: Definition UI (Frontend) E3-01: Process List View - Card grid showing all processes with status badges - Sorting: newest, oldest, name, status - Filtering by status (draft/published/archived) - Actions: Execute, Edit, Delete - Empty state with Create CTA E3-02: YAML Editor Component - Monaco editor integration with dynamic import - YAML syntax highlighting - Line numbers and word wrap - Dark mode theme support - Inline validation error markers - Copy to clipboard, Cmd+S to save E3-04: Process Editor Page - Full editor with validation panel - Save/Publish/Execute buttons - Unsaved changes warning on navigation - Default YAML template for new processes - Keyboard shortcut (Cmd+S) Also: - Added processes Pinia store - Added routes for /processes, /processes/new, /processes/:id - Added Processes link to NavBar - Added monaco-editor dependency
Sprint 5: Monitoring UI (Frontend) E4-01: Execution List View - Table with status icons (✅ ❌ 🔄 ⏳) - Columns: Process Name, Status, Started, Duration, Cost - Filters by status and process - Auto-refresh (30s polling) with pause/resume - Pagination support - Cancel/Retry actions E4-02: Execution Timeline View - Step-by-step progress display - Progress bar with completion percentage - Duration bars relative to longest step - Status indicators (running animation) - Click to expand step details E4-03: Step Detail Panel - Expandable within timeline - Timing info: started, completed, duration, retries - Error display with copy button - Output loading on demand - Copy output to clipboard E4-05: Process Dashboard - Overall stats: processes, executions, success rate, cost - Recent executions list - Published processes with quick execute - Quick action buttons Also: - Added executions Pinia store - Added routes for /executions, /executions/:id, /process-dashboard - Added Executions link to NavBar
…preview, and process domain events
Fixes: - Updated deploy scripts to use `docker compose` (V2) instead of legacy `docker-compose` - Fixed frontend build error by adding `js-yaml` dependency - Fixed backend crash in `executions.py` due to double `Depends` injection - Fixed `sqlite3.OperationalError` in `processes.py` by ensuring DB directory exists - Fixed 404 execution error by aligning DB paths between processes and executions routers - Fixed `AttributeError` in `processes.py` by using `.major` for version logging - Fixed UI "Delete" and "Unsaved Changes" modals by passing `:visible="true"` to ConfirmDialog - Added `TRINITY_DB_PATH` env var to backend service for correct persistence Features: - Implemented `EventLogger` service (E15-04) to persist domain events - Added `SqliteEventRepository` implementation - Added `Event History` tab to Execution Detail UI - Completed Process Dashboard implementation (E4-05) Refs: BACKLOG_MVP.md
…or debugging UI Sprint 7 implements comprehensive error handling for process execution: - Add RetryPolicy value object with configurable max_attempts, initial_delay, backoff_multiplier - Add ErrorPolicy value object with on_error actions (fail_process, skip_step) - Implement retry logic in ExecutionEngine with exponential backoff - Fix error code propagation through fail_step chain - Update API schema to return full error objects (code, message, retry_count) - Enhance ExecutionTimeline UI to display error details, retry attempts - Fix WebSocket handler to properly construct error objects from events - Update dependency resolver to handle skipped steps correctly - Add comprehensive unit tests for error handling scenarios Stories completed: E13-01, E13-02, E13-04
Sprint 8 implements parallel step execution for faster process completion: - Add ParallelGroup and ParallelStructure classes for parallel analysis - DependencyResolver.get_parallel_structure() identifies parallelizable steps - ExecutionEngine runs independent steps concurrently with asyncio.gather() - Add ExecutionConfig.parallel_execution and max_concurrent_steps options - API returns parallel_level for each step and has_parallel_steps flag - UI shows parallel indicator (⫘) for steps at same execution level - Add comprehensive unit tests for parallel detection and execution Stories completed: E5-01, E5-02, E5-03
- ProcessFlowPreview: Vertical orientation by default with swimlane layout - ProcessFlowPreview: Parallel steps grouped horizontally with dashed border - ProcessFlowPreview: Compact design to fit without scrolling - ExecutionTimeline: Parallel indicator (⫘) and level-based sorting
…ox UI Sprint 9 - Human Approval: - Add human_approval step type that pauses execution for review - Add ApprovalRequest entity and ApprovalStatus enum - Add approval API endpoints (list, approve, reject) - Add Approval Inbox UI page with filtering and stats - Add inline approve/reject buttons in execution timeline - Fix WebSocket event serialization for StepId objects - Add non-retryable error handling for APPROVAL_REJECTED - Add execution resume after approval decision
Sprint 10: Gateways & Triggers implementation Gateway Step (E7-01, E7-02, E7-03): - Add gateway step type with exclusive/parallel/inclusive modes - Implement ConditionEvaluator for boolean expressions (==, !=, >, <, and, or) - GatewayHandler evaluates conditions and selects routes - Gateway UI shows route taken and evaluated conditions - Fix _build_step_outputs for proper condition evaluation Webhook Triggers (E8-01, E8-02): - Add TriggerConfig schema (WebhookTriggerConfig, ScheduleTriggerConfig stub) - Implement /api/triggers endpoints (list, invoke, info) - Triggers stored in ProcessDefinition and serialized correctly - Optional secret authentication via X-Webhook-Secret header UI Improvements: - Execute input dialog for providing JSON input data - ProcessList shows Eye icon for published (view) vs Pencil for draft (edit) - ProcessEditor guards against editing published processes - "New Version" button for creating drafts from published processes
- Add notification step type (slack, email stub, generic webhook) - Add webhook event publisher for process_completed/failed/approval_requested - Add compensation handlers for step rollback on process failure - Add CompensationConfig value object for type-safe compensation - Add compensation domain events (Started, Completed, Failed) - Add trigger management UI with webhook URL copy functionality - Add execute dialog for JSON input when starting processes Reference: BACKLOG_MVP.md - E14-01, E14-02, E15-03, E13-03, E8-03
Bugs discovered during manual testing: 1. Notification YAML parsing: Added missing NOTIFICATION branch in StepDefinition.from_dict() - inline fields (channel, message, url) were not being extracted, causing all notifications to default to slack channel. 2. Compensation handler registry: Fixed get_handler() → get() method call on StepHandlerRegistry. 3. Compensation webhook URL: Added 'url' field mapping for generic webhook channel (was only setting webhook_url for Slack). Test: compensation-test.yaml triggers intentional failure to verify compensation handlers execute correctly.
UI/UX improvements for Sprint 11: 1. Retry Execution Tracking: - Add retry_of field to ProcessExecution aggregate - Link retry executions to original failed execution - Display amber "Retry of: <id>" badge with link to original 2. Real-time Compensation Events via WebSocket: - Add CompensationStarted/Completed/Failed to WebSocket publisher - Add compensation event handlers in useProcessWebSocket composable - Display compensation events in Event History without refresh 3. Event Display Improvements: - Format both snake_case and PascalCase event types - Clear events when navigating to different execution - Add 500ms delay before reload to ensure events are persisted - Style compensation events with appropriate colors
Sprint 12 Implementation (E9 - Timer & Scheduling): - Add cron presets (hourly, daily, weekly, monthly, weekdays) - Add cron expression validation to ProcessValidator - Extend scheduler service with process schedule support - Hook schedule registration into publish/archive lifecycle - Add schedule trigger list/info API endpoints - Create TimerHandler for timer step type - Add schedule trigger UI in ProcessEditor - Display next run time in ProcessList Test Debt Fix (Sprints 9-11): - Add test_approval_handler.py (24 tests) - S9 - Add test_gateway_handler.py (18 tests) - S10 - Add test_webhook_triggers.py (14 tests) - S10 - Add test_notification_handler.py (20 tests) - S11 - Add test_compensation.py (22 tests) - S11 - Add test_schedule_triggers.py (23 tests) - S12 - Add test_timer_handler.py (11 tests) - S12 Bug fixes: - Fix timer.py: context.step -> context.step_definition - Remove unused import in timer.py Total: 466 tests passing (was 374)
Sprint 14 Implementation: - E11-02: Process Analytics Dashboard with metrics, trends, step performance - E11-03: Cost Alerts system with thresholds (per-execution, daily, weekly) - E12-01: Process Template Library with bundled templates - E12-02: Template creation from published processes UI Improvements: - Add Process sub-navigation (Processes, Dashboard, Executions, Approvals) - Add Agent sub-navigation (Agents, Files, Templates) - Declutter main nav from 8 to 6 items - Template selector in process creation flow Backend: - Analytics service with ProcessMetrics, TrendData, StepPerformance - CostAlertService with threshold management and alert generation - ProcessTemplateService for bundled and user templates - New API endpoints for analytics, alerts, and templates Frontend: - TrendChart component for execution/cost visualization - TemplateSelector component for process templates - ProcessSubNav and AgentSubNav components - Alerts page and NavBar badge integration - Enhanced ProcessDashboard with analytics Tests: - 59 new unit tests for analytics, alerts, and templates
Sprint 15 - Agent Roles (EMI Pattern): - Add AgentRole enum (Executor/Monitor/Informed) - Add StepRoles entity with validation - Create InformedAgentNotifier service for async notifications - Add RoleMatrix.vue component for interactive role management - Integrate roles tab in ProcessEditor with UI-YAML sync - Extend ProcessValidator for role validation across all step types Sprint 12-14 Completion: - E9-01: Cron validation already implemented (verified) - E10-02: Add breadcrumb navigation for nested sub-process executions - E11-01: Cost tracking already implemented (verified) - E11-03: Integrate CostAlertService with ExecutionEngine - E12-01: Add customer-support bundled process template Tests: - Add test_roles.py for EMI pattern validation - Add test_informed_notifier.py for notification service - Add ExecutionEngine cost alert integration tests Process engine adds ~27,400 LOC (~41% growth to Trinity codebase)
- Move PROCESS_DRIVEN_PLATFORM from docs/drafts/ to docs/ - Add IT5 thinking iteration (scale, reliability, enterprise) - Add Process Engine roadmap with 14 test processes across 5 phases - Create feature flow documentation for Process Engine: - README overview, process-definition, process-execution - process-monitoring, human-approval, process-scheduling - process-analytics, sub-processes, agent-roles-emi, process-templates - Update requirements.md: Add Section 18 (Process Engine) with all features - Update roadmap.md: Mark Phase 14 complete, add decision log entry - Update architecture.md: Add Process Engine section, API endpoints, DB schema - Update feature-flows.md index with Process Engine section
This was referenced Aug 24, 2026
Merged
dolho
added a commit
that referenced
this pull request
Aug 25, 2026
One click on the thing being judged: thumbs on an agent message, Useful / Not what I needed on a deliverable card — the affordance ent#365 left that card as the surface for — and a comment box on the negative. A rating is a PLATFORM PRIMITIVE, not a skill, and the reason is the eval epic's: a capture-feedback skill runs inside the agent, so it can summarise charitably, omit, or fail silently, and a user rating is the one score that must not pass through the thing being scored. So this AMENDS ent#206's write fence to admit a `workspace:<email>` evaluator rather than working around it. The rated agent still has no write path. Targets are checked against the READER, because message and report ids are both global: a message must belong to this agent AND this client and be the agent's message (rating your own is refused — it would put a self-rating in the agent's tally), and a deliverable reuses ent#365's audience gate so "can rate" and "was addressed to you" are one question answered in one place. A target that fails either check returns the same 404 a missing one does, so this is not an existence oracle. `UNIQUE(evaluator, target_kind, target_id) WHERE target_id IS NOT NULL` makes a second thumb a CORRECTION rather than a second vote, which is what makes the agent-page tally count people rather than clicks. That tally is raw counts and never a percentage: one thumbs-down out of one rating renders as "100% negative", a number that looks like evidence and is not. The issue's open grooming question is decided and implemented: the rated agent reads its own tallies and never the words. A score an agent can read is a loop it may start optimising for, and the comment is untrusted text written by an annoyed stranger — handing it verbatim to the agent being criticised is a prompt-injection path into it. `comment_withheld` lets a reader tell "no comment" from "not yours to read"; operator surfaces are unchanged. The words reach the agent only through `capture-feedback`, fenced as data with the framing routers/webhooks.py already uses, dispatched as its own background execution — never as a message in the client's thread, which would be a second unasked-for reply in the conversation someone just complained about. Absent the skill the rating and comment are still durable and the UI says "recorded" instead of promising a follow-up (AC #6). Verified live end to end: rate, change your mind (one row, updated), a target that isn't yours 404s, a bad kind 422s, the tally reads 0/1, an operator sees the comment and the RATED AGENT reads `quality: 0.0` with `comment: None, comment_withheld: true`. In the browser: 15 thumb pairs, the existing rating restored from history, the box opening on the negative, and the honest acknowledgement. One thing this deliberately does NOT do: stamp the feedback turn with `source_channel=portal`. `test_2157_portal_narration` pins that stamp to exactly the two portal turn-creation sites, and it is right — the stamp means "an exchange on the Workspace surface", and this turn has no surface: nobody sees its output and it must not be answering anyone. Stacked on feature/ent365-workspace-deliverables: the deliverable card this attaches to exists only there. Related to Abilityai/trinity-enterprise#366 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
dolho
added a commit
that referenced
this pull request
Aug 25, 2026
One click on the thing being judged: thumbs on an agent message, Useful / Not what I needed on a deliverable card — the affordance ent#365 left that card as the surface for — and a comment box on the negative. A rating is a PLATFORM PRIMITIVE, not a skill, and the reason is the eval epic's: a capture-feedback skill runs inside the agent, so it can summarise charitably, omit, or fail silently, and a user rating is the one score that must not pass through the thing being scored. So this AMENDS ent#206's write fence to admit a `workspace:<email>` evaluator rather than working around it. The rated agent still has no write path. Targets are checked against the READER, because message and report ids are both global: a message must belong to this agent AND this client and be the agent's message (rating your own is refused — it would put a self-rating in the agent's tally), and a deliverable reuses ent#365's audience gate so "can rate" and "was addressed to you" are one question answered in one place. A target that fails either check returns the same 404 a missing one does, so this is not an existence oracle. `UNIQUE(evaluator, target_kind, target_id) WHERE target_id IS NOT NULL` makes a second thumb a CORRECTION rather than a second vote, which is what makes the agent-page tally count people rather than clicks. That tally is raw counts and never a percentage: one thumbs-down out of one rating renders as "100% negative", a number that looks like evidence and is not. The issue's open grooming question is decided and implemented: the rated agent reads its own tallies and never the words. A score an agent can read is a loop it may start optimising for, and the comment is untrusted text written by an annoyed stranger — handing it verbatim to the agent being criticised is a prompt-injection path into it. `comment_withheld` lets a reader tell "no comment" from "not yours to read"; operator surfaces are unchanged. The words reach the agent only through `capture-feedback`, fenced as data with the framing routers/webhooks.py already uses, dispatched as its own background execution — never as a message in the client's thread, which would be a second unasked-for reply in the conversation someone just complained about. Absent the skill the rating and comment are still durable and the UI says "recorded" instead of promising a follow-up (AC #6). Verified live end to end: rate, change your mind (one row, updated), a target that isn't yours 404s, a bad kind 422s, the tally reads 0/1, an operator sees the comment and the RATED AGENT reads `quality: 0.0` with `comment: None, comment_withheld: true`. In the browser: 15 thumb pairs, the existing rating restored from history, the box opening on the negative, and the honest acknowledgement. One thing this deliberately does NOT do: stamp the feedback turn with `source_channel=portal`. `test_2157_portal_narration` pins that stamp to exactly the two portal turn-creation sites, and it is right — the stamp means "an exchange on the Workspace surface", and this turn has no surface: nobody sees its output and it must not be answering anyone. Stacked on feature/ent365-workspace-deliverables: the deliverable card this attaches to exists only there. Related to Abilityai/trinity-enterprise#366 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
dolho
added a commit
that referenced
this pull request
Aug 26, 2026
One click on the thing being judged: thumbs on an agent message, Useful / Not what I needed on a deliverable card — the affordance ent#365 left that card as the surface for — and a comment box on the negative. A rating is a PLATFORM PRIMITIVE, not a skill, and the reason is the eval epic's: a capture-feedback skill runs inside the agent, so it can summarise charitably, omit, or fail silently, and a user rating is the one score that must not pass through the thing being scored. So this AMENDS ent#206's write fence to admit a `workspace:<email>` evaluator rather than working around it. The rated agent still has no write path. Targets are checked against the READER, because message and report ids are both global: a message must belong to this agent AND this client and be the agent's message (rating your own is refused — it would put a self-rating in the agent's tally), and a deliverable reuses ent#365's audience gate so "can rate" and "was addressed to you" are one question answered in one place. A target that fails either check returns the same 404 a missing one does, so this is not an existence oracle. `UNIQUE(evaluator, target_kind, target_id) WHERE target_id IS NOT NULL` makes a second thumb a CORRECTION rather than a second vote, which is what makes the agent-page tally count people rather than clicks. That tally is raw counts and never a percentage: one thumbs-down out of one rating renders as "100% negative", a number that looks like evidence and is not. The issue's open grooming question is decided and implemented: the rated agent reads its own tallies and never the words. A score an agent can read is a loop it may start optimising for, and the comment is untrusted text written by an annoyed stranger — handing it verbatim to the agent being criticised is a prompt-injection path into it. `comment_withheld` lets a reader tell "no comment" from "not yours to read"; operator surfaces are unchanged. The words reach the agent only through `capture-feedback`, fenced as data with the framing routers/webhooks.py already uses, dispatched as its own background execution — never as a message in the client's thread, which would be a second unasked-for reply in the conversation someone just complained about. Absent the skill the rating and comment are still durable and the UI says "recorded" instead of promising a follow-up (AC #6). Verified live end to end: rate, change your mind (one row, updated), a target that isn't yours 404s, a bad kind 422s, the tally reads 0/1, an operator sees the comment and the RATED AGENT reads `quality: 0.0` with `comment: None, comment_withheld: true`. In the browser: 15 thumb pairs, the existing rating restored from history, the box opening on the negative, and the honest acknowledgement. One thing this deliberately does NOT do: stamp the feedback turn with `source_channel=portal`. `test_2157_portal_narration` pins that stamp to exactly the two portal turn-creation sites, and it is right — the stamp means "an exchange on the Workspace surface", and this turn has no surface: nobody sees its output and it must not be answering anyone. Stacked on feature/ent365-workspace-deliverables: the deliverable card this attaches to exists only there. Related to Abilityai/trinity-enterprise#366 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
5 of 6 tasks
4 tasks done
4 tasks done
dolho
added a commit
that referenced
this pull request
Aug 27, 2026
…egistry link could never match (#2338) ## 1. `_STATUS_KEY_RE` matched ordinary words One unanchored alternation, `.search()`ed against every key at every depth — and `red` is a substring of **`credential`** and of **`required`**. J06 is literally *"I can give an agent a credential and it can use the tools that credential unlocks"*, so a `credentials:` key was coming, and the moment it arrived this rule would have failed accusing the author of committing run status. `green` had the same shape (`evergreen`, `greenfield`), `result` matched `results`/`resultant`. Measured on the shipped regex: `credential`, `credentials`, `required`, `evergreen`, `greenfield`, `resultant` and even `hundred` all matched. A rule whose entire value is that it fails CLEARLY cannot afford a false positive landing on someone who did nothing wrong. Word boundaries alone were not the fix: `_` is a word character, so `\bstatus\b` does not match `journey_status` — that spelling would have gone quiet on exactly the keys the rule exists to catch. The key is now split into tokens and matched against a fixed vocabulary, plus an exact-match set for multi-token names whose parts are individually innocent (`last_run`, `pass_rate`). Both directions are now pinned by parametrized cases. ## 2. The registry join could not match (AC #6 was inert) `tests/registry.json` stores `test_files` as a list of **dicts**, so `str(f)` was a dict repr and `Path(str(f)).name` was nonsense. Compounding it, registry paths are tests-relative (`unit/test_x.py`) while catalog harnesses are repo-relative (`tests/journeys/test_x.py`), so even the substring arm could not hit. The generated doc would have carried "Harnesses not present in tests/registry.json" for every journey, permanently and wrongly — invisible today only because all ten harnesses are still `null`. Now reads `test_files[].file` and compares through one shared `_norm_test_path`. ## 3 + 4. `green_harnesses` had the same prefix bug, and called all-skipped green JUnit `file` attributes are rootdir-relative, so they read `journeys/test_x.py` against a catalog holding `tests/journeys/test_x.py` — every journey would have reported `no evidence` forever. Same normalisation fixes it. And `skipped` is neither `failure` nor `error`, so a file whose every case skipped was recorded green. J03's harness is precisely the credential-bound one that skips on every PR-triggered run, so the first journey to carry a path would also have been the first misreported — while the docstring above it said "absence of evidence is not green". It was right about the missing-artifact case and silent about this one; it now states both, and green requires at least one real pass. ## Why these were invisible The review named it exactly: the generator was verified against a real downloaded artifact set, and that set contains no journey harness at all — so the run exercised the PARSE path and never the MATCH path. The verification was real, it just could not reach the code the findings were in. Three tests now drive the match path directly, including the registry join against a genuine `registry.json` entry. Each was mutation-checked: reverting `f.get("file")` and reverting the all-skipped rule each turn the corresponding test red. The committed `docs/testing/JOURNEYS.md` is byte-identical after these changes (every harness is still `null`), and `--check` passes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
10 of 13 tasks
vybe
pushed a commit
that referenced
this pull request
Sep 2, 2026
…tecture.md counts (#2238) A full /validate-architecture run on 9b0ed63 found Invariant #13 unenforceable — 44 of the non-excluded routers had neither a same-named MCP tool module nor a `# mcp: none` marker — and seven architecture.md counts more than 25% stale. - Every router outside the by-design exclusions (internal/setup/auth/public/paid) now opens with a `# mcp:` header: 30 x `none — <reason>` (admin, grant-vs-use human-only, UI-only) and 14 x a pointer to the covering tool module (`agents.ts (rename_agent)`, ...), so the validator can tell "unexposed on purpose" from "forgotten". Comments only; each module docstring stays the first statement (AST-checked). - architecture.md: router / service / tool-module / tool counts, agents.py size, AGENT_REFS cascade width, compatibility check count, four endpoint-group counts; the MCP tools table gains its three missing modules (a2a, connector, rooms) and the chat/skills rows catch up; the dead "DEPRECATED Redis credential keys" bullet (zero readers or writers) is removed; Invariant #13 records the header convention. - CLAUDE.md: MCP tool count and endpoint/router count. Related to #2238 — the remaining #6/#7/#15/#18 gaps stay tracked there. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQHbGS2GV78AmBFnZX78j6
vybe
pushed a commit
that referenced
this pull request
Sep 2, 2026
…tecture.md counts (#2238) (#2482) A full /validate-architecture run on 9b0ed63 found Invariant #13 unenforceable — 44 of the non-excluded routers had neither a same-named MCP tool module nor a `# mcp: none` marker — and seven architecture.md counts more than 25% stale. - Every router outside the by-design exclusions (internal/setup/auth/public/paid) now opens with a `# mcp:` header: 30 x `none — <reason>` (admin, grant-vs-use human-only, UI-only) and 14 x a pointer to the covering tool module (`agents.ts (rename_agent)`, ...), so the validator can tell "unexposed on purpose" from "forgotten". Comments only; each module docstring stays the first statement (AST-checked). - architecture.md: router / service / tool-module / tool counts, agents.py size, AGENT_REFS cascade width, compatibility check count, four endpoint-group counts; the MCP tools table gains its three missing modules (a2a, connector, rooms) and the chat/skills rows catch up; the dead "DEPRECATED Redis credential keys" bullet (zero readers or writers) is removed; Invariant #13 records the header convention. - CLAUDE.md: MCP tool count and endpoint/router count. Related to #2238 — the remaining #6/#7/#15/#18 gaps stay tracked there. Claude-Session: https://claude.ai/code/session_01AQHbGS2GV78AmBFnZX78j6 Co-authored-by: trinity-ability <[email protected]>
vybe
pushed a commit
that referenced
this pull request
Sep 4, 2026
…belled agent stops hiding its slug (#2519) * docs(#2358): one column sizing context + label-leads-slug in the List and Grid flows Requirements-first per CLAUDE.md Rule 1: FR-3/FR-4 in §1.3.1 already mandate the behaviour this bug fix restores, so no new FR is added — only the §9.9 Key Features line is corrected (the badge set moves, and the lg header/rows become one grid). - feature-flows/dashboard-list-view.md: lg row anatomy in the Components block; D12 (one sizing context via subgrid — insets as item margins, not padding on a subgrid item; definite placement in BOTH axes for the meter and the secondary line, since sparse auto-placement opens an implicit third row), D13 (label leads, slug follows on the line that already exists — plus the intended md density change now the md tags row is always rendered), D14 (badge policy + the fixed secondary-line order that keeps it from becoming a junk drawer). Testing section rewritten: the "No frontend unit-test infra exists" line was stale — vitest runs 73 spec files today. - feature-flows/dashboard-grid-view.md: an Identity zone section — why the slug rides .t-repo rather than a third line (fixed 384x216 cell, space-between rhythm), and why .t-slug needs its own ellipsis, select-all and nodrag. - feature-flows.md: dated index row. - architecture.md: one sentence on each of the List and Grid blocks. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * feat(#2358): agentNameParts + the non-default-runtime rule, with the module's first specs Two pure helpers, written test-first, so the two decidable rules behind the List/Grid fix live where a spec can reach them — vitest pins `environment: 'node'` with no mount harness, so a rule inline in an SFC is a rule no test can see. - `agentName.js::agentNameParts(agent)` → `{primary, secondary}`, composed from the existing `agentDisplayName` / `hasDistinctLabel` rather than re-deriving the rule. `secondary` is either null or EXACTLY `agent.name` — never the label (it is the string a reader pastes into a URL or an MCP key lookup, so a presentation name appearing there would be worse than showing nothing), and null when the primary already is the slug, so a surface reserves no phantom second line. This is what lets call sites stop writing `display_label ||`. - `agentRuntime.js` — `isDefaultRuntime` / `showsRuntimeBadgeInList`. The id set mirrors `RuntimeBadge.vue`'s own `isClaude` (`claude-code` AND `claude`): narrower, and a `runtime: "claude"` row would wear a Claude pill on a homogeneous Claude fleet, which is the noise the rule removes. Anchored to the platform default, not fleet majority — a majority rule flips badges as agents come and go. - `agentNameTooltip`'s docstring no longer claims to be the slug's only home on list rows and tiles: a `title` is invisible on touch, unreachable by keyboard and impossible to copy from. It stays as a belt for a truncated label. `tests/unit/agentName.spec.js` is the FIRST test over that module — it had none, on all four exports, despite resolving every agent name the product renders. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(#2358): the List header and every row become ONE column sizing context The columns were ragged because the header and each row were INDEPENDENT CSS grids that happened to share a copy of the same template string. Each resolved its own `auto` tracks against its own content and the `1fr` name track absorbed the difference, so a row reading `14/16` put Controls / Success / Exec-Sched at a different x than a row reading `0`, and neither lined up with the header. Two more drifts rode along: the header spacers were not the widths of the cells they sat above (`w-3`/`w-6` vs `w-2.5`/`w-4`), and the row grid was 10px narrower than the header because the CapacityMeter sat OUTSIDE it as a flex sibling — different right edges, therefore a different `1fr`, therefore misalignment even with identical content. The template is now declared once on the list container; the header and every row are `lg:grid-cols-subgrid lg:col-span-full` items of it, and the meter joins as track 10 so the two share a right edge. Fixing the spacer widths alone could not have worked: they are `auto` tracks, so with two grids the content decides. Three properties keep it true, each pinned by a source-level guard in `agentName.spec.js` (vitest is node-env, so this is not reachable as behaviour, and the Playwright specs that would reach it are `ui`-gated): - **No horizontal padding on any subgrid item.** A subgrid item's own padding is laid out INSIDE its first and last tracks (CSS Grid L2 §7.1), so insets are ordinary item margins instead — `lg:ml-8` on the checkbox, `lg:mr-4` on the meter, identical on the header and every row. Alignment then rests on plain L1 margin sizing, not on a spec corner. - **Definite placement in BOTH axes** for the two items that are not on row 1. With sparse auto-placement the secondary line's definite column bumps the cursor to row 2 and the meter's 2-row span lands in rows 2–3 — an implicit third row hanging below every line. `lg:row-start-1` after `lg:row-span-2` is what yields `grid-row: 1 / span 2` (Tailwind emits gridRow before gridRowStart; verified against the installed 3.4.19). - **One `contents` wrapper** for the eleven lg cells, so a single breakpoint switch stands in for eleven `hidden lg:…` classes and no extra box sits between the row and its tracks. The row div is still the visual box, so background, radius, hover, the system `border-l` and the half-out avatar's positioning parent are all unchanged. Hooks for the alignment e2e: `data-testid="list-header"` and `data-col="name|status|controls|success|stats"` on both the header cells and the row cells. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(#2358): the label leads and the slug follows — at all three List breakpoints A labelled row rendered the label ALONE with the slug on a `title`. That shows one agent under two naming conventions in one list, with nothing connecting "Delivery Operations Manager" to the `delivery-ops` that every URL, MCP key, container and volume is keyed on — and a `title` is invisible on touch, unreachable by keyboard and impossible to copy from (§1.3.1 FR-4 says the slug stays visible AND copyable). The slug now renders as real `<code>` text on the line each layout ALREADY always renders — the lg secondary line, the md tags row, the base meta line — so a labelled row is exactly as tall as an unlabelled one and nothing reserves a phantom second line. It is `select-all`, because a double-click under plain text selection takes one hyphenated segment rather than the slug, and it is never inside the router-link: it is a copy target, not a nav target. All three sites resolve through `agentNameParts()`; the markup no longer resolves a name any other way (`agentDisplayName` stays imported for the name filter and the toasts, which are prose). Badge policy, so the name cell is worth reading: - The name cell keeps EXCEPTION markers only — SYSTEM, GHOST, Shared. - The #471 pressure badge (on essentially every row of a shared-subscription fleet) moves to the lg secondary line, first in it: a problem signal escalates to the front, as on the grid tile. Predicate untouched. - The runtime badge renders only for a NON-DEFAULT runtime, and never at base. Relocating a pill that is identical on every row is not a reduction: on a homogeneous fleet it now disappears entirely, and on a mixed fleet it marks the exceptions. - The secondary line has a fixed order (slug · pressure · runtime · tags · +N) and a shrink policy — the slug is the only shrinkable item, so the identity ellipsizes instead of the chips being crushed. That order is what keeps the line from becoming the drawer every future badge lands in. md/base row-to-row parity — there is no header there, so parity between rows is all a reader has: a toggle a row may not use is now RESERVED (`invisible` keeps the box and takes no clicks) instead of dropped, which had been shifting the success bar, meter and task counts on exactly the system and shared rows; the md CapacityMeter is always rendered for the same reason; and the md tags row is always rendered, which both hosts the slug and removes a latent jitter where a tagged md row was ~30px taller than an untagged one. Tagless md rows therefore grow by that line — an intended density trade, release-noted in the flow doc. Reservation widths come from the toggles themselves, not hand-written rems, so they cannot drift. Raw-color ratchet (measured): AgentListPanel raw_nongray 28 → 28, hardcoded_colors 3 → 3 (both flat — the hard bar), raw_gray 155 → 159, which is the two meta-ink pairs the lg and md secondary-line containers need so the slug `<code>` inherits ladder-correct ink rather than carrying its own. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(#2358): the Grid tile shows the slug the label hides Same defect as the List row, same surface class (§1.3.1 FR-3 names dashboard cards and grid tiles together): a labelled tile rendered the label alone with the slug on a `title`, so switching Dashboard modes showed the same agent under two naming conventions. The slug leads `.t-repo` — the meta line the tile ALREADY always renders — rather than taking a line of its own. `.gtile` is a fixed 384x216 cell laid out with `space-between`, so a third identity line present only on labelled tiles would compress their zone rhythm and squeeze the charts on exactly those tiles, making the fleet look inconsistent tile to tile. Three details are load-bearing rather than decorative: - `.t-slug` carries its OWN `text-overflow: ellipsis` — `.t-repo span` targets `span`, so a `code` inherits none of it — plus `flex: none; max-width: 55%`, so a long slug ellipsizes instead of painting over the repo text. - Its own `color: var(--gv-muted)` rather than inheriting: `.t-repo.local` ghosts the whole line for an agent with no repo, and the identity is not decoration. No new `--gv-*` var — this is the ink the repo text beside it already uses. - `user-select: all` against `.gtile`'s `user-select: none`, and `nodrag` because `FleetGrid.onTilePointerDown` starts a drag unless the target is inside `.nodrag`. Without both the slug could be neither selected nor copied and a click on it would drag the tile. By design it does NOT navigate — it is a copy affordance; navigation stays on `.t-name` and the Details button. Raw-color counts unchanged at 0 / 0 / 3. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(#2358): e2e for column alignment, both names, and row-height parity Four cases on the List and one on the Grid tile, plus one shared fixture helper. - **Column alignment (lg, 1280 then 1440):** for each `data-col`, every visible row cell's `boundingBox().x` equals the header cell's within 1px. On CI's one-agent fleet this proves HEADER parity; row-to-row alignment across varying `Exec / Sched` content is structural (one subgrid, one set of tracks) and is checked by eye on a real fleet at review. The resize re-run is a layout-stability check, not a varying-content one — the header comment says so, because a spec that overstates what it covers is how a gap survives. - **The meter is in grid rows 1-2:** it starts at or above the name line and ends at or above the secondary line's bottom. Without definite placement in both axes, sparse auto-placement puts it in rows 2-3, hanging an implicit third row under every row in the list — a defect the unit guard catches in source and this catches in pixels. - **Both names, and the slug is real:** the visible name link reads the label, `[data-testid="agent-slug-lg"]` reads the slug, its computed `user-select` is not `none`, and it is not inside an `<a>` (FR-4 wants copyable, and a `title` is none of those things). The system row still says SYSTEM. - **md/base parity:** the slug renders at both, and a row is the same height labelled and unlabelled — measured by labelling the fixture, clearing it, and comparing, rather than asserting a constant. Any runtime badge still visible must sit below the name line. - **Grid tile:** the slug appears on `.t-repo` for a labelled tile and not at all for an unlabelled one, with `user-select: all` and inside `.nodrag`. Appended as its own describe block at the END of the file, imports included, so the change is purely additive and rebases cleanly. `e2e/helpers/agent-label.js` is shared rather than copied into both specs, for the reason `agent-probe.js` states about itself: a fixture pattern re-derived per spec drifts, and the half that drifts here leaves a live agent wearing a test label. It reads the PRIOR label and restores exactly that (including null), restores in `afterEach` because a `finally` in a timed-out body is not reliably run, and throws loudly on any non-2xx rather than letting a caller assert against an unchanged surface. Both blocks are `serial` — `fullyParallel: true` means a sibling worker would otherwise see the borrowed label. `AgentHeader.vue` hides the label pencil for system agents, so a stranded label on `trinity-system` has no UI undo; that hazard is now in `e2e/README.md` beside the probe contract. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(#2358): sync the two adjacent flows the toggle reservation made stale `/sync-feature-flows` over `origin/dev..HEAD`. Mapping the four changed source files against every flow that names them turned up two whose claims no longer matched the code: - `autonomy-toggle-component.md` documented `invisible` as the "column-preserving" pattern for the List panel — a property only the lg layout actually honoured. md and base used `v-if`, so the toggle was removed rather than reserved. - `dashboard-list-view.md`'s system-row Run guard said the toggle is "hidden" without saying which kind of hidden, which is the whole difference between a column that holds and one that shifts. Checked and left alone: `subscription-usage-tracking.md` (says the badge feeds the List row, never where in the row it sits — still true after the demotion), `parallel-capacity.md` and `agent-tags.md` (name the panel as a consumer, do not describe the row's rendering conditions), `agents-page-ui-improvements.md` (explicitly Superseded — a historical record, not a live claim). Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(#2358): correct a locator note that named the old resolver `schedules-toggle-scroll.spec.js` explains why it addresses the row by `data-agent` + `href` rather than link text, and cited `AgentListPanel` rendering `agentDisplayName(agent)`. That call is gone from the panel's markup — the structural guard in `agentName.spec.js` now asserts it is absent — so the note pointed at a function a reader would not find. The house rule it states is unchanged and still correct: the rendered name is the owner-settable label, so a text locator would break the moment anyone labels the agent. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * style(#2358): re-indent the two lg items the wrapper removal left behind Whitespace only (`git diff -w` is empty). Collapsing the three lg wrapper divs into one `lg:contents` wrapper left the secondary line and the CapacityMeter two spaces shallower than the nine cells they sit beside, which made the wrapper's child list unreadable — and that list is the thing a reviewer has to count to see that eleven items land in ten tracks the way the placement classes say they do. Refs #2358 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(#2358): the base Run toggle is dropped again, not reserved The reservation was imported from the md rule ("Reserved, not dropped — see the md note") but the geometry it was written for does not exist at base. The trailing group there is `flex-shrink-0` behind a `flex-1` name, so it is already flush to the row's right edge on every row: measured at 390px, the chevron sits at the same x whether the Run toggle is present, absent or reserved. The reservation therefore aligned nothing — and cost the one row that has no toggle the toggle's ~94px (its `min-w-[3.25rem]` label plus the `w-9` switch plus the gap), taking the system row's name from 221px to 119px and turning a labelled `trinity-system` from fitting to truncated at the narrowest supported width. That is precisely what AC #6 forbids: "whatever remains does not push the name into truncation at common viewport widths". md keeps its reservation, for the reason base never had: there the three toggles sit BEFORE the `flex-1` success bar, so a dropped toggle really does pull a column — the bar starts ~298px further left on system and shared rows. Both numbers are measured, not reasoned: the flex structures were reproduced in a browser and the boxes read off. The two flow docs said "hidden means RESERVED at every breakpoint" and named the capacity meter and task counts among what moved at md. Neither was true — the meter and stats sit after the `flex-1` and never moved, and `base` has no AutonomyToggle at all. Both corrected with the measured numbers. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(#2358): guard the row's item count and the runtime mirror Two contracts the change relies on were written down and left unguarded, and both fail silently. Each new guard was proven by mutating the source and watching it red. The lg row is arithmetic: ten tracks, nine children that auto-place across row 1, two placed by hand. None of those numbers appears in a class string, so the file's existing source-regex guards cannot see them — a twelfth child added to the `lg:contents` wrapper leaves all 32 of them green while the new cell auto-places into row 2 column 1, in the row's left gutter, widening track 1 for the header and every row with it. The shape is now read from the template AST via `vue/compiler-sfc` (the parser Vite already runs on this file, reached through the declared `vue` dependency), which also makes the guard immune to re-indentation — the previous commit on this branch was a re-indent. Three properties, one per failure: the header has one cell per declared track (an eleventh silently opens a second header row); the wrapper holds eleven items of which exactly two are placed by hand; and no auto-placed cell carries `v-if`/`v-for`/`v-else` — auto-placement is positional, so a conditional cell 5 shifts cells 6-9 one track left on that row only, which is the per-row misalignment this issue exists to remove. Reserve with `invisible`, as the system row's Run toggle does, never with `v-if`. `DEFAULT_RUNTIME_IDS` mirrored `RuntimeBadge.vue`'s `isClaudeRuntime` by hand-written assertion, which cannot notice the day the original moves. `RuntimeBadge.vue` is shared and deliberately not edited here, and the predicate is a `computed` with nothing to import, so the set is now DERIVED from its source. Divergence is silent both ways and neither way is cosmetic: a new Claude id the set lacks puts a sunburst pill back on every row of an all-Claude fleet, and an id the badge drops takes the badge off the one runtime it exists to mark. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(#2358): the label borrow cannot strand a live agent Two spec files now borrow whatever `pickLabelFixture` returns, and `mode: 'serial'` orders tests only WITHIN a file. `playwright.config.js` pins `workers: 1` on CI but leaves it at the default locally — which is exactly where both files are run together, since the verify step names them on one command line. Two workers, one agent: the second worker's "prior label" read can land after the first worker's borrow, and it then faithfully restores the FIXTURE label as though it were the operator's own. That is a permanent mislabel on a live agent, produced by a run that reports green, and on `trinity-system` the operator cannot even reach for the pencil to undo it. `FIXTURE_LABEL` moves into the shared helper as the one label these helpers ever write, and `readLabel` REFUSES to return it. The late worker throws before it writes anything, its `afterEach` has nothing to restore, and the worker that actually holds the borrow still puts the agent back. The same refusal catches a run killed mid-borrow: the next run finds the sentinel and says so — with the exact PUT to clear it — instead of adopting a test artefact as the value to restore forever. `--workers=1` for a clean single pass is documented in both spec headers and the e2e README. The string is self-identifying ("Trinity e2e fixture - safe to clear") rather than the plausible-looking "Platform Orchestrator" for the same reason: if it is ever seen on a live agent, whoever finds it must be able to tell at a glance that it is safe to clear. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore(#2358): drop a dead import and a class the guard forbids `AgentTile.vue` kept importing `agentDisplayName` after its only use moved to `agentNameParts`. There is no linter in this package, so an unused import is not caught anywhere and reads to the next person as a second name-resolution path in a file whose whole point is that there is one. `dashboard-list-view.md` drew the header and row as carrying `lg:px-0`. They carry no horizontal padding class at all, and the structural guard rejects the whole `lg:p[xlr]-` family — so a reader who made the markup match the diagram would red the test that exists to keep the insets as margins. Corrected, and the reason stated beside it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * style(#2358): the tile slug uses the canvas's own mono stack `.t-slug` declared a fifth spelling of a font stack that appears four times in `FleetGrid.vue`, inside whose cascade the tile renders. The two differ where it shows: the canvas stack names `Consolas`, this one did not, so on Windows the slug would fall through to the browser's generic `monospace` while the mono text beside it on the same tile did not. Cosmetic, but it is the same defect class as hand-rolling a primitive — one surface, two recipes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: trinity-ability <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 9, 2026
vybe
pushed a commit
that referenced
this pull request
Sep 18, 2026
Lands the trinity-dev backlog merged on 2026-09-18: 13 PRs (#6, #7, #8, #11, #14, #16, #17, #21, #22, #24, #26, #28, #29), plus the /release lessons from the v0.9.5 cut — the DigitalOcean installer tag moves with VERSION (#24), and the headline commit count comes from the previous release PR's head, not the tag. Private submodule: OSS clones skip it (update = none), so nothing changes for external contributors. Co-authored-by: sim <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
7 tasks done
3 tasks
Merged
1 of 2 tasks
5 tasks done
7 tasks
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.
Note
Introduces example workflows and foundational docs for the process-driven platform.
content-review,customer-support,data-analysiswithdefinition.yamlandtemplate.yamlunderconfig/process-templates/IT1–IT4) indocs/PROCESS_DRIVEN_PLATFORM/docker-compose.ymlto set backendTRINITY_DB_PATH=/data/trinity.db.gitignoreto includesrc/backend/services/process_engine/repositories/Written by Cursor Bugbot for commit aa3d56e. Configure here.