-
-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Production-grade agent with observability and security #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
13b2591
3cca4d0
ce62119
7539849
3dfa380
531d3fa
3a66428
2126815
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ Dev8 Agent is a stateless Go microservice that orchestrates Azure Container Inst | |
| - **Stateless**: No database, Next.js is source of truth | ||
| - **Concurrent**: File shares + ACI created simultaneously | ||
| - **Resilient**: Automatic cleanup on failures | ||
| - **Fast Restart**: 15-20s with volume reuse | ||
| - **Fast Restart**: 5-10s when restarting stopped containers | ||
|
|
||
| --- | ||
|
|
||
|
|
@@ -88,12 +88,12 @@ FQDN: ws-clxxx-yyyy-zzzz-aaaa-bbbb.centralindia.azurecontainer.io | |
|
|
||
| ### Operation Times | ||
|
|
||
| | Operation | Time | Notes | | ||
| | -------------------- | ---------- | -------------------------- | | ||
| | **Create Workspace** | 2m10-2m15s | All operations concurrent | | ||
| | **Start Workspace** | 15-20s | β‘ Reuses existing volumes | | ||
| | **Stop Workspace** | 2s | Deletes container only | | ||
| | **Delete Workspace** | 5s | Removes all resources | | ||
| | Operation | Time | Notes | | ||
| | -------------------- | ---------- | ------------------------------- | | ||
| | **Create Workspace** | 2m10-2m15s | All operations concurrent | | ||
| | **Start Workspace** | 5-10s | β‘ Restarts stopped container | | ||
| | **Stop Workspace** | 2s | Stops container (keeps volumes) | | ||
| | **Delete Workspace** | 5s | Removes all resources | | ||
|
|
||
| ### Create Workspace Breakdown | ||
|
|
||
|
|
@@ -144,11 +144,11 @@ TOTAL ~2m18s | |
| π° $35/month (while running) | ||
|
|
||
| 3οΈβ£ STOP (End of Day) | ||
| β 2s - Container deleted | ||
| π° $1-2/month (volumes only) | ||
| β 2s - Container stopped | ||
| π° Reduced cost (container stopped, volumes preserved) | ||
|
|
||
| 4οΈβ£ START (Next Day) | ||
| β 15-20s - Container recreated | ||
| β 5-10s - Container restarted | ||
| π° $35/month (running again) | ||
| β All files preserved! | ||
| ``` | ||
|
|
@@ -325,7 +325,7 @@ Content-Type: application/json | |
| } | ||
| ``` | ||
|
|
||
| **Response (200 OK) - After ~15-20s:** | ||
| **Response (200 OK) - After ~5-10s:** | ||
|
|
||
| ```json | ||
| { | ||
|
|
@@ -348,10 +348,10 @@ Content-Type: application/json | |
| **Agent Logs:** | ||
|
|
||
| ``` | ||
| 2025/10/27 15:00:00 π Starting workspace clxxx-yyyy-zzzz-aaaa-bbbb (checking volumes...) | ||
| 2025/10/27 15:00:01 β Volumes verified: workspace=fs-clxxx-..., home=fs-clxxx-...-home | ||
| 2025/10/27 15:00:01 π¦ Creating new container instance with existing volumes... | ||
| 2025/10/27 15:00:18 β Workspace clxxx-yyyy-zzzz-aaaa-bbbb started successfully (reused existing volumes) | ||
| 2025/10/27 15:00:00 π Starting workspace clxxx-yyyy-zzzz-aaaa-bbbb (checking volume...) | ||
| 2025/10/27 15:00:01 β Unified volume verified: fs-clxxx-yyyy-zzzz-aaaa-bbbb | ||
| 2025/10/27 15:00:01 π¦ Starting container instance with existing volumes... | ||
| 2025/10/27 15:00:08 β Workspace clxxx-yyyy-zzzz-aaaa-bbbb started successfully (reused existing volumes) | ||
| ``` | ||
|
Comment on lines
350
to
355
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add language identifier to fenced code block. This Agent Logs block is also missing a language specifier for consistency and improved markdown rendering. -```
+```log
2025/10/27 15:00:00 π Starting workspace clxxx-yyyy-zzzz-aaaa-bbbb (checking volume...)
2025/10/27 15:00:01 β
Unified volume verified: fs-clxxx-yyyy-zzzz-aaaa-bbbb
2025/10/27 15:00:01 π¦ Starting container instance with existing volumes...
2025/10/27 15:00:08 β
Workspace clxxx-yyyy-zzzz-aaaa-bbbb started successfully (reused existing volumes)
-```
+```π§° Toolsπͺ markdownlint-cli2 (0.18.1)350-350: Fenced code blocks should have a language specified (MD040, fenced-code-language) π€ Prompt for AI Agents |
||
|
|
||
| --- | ||
|
|
@@ -379,16 +379,16 @@ Content-Type: application/json | |
| "message": "Workspace stopped successfully", | ||
| "data": { | ||
| "workspaceId": "clxxx-yyyy-zzzz-aaaa-bbbb", | ||
| "message": "Container deleted, volumes preserved. Restart anytime to resume work." | ||
| "message": "Container stopped, volumes preserved. Restart anytime to resume work." | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| **Agent Logs:** | ||
|
|
||
| ``` | ||
| 2025/10/27 18:00:00 π Stopping workspace clxxx-yyyy-zzzz-aaaa-bbbb: DELETING container (keeping volumes) | ||
| 2025/10/27 18:00:02 β Workspace clxxx-yyyy-zzzz-aaaa-bbbb stopped (container deleted, volumes persisted for fast restart) | ||
| 2025/10/27 18:00:00 π Stopping workspace clxxx-yyyy-zzzz-aaaa-bbbb (releasing compute, preserving storage) | ||
| 2025/10/27 18:00:02 β Workspace clxxx-yyyy-zzzz-aaaa-bbbb stopped successfully (compute released, storage preserved for fast restart) | ||
| ``` | ||
|
Comment on lines
387
to
392
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add language identifier to fenced code block. The Agent Logs code block is missing a language specifier. Add -```
+```log
2025/10/27 18:00:00 π Stopping workspace clxxx-yyyy-zzzz-aaaa-bbbb (releasing compute, preserving storage)
2025/10/27 18:00:02 β
Workspace clxxx-yyyy-zzzz-aaaa-bbbb stopped successfully (compute released, storage preserved for fast restart)
-```
+```π§° Toolsπͺ markdownlint-cli2 (0.18.1)389-389: Fenced code blocks should have a language specified (MD040, fenced-code-language) π€ Prompt for AI Agents |
||
|
|
||
| --- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
Inconsistent Start Workspace timing across tables.
The Performance Benchmarks table (line 94) specifies "5-10s" for Start Workspace, but the Endpoint Overview table (line 190) lists "~15-20s". This creates ambiguity about actual performance expectations. Verify the correct timing and update all references consistently, including the Mermaid diagram (line 537) and Performance Tips (line 653), which also reference "15-20s".
Also applies to: 190-190
I'll verify the timing inconsistencies mentioned in the review comment by examining the actual file content.
π Script executed:
Length of output: 1515
Update all Start Workspace timing references to be consistent throughout the documentation.
The review comment is accurate. The file contains conflicting timing values: "5-10s" appears in the Performance Benchmarks table (line 94), Start response example (line 328), and in lines 40 and 151; while "~15-20s" appears in the Endpoint Overview table (line 190), Mermaid diagram (line 537), and Performance Tips (line 653).
Update all references to use a single timing value consistently across:
If the operations differ semantically (e.g., restarting stopped containers vs. general start), clarify this distinction in the documentation rather than leaving conflicting values.
π€ Prompt for AI Agents