Skip to content

feat(architecture): list k8s CronJob Job as unmapped and diff IaC compute nodes - #8057

Merged
kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-7930-39099494925-1
Oct 20, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-7930-39099494925-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7930

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/architecture:map-deployment now lists Kubernetes CronJob and Job under Unmapped resources (placing none of their containers or parameters, adding no environment). --diff now also compares compute nodes of the Terraform, Bicep, ARM, CloudFormation and Pulumi readers, matched by resource address.

Not verified

  • A Job/CronJob whose kind: line comes after spec: still has its env entries written to the record's parameters (documented in SKILL.md); not fixed.
  • check-skill reported FAIL for map-landscape in the plugin-wide run (not changed here); not investigated.
  • Eval sample answers under plugins/architecture/evals still show the old Kinds compared sentence; not updated.

Fix

  • plugins/architecture/skills/map-deployment/scripts/collect-deployment.sh: detect CronJob/Job files, list them as unmapped, skip their containers and env
  • plugins/architecture/skills/map-deployment/scripts/deployment-diff.awk: note_compute() records compute nodes for node_diffs()
  • plugins/architecture/skills/map-deployment/scripts/{terraform-reader,azure-reader,yaml-rows}.awk: record compute nodes and call node_diffs(); ARM nodes matched by type and order
  • plugins/architecture/skills/map-deployment/scripts/render-deployment.sh: diff kinds sentence names compute nodes
  • plugins/architecture/skills/map-deployment/scripts/collect-deployment.test.sh: tests for CronJob/Job and compute node diffs
  • plugins/architecture/skills/map-deployment/SKILL.md: document both behaviors
  • .changes/architecture/feat-map-deployment-cronjob-compute-diff-7930a1c4.md: minor changelog fragment (written by hand, the helper needs a branch)

Verification

The run reports:

  • run-test-file collect-deployment.test.sh: all tests passed, including new CronJob/Job and compute-diff cases
  • check-changelog-fragments: all 141 fragments valid
  • cant-fail-scan --check on the test file: no gating findings
  • check-evals-quality on map-deployment evals.json: PASS (1 pre-existing warning)
  • check-skill on plugins/architecture/skills: map-deployment passed; map-landscape reported FAIL in the same run, not touched by this change
  • fresh-context subagent review of the diff: 3 confirmed findings (batch resource adding an environment, ARM positional addresses, doc wording) fixed; test rerun passed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/39099494925

Left out: the items under Not verified.

Related

#7930

…pute nodes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9ab7e0bf118d7c1f6cf707db5c58fff1053741d6: 0 finding(s), 0 as inline comments.

Security review: PR #8057 (head 9ab7e0b)

No security issues found. I reported 0 findings and posted no inline comments.

The PR is open and changes map-deployment helpers (shell and awk) that read untrusted repository files, so I read the full diff. It adds no deletion of any standing instruction, so the instruction-surface lens did not apply. I did not consult the protected-class list in docs/conventions/instruction-exception-register/README.md for that reason.

  • Kubernetes CronJob and Job: The change only adds them to the fixed-literal grep kind match and lists them as unmapped. The awk -v variables are unchanged except for adding unmapped. No new command-injection or path-handling surface appears.
  • New compute-node comparison: note_compute and node_diffs only key into awk arrays by environment, address and type. They run no shell commands and open no files. The detail strings carry resource addresses and type names, not parameter values, so they do not expose secrets. The existing redaction (REDACT_AWK) is still loaded for the Kubernetes reader.
  • Rendering: render-deployment.sh changes only a static description string.
  • Documented ordering limit: SKILL.md says a CronJob or Job must declare kind: before spec: for its env entries to stay out of the record. That is a correctness limit of a line-based reader, not an exploitable path: the existing redaction still applies and nothing crosses a trust boundary. The PR already documents it.

I did not run the scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: risk MED at head e00a0c28481a243e4beca3c447094c54ad01fd10. Only LOW merges without a human; this pull request waits for one.

MED evidence-unbound:claude-review: not bound: no-marker

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 9ab7e0bf118d7c1f6cf707db5c58fff1053741d6: 0 finding(s), 0 as inline comments.

No blocking or high-signal findings on head 9ab7e0b. I read the whole diff and the PR context, and I did not run the test suite.

Closing issue #7930. It has no explicit acceptance-criteria list. Its two asks are met in the diff, and tests in collect-deployment.test.sh would fail if either broke:

  • CronJob and Job as unmapped: these are covered by the k8s-batch, k8s-batch-env and k8s-batch-only fixtures.
  • Compute nodes in --diff: the Terraform, ARM, Bicep, Pulumi and CloudFormation fixtures cover this.

What I checked:

  • Duplicate diff rows: node_diffs() in deployment-diff.awk iterates both environments' keys, so a type change at one address would be emitted twice. Both $DIFFS sort passes use sort -u (collect-deployment.sh lines 723, 964 and 1052), so the duplicates collapse.
  • Compute-node claims: the Terraform Kubernetes workload and Azure container group claims in SKILL.md match the node() call sites.
  • ARM matching: the type-plus-order rewrite of ARM ids is consistent with the note_compute env-prefix stripping.
  • Unmapped plumbing: the Kubernetes awk call now receives -v unmapped=..., which note_unmapped needs.

Author-disclosed gaps, not findings:

  • A CronJob or Job whose kind: comes after spec: still has its env entries written to parameters. This is documented in SKILL.md.
  • The eval sample answers still carry the old "Kinds compared" sentence.
  • check-skill reported a failure for map-landscape, which this PR does not touch.
  • The Verification claims in the PR body (test run, changelog check, check-skill) are author-claimed. I did not rerun them.

Cosmetic nits, below the bar:

  • The SKILL.md paragraph in the "Build the record" section has an odd mid-sentence line break ("too. A Kubernetes / container port") and one line well over 100 columns.
  • The rendered kinds sentence lists ARM among tools that show "another type" rows, but ARM nodes are keyed by type, so ARM can only show added or removed rows. SKILL.md states this correctly.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 59929af.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: 59929af82348e4652d9d3cc739c56a95c74a819f (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8057 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8057 -f activity=address-feedback

kyle-sexton and others added 2 commits October 20, 2026 05:03
…tion and Pulumi

Add fixtures for the three documented compute-diff behaviors that had no
failing test: the ARM type-and-order match (a node moved in the array is no
diff, an extra node is compute-added), the compute type-change row for Bicep
and Pulumi, and a changed name alone adding no row. A CloudFormation case
covers its node_diffs call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 790983c Oct 20, 2026
26 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7930-39099494925-1 branch October 20, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(architecture): map-deployment lists Kubernetes CronJob/Job as unmapped and diffs IaC compute nodes

1 participant