← Back to issue list

Process grammar and non-grammar dictionary data

View original Github issue

Metadata

Project
craft-application
Number
#331
Type
issue
State
open
Author
mr-cal
Labels
—
Created
Updated
Closed
—

Current evaluation

The organize grammar processor cannot combine conditional mappings with plain file mappings in one list; the exact arm64 reproducer remains open with no maintainer triage or implementation.

Suggested action: needs triage

Reason: The report provides an exact arm64 YAML input and expected flattened mapping. Current process_part code sends the entire mixed list to GrammarProcessor, and merge_processed_dict only merges its returned items; no matching regression test or resolving commit was found. The issue has no labels and its sole comment is an autogenerated Jira notice, so it still needs maintainer triage.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 22 Complexity: 47 Confidence: 87 Actionability: 87

Issue body

### What needs to get done Craft-application added support for processing grammar in the `organize` keyword but it cannot parse a mix of grammar and non-grammar data: For example, when building for `arm64`, the following yaml: ```yaml organize: - on amd64 to amd64: hello-world.sh: hello-world-amd64.sh - on amd64 to arm64: hello-world.sh: hello-world-arm64.sh - test-file.in: test-file.out ``` should be processed to: ```yaml organize: hello-world.sh: hello-world-arm64.sh test-file.in: test-file.out ``` ### Why it needs to get done To make grammar in the `organize` keyword useable.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 22
Complexity: 47
Confidence: 87
Actionability: 87
needs triage The organize grammar processor cannot combine conditional mappings with plain file mappings in one list; the exact arm64 reproducer remains open with no maintainer triage or implementation.
qwen/qwen3.6-35b-a3b
Impact: 70
Quick Win: 39
Complexity: 30
Confidence: 80
Actionability: 80
keep open Bug in craft-application where the 'organize' keyword fails to process a mix of grammar entries and non-grammar dictionary entries in the same list.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 27
Staleness: 55
Complexity: 40
Confidence: 60
Support Request: 10
keep open Feature request to make the `organize` keyword handle a mix of grammar entries (e.g. `on amd64 to arm64:`) and plain non-grammar dict entries in the same list, merging them into a single dict. Currently only pure-grammar lists are processed.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Untriaged feature request to enable mixed grammar and non-grammar data parsing in the organize keyword. Inactive for over two years with no maintainer labels or assignment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 10
needs triage Unlabelled feature request to support mixed grammar and non-grammar data in the organize keyword. Inactive for over a year with no maintainer assessment or assignee.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-application#328 (confidence 92%)

    An earlier grammar fix allowed mixed strings and dictionaries, but does not cover grammar and plain file dictionaries together.

  • Related To: canonical/craft-application#330 (confidence 78%)

    A nearby fix skips non-grammar top-level keywords; the current code still does not filter plain entries within the organize list.

Related issues

No related issues found above the similarity threshold.