sec-af icon indicating copy to clipboard operation
sec-af copied to clipboard

Requesting compliance reports fails at final output generation

Open AbirAbbas opened this issue 3 weeks ago • 0 comments

What happened

This defect was not exercised by the 2026-11-11 live audits. It was reproduced during verification on sec-af main cee88c9f15cb using the existing no-model test TestGenerateOutput_ComplianceFrameworksHitThePythonBug. That test passes by asserting the current failure: nonempty compliance frameworks cause GenerateOutput to return ErrComplianceReportArity after building the result.

Replication

From the repository's go directory, run:

GOPROXY=off GOSUMDB=off go test -mod=readonly ./internal/orch -run '^TestGenerateOutput_ComplianceFrameworksHitThePythonBug$' -count=1 -v

The test uses repository fixtures and fake collaborators. It requires no external AI or GitHub calls. Inspect its assertion against ErrComplianceReportArity; a passing test documents the defect rather than successful compliance output.

Where

go/internal/orch/output.go: AuditOrchestrator.GenerateOutput returns ErrComplianceReportArity when compliance frameworks are nonempty. go/internal/orch/output_test.go contains the reproducing test and real fixtures.

The fix

Generate the requested framework reports instead of deliberately returning the inherited arity error.

Acceptance

Through final audit output generation with nonempty supported frameworks, return the reports successfully and replace the existing failure-expecting assertion with successful output validation.

AbirAbbas avatar Nov 12 '26 11:11 AbirAbbas