← Back to issue list

Implement metadata mediation for manifest.yaml

View original Github issue

Metadata

Project
charmcraft
Number
#2857
Type
issue
State
open
Author
cmatsuoka
Labels
Status: Triaged
Created
Updated
Closed
—

Current evaluation

Maintainer-triaged feature request to add metadata mediation for manifest.yaml (craft-application packaging API) so unchanged projects are not repacked; impl PR #2877 was closed unmerged, only an autogenerated Jira sync (CHARMCRAFT-724) since.

Suggested action: keep open

Reason: The issue is labeled 'Status: Triaged' and was filed by a maintainer (cmatsuoka) with a clear goal, so it is a valid, categorised request that should stay open. Implementation PR #2877 was closed unmerged after approvals due to OSV-scanner failure and the author indicated a follow-up, so nothing has landed that resolves it; the only comment is the autogenerated Jira sync to CHARMCRAFT-724. Sibling issues #2856 (closed without resolution), #2858 and open PR #2890 (config.yaml/actions.yaml mediation) confirm the umbrella of mediation work is still in progress.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 15 Complexity: 50 Confidence: 72 Actionability: 65

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request Mediate the creation of manifest.yaml according to the craft-application packaging API to prevent recreation of artifacts when project files remain unchanged. ### The problem it solves Describe the impact your request would have.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 15
Complexity: 50
Confidence: 72
Actionability: 65
keep open Maintainer-triaged feature request to add metadata mediation for manifest.yaml (craft-application packaging API) so unchanged projects are not repacked; impl PR #2877 was closed unmerged, only an autogenerated Jira sync (CHARMCRAFT-724) since.
stealth/space-bunny-alpha
Impact: 60
Quick Win: 32
Complexity: 40
Confidence: 91
Actionability: 90
close resolved Triaged feature request to add craft-application metadata mediation for manifest.yaml; PR #2877 was approved with two reviewers but closed while its OSV-scanner check was failing.
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 25
Staleness: 5
Complexity: 55
Confidence: 75
Support Request: 0
keep open Feature request to implement metadata mediation for manifest.yaml, similar to metadata.yaml mediation in #2856. Triaged and created by maintainer 8 days ago.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 18
Staleness: 5
Complexity: 55
Confidence: 85
Support Request: 0
keep open Feature request to mediate manifest.yaml creation via craft-application packaging API to prevent unnecessary artifact recreation when project files are unchanged. Triaged, linked to JIRA CHARMCRAFT-724, no implementation yet.

Update history

Date Change
created

Related work

  • Related To: charmcraft#2877 (confidence 88%)

    Closed-unmerged PR implementing exactly this manifest.yaml mediation; carries the reference implementation and its OSV-scanner failure context.

  • Related To: charmcraft#2858 (confidence 80%)

    Sibling mediation issue for actions.yaml/config.yaml, with open PR #2890 in review — same umbrella of work.

  • Related To: charmcraft#2856 (confidence 75%)

    Sibling metadata.yaml mediation issue (CHARMCRAFT-723), closed without a linked resolution, suggesting a common upstream gap.

  • Related To: craft-application#821 (confidence 60%)

    Upstream 5.5.0 pack-semantics issue where metadata-only edits were skipped as 'Already packed' — the same skip-repack behaviour this mediation work targets.

  • Blocked By: charmcraft#2890 (confidence 55%)

    Open PR adding mediation for config/actions.yaml; its review outcome and shared service changes likely gate or overlap a manifest.yaml mediation PR.

Related issues

Issue Project State Summary Similarity
#2856 Implement metadata mediation for metadata.yaml charmcraft closed Fixed by merged charmcraft PR #2874, which added a craft-application package service to mediate metadata.yaml creation.
79%
#2858 Implement metadata mediation for actions.yaml and config.yaml charmcraft closed Closed without a linked fix; actions.yaml and config.yaml mediation remains unimplemented. Related metadata.yaml (#2874) and manifest.yaml (#2877) mediation PRs landed separately.
75%
#1097 Implement metadata mediator craft-application closed Implemented ST160 post-prime metadata mediation and conditional artifact repacking in merged PR #1111 (commit 1dfae607); released in craft-application 7.1.0.
74%
#2877 feat: implement metadata mediation for manifest.yaml charmcraft closed Closed unmerged after approval; OSV-scanner remained failing, and the author said mediation enablement would wait for a follow-up PR.
74%
#2874 feat: mediate creation of metadata.yaml charmcraft merged PR #2874 merged to charmcraft main (2 approvals): implements craft-application's package service API so metadata.yaml creation is mediated in Charm/rock layers, tracking CHARMCRAFT-723.
73%
#6349 feat: implement metadata mediation for snap.yaml snapcraft merged Merged #6349, adding packaging-API metadata mediation for snap.yaml so unchanged artifacts can skip repacking; mediation for other files remains future work.
73%
#2890 feat: skip repacking if project is not changed charmcraft merged Merged PR implementing metadata mediation for config.yaml and actions.yaml so charmcraft skips repacking unchanged projects; fixes #2858 and canonical/craft-application#821.
73%
#442 Skip repacking when project files are not changed imagecraft open Maintainer request to adopt craft-application's package mediation API so imagecraft skips repacking unchanged projects; implementation merged in PR #444, but issue stays open/triaged pending the wider testing-workflow requirement.
71%
#6355 feat: mediate creation of component.yaml snapcraft merged PR #6355 by cmatsuoka merged, moving component.yaml generation to craft-application metadata mediation so each component artifact gets its metadata; closes issue #6360 (CRAFT-1376).
71%