loginowskid commited on
Commit
a444ac9
·
1 Parent(s): c793268

Foundation spec URLs @7293b5a

Browse files
tools/validation/plugins/simready-report/skills/simready-report/validate.py CHANGED
@@ -676,11 +676,18 @@ def _norm_name(s: str) -> str:
676
  return s.lower().replace("-", "_")
677
 
678
 
679
- # Reference URL for the canonical SimReady packaging spec. Every
680
- # layout-violation message links here so partners can see exactly
681
- # what was expected vs. what was found.
682
- _SPEC_URL = ("https://github.com/NVIDIA-dev/simready-oem-library-pm/"
683
- "blob/main/docs/sdk/packaging-spec.md")
 
 
 
 
 
 
 
684
 
685
 
686
  def check_simready_layout(root: Path) -> list[dict]:
@@ -703,8 +710,14 @@ def check_simready_layout(root: Path) -> list[dict]:
703
  Hidden dirs (`.thumbs`, `.simready`) and known output dirs
704
  (_SKIP_DIR_NAMES) are exempt from the per-dir bundle check.
705
  """
706
- folder_url = f"{_SPEC_URL}#folder-structure"
707
- manifest_url = f"{_SPEC_URL}#package-manifest-wrapp"
 
 
 
 
 
 
708
  fails: list[dict] = []
709
  try:
710
  entries = sorted(root.iterdir())
 
676
  return s.lower().replace("-", "_")
677
 
678
 
679
+ # Canonical SimReady foundation specs the authoritative source for
680
+ # file packaging, asset structure, and naming conventions. Every
681
+ # layout-violation message links into the relevant capability/
682
+ # requirement spec in NVIDIA/simready-foundation so partners hit the
683
+ # foundation spec, not our local SDK doc copy.
684
+ _FOUNDATION_SPECS_BASE = ("https://github.com/NVIDIA/simready-foundation/"
685
+ "blob/main/nv_core/sr_specs/docs/capabilities")
686
+ _ATOMIC_ASSET_CAP = f"{_FOUNDATION_SPECS_BASE}/core/atomic_asset/capability-atomic_asset.md"
687
+ _ATOMIC_ASSET_FILE_TYPES = (f"{_FOUNDATION_SPECS_BASE}/core/atomic_asset/"
688
+ "requirements/supported-file-types.md")
689
+ _ATOMIC_ASSET_PATHS = (f"{_FOUNDATION_SPECS_BASE}/core/atomic_asset/"
690
+ "requirements/anchored-asset-paths.md")
691
 
692
 
693
  def check_simready_layout(root: Path) -> list[dict]:
 
710
  Hidden dirs (`.thumbs`, `.simready`) and known output dirs
711
  (_SKIP_DIR_NAMES) are exempt from the per-dir bundle check.
712
  """
713
+ # All four LAYOUT.* codes point at the foundation Atomic Asset
714
+ # capability spec — it's the authoritative spec for file
715
+ # packaging, asset references, and supported file types.
716
+ # Sub-requirement spec pages exist (supported-file-types.md,
717
+ # anchored-asset-paths.md) but the capability page is the entry
718
+ # point operators should read first.
719
+ folder_url = _ATOMIC_ASSET_CAP
720
+ manifest_url = _ATOMIC_ASSET_CAP
721
  fails: list[dict] = []
722
  try:
723
  entries = sorted(root.iterdir())