Repository navigation
feat(audit): package mode (audit_package, audit-package) - #39
Conversation
…idden audit_package and audit-package permit one literal include form and audit every file it reaches. audit_file and audit_source are unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7Zpa1S5bdGh4d9CQ9tt
|
🟢 clean · commit Advisory: 11 row(s), worst 🔴 high (0 critical, 10 high in grid scope) — reported, never grading the change. Unique graded findings across gating and advisory rows: 30 (30 reporter observations; 27 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Hypatia scan: 1 finding(s)
panic-attack assail: 22 finding(s)
pons asinorum: 9 finding(s)
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
rhodibot (RSR compliance): 11 finding(s)
panicbot: not_applicable — panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
glambot (presentation quality): 91 finding(s)
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
finishingbot (release readiness): 174 finding(s)
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
Scope: static findings reported by each row's tool at the named commit. The table grades only findings in files this change touches, so the colour answers "does this change introduce anything?", not "what does the whole repository still carry?". Standing findings are counted in each accordion and in report.json; the baseline filter remains the place where acknowledged debt is recorded. The lane state is the worst GATING row; advisory rows are listed and counted but never set it. Purple, red, yellow and blue grade the worst GRADED finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run. |
Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7Zpa1S5bdGh4d9CQ9tt
|



Summary
Adds package mode so a real Julia package can pass the source-policy audit. One form of
includeis permitted in package mode only, and the included file is audited too.audit_sourceandaudit_fileare unchanged:includestays forbidden there. Source-policy audit, not a proof.Changes
audit_package(root_file)andPackageReport(root, oneAuditReportper reached file, package-level findings, unreached files).is_policy_cleanhas a method for it.include("literal.jl"), one plain string literal, as a statement at top level or directly in amodule/baremodulebody (nested modules fine; a docstring on the module is looked through). Everything else staysAPX_DYNAMIC_ESCAPE..jl, resolved against the including file, inside the root directory afterrealpath.APX_INCLUDE_PATH,APX_INCLUDE_OUTSIDE_ROOT,APX_INCLUDE_MISSING,APX_INCLUDE_DUPLICATE,APX_INCLUDE_CYCLE,APX_PACKAGE_SCAN_ERROR(documented in theaudit_packagedocstring)..jlfiles under the root directory are listed, not findings.audit-package ROOT.jl, same exit codes asaudit(0 clean, 1 rejected, 2 usage/read error).RSR Quality Checklist
Required
Pkg.test()on Julia 1.12.1: all testsets pass).envfiles includedAs Applicable
CHANGELOGor release notes updatedTesting
Full suite on Julia 1.12.1: 366 before, 516 after, 0 failures. Falsifier: with computed include paths permitted, 6 tests in "(c) computed paths are flagged" fail; restored, all pass.
scripts/check-adoc-renders.shnot run (no asciidoctor installed).Pilot, read only, CoprocessorRuntime.jl at a0e2c82:
auditon the root had 7APX_DYNAMIC_ESCAPE;audit-packagereaches 8 files, all clean, 0 unreached.Decided by the coordinator
Looking through the parser's own docstring node is sound and stays. The look-through matches only the
GlobalRef(Core, @doc)node that the parser writes for a docstring. The parent session ran 12 attack cases on commit 2a22c75 and all gave the expected result: a user-writtenCore.@doc "d" module ... endand@doc "d" module ... endare still flagged;evalinside the module docstring is flagged;../src2/x.jl(same name prefix) and a symbolic link that leaves the root giveAPX_INCLUDE_OUTSIDE_ROOT; two-argument include,const include = ..., a package that defines its owninclude, and include in a loop are flagged; the same file twice givesAPX_INCLUDE_DUPLICATE; a nested docstring module that reaches a file withccallis not clean; a docstring module with a clean include is clean.🤖 Generated with Claude Code
https://claude.ai/code/session_0136P7Zpa1S5bdGh4d9CQ9tt