Repository navigation
[spec-enforcer] Enforce specifications for workflow/actions, workflow/actionslanguageservice, workflow/aw - #78369
Merged
pelikhan merged 1 commit intoNov 16, 2026
Conversation
Contributor
There was a problem hiding this comment.
🟢 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
VisitAPI 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)
This was referenced Nov 16, 2026
pelikhan
deleted the
spec-enforcer/workflow-asts-43858066926-dd9b885355f7dfc9
branch
November 16, 2026 16:11
Contributor
Author
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Specification Test Enforcement
Adds eight specification-driven tests for three packages whose README hashes changed. All 36 top-level specification tests pass.
workflow/actionsworkflow/actionslanguageserviceworkflow/awTest 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_AMBIGUITYcomments.Spec-Implementation Mismatches
The
workflow/actionsREADME documentsVisitfor expression traversal, butgo docreports no exportedVisitsymbol. This is recorded asSPEC_MISMATCHin 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
make fmtand selected-packagegolangci-lintpass with zero Go lint issues.make agent-report-progressran impacted unit tests once, and those tests passed. The initial gate lackedgolangci-lint; pinned version v2.15.0 was installed and the selected-package lint checks were completed separately.spec-enforcer/generated-tests. Specification-test statement coverage is 46.7% forworkflow/actions, 61.7% forworkflow/actionslanguageservice, and 21.2% forworkflow/aw.Round-Robin State
Next Actions
Review the new tests, reconcile the documented
VisitAPI, and complete the repository-wide workflow drift check.References: §43858066926