Skip to content

feat: audit NT009 official workbooks in isolated PHP tooling (#95) - #98

Closed
vitormattos wants to merge 9 commits into
refactor/php-domain-toolsfrom
feat/nt009-php-audit
Closed

vitormattos wants to merge 9 commits into
refactor/php-domain-toolsfrom
feat/nt009-php-audit

Conversation

@vitormattos

@vitormattos vitormattos commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

SUPERSEDED — no merge. The base branch of this intermediate signed PHP audit became incompatible after #97 evolved. Its implementation was re-created as signed incremental commits in #99, based on the final #97 head, without squashing or force-rewriting commit history.


Intent

Supersede the Python-only proof-of-source PR #96 with a PHP/PhpSpreadsheet audit, without claiming that NT009 is already effective for production issuance.

Implementation

  • Download exact Anexo VI v1.04.01 and Anexo VII v1.03.00 through the official www.gov.br/nfse source URLs declared in the manifest, or accept locally downloaded files.
  • Validate SHA-256 against independently recorded October 2026 observations and examine sheet names.
  • Preserve a JSON report of original Annex VI layout rows for important fields rather than inferring mandatory conditions from appearance.
  • Compare all Annex VII indicator code/description/location triplets with the current Anexo C v1.01 snapshot; record additions, removals and description changes.
  • Offline PHPUnit fixtures cover the diff algorithm; an advisory GitHub Actions job attempts the exact public-download audit and stores its evidence artifact.

Review gates and exclusions

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
… safely

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…layouts

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos closed this Oct 8, 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.

1 participant