Skip to content

Commit 8b65a75

Browse files
NagyViktNagyVikt
andauthored
Polish fleet waves spawn timeline (#192)
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
1 parent e1714fd commit 8b65a75

50 files changed

Lines changed: 1255 additions & 63 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
schema: spec-driven
2+
created: 2026-05-18
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Why
2+
3+
The fleet-waves dashboard needs to match the design-I spawn timeline reference more closely so operators can scan wave sequencing, task completion, and agent assignment in one pass.
4+
5+
## What Changes
6+
7+
- Polish `rust/fleet-waves/src/main.rs` Gantt rows with proportional timeline bars.
8+
- Add timeline tick markers and right-side `TASKS` / `AGENTS` columns.
9+
- Add an active-wave shimmer sweep and regression coverage for active-wave and proportional-width helpers.
10+
11+
## Impact
12+
13+
Risk is limited to the `fleet-waves` TUI binary. Verification is `RUSTC_WRAPPER= cargo test -p fleet-waves`.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ADDED Requirements
2+
3+
### Requirement: Fleet Waves Spawn Timeline Polish
4+
The fleet-waves dashboard SHALL render wave progress as a Gantt-style spawn timeline that includes proportional bars, timeline tick markers, and task/agent summary columns.
5+
6+
#### Scenario: Wave rows expose timeline, task, and agent state
7+
- **WHEN** a plan has topological waves with completed, claimed, and idle tasks
8+
- **THEN** the Gantt card shows a top tick-marker row above the wave bars
9+
- **AND** each wave row shows a proportional bar width based on its task count
10+
- **AND** each wave row shows right-aligned `TASKS` and `AGENTS` values
11+
- **AND** the active claimed wave receives a tint shimmer sweep without changing row geometry.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Definition of Done
2+
3+
This change is complete only when **all** of the following are true:
4+
5+
- Every checkbox below is checked.
6+
- The agent branch reaches `MERGED` state on `origin` and the PR URL + state are recorded in the completion handoff.
7+
- If any step blocks (test failure, conflict, ambiguous result), append a `BLOCKED:` line under section 4 explaining the blocker and **STOP**. Do not tick remaining cleanup boxes; do not silently skip the cleanup pipeline.
8+
9+
## Handoff
10+
11+
- Handoff: change=`agent-codex-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22`; branch=`agent/<your-name>/<branch-slug>`; scope=`TODO`; action=`continue this sandbox or finish cleanup after a usage-limit/manual takeover`.
12+
- Copy prompt: Continue `agent-codex-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22` on branch `agent/<your-name>/<branch-slug>`. Work inside the existing sandbox, review `openspec/changes/agent-codex-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22/tasks.md`, continue from the current state instead of creating a new sandbox, and when the work is done run `gx branch finish --branch agent/<your-name>/<branch-slug> --base dev --via-pr --wait-for-merge --cleanup`.
13+
14+
## 1. Specification
15+
16+
- [x] 1.1 Finalize proposal scope and acceptance criteria for `agent-codex-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22`.
17+
- [x] 1.2 Define normative requirements in `specs/design-i-match-fleet-waves-spawn-timeline-polish/spec.md`.
18+
19+
## 2. Implementation
20+
21+
- [x] 2.1 Implement scoped behavior changes.
22+
- [x] 2.2 Add/update focused regression coverage.
23+
24+
## 3. Verification
25+
26+
- [x] 3.1 Run targeted project verification commands.
27+
- [x] 3.2 Run `openspec validate agent-codex-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22 --type change --strict`.
28+
- [x] 3.3 Run `openspec validate --specs`.
29+
30+
## 4. Cleanup (mandatory; run before claiming completion)
31+
32+
- [ ] 4.1 Run the cleanup pipeline: `gx branch finish --branch agent/<your-name>/<branch-slug> --base dev --via-pr --wait-for-merge --cleanup`. This handles commit -> push -> PR create -> merge wait -> worktree prune in one invocation.
33+
- [ ] 4.2 Record the PR URL and final merge state (`MERGED`) in the completion handoff.
34+
- [ ] 4.3 Confirm the sandbox worktree is gone (`git worktree list` no longer shows the agent path; `git branch -a` shows no surviving local/remote refs for the branch).
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Plan Workspace: agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22
2+
3+
This folder stores durable planning artifacts before implementation changes.
4+
5+
## Shared files
6+
- `summary.md`
7+
- `checkpoints.md`
8+
- `phases.md`
9+
- `open-questions.md`
10+
- `coordinator-prompt.md`
11+
- `kickoff-prompts.md`
12+
13+
## Role folders
14+
- `planner/`
15+
- `architect/`
16+
- `critic/`
17+
- `executor/`
18+
- `writer/`
19+
- `verifier/`
20+
21+
When Codex or Claude hits an unresolved question that should survive chat, add it to `open-questions.md` as an unchecked `- [ ]` item.
22+
23+
Each role folder contains OpenSpec-style artifacts:
24+
- `.openspec.yaml`
25+
- `prompt.md` (copy/paste role prompt)
26+
- `proposal.md`
27+
- `tasks.md` (Spec / Tests / Implementation / Checkpoints checklists)
28+
- `specs/<role>/spec.md`
29+
Planner also gets `plan.md`; executor also gets `checkpoints.md`.
30+
Planner plans should follow `openspec/plan/PLANS.md`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
schema: 1
2+
plan: agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22
3+
role: architect
4+
status: draft
5+
artifacts:
6+
prompt: prompt.md
7+
proposal: proposal.md
8+
tasks: tasks.md
9+
spec: specs/architect/spec.md
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# architect
2+
3+
Role workspace for `architect`.
4+
5+
Default artifacts:
6+
- `.openspec.yaml`
7+
- `prompt.md`
8+
- `proposal.md`
9+
- `tasks.md`
10+
- `specs/<role>/spec.md`
11+
12+
Use this folder for role notes, artifacts, and status updates.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# architect Prompt
2+
3+
You are the `architect` role for OpenSpec plan `agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22`.
4+
5+
## Objective
6+
7+
Complete only this role's assigned checklist and leave compact evidence for the coordinator.
8+
9+
## Source of truth
10+
11+
- `openspec/plan/agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22/summary.md`
12+
- `openspec/plan/agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22/checkpoints.md`
13+
- `openspec/plan/agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22/open-questions.md`
14+
- `openspec/plan/agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22/architect/tasks.md`
15+
- `openspec/plan/agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22/architect/proposal.md`
16+
17+
## Before edits
18+
19+
1. Confirm branch/worktree with `git status --short --branch`.
20+
2. Claim every touched file before editing:
21+
- Prefer Colony `task_claim_file` when an active task exists.
22+
- Otherwise run `gx locks claim --branch <agent-branch> <file...>`.
23+
3. Stay inside assigned files/modules; coordinate before touching shared paths.
24+
25+
## Working rules
26+
27+
- Update `architect/tasks.md` as each item completes.
28+
- Record durable unresolved questions in `open-questions.md`.
29+
- Keep handoffs short: files changed, behavior touched, verification, risks.
30+
- Do not revert another agent's edits.
31+
32+
## Cleanup
33+
34+
Only the owner/finalizer lane runs `gx branch finish --branch <agent-branch> --base dev --via-pr --wait-for-merge --cleanup`. If blocked, append `BLOCKED:` with branch, task, blocker, next, evidence.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Proposal: architect (agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22)
2+
3+
## Why
4+
5+
Summarize why this role's work is required for plan `agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22`.
6+
7+
## What Changes
8+
9+
- [ ] List the planned role-specific changes
10+
11+
## Impact
12+
13+
- Scope:
14+
- Risks:
15+
- Dependencies:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Capability Spec: architect
2+
3+
## ADDED Requirements
4+
5+
### Requirement: architect responsibilities for `agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22`
6+
This role MUST define and deliver its scoped outputs with evidence.
7+
8+
#### Scenario: Role executes assigned scope
9+
- **WHEN** the role begins execution for `agent-codex-masterplan-design-i-match-fleet-waves-spawn-timelin-2026-05-18-14-22`
10+
- **THEN** it follows `tasks.md` and records evidence for completion

0 commit comments

Comments
 (0)