Phrom: AI-Assisted Backlog Quality Checks
Designing and building a human-in-the-loop tool that reviews GitHub Issues before backlog refinement, combining versioned deterministic rules with local LLM-based suggestions while keeping every product decision with the Product Owner.
- Role: Product Owner, solution designer and developer (solo project)
- Status: MVP, version 1.0.0 (rule set 0.3.1)
- Timeframe: October 2026
- Stack: Node.js CLI, GitHub REST API (read-only), Ollama (
qwen3:30b-instruct), JSON-based rule set
Summary
Phrom checks GitHub Issues against a transparent, versioned rule set before backlog refinement. It assesses whether an item meets the criteria of the rule set and, on request, creates an improvement draft. The AI runs via Ollama on a machine you control yourself. The analysis does not change any issues: the Product Owner reviews every suggestion and applies changes themselves.
This case study separates three things that are often mixed up in AI projects:
- What was delivered. This is the output: features, architecture, documentation.
- What is backed by technical evidence. These are tests with a clearly limited scope.
- What is open. This is the outcome: whether Phrom helps Product Owners in their day-to-day work.
Points 1 and 2 are in place. Point 3 is the next deliberate product step.
1. Starting point and problem
Refinement loses time on work that could be done beforehand: unclear stories, missing or untestable acceptance criteria, items that are too large. The conversation then starts with wording questions instead of what the team is needed for: understanding the item together, estimating it and choosing the technical approach.
From practitioner sources, I grouped typical refinement problems into four categories:
- poorly prepared items,
- the wrong level of detail at the wrong time,
- overloaded backlogs,
- poorly run meetings.
Phrom addresses only the first category: poorly prepared items. Prioritization, estimation, feasibility and sprint readiness stay with the team.
Target group: Product Owners who maintain their backlog in GitHub Issues, sharpen items before every refinement, have no tooling budget and do not want to send backlog content to an external LLM provider.
2. Goals and guardrails
| Guardrail | Consequence in the design |
|---|---|
| AI does not decide | Human-in-the-loop: the analysis never writes to GitHub; the PO applies changes themselves |
| Assessment must be traceable | Rule set in references/criteria/*.json; each criterion marked as (deterministic) or (ai) |
| Data stays under control | Model via Ollama on a configurable host (default: the same machine as Phrom); remote hosts and cloud models are flagged |
| Minimal permissions | For private repos, a fine-grained token with Issues: Read-only; seeding the demo is a separate tool with its own login |
| No magic | Fixed pipeline instead of an agent, no framework, no model training |
3. Solution
Flow
The PO starts the CLI. Phrom reads the issues via the GitHub REST API and assesses each one on two levels:
- Score (0โ100): points achieved relative to points achievable.
- Ready Gate: every criterion marked as
requiredmust pass.
| Status | Condition |
|---|---|
| ๐ข Ready | Ready Gate passed and score โฅ 80 |
| ๐ก Needs work | Ready Gate passed and score 50โ79 |
| ๐ด Not ready | Ready Gate not passed or score < 50 |
The Ready Gate overrides the score. In the demo repository, "Reset password" reaches 80/100 and is still ๐ด, because the required information on product and target group is missing. In the current rule set, ๐ก occurs only for stories; tasks, bugs and epics are in practice ๐ข or ๐ด.
A ๐ข is a statement about the rule set, not a sprint commitment.
Two kinds of criteria
- Deterministic (rule): checked in code, in milliseconds and reproducibly, e.g. story format, epic link, number of acceptance criteria.
- AI: the model gives a reasoned assessment of semantic questions, e.g. whether acceptance criteria are measurable. This is an assessment, not a fact.
Architecture
PO
โ
โผ
Node.js CLI (phrom)
โ
โโโ GitHub REST API (read-only) โโบ GitHub Issues
โโโ Rules โโโโโโโโโโโโโโโโโโโโโโโโบ references/criteria/*.json, checks.js, Ready Gate
โโโ AI check โโโโโโโโโโโโโโโโโโโโโบ model.js โ Ollama (OLLAMA_HOST)
โโโ Improvement draft โโโโโโโโโโโโบ improve.js โ model-improve.js (on request only)
โโโ Filesystem โโโโโโโโโโโโโโโโโโโบ output/ (reports, drafts, JSON)
โ
โผ
PO review โ manual adoption โ GitHub Issue
Improvement drafts use one-shot prompting: for each issue type, the model receives one reference example. Missing information is supposed to appear as placeholders in square brackets. Issue numbers, percentages, dates and quarters that the model adds anyway are replaced automatically. Other invented details are not caught. On the test day of 2026-10-08, the model also copied content from the reference examples even though the prompt forbids this, and for two stories it replaced existing information with placeholders (see section 7). That is why every draft must be checked, against reality and against the original.
4. Example: Issue #3 "Improve login"
A one-sentence story: The login should be better.
Assessment (phrom run, 2026-10-08): ๐ด Not ready ยท 10/100, seven failed criteria.
| Criterion | Kind | Result |
|---|---|---|
story-format |
Rule | โ No story format |
story-context |
Rule | โ Neither product nor target group |
epic-link |
Rule | โ No epic reference |
ac-presence |
Rule | โ No acceptance criteria (only a "should" statement) |
ac-testability |
AI | โ Vague, not measurable |
size-risk |
AI | โ XL: too broad |
business-value |
AI | โ No clear user, need or benefit |
Excerpt from the generated draft, unedited (npm run demo, 2026-10-08):
## Story
As a [role], I want to [specific login action or improvement], so that [concrete benefit].
## Acceptance Criteria
**Happy Path**
- [ ] Given I am on the login page and have valid credentials, when I enter my username and password and click "Sign in", then I am redirected to my dashboard within 2 seconds.
**Error Cases**
- [ ] Given I enter an incorrect password, when I click "Sign in", then I see a clear error message stating "Invalid credentials. Please try again." and the login form remains visible.
- [ ] Given I am on the login page and have no internet connection, when I attempt to sign in, then I see a network error message and the form is disabled.
The placeholders are intended: only the PO knows the role, benefit and context. The response time "within 2 seconds", the error message "Invalid credentials. Please try again." and the criterion about the missing internet connection, on the other hand, were invented by the model. The time value slips through because the automatic filter does not recognize time units. This is exactly where one of the open questions comes in: do Product Owners reliably spot such details during review?
5. Architecture decisions
Four decisions are documented as ADRs:
- ADR-001, GitHub Issues as the data source: token can be limited to one repository, well-documented REST API, code and demo in one place, no additional infrastructure.
- ADR-002, separate repositories for code and demo backlog: clear scope, the token only touches the demo repo, safe reset.
- ADR-003, CLI pipeline with rule set, local AI and human-in-the-loop: fixed steps instead of an agent; the model never chooses the next step.
- ADR-004, seed and reset scripts: separate helper tools with their own permissions, never with the analysis token.
6. What was delivered (output)
- Six CLI commands:
run,improve,select,filter,status,list. - A versioned rule set (0.3.1) for four issue types.
- Reports with the issue text, reasoned findings, a score table and the Ready Gate.
- Improvement drafts on request.
- A demo (
npm run demo) against a public demo backlog, without write permissions. - An evaluation script (
scripts/eval-seed.js) and a test set of 18 issues.
7. What is backed by technical evidence
All numbers come from a test day on 2026-10-08: seed evaluation with and without AI, npm run demo, phrom run across the demo repository with 19 issues, and improve for seven issues. They apply to the documented MVP context:
- a self-created test set of 18 issues,
- the model
qwen3:30b-instruct, - one CPU server (AMD EPYC 7543P, 31 GiB RAM, no GPU) on which Phrom and Ollama run together.
| Technical hypothesis | Evidence (2026-10-08) | Limitation |
|---|---|---|
| Issues can be read in and assessed. | phrom run: 19 open issues from the public demo repo, of which 6 ๐ข and 13 ๐ด |
Private repos and large backlogs not tested |
| Rules detect the defined gaps. | Seed evaluation: 18/18 issues, 31/31 gaps, 0 additional findings | Heuristics; own test set |
| AI assessments match the expectations. | Seed evaluation with AI: 45/45 checkable gaps, 0 of 5 control issues flagged, 15 additional findings (8 necessarily following from the criteria, 4 justified, 3 debatable) | Prompts tuned on the same issues; expectations set by the author; one model; 4 of 49 expected gaps have no criterion |
| The result does not depend on the input path. | Seed file and GitHub deliver identical scores, statuses and findings for all 18 shared issues | Applies to identical input on one system |
| The assessment is reproducible. | 9 repetitions via select, improve and the demo, all identical except for the timestamp |
Robustness to rewording not measured |
| Good items are left untouched. | improve on two control issues: no draft |
Only two cases |
| An issue without a label is processed. | #19 was classified as a task and assessed | One example; type detection not evaluated |
| Drafts are generated. | 3 story drafts, 1 epic draft, 1 task draft | All contain invented details or details copied from the reference example; for two stories, existing details (context, role) were replaced by placeholders; no automated test; bug drafts not recorded |
| The analysis does not write to GitHub. | Code: only read-only API calls in the analysis pipeline; demo reports "read-only" | Not general data protection: output/ contains issue text, tokens are stored in .env. |
| AI processing runs without an LLM provider. | Ollama on the same server; the demo labels the run as "local (Ollama)" | "Local" here means: the same server, not the PO's laptop. |
| The runtime is manageable. | 25โ55 s of AI time per issue (mean 38 s), just over 12 minutes for 19 issues, about 2.5 minutes for one story draft | Runtime is additional effort, not a saving. |
What follows from this: on the test set, the assessment from rules, AI, score and Ready Gate works completely, deterministically and independently of whether the issues come from a file or from GitHub. The improvement drafts are the weak point: they invent details, copy content from reference examples and can lose existing information. In addition, two rule checks give a misleading reason for their (correct) result.
What does not follow from this: that Phrom saves time, that its findings are relevant for Product Owners, or that its drafts are usable.
8. What is open: value for Product Owners
The technical tests check Phrom against my own expectations. Whether Product Owners prepare better or faster with it can only be shown by their work. I frame this as four hypotheses, each of which can fail.
| Hypothesis | Test in the first round | Provisional criterion | |
|---|---|---|---|
| H1 | Relevant gaps: Phrom shows at least one gap that is relevant to the subject matter and that the PO had not noted in their own review of the same item. | The PO reviews two items themselves first, then the report. Each finding is classified: relevant and new / relevant, already noted / irrelevant / wrong. | For at least 2 of 3 POs, at least one "relevant and new"; rejected findings below half |
| H2 | Net effort: the active working time with Phrom is not greater than without it. Elapsed model time is recorded separately. | One item with a report, a comparable one without; alternating order; time per phase measured | No PO with clearly more effort; at least one with clearly less |
| H3 | Usable drafts: a draft becomes usable with less effort than writing one's own text, and invented details are spotted. | The PO brings a draft into usable form; per section adopted / edited / discarded; invented details marked in advance spotted or missed | Used as a starting point by at least 2 POs; no invented detail adopted unnoticed |
| H4 | Repeat use: a PO uses Phrom again for a real preparation without being asked. | One-time offer at the end of the session; check after four weeks; only observed behavior counts | At least one repeat use |
The hypotheses are kept separate on purpose:
- We care about relevant findings, not just how many findings there are.
- We measure active working time, not just total elapsed time.
- We check if drafts are actually usable, not just that they were generated.
- We look at what people really do, not what they say they would do.
The thresholds are early decision guides, not final results.
9. Lessons learned
- Pipeline instead of agent. Fixed steps keep behavior reproducible and errors traceable. An agent is a later, deliberate extension.
- Rules first, AI second. What code can check reliably runs without a model. The AI is reserved for semantic questions and is labeled in every report.
- Every number needs a source. A release audit found demo values from older runs, an excerpt that did not match any output, and a help text that still said "autonomous agent". Since then, every number comes from a dated run.
- Two input paths are a strong test. The fact that the evaluation from the seed file and
phrom runvia GitHub deliver the same results practically rules out reading errors for this test set and shows that the evaluation measures what users get. - An example in the prompt is also a template to copy. The task draft for "Update the database" consists mostly of sentences from the reference example; a story draft adopts its acceptance criteria almost word for word. A ban in the prompt does not reliably prevent this; examples from an unrelated domain and a check in code are safer.
- Placeholders cut both ways. The instruction to write unknowns as placeholders prevents some inventions, but it also caused existing context ("Self-Service Customer Portal, residential customers, part of Epic #1") to disappear from the draft. A draft must preserve facts from the original.
- The biggest weak point is the least measured one. For the assessment, there is an evaluation with expectations; for drafts, there is not. The next test step is therefore an automated draft test, not another feature.
- Privacy and permission promises belong in the code.
- The default client of the
ollamanpm package (checked in v0.6.4) does not readOLLAMA_HOST; previously only the demo used the configured host. Now a single client uses it. - The GitHub CLI prefers a
GITHUB_TOKENfrom the environment; the seed scripts therefore remove it explicitly.
- The default client of the
- Technically finished is not the same as valuable. A working MVP answers whether it works, not whether it helps anyone. The next step is therefore not another feature but a test with Product Owners.
Links
- Code: github.com/MKalder/phrom
- Rule set: Phrom Rules (v0.3.1)
- Architecture decisions: github.com/MKalder/phrom/tree/main/adr/en
- Demo backlog: github.com/MKalder/phrom-backlog-demo
- Medium: As a Technical Product Owner, I built an AI tool...
- Direct contact: phrom@mariuskalder.de
Sources on refinement problems
The four categories are my own synthesis of these sources:
- Age of Product: Product Backlog and Refinement Anti-Patterns
- Alignlee: User Story Readiness Checklist for Backlog Refinement
- Humanizing Work: Backlog Refinement: Avoiding the Detail Trap
- Agile Pain Relief: Product Backlog Refinement Hell