Skip to content

[spec-enforcer] Enforce specifications for workflow/actions, workflow/actionslanguageservice, workflow/aw - #78369

Merged
pelikhan merged 1 commit into
mainfrom
spec-enforcer/workflow-asts-43858066926-dd9b885355f7dfc9
Nov 16, 2026
Merged

pelikhan merged 1 commit into
mainfrom
spec-enforcer/workflow-asts-43858066926-dd9b885355f7dfc9

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Specification Test Enforcement

Adds eight specification-driven tests for three packages whose README hashes changed. All 36 top-level specification tests pass.

Package Tests Added Tests Passing Spec Sections Covered
workflow/actions 2 12 Overview, Public API, Types
workflow/actionslanguageservice 3 14 Overview, Public API, Types
workflow/aw 3 10 Overview, Public API, Dependencies

Test Derivation

Tests derive from README.md contracts extracted in parallel. Implementation reads were limited to signatures, import paths, and type declarations. Additions cover expression construction and node types, diagnostic error compatibility, indexed child access, unmatched-reference searches and rewrites, frontmatter source locations, field-path composition, and the requirement for graph evidence before pre-agent classification. Undocumented behavior is identified with SPEC_AMBIGUITY comments.

Spec-Implementation Mismatches

The workflow/actions README documents Visit for expression traversal, but go doc reports no exported Visit symbol. This is recorded as SPEC_MISMATCH in its specification test file.

Validation limitation: Repository-wide workflow drift compilation was stopped after approximately ten minutes without completing. Generated workflow files were restored; this check is not reported as passing.

Validation and coverage
  • All three selected package builds and all 36 specification tests pass; the test-output classifier reports no remaining failures.
  • make fmt and selected-package golangci-lint pass with zero Go lint issues.
  • make agent-report-progress ran impacted unit tests once, and those tests passed. The initial gate lacked golangci-lint; pinned version v2.15.0 was installed and the selected-package lint checks were completed separately.
  • Custom lint reports 44 diagnostics, all in unchanged implementation files, with no diagnostics in the edited specification test files. Instruction-prefix and schema-freshness checks passed.
  • One Go coverage report was submitted under spec-enforcer/generated-tests. Specification-test statement coverage is 46.7% for workflow/actions, 61.7% for workflow/actionslanguageservice, and 21.2% for workflow/aw.
  • Rotation state, enforcement records, and merged README hashes were persisted and read back successfully.

Round-Robin State

  • Run mode: round-robin
  • Packages processed this run: workflow/actions, workflow/actionslanguageservice, workflow/aw
  • Next packages in rotation: workflow/codemod, workflow/gradershell, workflow/lint
  • Total eligible packages: 51 (with README.md)
  • Saved cursor: 40; missing specification suites take priority in the next selection.

Next Actions

Review the new tests, reconcile the documented Visit API, and complete the repository-wide workflow drift check.

References: §43858066926

Generated by 📋 Package Specification Enforcer · codex · routed: gpt61 high · ~162 AIC · ⌖ ~2 AIC · ⊞ 461 · ◷

  • expires on Nov 19, 2026, 3:53 AM UTC-08:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The README-derived specification test additions have no active review issues.

No open issues 🎉

What changed in this PR

Adds eight README-derived specification tests across three gh-aw workflow packages, expanding coverage of public API contracts without changing production code.

Changes:

  • Tests expression constructors and node types, diagnostic error compatibility, and indexed child access.
  • Covers unmatched-reference searches and rewrites, frontmatter source locations, field-path composition, and pre-agent classification without graph evidence.
  • Records unspecified behavior and the documented but unavailable Visit API in test comments.
File Description
pkg/​workflow/​aw/​spec_test.go Adds frontmatter, field-path, and pre-agent classification tests.
pkg/​workflow/​actionslanguageservice/​spec_test.go Adds child-access, diagnostic, and no-match reference-pattern tests.
pkg/​workflow/​actions/​spec_test.go Adds expression constructor and node-type tests; records the Visit API mismatch.

Review effort: Balanced (dynamic)

@pelikhan
pelikhan merged commit e1109ff into main Nov 16, 2026
62 checks passed
@pelikhan
pelikhan deleted the spec-enforcer/workflow-asts-43858066926-dd9b885355f7dfc9 branch November 16, 2026 16:11
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants