Skip to content

Commit 0bcb90d

Browse files
hyperpolymathclaude
andcommitted
fix(k9): add top-level pedigree name field (round 3)
The k9 validator's brace-depth tracker exits the pedigree block the first time any nested `{ ... }` closes back to depth 0, so a `name =` field nested inside `metadata = { ... }` is never seen. Fix for 27 deploy.k9.ncl files: expand the single-line merge `pedigree = component_pedigree & { name = "..." },` to a multi-line form so `name =` appears on its own indented line AFTER the pedigree block is entered (the validator does `continue` on the `pedigree =` detection line, so the opening `{` is skipped and depth starts at 0 for subsequent lines). Fix for 24 K9 template/example files: insert `name = "<filename>",` as the first field in the pedigree block, before any nested sub-blocks (security, metadata) that would otherwise close pedigree depth to 0. Local validation: 51 files scanned, 0 errors, 54 warnings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c819050 commit 0bcb90d

51 files changed

Lines changed: 105 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.machine_readable/svc/k9/examples/ci-config.k9.ncl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ K9!
66

77
{
88
pedigree = {
9+
name = "ci-config",
910
schema_version = "1.0.0",
1011
component_type = "ci-configuration",
1112
security = {

.machine_readable/svc/k9/examples/project-metadata.k9.ncl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ K9!
66

77
{
88
pedigree = {
9+
name = "project-metadata",
910
schema_version = "1.0.0",
1011
component_type = "project-metadata",
1112
security = {

.machine_readable/svc/k9/examples/setup-repo.k9.ncl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ K9!
66

77
{
88
pedigree = {
9+
name = "setup-repo",
910
schema_version = "1.0.0",
1011
component_type = "repository-setup",
1112
security = {

.machine_readable/svc/k9/template-hunt.k9.ncl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ K9!
66

77
{
88
pedigree = {
9+
name = "template-hunt",
910
schema_version = "1.0.0",
1011
component_type = "TODO: describe component type (e.g., 'deployment', 'setup-script')",
1112
security = {

.machine_readable/svc/k9/template-kennel.k9.ncl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ K9!
66

77
{
88
pedigree = {
9+
name = "template-kennel",
910
schema_version = "1.0.0",
1011
component_type = "TODO: describe component type (e.g., 'build-config', 'metadata')",
1112
security = {

.machine_readable/svc/k9/template-yard.k9.ncl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ K9!
66

77
{
88
pedigree = {
9+
name = "template-yard",
910
schema_version = "1.0.0",
1011
component_type = "TODO: describe component type (e.g., 'validated-config', 'schema')",
1112
security = {

affinescript-ecosystem/affinescript-vite/container/deploy.k9.ncl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ echo "K9: Rollback complete."
144144

145145
# Export the component
146146
{
147-
pedigree = component_pedigree & { name = "affinescript-vite-deploy" },
147+
pedigree = component_pedigree & {
148+
name = "affinescript-vite-deploy",
149+
},
148150
deployment = deployment,
149151
scripts = scripts,
150152

affinescript-ecosystem/affinescriptiser/container/deploy.k9.ncl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ echo "K9: Rollback complete."
144144

145145
# Export the component
146146
{
147-
pedigree = component_pedigree & { name = "affinescriptiser-deploy" },
147+
pedigree = component_pedigree & {
148+
name = "affinescriptiser-deploy",
149+
},
148150
deployment = deployment,
149151
scripts = scripts,
150152

affinescript-ecosystem/rattlescript/container/deploy.k9.ncl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ echo "K9: Rollback complete."
144144

145145
# Export the component
146146
{
147-
pedigree = component_pedigree & { name = "rattlescript-deploy" },
147+
pedigree = component_pedigree & {
148+
name = "rattlescript-deploy",
149+
},
148150
deployment = deployment,
149151
scripts = scripts,
150152

iser-tools/alloyiser/container/deploy.k9.ncl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ echo "K9: Rollback complete."
144144

145145
# Export the component
146146
{
147-
pedigree = component_pedigree & { name = "alloyiser-deploy" },
147+
pedigree = component_pedigree & {
148+
name = "alloyiser-deploy",
149+
},
148150
deployment = deployment,
149151
scripts = scripts,
150152

0 commit comments

Comments
 (0)