Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .trajectories/active/traj_cvtqhlwcq9s0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"id": "traj_cvtqhlwcq9s0",
"version": 1,
"task": {
"title": "Fix trajectory viewer navigation - add back to list",
"source": {
"system": "plain",
"id": "dashboard-nav-fix"
}
},
"status": "active",
"startedAt": "2026-01-03T16:37:49.153Z",
"agents": [
{
"name": "Frontend",
"role": "lead",
"joinedAt": "2026-01-03T16:37:49.154Z"
}
],
"chapters": [
{
"id": "chap_xijeuibb9urb",
"title": "Work",
"agentName": "default",
"startedAt": "2026-01-03T16:38:36.820Z",
"events": [
{
"ts": 1767458316821,
"type": "decision",
"content": "Added back button to header instead of only in empty state: Added back button to header instead of only in empty state",
"raw": {
"question": "Added back button to header instead of only in empty state",
"chosen": "Added back button to header instead of only in empty state",
"alternatives": [],
"reasoning": "Back button was only visible when no steps were displayed. Moving it to header ensures it's always accessible when viewing a specific trajectory."
},
"significance": "high"
}
]
}
],
"commits": [],
"filesChanged": [],
"projectId": "/Users/khaliqgant/Projects/agent-workforce/relay",
"tags": []
}
8 changes: 7 additions & 1 deletion .trajectories/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 1,
"lastUpdated": "2026-01-03T15:55:06.290Z",
"lastUpdated": "2026-01-03T16:38:36.822Z",
"trajectories": {
"traj_ozd98si6a7ns": {
"title": "Fix thinking indicator showing on all messages",
Expand Down Expand Up @@ -232,6 +232,12 @@
"startedAt": "2026-01-03T15:51:54.280Z",
"completedAt": "2026-01-03T15:55:06.279Z",
"path": "/Users/khaliqgant/Projects/agent-workforce/relay/.trajectories/completed/2026-01/traj_prdza7a5cxp5.json"
},
"traj_cvtqhlwcq9s0": {
"title": "Fix trajectory viewer navigation - add back to list",
"status": "active",
"startedAt": "2026-01-03T16:37:49.153Z",
"path": "/Users/khaliqgant/Projects/agent-workforce/relay/.trajectories/active/traj_cvtqhlwcq9s0.json"
}
}
}
202 changes: 202 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
# Agent Relay Cloud - Full QA Test Environment
# Run with: docker compose -f docker-compose.test.yml up --build
#
# This environment simulates the full cloud stack with:
# - PostgreSQL database
# - Redis for sessions/pub-sub
# - Cloud API server
# - Simulated daemon(s) that report metrics
# - Test runner for integration tests
#
# Usage:
# # Start the full stack
# docker compose -f docker-compose.test.yml up -d
#
# # Run integration tests
# docker compose -f docker-compose.test.yml run test-runner
#
# # View logs
# docker compose -f docker-compose.test.yml logs -f
#
# # Tear down
# docker compose -f docker-compose.test.yml down -v

version: '3.8'

services:
# PostgreSQL database
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: agent_relay
POSTGRES_PASSWORD: test_password
POSTGRES_DB: agent_relay_test
ports:
- "5433:5432"
volumes:
- postgres_test_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent_relay"]
interval: 2s
timeout: 5s
retries: 10

# Redis for sessions and pub/sub
redis:
image: redis:7-alpine
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 5s
retries: 10

# Cloud API server
cloud:
build:
context: .
dockerfile: Dockerfile
ports:
- "3100:3000"
environment:
NODE_ENV: test
PORT: 3000
PUBLIC_URL: http://localhost:3100

# Database
DATABASE_URL: postgres://agent_relay:test_password@postgres:5432/agent_relay_test
REDIS_URL: redis://redis:6379

# Session
SESSION_SECRET: test-session-secret

# Vault master key (test only)
VAULT_MASTER_KEY: dGVzdC12YXVsdC1rZXktZm9yLXRlc3Rpbmctb25seQ==

# Disable external services in test mode
STRIPE_SECRET_KEY: sk_test_placeholder
STRIPE_PUBLISHABLE_KEY: pk_test_placeholder
STRIPE_WEBHOOK_SECRET: whsec_test

# Compute provider (docker for local)
COMPUTE_PROVIDER: docker

# Enable memory monitoring
RELAY_MEMORY_MONITORING: "true"
RELAY_CLOUD_ENABLED: "true"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 5s
timeout: 5s
retries: 10

# Simulated daemon 1 - Reports metrics to cloud
daemon-simulator-1:
build:
context: .
dockerfile: test/cloud/Dockerfile.daemon-simulator
environment:
DAEMON_NAME: test-daemon-1
CLOUD_API_URL: http://cloud:3000
SIMULATOR_MODE: "true"
AGENT_COUNT: "3"
REPORT_INTERVAL_MS: "5000"
# Simulate some memory issues
SIMULATE_MEMORY_GROWTH: "true"
SIMULATE_CRASH: "false"
depends_on:
cloud:
condition: service_healthy
restart: on-failure

# Simulated daemon 2 - Normal operation
daemon-simulator-2:
build:
context: .
dockerfile: test/cloud/Dockerfile.daemon-simulator
environment:
DAEMON_NAME: test-daemon-2
CLOUD_API_URL: http://cloud:3000
SIMULATOR_MODE: "true"
AGENT_COUNT: "2"
REPORT_INTERVAL_MS: "5000"
SIMULATE_MEMORY_GROWTH: "false"
SIMULATE_CRASH: "false"
depends_on:
cloud:
condition: service_healthy
restart: on-failure

# Simulated daemon 3 - Crash simulation
daemon-simulator-crash:
build:
context: .
dockerfile: test/cloud/Dockerfile.daemon-simulator
environment:
DAEMON_NAME: test-daemon-crash
CLOUD_API_URL: http://cloud:3000
SIMULATOR_MODE: "true"
AGENT_COUNT: "1"
REPORT_INTERVAL_MS: "3000"
SIMULATE_MEMORY_GROWTH: "false"
SIMULATE_CRASH: "true"
CRASH_AFTER_SECONDS: "30"
depends_on:
cloud:
condition: service_healthy
profiles:
- crash-test

# Integration test runner
test-runner:
build:
context: .
dockerfile: test/cloud/Dockerfile.test-runner
environment:
CLOUD_API_URL: http://cloud:3000
DATABASE_URL: postgres://agent_relay:test_password@postgres:5432/agent_relay_test
REDIS_URL: redis://redis:6379
TEST_TIMEOUT: "60000"
depends_on:
cloud:
condition: service_healthy
daemon-simulator-1:
condition: service_started
daemon-simulator-2:
condition: service_started
volumes:
- ./test:/app/test:ro
- ./src:/app/src:ro
- test_results:/app/test-results
profiles:
- test

# WebSocket test client
ws-test-client:
build:
context: .
dockerfile: test/cloud/Dockerfile.ws-client
environment:
CLOUD_WS_URL: ws://cloud:3000/ws
TEST_DURATION_SECONDS: "60"
depends_on:
cloud:
condition: service_healthy
profiles:
- ws-test

volumes:
postgres_test_data:
test_results:

networks:
default:
name: agent-relay-test
Loading