loginowskid commited on
Commit
a283cc3
Β·
1 Parent(s): 7e13d74

zfill PKG codes @c94d750

Browse files
tools/spec_sync/state.json CHANGED
@@ -7,8 +7,8 @@
7
  "synced_by": "initial-setup",
8
  "rules_pinned_against": [
9
  "AA.002 supported-file-types (validate.py:_AA_002_ALLOWED) β€” foundation",
10
- "PKG.1 interface file (validate.py:_check_pkg_layout) β€” local SDK packaging spec",
11
- "PKG.6 package manifest (validate.py:_check_pkg_layout) β€” local SDK packaging spec",
12
  "PKG.NO-ROOT-USD no root USDs (validate.py:_check_pkg_layout) β€” local SDK packaging spec",
13
  "PKG.NO-ARCHIVES no zip files (validate.py:_check_pkg_layout) β€” local SDK packaging spec"
14
  ]
 
7
  "synced_by": "initial-setup",
8
  "rules_pinned_against": [
9
  "AA.002 supported-file-types (validate.py:_AA_002_ALLOWED) β€” foundation",
10
+ "PKG.01 interface file (validate.py:_check_pkg_layout) β€” local SDK packaging spec",
11
+ "PKG.06 package manifest (validate.py:_check_pkg_layout) β€” local SDK packaging spec",
12
  "PKG.NO-ROOT-USD no root USDs (validate.py:_check_pkg_layout) β€” local SDK packaging spec",
13
  "PKG.NO-ARCHIVES no zip files (validate.py:_check_pkg_layout) β€” local SDK packaging spec"
14
  ]
tools/validation/plugins/simready-report/skills/simready-report/validate.py CHANGED
@@ -709,8 +709,8 @@ def run_preliminary_checks(root: Path) -> list[dict]:
709
 
710
  Implemented:
711
  - AA.002 supported-file-types (foundation)
712
- - PKG.1 interface file convention (SDK Β§"Discovery Rules" #1+#4)
713
- - PKG.6 package manifest required (SDK Β§"Discovery Rules" #6)
714
  - PKG.NO-ROOT-USD no USDs at dataset root (SDK Β§"Folder Structure")
715
  - PKG.NO-ARCHIVES no zip files (SDK Β§"Folder Structure" β€” packages
716
  ship unpacked)
@@ -806,9 +806,9 @@ def _check_pkg_layout(root: Path) -> list[dict]:
806
  spec's own numbered Discovery Rules where applicable.
807
 
808
  Rules enforced:
809
- PKG.1 Each top-level dir must contain
810
  <dirname>/<dirname>.usd (Discovery Rules #1+#4).
811
- PKG.6 Each top-level dir must contain .<dirname>.wrapp
812
  (Discovery Rules #6 β€” "required, flag as error").
813
  PKG.NO-ROOT-USD No USD files at the dataset root β€” each asset
814
  must live in its own directory per Folder
@@ -860,7 +860,7 @@ def _check_pkg_layout(root: Path) -> list[dict]:
860
  continue
861
  has_any_bundle_dir = True
862
 
863
- # PKG.1 β€” interface file convention
864
  interface_candidates = [
865
  entry / f"{entry.name}.usd",
866
  entry / f"{entry.name}.usda",
@@ -876,7 +876,7 @@ def _check_pkg_layout(root: Path) -> list[dict]:
876
  hint = (f" Found USDs here: {', '.join(found)}"
877
  if found else " No USD files found in this directory.")
878
  issues.append({
879
- "code": "PKG.1",
880
  "severity": "failure",
881
  "path": rel + "/",
882
  "spec_url": _SDK_PACKAGING_SPEC_DISCOVERY,
@@ -885,11 +885,11 @@ def _check_pkg_layout(root: Path) -> list[dict]:
885
  f"the SimReady packaging spec.{hint}"),
886
  })
887
 
888
- # PKG.6 β€” package manifest
889
  manifest = entry / f".{entry.name}.wrapp"
890
  if not manifest.is_file():
891
  issues.append({
892
- "code": "PKG.6",
893
  "severity": "failure",
894
  "path": rel + "/",
895
  "spec_url": _SDK_PACKAGING_SPEC_MANIFEST,
 
709
 
710
  Implemented:
711
  - AA.002 supported-file-types (foundation)
712
+ - PKG.01 interface file convention (SDK Β§"Discovery Rules" #1+#4)
713
+ - PKG.06 package manifest required (SDK Β§"Discovery Rules" #6)
714
  - PKG.NO-ROOT-USD no USDs at dataset root (SDK Β§"Folder Structure")
715
  - PKG.NO-ARCHIVES no zip files (SDK Β§"Folder Structure" β€” packages
716
  ship unpacked)
 
806
  spec's own numbered Discovery Rules where applicable.
807
 
808
  Rules enforced:
809
+ PKG.01 Each top-level dir must contain
810
  <dirname>/<dirname>.usd (Discovery Rules #1+#4).
811
+ PKG.06 Each top-level dir must contain .<dirname>.wrapp
812
  (Discovery Rules #6 β€” "required, flag as error").
813
  PKG.NO-ROOT-USD No USD files at the dataset root β€” each asset
814
  must live in its own directory per Folder
 
860
  continue
861
  has_any_bundle_dir = True
862
 
863
+ # PKG.01 β€” interface file convention
864
  interface_candidates = [
865
  entry / f"{entry.name}.usd",
866
  entry / f"{entry.name}.usda",
 
876
  hint = (f" Found USDs here: {', '.join(found)}"
877
  if found else " No USD files found in this directory.")
878
  issues.append({
879
+ "code": "PKG.01",
880
  "severity": "failure",
881
  "path": rel + "/",
882
  "spec_url": _SDK_PACKAGING_SPEC_DISCOVERY,
 
885
  f"the SimReady packaging spec.{hint}"),
886
  })
887
 
888
+ # PKG.06 β€” package manifest
889
  manifest = entry / f".{entry.name}.wrapp"
890
  if not manifest.is_file():
891
  issues.append({
892
+ "code": "PKG.06",
893
  "severity": "failure",
894
  "path": rel + "/",
895
  "spec_url": _SDK_PACKAGING_SPEC_MANIFEST,