The sprint lives in one file, and the board, the tasks API, the company brief and GitHub all follow it

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.

FieldWhat it is
numberThe sprint's number
titleIts name, such as "Sprint 3"
startFirst day, as YYYY-MM-DD
endLast day, as YYYY-MM-DD. The sprint holds today when start and end both include it
goalOne sentence of what the sprint is for, in English and Arabic
goalsThe few goals that tasks point to, each with an id and a name in both languages
tasksThe list of tasks

A task has these fields.

FieldWhat it is
idA short name that stays the same, such as s3-sales-1
deptThe department that owns it
repoThe repo where the issue lives
needsThe repos a run needs cloned. Empty for talk work
titleWhat is to be done
ownerThe teammate's login from departments/team.json, or empty
pointsThe task's size. It becomes the price
priorityP0, P1, P2 or P3
dueA date, or empty
goalThe id of the goal it serves
formulaThe station formula that fits it, or empty
crmThe client, as a CRM record id. Never a name
privatetrue sends the issue to the private repo
issueThe issue that was created. The mirror writes it. Nobody types it
stateThe issue's state. The mirror writes it. Nobody types it

Three things to remember:

  • repo is where the issue lives. needs is what a run needs on disk. They are not the same.
  • issue and state are 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.

CommandWhat it does
node .claude/scripts/sprint.mjs current --jsonPrints the current sprint and the next one
node .claude/scripts/sprint.mjs lintChecks 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 --testRuns 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> and for:<owner>.
  • It writes a hidden kun block as the last line of the issue body.
  • It writes issue and state back 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.

RefusedAllowed
A phone numberA 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

  1. Edit departments/sprint.json. Add the goals and the tasks. Set the owner, the points and the due date.
  2. Run node .claude/scripts/sprint.mjs lint. Fix every line it prints.
  3. Run node .claude/scripts/sprint.mjs mirror --next and read the draft.
  4. Run node .claude/scripts/sprint.mjs mirror --next --create.
  5. 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.

See also