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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## Pencil

- `design/comments.md` is strictly designer↔developer UI communication. Put code-level bug analysis in a GitHub issue, never there.
- `design/docs/comments.md` is strictly designer↔developer UI communication. Put code-level bug analysis in a GitHub issue, never there.

## Other

Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services/platform/.env*.local
# Integration/container test suites + AI-QA playbooks (live in @tale/platform,
# never shipped in the image).
services/platform/tests/
designs/
design/sources/
scripts/
knip-results.json
.playwright-mcp/
Expand Down
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Exclude designs from GitHub language statistics (Linguist).
designs/** linguist-vendored
# Exclude design sources from GitHub language statistics (Linguist).
design/sources/** linguist-vendored

# Exclude the generated .claude/skills mirror from Linguist — it is regenerated
# from .agents/skills by `bun run skills:sync` (see tools/skills), not hand-written.
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ enforced source and match it (the generic method is `search-codebase`'s orient s
| Types | the `tsconfig*.json` chain (strict) |
| Commit format & scopes | `.commitlintrc.json` |
| Security / SAST | [`tools/opengrep/`](tools/opengrep/) — `bun run lint:sast` |
| Design system & tokens | [`design/`](design/) + [`designs/`](designs/) + `@tale/ui` |
| Design system & tokens | [`design/`](design/) (`docs/` + `sources/`) + `@tale/ui` |
| Everything at once | `bun run check` (format, lint, typecheck, all tests) |

The **guards are the spec** — run `bun run check` and read the failures; they teach the house style
Expand Down
55 changes: 26 additions & 29 deletions builtin-configs/workflows/projects/tasks/run-assigned-task.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,10 @@
"description": "Assignment events on closed/archived tasks (e.g. bulk edits) must not start agent work."
},
"nextSteps": {
"true": "ack",
"true": "run",
"false": "done"
}
},
{
"stepSlug": "ack",
"name": "Acknowledge (In progress)",
"stepType": "action",
"config": {
"type": "task",
"parameters": {
"operation": "update_status",
"taskId": "{{input.task._id}}",
"status": "in_progress"
}
},
"nextSteps": {
"success": "run"
}
},
{
"stepSlug": "run",
"name": "Run the assigned agent",
Expand All @@ -83,7 +67,7 @@
"stepType": "condition",
"config": {
"expression": "steps.run.output.data.ok == true && steps.run.output.data.external != true",
"description": "Internal runs park at In review now; external dispatches return immediately and the daemon's completion does it later."
"description": "Internal runs park at In review now; external dispatches return immediately and the daemon's completion does it later. The In progress ack happens inside run admission (run_on_task), never before it — a refused run must not flash the status."
},
"nextSteps": {
"true": "to_review",
Expand All @@ -100,7 +84,7 @@
},
"nextSteps": {
"true": "done",
"false": "check_refused"
"false": "check_admitted"
}
},
{
Expand All @@ -120,16 +104,16 @@
}
},
{
"stepSlug": "check_refused",
"name": "Guardrail refusal?",
"stepSlug": "check_admitted",
"name": "Was the run admitted?",
"stepType": "condition",
"config": {
"expression": "steps.run.output.data.refusedReason == 'queued' || steps.run.output.data.refusedReason == 'budget_paused' || steps.run.output.data.refusedReason == 'task_circuit_breaker' || steps.run.output.data.refusedReason == 'automation_disabled'",
"description": "Guardrail refusals already posted their own specific comment (queued / budget / breaker) — roll back quietly. Real failures get an explanatory comment."
"expression": "steps.run.output.data.runId",
"description": "An admitted run (a run row exists) was acked In progress before it failed — explain and roll back. A refused run never touched the status, so there is nothing to roll back."
},
"nextSteps": {
"true": "rollback_quiet",
"false": "fail_comment"
"true": "fail_comment",
"false": "check_refused"
}
},
{
Expand Down Expand Up @@ -165,15 +149,28 @@
}
},
{
"stepSlug": "rollback_quiet",
"name": "Roll back to To do (guardrail already commented)",
"stepSlug": "check_refused",
"name": "Did the refusal already explain itself?",
"stepType": "condition",
"config": {
"expression": "steps.run.output.data.refusedReason == 'queued' || steps.run.output.data.refusedReason == 'budget_paused' || steps.run.output.data.refusedReason == 'task_circuit_breaker' || steps.run.output.data.refusedReason == 'automation_disabled' || steps.run.output.data.refusedReason == 'task_not_found'",
"description": "Guardrail refusals post their own notices (queued / budget / breaker) and a deleted task has no timeline left — end quietly. Other refusals (agent disabled or not installed) get an explanatory comment; the status stays untouched either way."
},
"nextSteps": {
"true": "done",
"false": "refused_comment"
}
},
{
"stepSlug": "refused_comment",
"name": "Explain why the run never started",
"stepType": "action",
"config": {
"type": "task",
"parameters": {
"operation": "update_status",
"operation": "comment",
"taskId": "{{input.task._id}}",
"status": "todo"
"body": "[automated] ⚠️ {{input.assigneeId}} could not start this task: {{steps.run.output.data.error || 'unknown error'}} The task status was left unchanged. If the agent is not installed or enabled, enable it on the Agents page — connecting an integration alone does not enable its bundled agents."
}
},
"nextSteps": {
Expand Down
40 changes: 37 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading