checkpoint

⚒️ Generated with [Fabro](https://fabro.sh)
This commit is contained in:
Fabro 2026-05-23 10:38:11 -04:00
parent 2589ca8541
commit ca039aff4c
7 changed files with 350 additions and 10 deletions

235
run.json
View file

@ -521,7 +521,7 @@
"kind": "running"
},
"status_updated_at": "2026-05-23T14:10:36.810792Z",
"last_event_at": "2026-05-23T14:12:50.847444Z",
"last_event_at": "2026-05-23T14:38:10.658035Z",
"pending_control": null,
"checkpoints": [
{
@ -688,9 +688,9 @@
}
},
{
"seq": 0,
"seq": 47,
"checkpoint": {
"timestamp": "2026-05-23T14:15:02.311370Z",
"timestamp": "2026-05-23T14:15:07.602513Z",
"current_node": "preflight_lint",
"completed_nodes": [
"start",
@ -700,18 +700,104 @@
],
"node_retries": {},
"context_values": {
"internal.work_dir": "/home/daytona/workspace/fabro",
"command.output": "blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126",
"failure_class": "",
"internal.fidelity": "compact",
"internal.retry_count.preflight_lint": 0,
"graph.goal": "# Slack Run Lifecycle Notifications\n\n## Summary\n\nAdd Slack notifications for `run.started`, `run.completed`, and `run.failed` using the existing `[run.notifications]` namespace as the per-run/per-workflow source of truth. Keep Slack interviews as separate behavior sharing the same Slack connection, and do not move notification settings to server config.\n\n## Key Changes\n\n- Treat configured routes like this as active runtime subscriptions:\n\n ```toml\n [run.notifications.deploys]\n enabled = true\n provider = \"slack\"\n events = [\"run.started\", \"run.completed\", \"run.failed\"]\n\n [run.notifications.deploys.slack]\n channel = \"#deploys\"\n ```\n\n- Require `[run.notifications.<name>.slack].channel` for lifecycle Slack notifications; skip and log a warning if missing or unresolved.\n- Start `SlackService` when Slack credentials are present, even if `server.integrations.slack.default_channel` is absent. Keep `default_channel` only for the existing interview path.\n- Keep interview messages and lifecycle notifications independent:\n - interviews keep `posted_messages` and `thread_registry` behavior\n - lifecycle notifications are fire-and-forget and never accept answers or update messages\n\n## Implementation\n\n- In `lib/crates/fabro-server/src/server.rs`, extend `SlackService::handle_event`:\n - Existing interview event handling remains unchanged.\n - Add a lifecycle path for `RunStarted`, `RunCompleted`, and `RunFailed`.\n - For lifecycle events, load the cached run projection, inspect `projection.spec.settings.run.notifications`, select enabled Slack routes whose `events` contains the current event name, resolve each route channel, and post once per route.\n- In `lib/crates/fabro-slack/src/blocks.rs`, add lifecycle-specific Block Kit builders separate from interview builders.\n - Include run ID, Fabro run link when available, workflow label, result when applicable, duration when applicable, and PR info when available.\n - Use existing Slack escaping/truncation patterns for all untrusted text.\n- Derive fields as follows:\n - workflow: workflow name, then workflow slug, then graph name, then `run.started` event name\n - result: completed status/reason or failed reason/message\n - duration: `RunTiming.wall_time_ms` from completed/failed events, formatted compactly\n - PR: latest prior `pull_request.created` event for number/title/link; if unavailable, fall back to projection `PullRequestLink` with number/link only\n- Update public docs for Slack and run configuration to document `[run.notifications]` and remove or qualify the \"interviews only\" limitation.\n\n## Test Plan\n\n- Add `fabro-slack` unit tests for lifecycle block rendering, escaping, truncation, run links, duration formatting, failed/completed variants, and optional PR fields.\n- Add server tests with a fake Slack endpoint/client path proving:\n - `run.started` posts for a matching enabled route\n - `run.completed` includes result and duration\n - `run.failed` includes failure result/message and duration\n - non-matching events and disabled routes do not post\n - missing lifecycle route channel is skipped and does not affect other routes\n - prior `pull_request.created` adds PR number/title/link\n - interview Slack messages still use interview state and are not mixed with lifecycle notification state\n\n## Assumptions\n\n- Lifecycle Slack notifications are opt-in only through `[run.notifications]`.\n- `provider = \"slack\"` is required; other providers remain parsed but unsupported.\n- Route-level Slack channel is required for lifecycle notifications.\n- Slack post failures are logged and never fail, block, or alter the run.\n- No GitHub API call is made during notification delivery; PR title comes only from existing run events.\n",
"internal.retry_count.preflight_compile": 0,
"failure_signature": "",
"internal.retry_count.toolchain": 0,
"graph.model_stylesheet": "\n * { model: claude-opus-4-7; }\n ",
"thread.start.current_node": "toolchain",
"internal.run_id": "01KSAJRA1SB258HTA5E7VRNH1T",
"internal.thread_id": "preflight_compile",
"internal.node_visit_count": 1,
"thread.preflight_compile.current_node": "preflight_lint",
"outcome": "succeeded",
"graph.rankdir": "LR",
"internal.retry_count.start": 0,
"current_node": "preflight_lint",
"thread.toolchain.current_node": "preflight_compile"
},
"node_outcomes": {
"start": {
"status": "succeeded",
"usage": null
},
"preflight_lint": {
"status": "succeeded",
"context_updates": {
"command.output": "blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126"
},
"notes": "Script completed: cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings 2>&1",
"usage": null
},
"toolchain": {
"status": "succeeded",
"context_updates": {
"command.output": "blob://sha256/fc14b2ba2d770e5cd3169df7a29525c962adfc4cfa3097b9098c63ebd61a748c"
},
"notes": "Script completed: command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1",
"usage": null
},
"preflight_compile": {
"status": "succeeded",
"context_updates": {
"command.output": "blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126"
},
"notes": "Script completed: cargo check -q --workspace 2>&1",
"usage": null
}
},
"next_node_id": "implement",
"git_commit_sha": "a2008b5aee8b24bc045e80b9967e66f952de42e2",
"node_visits": {
"toolchain": 1,
"preflight_compile": 1,
"start": 1,
"preflight_lint": 1
}
},
"diff": {
"summary": {
"files_changed": 0,
"additions": 0,
"deletions": 0
}
}
},
{
"seq": 0,
"checkpoint": {
"timestamp": "2026-05-23T14:38:10.907388Z",
"current_node": "implement",
"completed_nodes": [
"start",
"toolchain",
"preflight_compile",
"preflight_lint",
"implement"
],
"node_retries": {},
"context_values": {
"last_response": "Implemented Slack run lifecycle notifications.\n\nSummary:\n- Added lifecycle Block Kit builders in `fabro-slack` for `run.started`, `run.completed`, and `run.failed`.\n- Extended `SlackService` to:\n - k",
"failure_signature": "",
"internal.run_id": "01KSAJRA1SB258HTA5E7VRNH1T",
"last_stage": "implement",
"command.output": "blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126",
"internal.retry_count.preflight_compile": 0,
"graph.goal": "# Slack Run Lifecycle Notifications\n\n## Summary\n\nAdd Slack notifications for `run.started`, `run.completed`, and `run.failed` using the existing `[run.notifications]` namespace as the per-run/per-workflow source of truth. Keep Slack interviews as separate behavior sharing the same Slack connection, and do not move notification settings to server config.\n\n## Key Changes\n\n- Treat configured routes like this as active runtime subscriptions:\n\n ```toml\n [run.notifications.deploys]\n enabled = true\n provider = \"slack\"\n events = [\"run.started\", \"run.completed\", \"run.failed\"]\n\n [run.notifications.deploys.slack]\n channel = \"#deploys\"\n ```\n\n- Require `[run.notifications.<name>.slack].channel` for lifecycle Slack notifications; skip and log a warning if missing or unresolved.\n- Start `SlackService` when Slack credentials are present, even if `server.integrations.slack.default_channel` is absent. Keep `default_channel` only for the existing interview path.\n- Keep interview messages and lifecycle notifications independent:\n - interviews keep `posted_messages` and `thread_registry` behavior\n - lifecycle notifications are fire-and-forget and never accept answers or update messages\n\n## Implementation\n\n- In `lib/crates/fabro-server/src/server.rs`, extend `SlackService::handle_event`:\n - Existing interview event handling remains unchanged.\n - Add a lifecycle path for `RunStarted`, `RunCompleted`, and `RunFailed`.\n - For lifecycle events, load the cached run projection, inspect `projection.spec.settings.run.notifications`, select enabled Slack routes whose `events` contains the current event name, resolve each route channel, and post once per route.\n- In `lib/crates/fabro-slack/src/blocks.rs`, add lifecycle-specific Block Kit builders separate from interview builders.\n - Include run ID, Fabro run link when available, workflow label, result when applicable, duration when applicable, and PR info when available.\n - Use existing Slack escaping/truncation patterns for all untrusted text.\n- Derive fields as follows:\n - workflow: workflow name, then workflow slug, then graph name, then `run.started` event name\n - result: completed status/reason or failed reason/message\n - duration: `RunTiming.wall_time_ms` from completed/failed events, formatted compactly\n - PR: latest prior `pull_request.created` event for number/title/link; if unavailable, fall back to projection `PullRequestLink` with number/link only\n- Update public docs for Slack and run configuration to document `[run.notifications]` and remove or qualify the \"interviews only\" limitation.\n\n## Test Plan\n\n- Add `fabro-slack` unit tests for lifecycle block rendering, escaping, truncation, run links, duration formatting, failed/completed variants, and optional PR fields.\n- Add server tests with a fake Slack endpoint/client path proving:\n - `run.started` posts for a matching enabled route\n - `run.completed` includes result and duration\n - `run.failed` includes failure result/message and duration\n - non-matching events and disabled routes do not post\n - missing lifecycle route channel is skipped and does not affect other routes\n - prior `pull_request.created` adds PR number/title/link\n - interview Slack messages still use interview state and are not mixed with lifecycle notification state\n\n## Assumptions\n\n- Lifecycle Slack notifications are opt-in only through `[run.notifications]`.\n- `provider = \"slack\"` is required; other providers remain parsed but unsupported.\n- Route-level Slack channel is required for lifecycle notifications.\n- Slack post failures are logged and never fail, block, or alter the run.\n- No GitHub API call is made during notification delivery; PR title comes only from existing run events.\n",
"internal.thread_id": "preflight_compile",
"internal.thread_id": "preflight_lint",
"internal.retry_count.implement": 0,
"thread.start.current_node": "toolchain",
"response.implement": "Implemented Slack run lifecycle notifications.\n\nSummary:\n- Added lifecycle Block Kit builders in `fabro-slack` for `run.started`, `run.completed`, and `run.failed`.\n- Extended `SlackService` to:\n - keep interview behavior/state unchanged,\n - load cached run projections,\n - inspect `[run.notifications]`,\n - select enabled Slack routes matching the current event,\n - resolve required route channels,\n - post lifecycle notifications fire-and-forget,\n - log and skip missing/unresolved channels and post failures.\n- Changed Slack service startup so credentials create a service even without `server.integrations.slack.default_channel`; `default_channel` is now only used for interview prompts.\n- Added PR detail resolution from latest prior `pull_request.created`, with projection `PullRequestLink` fallback.\n- Added fake Slack endpoint/server tests covering the requested routing and separation cases.\n- Updated public Slack, run configuration, and server configuration docs.\n\nValidation run:\n- `cargo nextest run -p fabro-slack` ✅\n- `cargo nextest run -p fabro-server slack_` ✅\n- `cargo check -q --workspace` ✅\n- `cargo +nightly-2026-04-14 fmt --check --all` ✅\n- `cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings` ✅\n- `git diff --check` ✅\n\nNote: a full `cargo test -q -p fabro-server --lib` / `cargo nextest run -p fabro-server` still hits existing unrelated graph-render subprocess failures in this environment (`get_graph_returns_svg` invokes the test binary and gets “running 0 tests” instead of SVG). Focused Slack tests pass.",
"thread.preflight_compile.current_node": "preflight_lint",
"graph.rankdir": "LR",
"graph.model_stylesheet": "\n * { model: claude-opus-4-7; }\n ",
"internal.fidelity": "compact",
"current_node": "preflight_lint",
"current_node": "implement",
"internal.node_visit_count": 1,
"internal.retry_count.start": 0,
"outcome": "succeeded",
@ -719,7 +805,8 @@
"internal.work_dir": "/home/daytona/workspace/fabro",
"failure_class": "",
"internal.retry_count.preflight_lint": 0,
"internal.retry_count.toolchain": 0
"internal.retry_count.toolchain": 0,
"thread.preflight_lint.current_node": "implement"
},
"node_outcomes": {
"preflight_compile": {
@ -730,6 +817,36 @@
"notes": "Script completed: cargo check -q --workspace 2>&1",
"usage": null
},
"implement": {
"status": "succeeded",
"context_updates": {
"last_response": "Implemented Slack run lifecycle notifications.\n\nSummary:\n- Added lifecycle Block Kit builders in `fabro-slack` for `run.started`, `run.completed`, and `run.failed`.\n- Extended `SlackService` to:\n - k",
"response.implement": "Implemented Slack run lifecycle notifications.\n\nSummary:\n- Added lifecycle Block Kit builders in `fabro-slack` for `run.started`, `run.completed`, and `run.failed`.\n- Extended `SlackService` to:\n - keep interview behavior/state unchanged,\n - load cached run projections,\n - inspect `[run.notifications]`,\n - select enabled Slack routes matching the current event,\n - resolve required route channels,\n - post lifecycle notifications fire-and-forget,\n - log and skip missing/unresolved channels and post failures.\n- Changed Slack service startup so credentials create a service even without `server.integrations.slack.default_channel`; `default_channel` is now only used for interview prompts.\n- Added PR detail resolution from latest prior `pull_request.created`, with projection `PullRequestLink` fallback.\n- Added fake Slack endpoint/server tests covering the requested routing and separation cases.\n- Updated public Slack, run configuration, and server configuration docs.\n\nValidation run:\n- `cargo nextest run -p fabro-slack` ✅\n- `cargo nextest run -p fabro-server slack_` ✅\n- `cargo check -q --workspace` ✅\n- `cargo +nightly-2026-04-14 fmt --check --all` ✅\n- `cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings` ✅\n- `git diff --check` ✅\n\nNote: a full `cargo test -q -p fabro-server --lib` / `cargo nextest run -p fabro-server` still hits existing unrelated graph-render subprocess failures in this environment (`get_graph_returns_svg` invokes the test binary and gets “running 0 tests” instead of SVG). Focused Slack tests pass.",
"last_stage": "implement"
},
"notes": "Stage completed: implement",
"usage": {
"input": {
"usage": {
"model": {
"provider": "openai",
"model_id": "gpt-5.5"
},
"tokens": {
"input_tokens": 340229,
"output_tokens": 24994,
"reasoning_tokens": 18682,
"cache_read_tokens": 22334464,
"cache_write_tokens": 0
}
},
"facts": {
"algorithm": "openai"
}
},
"total_usd_micros": 14178657
}
},
"toolchain": {
"status": "succeeded",
"context_updates": {
@ -751,9 +868,10 @@
"usage": null
}
},
"next_node_id": "implement",
"next_node_id": "simplify_opus",
"node_visits": {
"start": 1,
"implement": 1,
"preflight_compile": 1,
"toolchain": 1,
"preflight_lint": 1
@ -782,6 +900,50 @@
"pull_request": null,
"superseded_by": null,
"pending_interviews": {},
"todos_by_list": {
"openai_plan:660c2f55-e433-41db-9c5b-a8f24afd078b": {
"kind": "openai_plan",
"list_id": "openai_plan:660c2f55-e433-41db-9c5b-a8f24afd078b",
"items": [
{
"id": "9d30b1ac11c60eab",
"status": "completed",
"order": 0,
"subject": "Add failing fabro-slack lifecycle block unit tests"
},
{
"id": "b25eaaf097ee5582",
"status": "completed",
"order": 1,
"subject": "Add failing server Slack lifecycle notification tests"
},
{
"id": "05f95dd5d55579f7",
"status": "completed",
"order": 2,
"subject": "Implement lifecycle block builders and Slack client test seam"
},
{
"id": "d50355a1ab765a97",
"status": "completed",
"order": 3,
"subject": "Implement server lifecycle routing, channel resolution, PR lookup, and startup change"
},
{
"id": "d38e7e1d6b4063f8",
"status": "completed",
"order": 4,
"subject": "Update public Slack and run configuration docs"
},
{
"id": "f25e22f3110d6ba7",
"status": "completed",
"order": 5,
"subject": "Run focused tests, then formatting/clippy as feasible"
}
]
}
},
"stages": {
"start@1": {
"first_event_seq": 16,
@ -821,7 +983,12 @@
"first_event_seq": 40,
"prompt": null,
"response": null,
"completion": null,
"completion": {
"outcome": "succeeded",
"notes": "Script completed: cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings 2>&1",
"failure_reason": null,
"timestamp": "2026-05-23T14:15:02.310470Z"
},
"provider_used": null,
"diff": null,
"script_invocation": {
@ -829,11 +996,27 @@
"command": "exec 2>&1\ncargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings 2>&1",
"language": "shell"
},
"script_timing": null,
"script_timing": {
"output": "blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126",
"exit_code": 0,
"duration_ms": 131457,
"termination": "exited",
"output_bytes": 0,
"live_streaming": false
},
"parallel_results": null,
"output": null,
"output_bytes": 0,
"live_streaming": false,
"termination": "exited",
"started_at": "2026-05-23T14:12:50.846917Z",
"handler": "command",
"timing": {
"wall_time_ms": 131463,
"inference_time_ms": 0,
"tool_time_ms": 0,
"active_time_ms": 0
},
"usage": {
"input_tokens": 0,
"output_tokens": 0,
@ -842,7 +1025,7 @@
"cache_read_tokens": 0,
"cache_write_tokens": 0
},
"state": "running"
"state": "succeeded"
},
"preflight_compile@1": {
"first_event_seq": 30,
@ -892,6 +1075,38 @@
},
"state": "succeeded"
},
"implement@1": {
"first_event_seq": 50,
"prompt": null,
"response": null,
"completion": null,
"provider_used": {
"mode": "agent",
"provider": "openai",
"model": "gpt-5.5"
},
"diff": null,
"script_invocation": null,
"script_timing": null,
"parallel_results": null,
"output": null,
"started_at": "2026-05-23T14:15:07.604955Z",
"handler": "agent",
"usage": {
"input_tokens": 340229,
"output_tokens": 24994,
"total_tokens": 22718369,
"reasoning_tokens": 18682,
"cache_read_tokens": 22334464,
"cache_write_tokens": 0,
"total_usd_micros": 14178657
},
"model": {
"provider": "openai",
"model_id": "gpt-5.5"
},
"state": "running"
},
"toolchain@1": {
"first_event_seq": 20,
"prompt": null,

View file

@ -0,0 +1 @@
blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126

View file

@ -0,0 +1,8 @@
{
"output": "blob://sha256/12ae32cb1ec02d01eda3581b127c1fee3b0dc53572ed6baf239721a03d82e126",
"exit_code": 0,
"duration_ms": 131457,
"termination": "exited",
"output_bytes": 0,
"live_streaming": false
}

View file

@ -0,0 +1,6 @@
{
"outcome": "succeeded",
"notes": "Script completed: cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings 2>&1",
"failure_reason": null,
"timestamp": "2026-05-23T14:15:02.310470Z"
}

View file

@ -0,0 +1,79 @@
Goal: # Slack Run Lifecycle Notifications
## Summary
Add Slack notifications for `run.started`, `run.completed`, and `run.failed` using the existing `[run.notifications]` namespace as the per-run/per-workflow source of truth. Keep Slack interviews as separate behavior sharing the same Slack connection, and do not move notification settings to server config.
## Key Changes
- Treat configured routes like this as active runtime subscriptions:
```toml
[run.notifications.deploys]
enabled = true
provider = "slack"
events = ["run.started", "run.completed", "run.failed"]
[run.notifications.deploys.slack]
channel = "#deploys"
```
- Require `[run.notifications.<name>.slack].channel` for lifecycle Slack notifications; skip and log a warning if missing or unresolved.
- Start `SlackService` when Slack credentials are present, even if `server.integrations.slack.default_channel` is absent. Keep `default_channel` only for the existing interview path.
- Keep interview messages and lifecycle notifications independent:
- interviews keep `posted_messages` and `thread_registry` behavior
- lifecycle notifications are fire-and-forget and never accept answers or update messages
## Implementation
- In `lib/crates/fabro-server/src/server.rs`, extend `SlackService::handle_event`:
- Existing interview event handling remains unchanged.
- Add a lifecycle path for `RunStarted`, `RunCompleted`, and `RunFailed`.
- For lifecycle events, load the cached run projection, inspect `projection.spec.settings.run.notifications`, select enabled Slack routes whose `events` contains the current event name, resolve each route channel, and post once per route.
- In `lib/crates/fabro-slack/src/blocks.rs`, add lifecycle-specific Block Kit builders separate from interview builders.
- Include run ID, Fabro run link when available, workflow label, result when applicable, duration when applicable, and PR info when available.
- Use existing Slack escaping/truncation patterns for all untrusted text.
- Derive fields as follows:
- workflow: workflow name, then workflow slug, then graph name, then `run.started` event name
- result: completed status/reason or failed reason/message
- duration: `RunTiming.wall_time_ms` from completed/failed events, formatted compactly
- PR: latest prior `pull_request.created` event for number/title/link; if unavailable, fall back to projection `PullRequestLink` with number/link only
- Update public docs for Slack and run configuration to document `[run.notifications]` and remove or qualify the "interviews only" limitation.
## Test Plan
- Add `fabro-slack` unit tests for lifecycle block rendering, escaping, truncation, run links, duration formatting, failed/completed variants, and optional PR fields.
- Add server tests with a fake Slack endpoint/client path proving:
- `run.started` posts for a matching enabled route
- `run.completed` includes result and duration
- `run.failed` includes failure result/message and duration
- non-matching events and disabled routes do not post
- missing lifecycle route channel is skipped and does not affect other routes
- prior `pull_request.created` adds PR number/title/link
- interview Slack messages still use interview state and are not mixed with lifecycle notification state
## Assumptions
- Lifecycle Slack notifications are opt-in only through `[run.notifications]`.
- `provider = "slack"` is required; other providers remain parsed but unsupported.
- Route-level Slack channel is required for lifecycle notifications.
- Slack post failures are logged and never fail, block, or alter the run.
- No GitHub API call is made during notification delivery; PR title comes only from existing run events.
## Completed stages
- **toolchain**: succeeded
- Script: `command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1`
- Output:
```
cargo 1.95.0 (f2d3ce0bd 2026-03-21)
```
- **preflight_compile**: succeeded
- Script: `cargo check -q --workspace 2>&1`
- Output: (empty)
- **preflight_lint**: succeeded
- Script: `cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings 2>&1`
- Output: (empty)
Read the plan file referenced in the goal and implement every step. Make all the code changes described in the plan. Use red/green TDD.

View file

@ -0,0 +1,5 @@
{
"mode": "agent",
"provider": "openai",
"model": "gpt-5.5"
}

View file

@ -0,0 +1,26 @@
Implemented Slack run lifecycle notifications.
Summary:
- Added lifecycle Block Kit builders in `fabro-slack` for `run.started`, `run.completed`, and `run.failed`.
- Extended `SlackService` to:
- keep interview behavior/state unchanged,
- load cached run projections,
- inspect `[run.notifications]`,
- select enabled Slack routes matching the current event,
- resolve required route channels,
- post lifecycle notifications fire-and-forget,
- log and skip missing/unresolved channels and post failures.
- Changed Slack service startup so credentials create a service even without `server.integrations.slack.default_channel`; `default_channel` is now only used for interview prompts.
- Added PR detail resolution from latest prior `pull_request.created`, with projection `PullRequestLink` fallback.
- Added fake Slack endpoint/server tests covering the requested routing and separation cases.
- Updated public Slack, run configuration, and server configuration docs.
Validation run:
- `cargo nextest run -p fabro-slack` ✅
- `cargo nextest run -p fabro-server slack_` ✅
- `cargo check -q --workspace` ✅
- `cargo +nightly-2026-04-14 fmt --check --all` ✅
- `cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -D warnings` ✅
- `git diff --check` ✅
Note: a full `cargo test -q -p fabro-server --lib` / `cargo nextest run -p fabro-server` still hits existing unrelated graph-render subprocess failures in this environment (`get_graph_returns_svg` invokes the test binary and gets “running 0 tests” instead of SVG). Focused Slack tests pass.