Contents

Getting started

Your team probably has rules for how work should move. For example:

  • "A ticket needs a proper description before anyone starts it."
  • "A ticket needs a pull request before it goes to review."
  • "A pull request needs an approval and passing automated checks before the ticket is done."

These rules often live in people's heads. Workfile lets you write them down in a
few small files. Then it checks tickets from Jira or GitHub Issues and linked
GitHub pull requests against your policy, and shows what each needs next.

Workfile's provider checks only read. It never changes a ticket, label or pull
request. The inbox can launch an agent command you configure privately; that
command uses its own access.

Do this first#

Install v0.3.0-alpha. On macOS or Linux, run:

curl -fsSL https://workfile.sh/install.sh | sh

On Windows, download the archive for your CPU, extract it and put wf.exe
on your PATH. The release includes checksums for all six archives.

From your project directory:

wf setup            # connect your tools, pick projects and repos
wf status --me      # see your work
wf policy --lint    # check the policy itself

Then change .workfile/policy.yml until it matches how your team really works.
Use wf tracker to browse tickets and wf tracker --view inbox for activity that needs you.
Optional .workfile/config.yml sets tracker and inbox preferences; see
Configuration and the example config.

The words you will see#

Word Meaning
Provider A tool Workfile reads. Jira and GitHub Issues hold tickets; GitHub also holds pull requests (PRs).
Connection One configured provider, such as jira or github. Listed in providers.yml.
Scope The slice of work workfile reads: your Jira projects, your GitHub repos, and how long finished work stays.
Stage A step in your workflow, such as todo, doing, review, done. Listed in order in policy.yml under states.
Move A step from one stage to another. A move backwards is a return.
Gate A named checklist a ticket must pass to make a move, such as code_review.
Rule One condition in a gate, such as github.approvals >= 1.
Fact Something workfile reads, such as a description length or an approval count.
People An optional list of names with their Jira and GitHub accounts.
Policy All of the above together. The written-down way your team works.

A PR belongs to a ticket when the PR title contains the ticket key, like
APP-42. A link to the ticket on your Jira site in the PR description also
works. When you check a named ticket, Workfile also searches for branches
that start with its key. See how PRs are found.

Scope is explicit#

Workfile reads only what providers.yml lists. Nothing is taken from a tool's
own screen settings. For Jira you list projects. For GitHub you list repos
(or write repos: all). Either way you say how long finished work stays with
keep_done_for.

jira:
  site: example-team.atlassian.net
  projects: [APP]
  keep_done_for: 14d

This keeps requests few and the file honest. Read it, and you know what workfile
sees. See the Jira and GitHub guides.

A small policy#

states: [todo, doing, review, done]

transitions:
  todo:
    to: [doing]
    requires: [refinement]      # to start work, pass the refinement gate
  doing:
    to: [review]
    requires: [pull_request]    # to go to review, pass the pull_request gate
  review:
    to: [done]
    requires: [code_review]     # to finish, pass the code_review gate
  done:
    end: true

gates:
  refinement:
    - if: jira.description.length >= 100
  pull_request:
    - if: github.prs >= 1
  code_review:
    - if: github.approvals >= 1
    - if: github.checks == success

Read it like a story:

  1. A ticket starts in todo.
  2. To move to doing, it needs a description of at least 100 characters.
  3. To move to review, it needs a linked PR.
  4. To move to done, its PR needs an approval and passing CI (automated checks) on the current commit.

Status: the question you will ask most#

wf status answers: where is the work, and what does it need?

Each ticket lands in one group:

Group Meaning
✓ Ready It can move on now.
✗ Needs work It is fine so far, but every move forward is blocked.
‼ Out of policy It is past a gate it does not pass.
! Cannot check Evidence is missing, so workfile will not guess.
· Done Finished.

Example: a ticket in review with no linked PR is out of policy. It should
not have got there without one. A ticket in doing with no PR is only needs
work
. It just cannot move on yet.

Workfile judges policy by today's facts, not by the route a ticket took.
Inbox separately reads recent activity.

Some workflows branch, such as a QA path or a security path. A ticket only has
to pass the gates on one valid path to its stage.

What changed?#

wf status --since 1d

Shows what moved, got blocked or became ready since an earlier run on your
computer. It reads saved snapshots, so it adds no requests.

What you will do#

  1. Install wf. See the release downloads.
  2. Run wf setup. Choose your tracker and optional code host. Pick a
    folder, connect each provider, and choose the projects, repositories and
    statuses you use. Review and apply the policy to write .workfile/ and save
    your tokens privately. See setup details.
  3. Prefer to do it by hand? Copy an example from example/
    and edit it. Credentials never go in the project files.
  4. Check the connections with wf setup --test.
  5. Look at your work with wf status --me, then wf status.
  6. Add your team's gates to policy.yml. The starter has none, so every
    forward move is allowed unless evidence is unavailable. Terminal-stage tickets
    are done, and unmapped statuses still cannot be checked.
  7. Run wf policy --lint. It catches policy mistakes and flags paths that can skip
    gates. Gaps are advisory; invalid policy fails. Run it in CI.
  8. Let agents ask first. wf check APP-42 --to done says whether a move is
    allowed. Exit code 0 means yes.