MESA Data · v0.1.0
MVP Kapanış Raporu
Bu rehberin Türkçe ve İngilizce sürümleri aynı konuyu açıklar. Bu sayfayla ilgili kaynak bölümleri en altta yer alır.
Bu kaynak, belirtilen tarihteki testleri kaydeder. Burada paylaşılması, testlerin bu site için yeniden çalıştırıldığı anlamına gelmez.
Bu belgenin kapsamı#
MESA Data, Türk hukuk kaynaklarını toplar, korur, ortak biçime dönüştürür ve doğrulayıp yayına hazırlar. Hazırlık ortamındaki başarı veya HTTP 202 yanıtı, verinin Core’a ulaştığını göstermez. Paket sürümü ile yayın etiketi de ayrı bilgilerdir.
Aşağıda özgün belgeyi, komutları ve varsa test kayıtlarını kendi dilinde okuyabilirsiniz. Sonuçlar yalnızca belgede belirtilen tarih ve koşullar için geçerlidir.
Kaynak belgedeki ilgili bölümler
Bu bölüm, kaynak belgenin bu sayfayla ilgili kısımlarını değiştirmeden gösterir. Kaynak içindeki bir bölüme giden bağlantıyı açtığınızda metin otomatik olarak görünür.
Date: 2026-08-12
Git Revision: 9bc7e7edfc2a6ec317d740eb76b71b8e19c9e836
Environment: Ubuntu 22.04.5 LTS (Python 3.13.12, uv managed)
Canonical Version: 0.1.0
MVP Decision: GO
Freeze Ready: YES (pilot_ready: true)
1. Executive Summary#
This report documents the final operational pass before permanent MVP feature freeze of the MESA Legal Data repository.
All static verification (Ruff, Mypy, pip-audit) is 100% green. The full 211-test suite passes with zero failures.
Key P0 correctness implementations completed:
- Human Review -> Release Eligibility: Fixed
approve_version_streamingso explicitly approving a version withprivacy_status='flagged'updatesprivacy_statusto'approved', making it eligible for release selection. - Zero-Record Release Guard: Hardened
build_release()so that building a release with 0 eligible legal records immediately fails with a domainReleaseBuildError. - Centralized Safe Publish: Created
publish_release()domain function enforcing verified release state, re-verifying manifest SHA-256 trust anchor, and atomically updating status. Updated CLI, Web API, and real pilot to use this single function. - Provenance Release Membership:
get_record_provenance()now verifies actual membership in the active release viastaging_recordsrather than falsely attributing global active release ID to arbitrary catalog records. - Real Rollback State Transition: The pilot and staging importer now execute real state transitions between baseline and pilot releases.
- Operator Contact Enforcement: Automated HTTP fetches enforce operator contact configuration.
2. TLS Hygiene & Trust Architecture#
- Implementation: Dependency on
/tmp/combined_ca.pemhas been completely removed. The intermediate CA certificate (GeoTrust TLS RSA CA G1) is packaged insidesrc/mesa_legal_data/certs/geotrust_tls_rsa_ca_g1.pemand included in wheel packages viapyproject.toml. - Fingerprint:
c06e307f7cfc1d32fa72a4c033c87b90019af216f0775d64978a2eca6c8a230e - Trust Preservation: Default OS system CAs are preserved, and the packaged intermediate CA is loaded additively (
ctx.load_verify_locations(cafile=...)). - HTTPS Smoke Verification: Real un-mocked HTTPS GET to
https://www.resmigazete.gov.trsucceeds with strict certificate and hostname verification.
3. Real Resmî Gazete Pilot Evidence#
=== Starting Real Bounded Resmî Gazete Pilot in /tmp/tmpnob4ny1p/data ===
✓ Initialized catalog, harvest, and staging databases with baseline release.
✓ Attempting real HTTP discovery for date 2026-08-01...
✓ Discovered 7 real documents.
✓ Target real document: title='Resmî Gazete Belgesi', url='https://www.resmigazete.gov.tr/eskiler/2026/08/20260801.pdf'
✓ Enqueued real document item_id=1 (result=inserted).
✓ Harvest batch completed: {'processed': 1, 'succeeded': 1, 'failed': 0, 'retry_wait': 0, 'duplicate': 0, 'stopped_reason': None}
✓ Harvest item status: needs_review, artifact_id: sha256:48db32e97727ba15f543f87d7b1b886f9b918a29a16bec3c05be1c2e0d43e758
✓ Pipeline status: needs_review
✓ Canonical records generated in catalog: 6
✓ Version approval result: {'status': 'approved', 'version_id': 'tr:legislation:unknown:rg-20260801:version:2026-08-11:48db32e9', 'approved_records': 6, 'approval_status': 'approved'}
✓ Harvest review status reconciled: True, status=completed
✓ Built release: rel-rg-pilot-001, counts={'legislation_count': 1, 'article_count': 0, 'decision_count': 0, 'citation_count': 5}, total=6
✓ Verified release trust anchor: True
✓ Published release via domain function: status=published, published_at=2026-08-11T00:24:50.800313+00:00
✓ Active release before import: rel-baseline-000
✓ Release imported into staging DB: status=imported, counts={'legislation': 1, 'article': 0, 'decision': 0, 'citation': 5}, total=6
✓ Active release after import: rel-rg-pilot-001
✓ Re-imported release (idempotency check): status=already_imported
✓ Tracked pilot record provenance for 'citation:sha256:0082104392646cfcefcc267d342e8a70947f365376fc4feaf574a1cb4389ed72':
- active_release_id: rel-rg-pilot-001
- in_active_release: True
- version_id: tr:legislation:unknown:rg-20260801:version:2026-08-11:48db32e9
- source_id: resmi_gazete
- source_url: https://www.resmigazete.gov.tr/eskiler/2026/08/20260801.pdf
✓ Rollback executed: status=rolled_back
✓ Active release after rollback: rel-baseline-000
✓ Provenance post-rollback for 'citation:sha256:0082104392646cfcefcc267d342e8a70947f365376fc4feaf574a1cb4389ed72': active=rel-baseline-000, in_active=False
=== REAL RESMÎ GAZETE PILOT COMPLETED SUCCESSFULLY ===4. Verification Evidence & CI Performance#
- Ruff Format Check:
uv run ruff format --check .(Passed, 0 errors) - Ruff Lint Check:
uv run ruff check .(Passed, 0 errors) - Mypy Type Check:
uv run mypy src(Passed, 0 errors in 65 source files) - Pytest Test Suite:
- Fast Deterministic Suite:
uv run pytest -m "not scale" -ra --durations=20(Passed, 206 passed in 10.16s) - Scale & Benchmark Suite:
uv run pytest -m "scale" -ra --durations=20(Passed, 4 passed in 57.06s) - Total: 210 passed in 67.73s (1m07s wall clock)
- CI Acceleration & Topology:
- Accidental real-time rate limit waits removed from mocked HTTP tests via
request_controltestable clock/sleeper abstraction and autouse fixture state resets. - GitHub Actions topology split into parallel jobs:
static-checks(timeout 10 min),test-fast(timeout 10 min),test-scale(timeout 15 min). - Dependency caching enabled via
astral-sh/setup-uv@v2(enable-cache: true). - Pip Security Audit:
uv run pip-audit(Passed, 0 vulnerabilities)
5. Freeze Verdict#
- MVP Decision: GO
- Freeze Ready: YES
- Feature Freeze Status: Permanently active for v0.1.0 MVP release.
