Skip to main content

Time Assurance Documentation Scanner

Open-source, AI-assisted documentation scanner (tads) that supports long-horizon time assurance by identifying potential defects, implicit assumptions, missing evidence, and related inconsistencies in standards and technical documentation.

"Assurance" here means systematically identifying and documenting potential time-related risks and evidence for human review. TADS contributes to that process; it does not guarantee that all such issues have been found, and it cannot prove a document, protocol, implementation, or system free of long-horizon time defects.

This repository contains the open-source scanner engine and CLI. It is the documentation-scanning sibling of time_assurance_code_scanner (tacs).

New here? Follow QUICK_START.md — install through a first scan in about 15 minutes (offline mock path, then optional real LLM).

Status

Stable release (package 0.6.0) with Phase 2 corpus support: Tier-1 adapters for IETF, ETSI, and 3GPP; a generic analysis profile for unidentified plan / scan documents; remote fetch for W3C, ECMA, OASIS, and NIST; local-file stubs for ITU-T, IEEE, and ISO/IEC. The everyday workflow is fetch → plan → scan → human review → render. See CHANGELOG.md for changes since 0.5.1.

Default LLM: Ollama Cloud (gpt-oss:120b when OLLAMA_HOST is unset). BYOLLM also supports local Ollama, OpenAI, Anthropic, Gemini, and an offline mock provider.

Provider Model (smoke-tested) Notes
Ollama Cloud gpt-oss:120b Free-tier friendly default
Ollama local llama3.2:3b / llama3.1:8b Use section caps; small context truncates whole RFCs
Gemini gemini-3.6-flash AI Studio key + Generative Language API + credits
OpenAI gpt-4.1-mini (default; opt-in gpt-6-luna) Needs billing/credits; Luna uses schema 0.5.0 reasoning_effort
Anthropic claude-sonnet-4-5 Working end-to-end
Mock (built-in) No API key; plumbing / CI only

Privacy (read this)

Processing is ephemeral by default: the tool does not keep a private document store. That does not mean “never leaves your machine.”

  • Document text is sent to the LLM provider you configure (Ollama Cloud, OpenAI, Anthropic, Gemini, or your local Ollama daemon).
  • Reports are written only where you ask (outputs/ by default). Prefer mock or local Ollama for sensitive drafts.

Details: docs/privacy.md.

Principles

  • Open source first; model-independent (BYOLLM)
  • Corpus-aware, not keyword-driven
  • Evidence-based; deterministic checks where possible
  • Human review is authoritative — scan outputs are candidates for review (validated finding = human disposition=accepted only)
  • Extensible beyond Y203x without redesign

Limitations

TADS is an AI-assisted review aid, not an authoritative standards or compliance oracle.

TADS is not a completeness checker. A clean scan does not establish that a document is free of Y2036, Y2038, Y2106, or other long-horizon time risks or assurance gaps. Detection depends on the current taxonomy, extracted content, corpus parsing, analysis coverage and caps, prompt framework, and the selected model and provider.

In TADS reports, assurance status describes the evidence and review state of an individual candidate. It is not an assurance rating or safety verdict for the analyzed document, protocol, implementation, or system. Outputs begin as candidates for review, not confirmed defects.

  • Document content is untrusted and may try to influence the model. TADS separates scanner policy from document data where provider APIs permit. Official OpenAI and Gemini endpoints may also receive a provider-native JSON schema as a reliability aid, not a security boundary; TADS still validates locally. Custom OpenAI-compatible base URLs stay on the prompt-only path. Structured validation and tests reduce risk; they do not eliminate prompt injection.
  • A schema-valid report can still contain incomplete, misleading, or fabricated analysis. A clean report is not proof that the document did not influence the model, and it is not a time-safety verdict.
  • False positives and false negatives are expected.
  • Scope labels (core / supporting / incidental / out_of_scope) are advisory.
  • Absence claims (“not addressed / no guidance”) can still be wrong.
  • Results vary by model, provider, prompt framework, and analysis caps.
  • Sensitive documents should use an appropriately trusted provider or a local model.
  • PDF and HTML extraction may be incomplete, as may treatment of tables, figures, annexes, and referenced material.
  • No findings ≠ “no time-assurance risk.”
  • Experts should review severity and remediation before relying on results or submitting comments to a standards body.

Quick start

python3 -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
# Optional PDF conversion (PyMuPDF): pip install -e ".[pdf]"

# Offline plumbing (no API key) — fetch needs network once:
tads fetch RFC5905
tads scan inputs/RFC5905.txt --doc-id RFC5905 --provider mock \
  --max-sections 2 --force-sections --overwrite -y

Then open outputs/RFC5905.md. For a real LLM scan and provider .env setup, use QUICK_START.md.

Default install covers plain text, HTML, and .docx. PDF conversion needs the optional [pdf] extra (third-party PyMuPDF; see License).

Folder Purpose
inputs/ Source documents (tads fetch default; contents gitignored)
outputs/ Scan JSON + Markdown (contents gitignored)

Reading reports: Markdown shows primary candidates for review; JSON is canonical (all candidates, dispositions, evidence, provenance). Edit dispositions in JSON, then tads render outputs/RFC5905.json -f.

--save-raw-on-error is off by default. If you enable it, TADS may write a .raw.txt troubleshooting file beside the JSON report. That file can contain complete model output and document excerpts, is capped at 256 KiB, is sensitive as a whole, and is not field-sanitized. Use it only for debugging parse failures.

Docs

Start here: QUICK_START.md

Doc Status Purpose
CHANGELOG.md Current Release notes
docs/architecture.md Current High-level architecture
docs/schemas.md Current Finding and output schemas
docs/taxonomy.md Current Time assurance taxonomy
docs/privacy.md Current Privacy and retention defaults
docs/phase1.md Current MVP commands and review workflow
docs/phase2.md Current Corpus adapters and fetch tiers
docs/backlog.md Roadmap Parked ideas (not a ship commitment)

Historical / design (optional): docs/phase0.md (completed Phase 0 record), docs/fetch_tier2_plan.md (completed Tier-2 fetch plan), docs/candidate_kind.md (design note, not implemented), docs/rfc5905_provider_compare.md (bake-off notes), eval/corpus/README.md (bootstrap eval labels), scripts/README.md (optional 12-doc bench harness).

Contributing

See CONTRIBUTING.md for development setup and PR expectations. To report a vulnerability, use SECURITY.md (not a public issue).

License

Licensed under the Apache License, Version 2.0.

Copyright (c) 2026 Y2038.com LLC

Optional PDF support (pip install "time-assurance-doc-scanner[pdf]") pulls in PyMuPDF, which is dual-licensed under AGPL-3.0 or an Artifex commercial license. Review PyMuPDF/Artifex terms if you enable that extra. TADS itself remains Apache-2.0.

Metadata

Release files for time-assurance-doc-scanner 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for time-assurance-doc-scanner 0.6.0
File Size Uploaded Provenance
time_assurance_doc_scanner-0.6.0.tar.gz 174.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for time-assurance-doc-scanner 0.6.0
File Interpreter ABI Platform
time_assurance_doc_scanner-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 356.7 kB

Release files / time_assurance_doc_scanner-0.6.0.tar.gz

Download URL time_assurance_doc_scanner-0.6.0.tar.gz
Size 174.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f2c9ff9990cae08859f9775633e967d21a099fec08d40f8410b0d21d209d146
BLAKE2b-256 checksum
How to use checksums
9f2d15bffe34f1721f0b6b60c28e48e9df423a1e2e82dfb3eaf7cf8f61431bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / time_assurance_doc_scanner-0.6.0-py3-none-any.whl

Download URL time_assurance_doc_scanner-0.6.0-py3-none-any.whl
Size 181.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbab3a1f9890e41398df03ad50c4aab5a429d1e8a3eca4f6982f5234fb0db275
BLAKE2b-256 checksum
How to use checksums
f4134cceec343a74f7aac1c237703c246265fa9b5fcb649a0fb0c49b41c9e046
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for time-assurance-doc-scanner 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page