Sprint
One file holds the sprint. This page says what is in it, which commands read it, and how a plan becomes issues on GitHub.
What it is
The sprint lives in one file, departments/sprint.json. The current sprint is the one whose dates contain today.
Everything else reads that file:
- The home options in the Kun app. The board's sprint signal comes from it.
- The tasks API.
- The company brief.
- The sprint page in the docs.
GitHub issues are a copy of the file. The file is never rebuilt from GitHub.
The file
A sprint has these fields.
| Field | What it is |
|---|---|
number | The sprint's number |
title | Its name, such as "Sprint 3" |
start | First day, as YYYY-MM-DD |
end | Last day, as YYYY-MM-DD. The sprint holds today when start and end both include it |
goal | One sentence of what the sprint is for, in English and Arabic |
goals | The few goals that tasks point to, each with an id and a name in both languages |
tasks | The list of tasks |
A task has these fields.
| Field | What it is |
|---|---|
id | A short name that stays the same, such as s3-sales-1 |
dept | The department that owns it |
repo | The repo where the issue lives |
needs | The repos a run needs cloned. Empty for talk work |
title | What is to be done |
owner | The teammate's login from departments/team.json, or empty |
points | The task's size. It becomes the price |
priority | P0, P1, P2 or P3 |
due | A date, or empty |
goal | The id of the goal it serves |
formula | The station formula that fits it, or empty |
crm | The client, as a CRM record id. Never a name |
private | true sends the issue to the private repo |
issue | The issue that was created. The mirror writes it. Nobody types it |
state | The issue's state. The mirror writes it. Nobody types it |
Three things to remember:
repois where the issue lives.needsis what a run needs on disk. They are not the same.issueandstateare written by the mirror.- A client is a CRM record id, such as
twenty:company:<uuid>. A name never goes in the file.
Commands
All commands run from the kun folder.
| Command | What it does |
|---|---|
node .claude/scripts/sprint.mjs current --json | Prints the current sprint and the next one |
node .claude/scripts/sprint.mjs lint | Checks the file. One line per error. Exit 1 if any |
node .claude/scripts/sprint.mjs mirror [--sprint N | --next] [--create] | Without --create, prints a draft and writes nothing. With it, creates the milestones and issues |
node .claude/scripts/sprint.mjs render [--stdout] | Writes the sprint block into the docs pages. With --stdout it only prints the block |
node .claude/scripts/sprint.mjs --test | Runs the fixed tests. No network |
This is the start of the draft for Sprint 3. Nothing was written.
Sprint 3 (2026-12-06 .. 2026-12-19) draft, nothing written
milestone hogwarts: "Sprint 3" would be created (due 2026-12-19)
milestone mkan: "Sprint 3" would be created (due 2026-12-19)
milestone marketing: "Sprint 3" would be created (due 2026-12-19)
milestone kun: "Sprint 3" would be created (due 2026-12-19)
milestone ops: "Sprint 3" would be created (due 2026-12-19)
create hogwarts s3-sales-1 Daily follow-up list for the schools in the pipeline [dept:sales, P1, rate:2]
create hogwarts s3-sales-2 Quotes for the schools in their free month [dept:sales, P1, rate:3]From the file to GitHub
mirror --create does this:
- It makes a milestone named
Sprint 3(the sprint's title) in each repo that has a task. - It makes one issue per task, in the task's own repo.
- It sets the labels
dept:<dept>, the priority,rate:<points>andfor:<owner>. - It writes a hidden
kunblock as the last line of the issue body. - It writes
issueandstateback into the file.
Run it a second time and nothing changes. An issue that exists gets its title, labels and milestone updated. Its body is never touched, because people and long mode write in it. A private task goes to the private repo.
What may go on a public issue
An issue in any repo except the private one passes the guard first. It reads the title and the body.
| Refused | Allowed |
|---|---|
| A phone number | A CRM record id of the form twenty:<type>:<uuid> |
An email address that is not @databayt.org | |
| A quoted chat message | |
| A key or a secret | |
| Commission terms |
When the guard refuses, nothing is created. The message says what it found and never repeats the value.
Planning a sprint
- Edit
departments/sprint.json. Add the goals and the tasks. Set the owner, the points and the due date. - Run
node .claude/scripts/sprint.mjs lint. Fix every line it prints. - Run
node .claude/scripts/sprint.mjs mirror --nextand read the draft. - Run
node .claude/scripts/sprint.mjs mirror --next --create. - The board and the Issues tab follow.
Nothing reaches GitHub until you pass --create.
Points
A task's points become its rate:<n> label. When a named closer closes the issue as completed, the points count for the person who did the work. The rule is on Mathematics.