From a business request to a change your team can review.
Start with one scoped work item. Kandryn gathers relevant project context, prepares a proposed implementation, and carries the selected change into your existing review workflow.
The five steps
Underneath these are eight discrete stages. Four run on every run, one covers scheduling, and three do nothing until somebody asks for them. If one fails, the run records which, and nothing half-finished reaches your repository.
Select the work item and acceptance criteria.
Point Kandryn at one scoped item on your board. Its acceptance criteria are what the run treats as governing, and what your reviewers judge the result against.
- In
- One work item from the tracker project you connected, with its acceptance criteria.
- Kandryn does
- Reads the item and treats its acceptance criteria as governing for the run.
- A person decides
- Which item to run, and whether its criteria are clear enough to be judged against.
- Out
- A run, queued against that item.
Stage 01: Context
Before an agent sees anything, the run assembles the case file. It starts with the work item and its acceptance criteria, then adds the parent story and epic above it, the repository files the change planner selects as relevant, and any passages from documents you uploaded that bear on the same work. The repository index and the detected stack profile are already in place, so the agents write in the language, framework and test conventions already in your repository rather than generic pseudocode. Background stays background: where a parent item or a document disagrees with the acceptance criteria, the acceptance criteria govern. A plan that scores as weak parks the run for a person to approve, edit or reject before anything is generated.
WHAT GOES IN · Runs on every run
- Work item title, description and acceptance criteria
- The parent story and epic above it, up to three levels
- Relevant repository files, chosen by the change planner
- The directory tree, so the plan targets paths that exist
- The detected stack profile, and the project styling when the change touches the interface
- Passages from documents you uploaded, retrieved for this item
- Your refinement prompt, if you wrote one
Assemble business and repository context.
The run reads the parent story and initiative above the item, the repository files the change planner selects, and passages from documents your team uploaded. Where a background document and the acceptance criteria disagree, the criteria win.
- In
- The ancestor chain up to three levels, the repository index and stack profile, and any documents uploaded to the project.
- Kandryn does
- Selects relevant files and retrieves passages that mention the same things as the item, then records what it used as identifiers and counts.
- A person decides
- Nothing yet, unless the plan scores as weak. Then the run parks and waits for a person to approve, edit or reject it before anything is generated.
- Out
- A plan, and a context record a reviewer can read later.
Stage 01: Context
Before an agent sees anything, the run assembles the case file. It starts with the work item and its acceptance criteria, then adds the parent story and epic above it, the repository files the change planner selects as relevant, and any passages from documents you uploaded that bear on the same work. The repository index and the detected stack profile are already in place, so the agents write in the language, framework and test conventions already in your repository rather than generic pseudocode. Background stays background: where a parent item or a document disagrees with the acceptance criteria, the acceptance criteria govern. A plan that scores as weak parks the run for a person to approve, edit or reject before anything is generated.
WHAT GOES IN · Runs on every run
- Work item title, description and acceptance criteria
- The parent story and epic above it, up to three levels
- Relevant repository files, chosen by the change planner
- The directory tree, so the plan targets paths that exist
- The detected stack profile, and the project styling when the change touches the interface
- Passages from documents you uploaded, retrieved for this item
- Your refinement prompt, if you wrote one
Prepare and compare proposals where configured.
Two generation agents attempt the same change independently, and a ranking agent scores them against each other. The second proposal depends on a second model key: with only one key saved, or if one agent fails, the run continues with a single candidate and records the failure.
- In
- The plan and the assembled context, given to both generation agents in the same form.
- Kandryn does
- Generates independently, then scores and ranks. Both proposals stay on the run for comparison.
- A person decides
- Nothing. Ranking recommends; it does not select.
- Out
- One or two proposals with a score and an explanation, plus a record of any agent that failed.
Stage 02: Two answers
Raptia and Fovea run in parallel against the same case file. They reason differently by design, so when one misreads the acceptance criteria, the other usually does not.
WHY PARALLEL · Runs on every run
- One shared context, two independent reasoning paths
- No sequential prompting, so no shared blind spot
- Either answer is committable: Synthesia tells you which, and scores it out of 10
- Both are kept on the run for later comparison
Stage 03: Synthesia ranks
Synthesia scores each suggestion on five model-judged dimensions plus a mechanical coherence check, weights them into a single score out of 10, and flags the leader as Recommended with a plain-English explanation of its reasoning. Two behavior signals, ambiguity handling and surgical precision, are scored alongside it and shown on the run, but carry no weight in the ranking.
SCORED ON · Runs on every run
- Correctness: does it solve the stated problem? (30%)
- Coherence (15%) - a mechanical cross-file check. It runs on multi-file C# changes today and scores neutral everywhere else, so on other stacks the weight neither helps nor penalises a suggestion.
- Convention adherence, does it match existing patterns? (15%)
- AC coverage, how many criteria does it address? (15%)
- Readability, is it clear and maintainable? (15%)
- Minimal diff, does it change only what is needed? (10%)
Choose a change and open a pull request.
Committing a proposal writes it to a branch of its own and opens a pull request. A run can be set to commit its top-ranked proposal automatically; that setting is off unless someone turns it on. Kandryn never merges.
- In
- The proposal a person chose, or the top-ranked one where auto-commit was turned on for that run.
- Kandryn does
- Writes the change to the run's own branch and opens a pull request. It never writes to your default branch.
- A person decides
- Which proposal, and whether to commit at all. Auto-commit changes who presses the button, not who approves.
- Out
- A branch, a commit and a pull request, in your repository.
Stage 04: Commit
Committing creates the deterministic branch task/<id>, writes the change, and opens a pull request titled with the work item. The item moves to review and the run records which suggestion won.
WHAT LANDS · Runs on every run
- Branch task/<id>, from the default-branch head
- One commit containing the chosen suggestion
- PR titled [Kandryn] <work item title>
- Work item moved to review, run marked succeeded
Review the result and run available post-commit checks.
Review, security scanning and runbook generation are separate actions, each triggered by a person on a committed run. A run nobody follows up on has had none of them.
- In
- A committed run, and whichever check somebody asks for.
- Kandryn does
- Reviews the committed code against the criteria, scans it, or writes a runbook. None of the three runs on its own.
- A person decides
- Which checks to run, what to do about the findings, and whether to merge. The security check blocks a merge only where your repository rules require it.
- Out
- A review, a status check, or a runbook, and a pull request your team decides on.
Stage 05: Schedule and sweep
A run can be queued up to thirty days out. Every five minutes the dispatcher claims what is due, runs it, and emails you the outcome, including the failures, with the reason attached.
THE LOOP · Scheduling
- Up to twenty pending runs per user
- Claimed two at a time, no double-dispatch
- Runs stuck over twenty minutes are failed
- Completion and failure both send email
Stage 06: Veria reviews (you trigger this)
After you commit a suggestion, Veria reads the committed code against the acceptance criteria and writes a structured review: what was addressed, what was missed, and what the human reviewer should focus on.
WHAT VERIA CHECKS · You trigger this
- Which acceptance criteria are fully covered
- Which are partially addressed or missing
- Specific strengths in the committed code
- Risks or gaps to watch in code review
Stage 07: Aegis secures (you trigger this)
Run Aegis on a committed run and it scans each changed file on its own for injection flaws, hardcoded secrets, authentication bypasses and other OWASP Top 10 (2021) categories. High and Critical findings fail the status check it posts to the pull request; that check blocks a merge once your branch rules require it. Medium and Low findings create sub-tasks in your tracker. Remediate Now creates the ticket, syncs it to the board, and starts a new run with the remediation brief pre-filled, closing the security loop without leaving Kandryn.
WHAT AEGIS CHECKS · You trigger this
- Injection: SQL, NoSQL, command, LDAP, XPath
- Hardcoded secrets, API keys, and credentials
- Authentication and authorisation flaws
- Cryptographic weaknesses and insecure data exposure
- SSRF, XXE and deserialization issues
- Missing input validation and rate limiting
- Categorised against OWASP Top 10 (2021)
- Each changed file is scanned independently; a file that cannot be scanned fails the gate rather than passing it
Stage 08: Narratia documents (you trigger this)
Narratia generates an operational runbook from the completed run: what changed and why, deployment steps specific to this change, rollback procedure, validation commands, and a summary of Veria and Aegis findings. Pushed to Confluence via REST API, Notion via the Notion API, or committed as docs/runbooks/ITEM-KEY.md to the same PR branch, which needs no extra credentials.
RUNBOOK SECTIONS · You trigger this
- Summary, the change in two or three sentences
- What changed, the files and the reasoning
- Deployment steps, specific to this change
- Rollback procedure, referencing the branch and PR
- Validation, how to verify it is working in production
- Test cases, from the generated test suite
- Security notes, Aegis gate status and findings
- References, work item key, branch, commit hash, PR link
What it will not do
The boundaries are the product. Each of these is something you can check rather than something you have to take on trust.
It does not merge
Kandryn opens the pull request and stops. Merging is your review, your rules and your CI.
It does not touch your default branch
Work lands on task/<id>, and nothing else is ever written. Re-committing a work item moves that branch to the new commit, so keep your own work elsewhere.
It does not read your whole repository
A handful of files selected as relevant to the work item. The planner also sees the directory listing, names only and capped.
It does not run the post-commit agents by itself
Review, security and runbook generation are three buttons. A run that nobody follows up on has none of them.
It does not write to your tracker uninvited
New items and test cases go up only when you push them. The single automatic write-back is a status change when an item closes.
It does not hold a model contract on your behalf
Every call uses the API keys you or your workspace admin saved, so the usage, the terms and the retention settings are all on your own account.
A deeper sample, end to end.
A different scenario from the claims example elsewhere on this site: one payments story, two ranked proposals, and the pull request a commit would open. The project and the scores are a sample.
One work item, one proposed change
Interactive sample projectA story from the board, the change Kandryn proposes for it, and the pull request it would open. Sample project. Click through it.
export async function createRefund(req, res) {
const key = req.header('Idempotency-Key');
if (!key) return res.status(400).json({ error: 'idempotency_key_required' });
const existing = await db.query.refunds.findFirst({
where: and(eq(refunds.userId, req.userId), eq(refunds.idempotencyKey, key)),
});
if (existing) return res.status(200).json(existing);
return await db.transaction(async (tx) => {
const [row] = await tx.insert(refunds).values({ ...req.body, idempotencyKey: key }).returning();
await tx.insert(ledger).values(entriesFor(row));
return res.status(201).json(row);
});
}const seen = new Map();
export function refundOnce(key, fn) {
if (seen.has(key)) return seen.get(key);
const p = fn();
seen.set(key, p);
return p;
}export async function createRefund(req, res) {
const key = req.header('Idempotency-Key');
if (!key) return res.status(400).json({ error: 'idempotency_key_required' });
const existing = await db.query.refunds.findFirst({
where: and(eq(refunds.userId, req.userId), eq(refunds.idempotencyKey, key)),
});
if (existing) return res.status(200).json(existing);
return await db.transaction(async (tx) => {
const [row] = await tx.insert(refunds).values({ ...req.body, idempotencyKey: key }).returning();
await tx.insert(ledger).values(entriesFor(row));
return res.status(201).json(row);
});
}Easier to watch than to read about.
We will run a sample change end to end and answer questions as they come up. Nothing to prepare.