Current simple-rla can already:
- fetch Jira issues and comments
- list/fetch Jira attachments
- store per-run workspaces under
artifacts_root - persist per-iteration LLM dumps with
--dump - hold multi-turn tool-augmented conversations with an LLM
This is enough for a Jira-aware RCA assistant, but not yet enough for a spec-aligned DEBUG_STEPS generator as defined in parsifal-doc.
The target spec expects DEBUG_STEPS to be a structured, iterative debug plan with:
- normalized platform target
- kernel fingerprint
- KB hits
- explicit hypotheses
- code checks
- device checks
- budget and stop conditions
So the next milestone is not “add more chat”, but:
turn
simple-rlainto a KB-aware structured plan generator forDEBUG_STEPS.
- Jira issue metadata (
jira_get,jira_search) - Jira attachment discovery and download
- compact log previews from attachments
- run workspace layout (
meta.json,session.log,attachments/,dumps/) - multi-round LLM orchestration
-
KB retrieval / kb_hits
- no tool yet to search
parsifal-doc/kb/ - no way to ground hypotheses in prior patterns
- no tool yet to search
-
Platform normalization
- no extraction of
<soc>/<board>/<sku>from Jira text/logs/comments
- no extraction of
-
Kernel fingerprint extraction
- no structured extraction of
repo,branch,commit,localversion,dtb
- no structured extraction of
-
Evidence extraction from logs / attachments
- attachments can be downloaded, but not yet turned into structured signatures or evidence snippets
-
Code-side context tools
- no code search / git inspection / repo-aware lookup yet
- limits specificity of
code_check
-
Device-side execution context
- no ssh / serial / device command tool surface yet
- limits realism of
device_check
We should build this in three layers:
- Grounding layer: KB retrieval + target extraction + evidence extraction
- Planning layer: generate a first valid
DEBUG_STEPSartifact - Execution layer: add code/device toolchains to make next rounds stronger
Already achieved in current branch:
- Jira auth aligned to target environment
- clearer Jira diagnostics
- compact Jira MCP outputs
- Jira attachment MCP tools
- per-run workspace
- integrated dump outputs
This milestone is the prerequisite for all following work.
Give the agent enough structured inputs to produce a credible first-round DEBUG_STEPS instead of a generic checklist.
Add MCP/tooling support to search parsifal-doc/kb/.
Expected capability:
- keyword search by Jira summary / log signature / subsystem hints
- return top matching KB entries
- expose stable references like
kb/<subsystem>/<pattern_id>.md
Minimum acceptable output:
- path
- title / frontmatter summary
- match reason / snippet
Why this matters:
- fills
inputs.kb_hits - grounds
hypotheses[*].why - prevents “blank-slate planning”
Add logic to infer and normalize:
platform = <soc>/<board>/<sku>
Input sources:
- Jira summary
- description preview
- comments
- attachment previews
- labels/components
Output:
- one or more normalized platform candidates
- confidence / source trace (optional but useful)
Why this matters:
- fills
target.platform - improves KB matching
- improves future bucketization
Add structured extraction for:
repobranchcommitlocalversiondtb
Input sources:
- Jira text/comments
- attachment previews
- known kernel naming conventions in logs
Why this matters:
- fills
target.kernel - gives reproducibility to DEBUG_STEPS
- aligns with the spec’s emphasis on fingerprints rather than vague version labels
Add a lightweight evidence extractor over downloaded attachment previews.
Expected outputs:
- likely subsystem
- key error signature(s)
- a few short evidence lines/snippets
- candidate hypothesis cues
Why this matters:
- gives structure to
why/prove/disprove - improves debug plan specificity
A new internal data bundle (does not have to be final user-visible format yet) that can produce:
bugtargetinputs.kb_hits- initial evidence cues
- initial hypothesis seeds
This is the minimum viable grounding set for first-round DEBUG_STEPS generation.
Generate a first valid, spec-aligned DEBUG_STEPS artifact from Jira + KB + log inputs.
The generator should emit all major fields expected by the spec/template:
debug_steps_idjira_keycreated_atroundbugtargetinputsbudgethypothesescode_checkdevice_checkstop_conditionsnotes
The first version can remain conservative:
device_check.targetmay default tolog-onlyriskmay default toread-onlycode_checkmay be heuristic if code tools are not yet available
Output should align with parsifal-doc/templates/DEBUG_STEPS.md:
- machine-friendly frontmatter
- human-friendly markdown body
This is important because the spec explicitly wants a dual-use artifact.
Validate generated output against:
parsifal-doc/schemas/debug_steps.schema.json
This can initially be best-effort, but should become standard quickly.
A command or tool path that can take a Jira issue and produce a valid first-round DEBUG_STEPS document in the run workspace.
For example:
<run_workspace>/DEBUG_STEPS.md
Potentially also a JSON sidecar if needed.
Make subsequent rounds of DEBUG_STEPS sharper and less generic by adding execution-side context.
Add tool support for:
- repo grep/search
- file reads/snippets
- git log / blame / path history
- maybe mapping subsystem ↔ paths
Why this matters:
- upgrades
code_check.actionsfrom generic to issue-specific - helps prove/disprove hypotheses from code reality
Add tool support for:
- ssh read-only commands
- serial log reads
- log collection
- maybe structured device probes
Why this matters:
- upgrades
device_checkfromlog-onlyto actual directed validation - supports spec terminal states like
RESOLVED_RCA
Introduce stable refs for:
- Jira comments
- attachments
- downloaded logs
- dump iterations
- code snippets
Why this matters:
- required for later
KEY_EVIDENCE - improves auditability and machine-readable JIRA comments
A round-2+ capable loop where DEBUG_STEPS can evolve based on actual code/device evidence instead of Jira text only.
Close the loop from planning to evidence-backed RCA output.
- generate
KEY_EVIDENCE.md - map claims → minimal evidence excerpts + refs
- decide terminal states:
RESOLVED_RCANEED_MORE_INFOBLOCKED
- prepare JIRA comment output using
templates/jira-comment.txt
This milestone depends on stable evidence refs and enough execution-side evidence.
- KB retrieval
- Platform normalization
- Kernel fingerprint extraction
- Log/evidence extraction
- First-round DEBUG_STEPS generator
- Schema/template-aligned rendering
- Validation against schema
- Code-side tools
- Device-side tools
- Stable evidence reference system
- KEY_EVIDENCE generation
- JIRA comment / state transition loop
If we want the highest leverage next step, do this first:
Build a KB retrieval + target extraction layer before writing the first DEBUG_STEPS generator.
Reason:
- without KB hits and normalized target/kernel info, generated DEBUG_STEPS will be shallow and generic
- with those inputs, even a simple generator can already produce useful first-round plans
Concretely, the next deliverable should be:
- one or more tools/modules that return:
kb_hits- normalized
platform - structured
kernel fingerprint - extracted evidence/signatures from Jira logs
Once this exists, generating DEBUG_STEPS becomes an integration task instead of a guessing task.
Do not do these first:
- add OAuth support to Jira
- redesign MCP transport
- make device execution autonomous before grounding inputs exist
- generate KEY_EVIDENCE before DEBUG_STEPS grounding is solid
We can say the roadmap is on track when:
- A Jira issue can be turned into a structured grounding bundle
- That bundle can generate a valid first-round
DEBUG_STEPS - The generated plan is specific enough to mention:
- likely subsystem(s)
- plausible hypotheses
- concrete code checks
- safe device/log checks
- The plan clearly states stop conditions and next-round expectations