Skip to content

Add HU-05 vector AST round-trip regression test - #7

Open
ericsmcr wants to merge 2 commits into
cenfosoft:mainfrom
ericsmcr:feature/HU-05
Open

ericsmcr wants to merge 2 commits into
cenfosoft:mainfrom
ericsmcr:feature/HU-05

Conversation

@ericsmcr

Copy link
Copy Markdown

Summary

Adds explicit HU-05 regression coverage for vector AST round-trips in T-SQL 160 and 170.

The test verifies the complete cycle:

AST -> SQL generator -> parser -> SQL generator

Seven existing vector SQL scripts are covered, and the generated output is compared against the existing baselines.

Implementation

  • Added Hu05VectorAstGeneratorReparseIsIdempotent.
  • Covered seven vector scripts for T-SQL 160 and 170.
  • Verified that the generated SQL can be parsed again.
  • Verified that the second generated SQL matches the first generated SQL.
  • Verified the existing baselines.
  • No production parser, grammar, AST, or generator code was changed.

TDD Evidence

Targeted HU-05 test

image

Full test suite

image

RED

Before this test was added, there was no explicit HU-05 regression test covering the seven vector AST round-trip cases as one acceptance criterion.

The existing implementation already supported the behavior, so no production defect was found to fix. Therefore, no failing test result will be fabricated.

GREEN

Targeted HU-05 test:

  • 1 passed
  • 0 failed

Full test suite:

  • 1177 passed
  • 0 failed
  • 0 skipped
  • Target framework: .NET 8

Commands executed:

dotnet test -f net8.0 \
  --filter "FullyQualifiedName~Hu05VectorAstGeneratorReparseIsIdempotent" \
  Test/SqlDom/UTSqlScriptDom.csproj \
  -c Debug

dotnet test -f net8.0 \
  Test/SqlDom/UTSqlScriptDom.csproj \
  -c Debug

@allancascante allancascante added adversarial-review:run Authorize an adversarial review after checks pass and removed adversarial-review:run Authorize an adversarial review after checks pass labels Dec 3, 2026
@allancascante
allancascante deployed to adversarial-review December 4, 2026 01:47 — with GitHub Actions Active
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Adversarial review

Risk: not assessed. Human review required.

PR: cenfosoft/SqlScriptDOM #7
Head SHA: f0980b31d775c9a41168b8c8f7fbbbfa8ea0b1e2
Trusted configuration: 53c42b2045d2675bf0547620886741e4712ba0f6
Status: Human Review Required; rounds: 1/3

Workflow run

Deterministic checks

Check Platform Conclusion
build ubuntu passed
build windows passed
roslyn independent passed
semgrep independent passed
test ubuntu passed
test windows passed

Findings

No findings recorded. This does not prove the change is safe.

Model rounds

Round Provider / model Outcome Tokens in/out Estimated USD
1 github-copilot / claude-haiku-4.5 malformed 18572/2535 0.035875

Risk assessment (rubric initial)

JEV assessment: not requested because required inputs were missing.

  • Missing input: The adversarial review did not complete its rounds; findings are unreliable.
  • The adversarial review did not complete its rounds; findings are unreliable.

Label: adversarial-review:human-review (applied); automatic merge: not-eligible.

Blockers / follow-up

  • One or more configured review rounds are incomplete.

Limitations

  • Advisory only; existing CI remains authoritative.
  • Numeric risk weights and thresholds are not approved. No numeric score or merge clearance is produced.
  • Offline input validation does not establish GitHub event or artifact authenticity.
  • Model output was rejected; response content is not logged.
  • Encrypted malformed-response diagnostic created for this attempt.

@github-actions github-actions Bot added the adversarial-review:human-review Adversarial review requires human attention label Dec 4, 2026

This branch was successfully deployed

1 active deployment
adversarial-review — f0980b31 Deployed Dec 4, 2026 by allancascante via review #19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adversarial-review:human-review Adversarial review requires human attention adversarial-review:run Authorize an adversarial review after checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants