refactor(scripts): unify asset-doc section contract - #2678
refactor(scripts): unify asset-doc section contract#2678Jamie Kim (jkim323) wants to merge 12 commits into
Conversation
Eval Execution |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2678 +/- ##
==========================================
- Coverage 83.17% 81.41% -1.76%
==========================================
Files 180 150 -30
Lines 32201 21815 -10386
Branches 25 0 -25
==========================================
- Hits 26782 17760 -9022
+ Misses 5416 4055 -1361
+ Partials 3 0 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Katrien De Graeve (katriendg)
left a comment
There was a problem hiding this comment.
The shared contract consolidation looks sound, and all focused tests pass. One contract value appears inconsistent with the linked issues: instruction “Example usage” is currently required rather than optional. The heading-order validation point is non-blocking but worth clarifying.
…sset-doc-section-contract # Conflicts: # scripts/docs/Generate-AssetDocs.ps1
…s://github.com/microsoft/hve-core into refactor/2468-unify-asset-doc-section-contract
…sset-doc-section-contract # Conflicts: # scripts/docs/Generate-AssetDocs.ps1 # scripts/docs/templates/asset-doc.template.md
|
Thanks Katrien De Graeve (@katriendg) for the review! Both comments are addressed:
|
Katrien De Graeve (katriendg)
left a comment
There was a problem hiding this comment.
Thank you for the additional changes, all looking good!
Pull Request
Description
This PR centralized asset-documentation section identity, order, content source, and per-kind status rules in one shared contract.
Required,Optional, orNotApplicablefor each asset kind and interactivity state.Related Issue(s)
Closes #2468
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
hve-builderand addressed all actionable findings.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md).github/hooks/*/*.json)evals/)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
User Request:
Execution Flow:
Output Artifacts:
Success Indicators:
For detailed contribution requirements, see:
Testing
Focused implementation validation completed before PR drafting:
npm run test:ps -- -TestPath scripts/tests/docs/DocsHelpers.Tests.ps1passed 74 tests.npm run test:ps -- -TestPath scripts/tests/docs/Generate-AssetDocs.Tests.ps1passed 28 tests.npm run test:ps -- -TestPath scripts/tests/linting/Validate-AssetDocs.Tests.ps1passed 44 tests.npm run lint:pscompleted with zero errors; its one warning was outside the changed files.npm run docs:generate:checkreported 263 unchanged pages and zero drift.npm run lint:asset-docscompleted with zero errors; existing authored-stub warnings remained.npm run lint:frontmatter, template Markdown lint, editor diagnostics, andgit diff --checkpassed.PR-readiness local checks are recorded in the checklist below. Manual testing was not performed.
Security analysis found no sensitive data, dependency changes, permission changes, security-script changes, or unintended files in the branch diff.
Checklist
Required Checks
AI Artifact Contributions
hve-builderreview mode to review contributionhve-builderreviewRequired Local Checks
The following local-safe validation commands must pass before merging:
npm run validate:localnpm run validate:docsnpm run spell-checknpm run lint:md-linksSecurity Considerations