Test and build baseline¶
Assurance and isolation¶
Deep Security Scan status: BLOCKED BY TOOLING FAILURE
Reason: A discovery worker failed to create its required threat_model.md
artifact, and deterministic artifact validation terminated with ENOENT.
Consequences:
no Deep Security Scan result was accepted;
no candidate from the failed run may be treated as validated;
no no-findings conclusion may be made;
independent security scanning remains a release blocker.
All build/test commands used archived copies of HEAD outside the repository.
Generated caches, coverage, wheels, sdists, sites, and virtual environments were
written below
C:\Users\Mojta\AppData\Local\Temp\cryptography-suite-phase1-fb8b0f3-20260729.
The repository remained documentation-only.
The archive contained the 284 materializable Windows files. The tracked
docs/security.md symlink (../SECURITY.md) failed Windows tar extraction
with Invalid argument; isolated documentation copies used SECURITY.md as a
regular file at that path.
Command result matrix¶
Baseline |
Reproducible command shape |
Result |
|---|---|---|
Clean environment |
|
PASS; installed |
Editable environment |
|
PASS |
Build |
|
PASS; wheel and sdist built |
Wheel install |
fresh venv then |
PASS |
External import |
from temp parent, |
PASS; version 3.0.0 loaded from wheel site-packages |
Complete tests |
|
PASS; 460 passed, 42 skipped, 22 warnings in 210.48 s |
Branch coverage |
|
PASS; 460 passed, 42 skipped, 22 warnings in 118.65 s; total 74% |
Ruff lint |
|
FAIL; 208 errors |
Ruff format |
|
FAIL; 49 would be reformatted, 148 already formatted |
Black |
|
FAIL; 52 would be reformatted, 145 unchanged |
Strict mypy |
|
FAIL before full checking; duplicate module |
Bandit, no skips |
|
FAIL; 17 issues across 9,256 lines |
Core dependency audit |
|
PASS; no known vulnerabilities in resolved set |
Optional-extra audits |
one |
16 resolved sets clean; |
Built-wheel CLI |
version/help plus representative functional commands |
Mixed; basic/hash/OTP/file pass, keystore and migration fail |
Fuzz harness smoke |
install Atheris; each |
BLOCKED on Windows; Atheris build failed |
Sphinx |
|
FAIL; 54 warnings treated as errors |
MkDocs |
|
FAIL; 3 link warnings |
Config syntax |
parse |
PASS |
The first coverage invocation was malformed by PowerShell argument construction:
pytest treated json:<path> as a file and exited 4 with zero tests. The corrected
command above was rerun and is the accepted coverage result.
Coverage detail¶
Coverage.py reported:
3,928 statements, 851 missed;
1,098 branches, 204 partial;
74% total branch-aware coverage.
.coveragerc omits code-generation templates and
cryptography_suite/experimental/*, so 74% is not coverage of every shipped
wheel module. No coverage threshold is configured (tox.ini passes
--fail-under=0).
Static-analysis detail¶
Ruff’s 208 findings and the Ruff/Black format deltas apply to the authoritative
197-file git ls-files '*.py' set, including sources, tests, tools, fuzz, and
docs/conf.py. The normal quality workflow checks formatting, Ruff, and mypy
only on changed Python files.
Strict mypy could not proceed past the parallel root/src duplicate package.
The existing config also has differing Python targets (pyproject.toml 3.10,
setup.cfg 3.12) and multiple per-module ignore_errors sections, so no
repository-wide strict-type conclusion is possible.
Bandit, with no skipped families, reported:
Rule |
Count |
Phase 1 triage |
|---|---|---|
B101 assert |
3 |
Implementation invariant checks; review/remove from runtime paths |
B110 try/except/pass |
9 |
Hidden errors; inspect individually in later work |
B311 non-crypto PRNG |
1 |
Retry jitter in |
B404 subprocess import |
1 |
Generic operations wrapper |
B603 subprocess without shell |
1 |
Sequence argv with |
B413 deprecated PyCrypto |
2 |
Legacy Salsa20 imports; confirms labs/removal disposition |
Bandit’s severity summary was 15 Low and 2 High (the two B413 legacy imports). These scanner classifications were not promoted directly into manual security findings.
Dependency audits¶
Audits resolved each declared extra’s direct requirements and their current
transitive dependencies separately. Successful sets—core, cli,
hashing-extra, bls, pake, pqc, fhe, codegen, network, dev,
async, docs, viz, kms, aws, and hsm—reported no known
vulnerabilities on 2026-07-29.
Two sets have no accepted audit result:
zk:pybulletproofsfailed package metadata generation, so dependency collection terminated;legacy:salsa20>=0.9could not resolve because the configured index offered only 0.3.0.
These audits used unpinned declared requirements and current index resolution; they are a dated baseline, not a lockfile guarantee.
CLI and package smoke detail¶
Success from the installed wheel:
all parser help surfaces and
--version;backends list;SHA3-256 file hashing;
OTP generation (with a SHA-1 compatibility warning at the default);
PBKDF2 file encrypt/decrypt through
--password-stdin, with an exact plaintext round trip.
Failures:
keystore list:AttributeError: Namespace has no attribute passwordatcryptography_suite/cli.py:1069;migrate-keys --from file --to hsm --dry-run:FileNotFoundErrorfor excludedsite-packages/src/cryptography_suite/cli/migrate_keys.py;exportandgenin the core-only wheel environment returned their intended missing-extra errors.
The wheel contains 71 tracked package files; the sdist contains those plus six
tracked packaging/root files. Exact content is in package-content.md and the
inventory CSV.
Documentation and workflow checks¶
Sphinx failed with 54 warnings, including missing _static, duplicate
index/security documents, an experimental autodoc import blocked by the
environment guard, MyST heading issues, many documents outside a toctree, and
broken references.
MkDocs strict mode failed on three links: migration_3.0.md to index.html,
and the materialized security document to CONTRIBUTING.md and
docs/api-stability.md.
TOML/YAML/JSON syntax parsing passed. actionlint was not installed, so GitHub
Actions expression/schema semantics were not independently checked.
Preserved evidence¶
Raw command stdout/stderr, coverage JSON, archive lists, and built artifacts remain in the external temporary baseline directory named above. They are not committed because Phase 1 permits documentation only and those artifacts are machine-specific.