(root)
| 510 | const hasAppmodArtifact = |
| 511 | reportRaw != null || apPlan != null || apProgress != null || apSummary != null; |
| 512 | const trusted = (root) => hasAppmodArtifact || hasMarker(root); |
| 513 | const planMd = apPlan || (trusted(rootPlan) ? rootPlan : null); |
| 514 | const progressMd = apProgress || (trusted(rootProgress) ? rootProgress : null); |
| 515 | const summaryMd = apSummary || (trusted(rootSummary) ? rootSummary : null); |