Skip to content

fix(spdd): close T-DR test gaps, fix compliance README, promote guard-policies to Implemented - #49812

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/spdd-daily-spec-work-plan-2026-08-02
Closed

fix(spdd): close T-DR test gaps, fix compliance README, promote guard-policies to Implemented#49812
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/spdd-daily-spec-work-plan-2026-08-02

Conversation

Copilot AI commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

SPDD 2026-08-02 rotation identified stale/incorrect references in the DriftRecord conformance suite and two spec files stuck in limbo. Three T-DR test IDs had no implementation, the compliance README pointed to a file that doesn't exist, and guard-policies-specification.md remained Draft despite the implementation being complete.

P0 — DriftRecord conformance gaps

specs/awf-config-sources-compliance/README.md

  • awf_config_drift_test.goawf_config_drift_formal_test.go (the non-formal file never existed)
  • Run command pattern TestDriftRecordTestFormal_
  • Added T-DR-001..010 → TestFormal_* mapping table so every conformance ID is traceable

pkg/workflow/awf_config_drift_formal_test.go — three uncovered IDs closed:

Added test T-DR Mechanism
TestFormal_TDR003_DetectedAtISO8601Format T-DR-003 time.Parse(time.RFC3339, ...) rejects non-conforming values
TestFormal_TDR005_NoAdditionalProperties T-DR-005 json.NewDecoder + DisallowUnknownFields()
TestFormal_TDR008_CorrectionPREmbedsDriftRecords T-DR-008 Parses JSON array from PR body string

Also added json:"property_path" etc. snake_case tags to FormalDriftRecord to match the normative spec field names, and // covers T-DR-xxx annotations to all existing tests.

scratchpad/safe-outputs-specification.md — archival notice strengthened with a grep one-liner to surface stale references before the 2026-09-21 deletion date, and a cross-reference to tracking issue #49811.

P1 — Guard policies Draft resolution

scratchpad/guard-policies-specification.md promoted Draft v0.1.0 → Implemented v0.2.0 with a dated decision record. Added a Structure section mapping the full GuardPolicies type hierarchy to pkg/workflow/ files (types, validation, parsing, compilation, safe-outputs derivation, tests).

P2 — aw-harness.md safeguards

Already present at §11.2 and §11.4 — no changes needed.

Copilot AI linked an issue Aug 2, 2026 that may be closed by this pull request
10 tasks
- Fix compliance README: reference correct test file (awf_config_drift_formal_test.go)
  and add T-DR-001..010 to TestFormal_ mapping table
- Add missing T-DR-003 (ISO 8601 format), T-DR-005 (no additional properties),
  and T-DR-008 (PR embeds JSON) tests to formal test file
- Add T-DR annotations to all existing formal drift tests
- Add json tags to FormalDriftRecord for spec-conformant snake_case field names
- Promote guard-policies-specification.md from Draft v0.1.0 to Implemented v0.2.0
- Add Structure section to guard-policies-specification.md with file/module layout
- Strengthen safe-outputs-specification.md deletion tracking with grep command
  and reference to tracking issue #49811

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Review daily SPDD rotation for specification files fix(spdd): close T-DR test gaps, fix compliance README, promote guard-policies to Implemented Aug 2, 2026
Copilot AI requested a review from pelikhan August 2, 2026 16:35
@pelikhan pelikhan closed this Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[spdd] Daily spec work plan - 2026-08-02

2 participants