memleaf 0.2.69__tar.gz → 0.2.70__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {memleaf-0.2.69 → memleaf-0.2.70}/CHANGELOG.md +10 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/MANIFEST.in +0 -1
- {memleaf-0.2.69/src/memleaf.egg-info → memleaf-0.2.70}/PKG-INFO +2 -2
- {memleaf-0.2.69 → memleaf-0.2.70}/README.en.md +1 -1
- {memleaf-0.2.69 → memleaf-0.2.70}/README.md +1 -1
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/immutable-release-assets.md +6 -6
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-planner-preview.md +4 -11
- memleaf-0.2.70/docs/installed-artifact-verification.md +57 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/memory-state-contract.md +3 -6
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/processing-quality-acceptance.md +6 -7
- {memleaf-0.2.69 → memleaf-0.2.70}/pyproject.toml +1 -1
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/__init__.py +1 -1
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/plugin.yaml +1 -1
- {memleaf-0.2.69 → memleaf-0.2.70/src/memleaf.egg-info}/PKG-INFO +2 -2
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf.egg-info/SOURCES.txt +1 -67
- memleaf-0.2.69/docs/installed-artifact-verification.md +0 -131
- memleaf-0.2.69/tests_public/acceptance_oracles.py +0 -2
- memleaf-0.2.69/tests_public/candidate_update_fixtures.py +0 -8
- memleaf-0.2.69/tests_public/incremental_test_support.py +0 -62
- memleaf-0.2.69/tests_public/platform_smoke.py +0 -70
- memleaf-0.2.69/tests_public/release_assets.py +0 -176
- memleaf-0.2.69/tests_public/run_contracts.py +0 -102
- memleaf-0.2.69/tests_public/test_a083_regressions.py +0 -370
- memleaf-0.2.69/tests_public/test_a47_regressions.py +0 -440
- memleaf-0.2.69/tests_public/test_acceptance.py +0 -250
- memleaf-0.2.69/tests_public/test_acceptance_boundaries.py +0 -239
- memleaf-0.2.69/tests_public/test_artifact_verification.py +0 -178
- memleaf-0.2.69/tests_public/test_body_compaction.py +0 -287
- memleaf-0.2.69/tests_public/test_candidate_reconciliation.py +0 -161
- memleaf-0.2.69/tests_public/test_contract_reporter.py +0 -66
- memleaf-0.2.69/tests_public/test_control_absence_contract.py +0 -91
- memleaf-0.2.69/tests_public/test_create_memory_contract.py +0 -207
- memleaf-0.2.69/tests_public/test_development_closeout.py +0 -193
- memleaf-0.2.69/tests_public/test_explicit_memory_update.py +0 -553
- memleaf-0.2.69/tests_public/test_explicit_update_contract.py +0 -205
- memleaf-0.2.69/tests_public/test_g1_memory_contract.py +0 -171
- memleaf-0.2.69/tests_public/test_g2_source_contract.py +0 -402
- memleaf-0.2.69/tests_public/test_hermes_native_provision.py +0 -91
- memleaf-0.2.69/tests_public/test_hermes_source_metadata.py +0 -188
- memleaf-0.2.69/tests_public/test_incremental_commit.py +0 -194
- memleaf-0.2.69/tests_public/test_incremental_configured_runtime.py +0 -110
- memleaf-0.2.69/tests_public/test_incremental_dates.py +0 -119
- memleaf-0.2.69/tests_public/test_incremental_execution.py +0 -367
- memleaf-0.2.69/tests_public/test_incremental_execution_recovery.py +0 -302
- memleaf-0.2.69/tests_public/test_incremental_native.py +0 -428
- memleaf-0.2.69/tests_public/test_incremental_partial.py +0 -177
- memleaf-0.2.69/tests_public/test_incremental_partial_boundaries.py +0 -180
- memleaf-0.2.69/tests_public/test_incremental_partial_recovery.py +0 -277
- memleaf-0.2.69/tests_public/test_incremental_preview.py +0 -190
- memleaf-0.2.69/tests_public/test_incremental_protocol.py +0 -459
- memleaf-0.2.69/tests_public/test_incremental_recovery.py +0 -263
- memleaf-0.2.69/tests_public/test_incremental_remember.py +0 -231
- memleaf-0.2.69/tests_public/test_incremental_remember_recovery.py +0 -238
- memleaf-0.2.69/tests_public/test_incremental_scope_recovery.py +0 -332
- memleaf-0.2.69/tests_public/test_incremental_scopes.py +0 -203
- memleaf-0.2.69/tests_public/test_inspection_read_budget.py +0 -171
- memleaf-0.2.69/tests_public/test_mcp_retrieval_fallback.py +0 -140
- memleaf-0.2.69/tests_public/test_migration_backup.py +0 -374
- memleaf-0.2.69/tests_public/test_migration_runtime.py +0 -111
- memleaf-0.2.69/tests_public/test_native_read_stability.py +0 -196
- memleaf-0.2.69/tests_public/test_planner_provenance_contract.py +0 -117
- memleaf-0.2.69/tests_public/test_platform_contracts.py +0 -103
- memleaf-0.2.69/tests_public/test_processed_state_contract.py +0 -98
- memleaf-0.2.69/tests_public/test_processing_entrypoints.py +0 -266
- memleaf-0.2.69/tests_public/test_processing_route.py +0 -278
- memleaf-0.2.69/tests_public/test_processing_route_recovery.py +0 -159
- memleaf-0.2.69/tests_public/test_provider_compatibility.py +0 -567
- memleaf-0.2.69/tests_public/test_public_query_integrity.py +0 -267
- memleaf-0.2.69/tests_public/test_query_benchmark.py +0 -68
- memleaf-0.2.69/tests_public/test_query_clock.py +0 -89
- memleaf-0.2.69/tests_public/test_query_progress.py +0 -140
- memleaf-0.2.69/tests_public/test_query_scan_reuse.py +0 -234
- memleaf-0.2.69/tests_public/test_release_assets.py +0 -283
- memleaf-0.2.69/tests_public/test_remember_route.py +0 -274
- memleaf-0.2.69/tests_public/test_remember_route_recovery.py +0 -232
- memleaf-0.2.69/tests_public/test_revision_target_integrity.py +0 -262
- memleaf-0.2.69/tests_public/test_runtime_retention.py +0 -329
- memleaf-0.2.69/tests_public/test_runtime_retention_observation.py +0 -174
- memleaf-0.2.69/tests_public/test_runtime_retention_recovery.py +0 -230
- memleaf-0.2.69/tests_public/test_source_followup_contract.py +0 -160
- memleaf-0.2.69/tests_public/test_vault_binding_contract.py +0 -97
- memleaf-0.2.69/tests_public/verify_distribution.py +0 -363
- {memleaf-0.2.69 → memleaf-0.2.70}/LICENSE +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/acceptance-evidence-guide.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/automatic-processing-route.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/body-compaction.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/candidate-reconciliation.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/capture-budget-design.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/config-migrations.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/core-refactor.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/development-closeout.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/evidence-retention.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/explicit-memory-update.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/extraction-latency.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/gate-evidence-boundary.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/general-processing.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/hermes-mcp-runtime.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/hermes-provider-compatibility.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/host-acceptance-runbook.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-commit-contract.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-execution.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-native-comparison.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-partial-recovery.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-runtime-contract.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-scope-registration.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/incremental-selected-retention.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/migration-preflight.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/public-query-integrity.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/query-performance.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/remember-incremental-route.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/runtime-state-retention.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/semantic-extraction-protocol.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/source-work-contract.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/docs/v0.2.26-processing-status.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/examples/README.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/examples/basic_usage.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/examples/incremental_acceptance.json +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/examples/mcp_stdio.ndjson +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/examples/query_benchmark.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/install.ps1 +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/install.sh +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/setup.cfg +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/__main__.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/acceptance.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/adapters/__init__.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/adapters/antigravity.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/adapters/base.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/adapters/codex.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/adapters/hermes.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/admission.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/batch_review.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/budget.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/capture.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/cli.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/compaction.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/config.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/create_coordinator.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/credentials.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/evidence_budget.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/evidence_policy.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/evidence_structure.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/evidence_syntax.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/explicit_text_source.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/extraction_budget.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/extraction_capability.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/extraction_work_state.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/frontmatter.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/README.md +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/__init__.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/_mcp_client.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/_provider.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/_shared.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/evidence_budget.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_provider/provider_compatibility.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/hermes_runtime.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/host_events.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/host_runtime.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/inbox.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_commit.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_dates.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_execution.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_journal.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_native.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_partial.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_preview.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_prompts.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_protocol.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_recovery.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_run_state.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_runtime.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_scopes.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/incremental_selection.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/index.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/inspection.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/installer.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/legacy_update_journal.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/__init__.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/base.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/claude_compatible.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/gemini.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/openai_compatible.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/router.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/llm/thinking.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/locking.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/mcp_server.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/memory_commit.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/memory_planner.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/memory_retraction.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/memory_update.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/memory_writer.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/migration.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/model_capabilities.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/model_discovery.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/model_execution.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/models.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/native_index.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/native_registration.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/parallel_model.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/planning_context.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/process_common.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/process_jobs.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/process_journal.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/process_owner.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/processing.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/processing_route.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/prompts.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/provenance.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/provider_compatibility.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/query_clock.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/query_progress.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/query_scan.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/receipt_codec.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/recording_policy.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/redaction.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/remember_route.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/retention.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/retrieval.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/retrieval_gate.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/runtime_retention.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/scope_maintenance.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/scope_state.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/semantic_maintenance.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/semantic_protocol.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/service.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/single_pass_memory_planner.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/single_pass_plan.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/source_policy.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/state_layout.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/subprocess_flags.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/summary_batch.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/target_reconciliation.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/turn_audit.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/turn_plan.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/update_coordinator.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/update_review.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/validation.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf/vault.py +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf.egg-info/dependency_links.txt +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf.egg-info/entry_points.txt +0 -0
- {memleaf-0.2.69 → memleaf-0.2.70}/src/memleaf.egg-info/top_level.txt +0 -0
|
@@ -4,6 +4,16 @@ All notable changes to memleaf are documented here.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.2.70 — 2026-09-21
|
|
8
|
+
|
|
9
|
+
### Public repository and artifact hygiene
|
|
10
|
+
|
|
11
|
+
- Remove test files from the public `main` tree and keep them ignored locally.
|
|
12
|
+
- Stop including test files in source distributions and keep CI focused on
|
|
13
|
+
source syntax, isolated package installation and release-asset integrity.
|
|
14
|
+
- Preserve the runtime package and public API while ensuring new artifacts do
|
|
15
|
+
not contain the former test fixtures.
|
|
16
|
+
|
|
7
17
|
## 0.2.69 — 2026-09-21
|
|
8
18
|
|
|
9
19
|
### Incremental protocol compatibility hardening
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memleaf
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.70
|
|
4
4
|
Summary: A local-first Markdown memory core for AI agents
|
|
5
5
|
Author: memleaf contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -23,7 +23,7 @@ Dynamic: license-file
|
|
|
23
23
|
|
|
24
24
|
[English](README.en.md) · [PyPI](https://pypi.org/project/memleaf/) · [GitHub](https://github.com/miffyblueboo/memleaf)
|
|
25
25
|
|
|
26
|
-
> **版本:0.2.
|
|
26
|
+
> **版本:0.2.70。**
|
|
27
27
|
> 自动提炼和复核共用同一条“未来记忆价值”标准:模型综合未来复用、信息增量、再次读取时的直接可用性和忘记成本,只保留对未来理解、判断或行动有实质影响的最小核心;没有明确价值的信息不提炼,不按具体业务场景硬编码排除。
|
|
28
28
|
> 提炼契约现在只有一份中文语义契约(旧版英文 B3 提示词已删除),首轮、主题选择、候选修复和 `semantic_maintenance` 使用同一套保留价值判断;同一件事只写一次。
|
|
29
29
|
> Core 不再因为归属、日期、任务依据或跨项目而丢弃整条候选:归属缺失会归一到证据里唯一被点名的项目、否则落 `global`;日期只接受能在本候选证据里找到出处、且能锚定成 ISO 的写法(`明天`、`周五`、`月底` 都会被解析),无法解析时只丢掉日期字段,记忆照常写入;未获授权的改归属沿用目标原归属。
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[中文](README.md) · [PyPI](https://pypi.org/project/memleaf/) · [GitHub](https://github.com/miffyblueboo/memleaf)
|
|
6
6
|
|
|
7
|
-
> **Version: 0.2.
|
|
7
|
+
> **Version: 0.2.70.**
|
|
8
8
|
> Automatic extraction and review share one future-value standard: the model weighs likely reuse, information gain, direct usability when read again, and the cost of forgetting. It keeps only the smallest core that can materially help future understanding, decisions, or actions; information without clear value is not extracted, and no business-specific exclusion rule is hard-coded.
|
|
9
9
|
> A single Chinese semantic contract is sent for extraction, topic selection, candidate repair, and `semantic_maintenance`; the older English B3 prompt has been deleted and B3 remains only as a compatibility read format. One topic is written once.
|
|
10
10
|
> Core no longer discards a whole candidate over ownership, dates, task basis or cross-project wording. A missing owner normalizes to the single project named by that candidate's own evidence, otherwise `global`. A deadline is accepted only when it appears in the candidate's own evidence and can be anchored to ISO (`明天`, `周五`, `月底` all resolve); when it cannot, only the date field is dropped and the memory is still written. An unauthorized ownership change keeps the target's existing scope.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[English](README.en.md) · [PyPI](https://pypi.org/project/memleaf/) · [GitHub](https://github.com/miffyblueboo/memleaf)
|
|
6
6
|
|
|
7
|
-
> **版本:0.2.
|
|
7
|
+
> **版本:0.2.70。**
|
|
8
8
|
> 自动提炼和复核共用同一条“未来记忆价值”标准:模型综合未来复用、信息增量、再次读取时的直接可用性和忘记成本,只保留对未来理解、判断或行动有实质影响的最小核心;没有明确价值的信息不提炼,不按具体业务场景硬编码排除。
|
|
9
9
|
> 提炼契约现在只有一份中文语义契约(旧版英文 B3 提示词已删除),首轮、主题选择、候选修复和 `semantic_maintenance` 使用同一套保留价值判断;同一件事只写一次。
|
|
10
10
|
> Core 不再因为归属、日期、任务依据或跨项目而丢弃整条候选:归属缺失会归一到证据里唯一被点名的项目、否则落 `global`;日期只接受能在本候选证据里找到出处、且能锚定成 ISO 的写法(`明天`、`周五`、`月底` 都会被解析),无法解析时只丢掉日期字段,记忆照常写入;未获授权的改归属沿用目标原归属。
|
|
@@ -14,14 +14,14 @@ that the bytes were unchanged: rebuilding an archive can produce different
|
|
|
14
14
|
compressed bytes from equivalent source. A retry must use the **original verified
|
|
15
15
|
artifacts**, not a rebuild presented as the same published package.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
The release workflow checks the tag's resolved commit and release metadata, then
|
|
18
|
+
downloads all existing expected assets by their asset IDs. Sizes and SHA-256 must
|
|
19
|
+
match the local wheel, source archive and deterministic `SHA256SUMS` before any
|
|
20
|
+
missing attachment is uploaded. A mismatch fails without deleting, renaming,
|
|
21
21
|
overwriting or repairing the published asset. Unrelated release attachments stay
|
|
22
22
|
untouched. Duplicate expected names, unfinished uploads and malformed metadata
|
|
23
|
-
fail visibly.
|
|
24
|
-
|
|
23
|
+
fail visibly. The check is kept inline in the workflow; no test helper is stored
|
|
24
|
+
in the public repository.
|
|
25
25
|
|
|
26
26
|
Uploads are create-only and bounded to one attempt per missing name. When another
|
|
27
27
|
uploader wins, the helper rereads and verifies the resulting bytes; a failed
|
|
@@ -150,17 +150,10 @@ bytes, LF newlines and a trailing LF; fences and dynamic inputs are excluded.
|
|
|
150
150
|
Size is checked by the public tests against half of the v3.0 baseline. The old
|
|
151
151
|
production prompts and model settings are not replaced.
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
These tests cover the parser/compiler, calendar conversion, immutable snapshots,
|
|
160
|
-
read-only service boundary and old 110 regressions. They are not live semantic
|
|
161
|
-
or native Hermes/Windows/macOS acceptance. Before G3 production activation, finish
|
|
162
|
-
commit/recovery integration and bounded dispatch, test the installed artifacts,
|
|
163
|
-
and run the agreed isolated multi-turn Flash acceptance set.
|
|
153
|
+
The public repository intentionally does not store or execute test files. Before
|
|
154
|
+
G3 production activation, finish commit/recovery integration and bounded dispatch,
|
|
155
|
+
verify the installed artifacts through CI, and run the agreed isolated multi-turn
|
|
156
|
+
Flash acceptance set from its separate acceptance environment.
|
|
164
157
|
|
|
165
158
|
## Development closeout: bounded identity and provenance
|
|
166
159
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Installed artifact and native-platform verification
|
|
2
|
+
|
|
3
|
+
This is a deterministic packaging gate, not a runtime subsystem or live-model
|
|
4
|
+
acceptance gate. The public repository intentionally contains no test files.
|
|
5
|
+
CI therefore validates the source and the built artifacts without checking out
|
|
6
|
+
or executing an in-repository test suite.
|
|
7
|
+
|
|
8
|
+
## Build once, install the same bytes
|
|
9
|
+
|
|
10
|
+
The build job:
|
|
11
|
+
|
|
12
|
+
1. compiles `src/` with Python's standard-library compiler;
|
|
13
|
+
2. builds one wheel and one source distribution;
|
|
14
|
+
3. uploads only those two distributions as the workflow artifact.
|
|
15
|
+
|
|
16
|
+
The `verify-artifacts` job downloads those exact bytes and installs each artifact
|
|
17
|
+
in its own fresh virtual environment. It imports `memleaf` and checks the
|
|
18
|
+
reported package version. It does not read a source-tree checkout, run a model,
|
|
19
|
+
access a production Vault or create a release.
|
|
20
|
+
|
|
21
|
+
The matrix is:
|
|
22
|
+
|
|
23
|
+
| Native runner | Python |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Ubuntu | 3.11, 3.12, 3.13 |
|
|
26
|
+
| Windows | 3.12 |
|
|
27
|
+
| macOS | 3.12 |
|
|
28
|
+
|
|
29
|
+
The source distribution is installed with its declared build backend. The
|
|
30
|
+
wheel and source distribution are checked separately so a successful wheel
|
|
31
|
+
install cannot hide a broken source package. `fail-fast: false` lets every
|
|
32
|
+
native cell report its own result; it does not relax the aggregate dependency.
|
|
33
|
+
|
|
34
|
+
## Release dependency
|
|
35
|
+
|
|
36
|
+
The release job still requires the build and every installed-artifact cell.
|
|
37
|
+
Only an explicitly authorized `release: v<version>` commit on `main` can create
|
|
38
|
+
a GitHub Release. Existing release assets are checked against the local bytes
|
|
39
|
+
before a missing asset is uploaded; existing assets are never replaced.
|
|
40
|
+
|
|
41
|
+
Ordinary commits do not create tags, GitHub Releases or PyPI uploads. These
|
|
42
|
+
checks do not establish live provider behavior, Hermes host installation,
|
|
43
|
+
Windows process semantics, migration safety or semantic quality.
|
|
44
|
+
|
|
45
|
+
## Local reproduction
|
|
46
|
+
|
|
47
|
+
From a clean checkout with the declared build backend available:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
python -m compileall -q src
|
|
51
|
+
python -m build --wheel --sdist
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
For an isolated local import check, create a temporary virtual environment and
|
|
55
|
+
install the wheel and source archive separately with `--no-deps`. Do not add
|
|
56
|
+
local test files to this repository; they are intentionally ignored and are not
|
|
57
|
+
part of the release artifacts.
|
|
@@ -134,12 +134,9 @@ use the controlled stop-write upgrade procedure before resuming pending work.
|
|
|
134
134
|
Malformed validity types raise controlled validation errors. Existing scanning
|
|
135
135
|
can skip the invalid record and keep unrelated records usable; the public integrity envelope reports malformed and conflicting records with
|
|
136
136
|
bounded snapshot validation. Explicit writes need a provably unique target and
|
|
137
|
-
can conservatively block where ordinary reads continue with incomplete diagnostics.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
PYTHONPATH=src python -m unittest discover -s tests_public -p 'test_*.py' -v
|
|
142
|
-
```
|
|
137
|
+
can conservatively block where ordinary reads continue with incomplete diagnostics.
|
|
138
|
+
The public repository does not store test files; package installation and source
|
|
139
|
+
syntax are checked by CI, while semantic acceptance runs in a separate environment.
|
|
143
140
|
|
|
144
141
|
## Current revision-target integrity (unreleased)
|
|
145
142
|
|
|
@@ -5,9 +5,9 @@ The online candidate path uses one incremental planner and at most two durable
|
|
|
5
5
|
request reservations per source/authorization work. It does not retain the old
|
|
6
6
|
Gate -> summary -> semantic-review tail as an acceptance requirement. Legacy
|
|
7
7
|
routes remain available for compatibility and deliberately stay the default
|
|
8
|
-
until separately authorized migration.
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
until separately authorized migration. The public repository keeps deterministic
|
|
9
|
+
test inputs and test code outside the tracked source tree. CI validates source
|
|
10
|
+
syntax and installed package artifacts; a green CI is not live-model acceptance.
|
|
11
11
|
|
|
12
12
|
## What runs, and what does not
|
|
13
13
|
|
|
@@ -157,10 +157,9 @@ Its OS matrix and explicit import/skip checks strengthen gate 1, not gates 2 or
|
|
|
157
157
|
A workflow definition alone is not a passed native run; retain the per-commit
|
|
158
158
|
reports and keep actual Hermes installation and live semantics separate.
|
|
159
159
|
|
|
160
|
-
1. **
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
implementation fingerprints must match before comparing results.
|
|
160
|
+
1. **Artifact consistency.** Build the wheel and sdist once, then install both
|
|
161
|
+
exact artifacts in isolated native environments and verify package imports.
|
|
162
|
+
This does not replace semantic review or live host acceptance.
|
|
164
163
|
2. **Live semantic judgement.** A structurally passing live run still records
|
|
165
164
|
`semantic_status:not_reviewed`. Review each repetition against its own source
|
|
166
165
|
and checklist: future value, non-invention, correct subject/scope, independent
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Local-first Markdown memory core for AI agents."""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.2.
|
|
3
|
+
__version__ = "0.2.70"
|
|
4
4
|
|
|
5
5
|
from .config import DEFAULT_CONFIG, default_config, load_config, save_config
|
|
6
6
|
from .frontmatter import FrontmatterError, dump_frontmatter, dump_yaml, load_yaml, parse_frontmatter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memleaf
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.70
|
|
4
4
|
Summary: A local-first Markdown memory core for AI agents
|
|
5
5
|
Author: memleaf contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -23,7 +23,7 @@ Dynamic: license-file
|
|
|
23
23
|
|
|
24
24
|
[English](README.en.md) · [PyPI](https://pypi.org/project/memleaf/) · [GitHub](https://github.com/miffyblueboo/memleaf)
|
|
25
25
|
|
|
26
|
-
> **版本:0.2.
|
|
26
|
+
> **版本:0.2.70。**
|
|
27
27
|
> 自动提炼和复核共用同一条“未来记忆价值”标准:模型综合未来复用、信息增量、再次读取时的直接可用性和忘记成本,只保留对未来理解、判断或行动有实质影响的最小核心;没有明确价值的信息不提炼,不按具体业务场景硬编码排除。
|
|
28
28
|
> 提炼契约现在只有一份中文语义契约(旧版英文 B3 提示词已删除),首轮、主题选择、候选修复和 `semantic_maintenance` 使用同一套保留价值判断;同一件事只写一次。
|
|
29
29
|
> Core 不再因为归属、日期、任务依据或跨项目而丢弃整条候选:归属缺失会归一到证据里唯一被点名的项目、否则落 `global`;日期只接受能在本候选证据里找到出处、且能锚定成 ISO 的写法(`明天`、`周五`、`月底` 都会被解析),无法解析时只丢掉日期字段,记忆照常写入;未获授权的改归属沿用目标原归属。
|
|
@@ -168,70 +168,4 @@ src/memleaf/llm/claude_compatible.py
|
|
|
168
168
|
src/memleaf/llm/gemini.py
|
|
169
169
|
src/memleaf/llm/openai_compatible.py
|
|
170
170
|
src/memleaf/llm/router.py
|
|
171
|
-
src/memleaf/llm/thinking.py
|
|
172
|
-
tests_public/acceptance_oracles.py
|
|
173
|
-
tests_public/candidate_update_fixtures.py
|
|
174
|
-
tests_public/incremental_test_support.py
|
|
175
|
-
tests_public/platform_smoke.py
|
|
176
|
-
tests_public/release_assets.py
|
|
177
|
-
tests_public/run_contracts.py
|
|
178
|
-
tests_public/test_a083_regressions.py
|
|
179
|
-
tests_public/test_a47_regressions.py
|
|
180
|
-
tests_public/test_acceptance.py
|
|
181
|
-
tests_public/test_acceptance_boundaries.py
|
|
182
|
-
tests_public/test_artifact_verification.py
|
|
183
|
-
tests_public/test_body_compaction.py
|
|
184
|
-
tests_public/test_candidate_reconciliation.py
|
|
185
|
-
tests_public/test_contract_reporter.py
|
|
186
|
-
tests_public/test_control_absence_contract.py
|
|
187
|
-
tests_public/test_create_memory_contract.py
|
|
188
|
-
tests_public/test_development_closeout.py
|
|
189
|
-
tests_public/test_explicit_memory_update.py
|
|
190
|
-
tests_public/test_explicit_update_contract.py
|
|
191
|
-
tests_public/test_g1_memory_contract.py
|
|
192
|
-
tests_public/test_g2_source_contract.py
|
|
193
|
-
tests_public/test_hermes_native_provision.py
|
|
194
|
-
tests_public/test_hermes_source_metadata.py
|
|
195
|
-
tests_public/test_incremental_commit.py
|
|
196
|
-
tests_public/test_incremental_configured_runtime.py
|
|
197
|
-
tests_public/test_incremental_dates.py
|
|
198
|
-
tests_public/test_incremental_execution.py
|
|
199
|
-
tests_public/test_incremental_execution_recovery.py
|
|
200
|
-
tests_public/test_incremental_native.py
|
|
201
|
-
tests_public/test_incremental_partial.py
|
|
202
|
-
tests_public/test_incremental_partial_boundaries.py
|
|
203
|
-
tests_public/test_incremental_partial_recovery.py
|
|
204
|
-
tests_public/test_incremental_preview.py
|
|
205
|
-
tests_public/test_incremental_protocol.py
|
|
206
|
-
tests_public/test_incremental_recovery.py
|
|
207
|
-
tests_public/test_incremental_remember.py
|
|
208
|
-
tests_public/test_incremental_remember_recovery.py
|
|
209
|
-
tests_public/test_incremental_scope_recovery.py
|
|
210
|
-
tests_public/test_incremental_scopes.py
|
|
211
|
-
tests_public/test_inspection_read_budget.py
|
|
212
|
-
tests_public/test_mcp_retrieval_fallback.py
|
|
213
|
-
tests_public/test_migration_backup.py
|
|
214
|
-
tests_public/test_migration_runtime.py
|
|
215
|
-
tests_public/test_native_read_stability.py
|
|
216
|
-
tests_public/test_planner_provenance_contract.py
|
|
217
|
-
tests_public/test_platform_contracts.py
|
|
218
|
-
tests_public/test_processed_state_contract.py
|
|
219
|
-
tests_public/test_processing_entrypoints.py
|
|
220
|
-
tests_public/test_processing_route.py
|
|
221
|
-
tests_public/test_processing_route_recovery.py
|
|
222
|
-
tests_public/test_provider_compatibility.py
|
|
223
|
-
tests_public/test_public_query_integrity.py
|
|
224
|
-
tests_public/test_query_benchmark.py
|
|
225
|
-
tests_public/test_query_clock.py
|
|
226
|
-
tests_public/test_query_progress.py
|
|
227
|
-
tests_public/test_query_scan_reuse.py
|
|
228
|
-
tests_public/test_release_assets.py
|
|
229
|
-
tests_public/test_remember_route.py
|
|
230
|
-
tests_public/test_remember_route_recovery.py
|
|
231
|
-
tests_public/test_revision_target_integrity.py
|
|
232
|
-
tests_public/test_runtime_retention.py
|
|
233
|
-
tests_public/test_runtime_retention_observation.py
|
|
234
|
-
tests_public/test_runtime_retention_recovery.py
|
|
235
|
-
tests_public/test_source_followup_contract.py
|
|
236
|
-
tests_public/test_vault_binding_contract.py
|
|
237
|
-
tests_public/verify_distribution.py
|
|
171
|
+
src/memleaf/llm/thinking.py
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# Installed artifact and native-platform verification (G5c)
|
|
2
|
-
|
|
3
|
-
This is a deterministic CI gate, not a new runtime subsystem or live-model
|
|
4
|
-
acceptance. It follows FS183, FS185-194 and the installation/process portions
|
|
5
|
-
of E10/E17/E19. Existing extraction defaults, prompts, budgets, public interfaces
|
|
6
|
-
and package version are unchanged. Running these checks does not install a real
|
|
7
|
-
Hermes host, read a production Vault, create a release or authorize migration.
|
|
8
|
-
|
|
9
|
-
## Build once, test the same distribution bytes
|
|
10
|
-
|
|
11
|
-
The build job runs the complete public source suite and records the discovered
|
|
12
|
-
case inventory. It builds one wheel and one sdist, verifies that **all** packaged
|
|
13
|
-
Memleaf files match (including the Provider resources), and creates a manifest
|
|
14
|
-
binding artifact sizes/hashes, test assets, inventory and the current commit.
|
|
15
|
-
Verification inputs (manifest and test-only dependencies) use a separate
|
|
16
|
-
artifact; `memleaf-distributions` continues to contain only the release wheel
|
|
17
|
-
and sdist, so downstream PyPI publishing cannot ingest test data. The build job
|
|
18
|
-
exposes the manifest hash separately as a job output. A verification
|
|
19
|
-
job must match that hash and commit before installing the downloaded artifacts.
|
|
20
|
-
This catches accidental cross-run/mixed artifacts; it is not a signed supply-chain
|
|
21
|
-
attestation against replacement of the workflow and its own evidence together.
|
|
22
|
-
|
|
23
|
-
`verify-artifacts` covers five cells:
|
|
24
|
-
|
|
25
|
-
| Native runner | Python |
|
|
26
|
-
|---|---|
|
|
27
|
-
| Ubuntu | 3.11, 3.12, 3.13 |
|
|
28
|
-
| Windows | 3.12 |
|
|
29
|
-
| macOS | 3.12 |
|
|
30
|
-
|
|
31
|
-
This is not a full OS/Python/architecture Cartesian matrix. Every cell downloads
|
|
32
|
-
the same build artifact. The sdist is rebuilt locally on that runner, and the
|
|
33
|
-
resulting Memleaf payload must equal the original wheel before it is tested.
|
|
34
|
-
Archive timestamps and packaging metadata may differ; implementation/resource
|
|
35
|
-
bytes must not. Neither cell rebuilds from a different checkout and calls that
|
|
36
|
-
the originally tested binary.
|
|
37
|
-
|
|
38
|
-
Each cell creates **two fresh virtual environments**, one for the original wheel
|
|
39
|
-
and one for the sdist-built wheel. Only public test assets and examples are copied
|
|
40
|
-
to a separate temporary workspace. The extracted source directory is removed
|
|
41
|
-
before either suite runs. The test Python uses isolated mode; inherited
|
|
42
|
-
`PYTHONPATH`, Python home settings and product/model configuration variables are
|
|
43
|
-
removed. Child crash/restart tests use that environment's Python too.
|
|
44
|
-
|
|
45
|
-
Before and after discovery/execution the reporter verifies that `memleaf` and
|
|
46
|
-
its loaded submodules come from that environment's site-packages. It compares
|
|
47
|
-
installed test IDs and count to the source-job inventory, fails on empty/missing
|
|
48
|
-
cases, errors, failures, skips or expected failures, and verifies installed
|
|
49
|
-
package bytes after execution. It does not report success just because a help
|
|
50
|
-
command returned zero, or because a source-tree import masked a broken install.
|
|
51
|
-
|
|
52
|
-
## Reuse existing contracts; add native-process evidence
|
|
53
|
-
|
|
54
|
-
The existing complete public suite remains the main acceptance surface. Added
|
|
55
|
-
focused checks exercise Unicode/spaces in Vault paths, exact UTF-8 and LF/CRLF
|
|
56
|
-
file handling, real process lock contention, OS process-exit lock release,
|
|
57
|
-
case-insensitive identity collisions and missing timezone data. These checks do
|
|
58
|
-
not patch `os.name` to pretend Linux is Windows.
|
|
59
|
-
|
|
60
|
-
The installed smoke check starts the actual generated `memleaf-mcp` executable
|
|
61
|
-
through byte pipes twice and uses the packaged Hermes MCP client for a
|
|
62
|
-
`scope_catalog -> search -> read` exchange. It overrides the child environment to
|
|
63
|
-
`PYTHONUTF8=0` and `PYTHONIOENCODING=cp1252`; the MCP transport must still exchange
|
|
64
|
-
UTF-8, including Chinese and emoji. Both actual console scripts also run directly.
|
|
65
|
-
|
|
66
|
-
Hermes' two base-interface classes are stubbed solely to load the bundled client.
|
|
67
|
-
Transport, executable, process boundary and Vault operations are real; a running
|
|
68
|
-
Hermes installation, Provider registration, installed-host lifecycle and user
|
|
69
|
-
configuration are **not** tested by this stub. The report leaves installed
|
|
70
|
-
Hermes/live semantic acceptance `not_run` and `switch_authorized=false`.
|
|
71
|
-
|
|
72
|
-
The suite's old POSIX-only exclusion for one symlink test is removed. Hosted
|
|
73
|
-
runners must support the filesystem primitives under test. Capability failures or
|
|
74
|
-
other skips make the gate fail rather than becoming a green reduced suite. A
|
|
75
|
-
separate native setup issue can then be diagnosed explicitly; assertions must
|
|
76
|
-
not be disabled merely to obtain a green matrix.
|
|
77
|
-
|
|
78
|
-
## Encoding and timezone fixtures
|
|
79
|
-
|
|
80
|
-
The general test runner explicitly enables UTF-8 for test-file I/O on all
|
|
81
|
-
platforms; historical tests contain Unicode fixtures. That harness setting is
|
|
82
|
-
not evidence that a user terminal has UTF-8 enabled. The separate stdio tests
|
|
83
|
-
intentionally disable it, so protocol correctness does not depend on the harness.
|
|
84
|
-
|
|
85
|
-
Windows does not necessarily have an IANA zoneinfo database. The build job obtains
|
|
86
|
-
`tzdata` as a **test-only wheel**, hashes it in the same manifest, and verification
|
|
87
|
-
jobs install only that bound wheel offline into the disposable test environments.
|
|
88
|
-
Memleaf runtime dependencies and its behavior when timezone data is unavailable
|
|
89
|
-
remain unchanged. No dependency is silently installed into a user's environment.
|
|
90
|
-
The negative missing-zone test still checks explicit failure and UTC fallback.
|
|
91
|
-
Build tools and runners can evolve; reports retain Python/OS/architecture and
|
|
92
|
-
artifact hashes, not a claim of hermetic or bit-reproducible build infrastructure.
|
|
93
|
-
|
|
94
|
-
## Reports, failure and release dependency
|
|
95
|
-
|
|
96
|
-
The source report and each cell's stage JSON/logs are uploaded separately. Reports
|
|
97
|
-
include actual test count and skips, test-inventory hash, package import root,
|
|
98
|
-
Python/OS/architecture, durations and the candidate manifest. An interrupted or
|
|
99
|
-
failed command fails the job; available earlier-stage reports remain available.
|
|
100
|
-
A wheel pass followed by an sdist failure is not a platform pass. `fail-fast:false`
|
|
101
|
-
allows other cells to finish without hiding their results; it does not relax the
|
|
102
|
-
aggregate dependency.
|
|
103
|
-
|
|
104
|
-
The existing release job now requires **build and all installed-artifact cells**.
|
|
105
|
-
Existing release conditions and explicit `release: v...` authorization remain.
|
|
106
|
-
Ordinary development commits do not create tags, GitHub Releases or PyPI uploads.
|
|
107
|
-
This change only adds a deterministic prerequisite; it cannot replace live Flash,
|
|
108
|
-
held-out multi-turn review, real host testing, backup/Forget checks or operator
|
|
109
|
-
switch authorization. Until a commit's matrix has actually run, its native
|
|
110
|
-
platform results are `not_run`, not inferred from a written workflow.
|
|
111
|
-
|
|
112
|
-
## Local reproduction
|
|
113
|
-
|
|
114
|
-
From a clean candidate source directory, with its declared build backend available:
|
|
115
|
-
|
|
116
|
-
```sh
|
|
117
|
-
python -I -X utf8 tests_public/run_contracts.py --tests tests_public --source-root src --report source-results.json
|
|
118
|
-
python -m build --wheel --sdist
|
|
119
|
-
python -m pip download --only-binary=:all: --no-deps --dest dist/test-dependencies tzdata
|
|
120
|
-
python tests_public/verify_distribution.py manifest --dist dist --source-report source-results.json --commit <candidate-sha>
|
|
121
|
-
python tests_public/verify_distribution.py verify --dist dist --output <new-output-directory> --commit <candidate-sha> --manifest-sha256 <printed-manifest-sha256>
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
`build`/setuptools are developer tools. The verifier itself uses the standard
|
|
125
|
-
library and the explicitly installed backend for the sdist build. It never
|
|
126
|
-
implicitly fetches a model or a package at runtime: artifact installations use
|
|
127
|
-
`--no-index --no-deps`. On a machine with system IANA data, a local manifest may
|
|
128
|
-
omit the test dependency; record that difference rather than claiming the local
|
|
129
|
-
run used CI's identical dependency set. Existing output is refused. Reports and
|
|
130
|
-
logs here contain synthetic test data only; real-model trace packages follow the
|
|
131
|
-
separate private acceptance contract and must not be uploaded by this job.
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"""Fixed decisions for pipeline tests, not a semantic extraction model."""
|
|
2
|
-
ORACLES = [[[{'action': 'CREATE', 'evidence': ['$user'], 'memory': {'type': 'todo', 'scope': 'global', 'title': '验收报告', 'body': '用户负责交付验收报告。', 'deadline': {'ref': '$user', 'text': '2026-10-02'}, 'status': 'active'}}], [{'action': 'UPDATE', 'target_title': '验收报告', 'evidence': ['$user'], 'patch': {'status': 'completed'}}], [{'action': 'NO_CHANGE', 'target_title': '验收报告', 'evidence': ['$user']}]], [[{'action': 'NO_MEMORY', 'evidence': ['$user']}]], [[{'action': 'NO_MEMORY', 'evidence': ['$user']}]], [[{'action': 'UPDATE', 'target_title': '验收报告', 'evidence': ['$user'], 'patch': {'assignee': '林工', 'waiting_on': '客户验收'}}], [{'action': 'UPDATE', 'target_title': '验收报告', 'evidence': ['$user'], 'patch': {'status': 'completed', 'waiting_on': None}}]], [[{'action': 'NO_CHANGE', 'target_title': '验收报告', 'evidence': ['$user']}], [{'action': 'UPDATE', 'target_title': '验收报告', 'evidence': ['$user'], 'patch': {'deadline': {'ref': '$user', 'clear': True, 'text': '原定截止日期取消'}}}], [{'action': 'NO_CHANGE', 'target_title': '验收报告', 'evidence': ['$user']}]], [[{'action': 'UPDATE', 'target_title': 'Atlas接口验收', 'evidence': ['$user'], 'patch': {'status': 'completed'}}, {'action': 'NO_CHANGE', 'target_title': 'Beacon接口验收', 'evidence': ['$user']}]], [[{'action': 'CREATE', 'evidence': ['$user'], 'memory': {'type': 'todo', 'scope': 'unscoped', 'title': '客户任务清单归属待确认', 'body': '持续协调客户任务清单,项目归属尚未确认。', 'status': 'active'}}]], [[{'action': 'CREATE', 'evidence': ['$user'], 'memory': {'type': 'todo', 'scope': 'global', 'title': '接口验收准备', 'body': '持续跟踪接口验收准备。', 'status': 'active'}}]], [[{'action': 'CREATE', 'evidence': ['$user'], 'memory': {'type': 'todo', 'scope': 'global', 'title': '评估清单', 'body': '用户负责向团队提交评估清单。', 'deadline': {'ref': '$user', 'text': '明天下班前'}, 'status': 'active'}}]], [[{'action': 'UPDATE', 'target_title': '报告偏好', 'evidence': ['$user'], 'patch': {'validity': 'retracted'}}]], [[{'action': 'CREATE', 'evidence': ['$user'], 'memory': {'type': 'todo', 'scope': 'global', 'title': '第四季度审阅', 'body': '用户负责第四季度审阅。', 'status': 'active'}}]], [[{'action': 'NO_MEMORY', 'evidence': ['$user']}], [{'action': 'CREATE', 'evidence': ['$user'], 'memory': {'type': 'todo', 'scope': 'global', 'title': '测试环境准备', 'body': '用户负责准备测试环境。', 'status': 'active'}}]]]
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"""Synthetic v1 fixtures produced by the two verified pre-integration snapshots.
|
|
2
|
-
|
|
3
|
-
A: a8ebf6f4ef6e0ffd0d8f6ccb87efc9c1a0947856
|
|
4
|
-
B: 584e0409fa0b94d82e5cdd27ef7f08a07a76a509
|
|
5
|
-
No production conversation, credential or filesystem path is included.
|
|
6
|
-
"""
|
|
7
|
-
import json
|
|
8
|
-
FIXTURES = json.loads('[\n {\n "branch": "A",\n "stage": "prepared",\n "expected_revision": "e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1",\n "kwargs": {\n "authorized_scopes": [\n "global"\n ]\n },\n "patch": {\n "body": "Updated synthetic delivery.",\n "status": "completed"\n },\n "journal": "{\\n \\"checksum\\": \\"fdf557ed40433876048dfff15a1c2809430f36f8ea0c9eb444ad6f0780efe2f9\\",\\n \\"payload\\": \\"{\\\\\\"action\\\\\\":\\\\\\"UPDATE\\\\\\",\\\\\\"after\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:25Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:25Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"completed\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\nfield_basis:\\\\\\\\n content:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_edit\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:41:25Z\\\\\\\\\\\\\\"\\\\\\\\n status:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_edit\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:41:25Z\\\\\\\\\\\\\\"\\\\\\\\nexplicit_operation_id: \\\\\\\\\\\\\\"edit-03acbce574bb4c851aba495fbc74966eaff9acad1f6d5943acb99f61dbb4c577\\\\\\\\\\\\\\"\\\\\\\\nexplicit_result_digest: \\\\\\\\\\\\\\"e5f67d5ce182d02bd2f2403d576e0ba1c9394007196f850fd5bc1074d86a086b\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nUpdated synthetic delivery.\\\\\\\\n\\\\\\",\\\\\\"basis_reset\\\\\\":false,\\\\\\"before\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:25Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:25Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"active\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nDeliver a report.\\\\\\\\n\\\\\\",\\\\\\"expected_revision\\\\\\":\\\\\\"e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1\\\\\\",\\\\\\"memory_id\\\\\\":\\\\\\"legacy-target\\\\\\",\\\\\\"operation_id\\\\\\":\\\\\\"edit-03acbce574bb4c851aba495fbc74966eaff9acad1f6d5943acb99f61dbb4c577\\\\\\",\\\\\\"prepared_at\\\\\\":\\\\\\"2026-09-18T08:41:25Z\\\\\\",\\\\\\"replacement_revision\\\\\\":\\\\\\"d1c07ef69f839aaf165a61ff498025df2459ccd842a4b88f3b71dbe8aa75a316\\\\\\",\\\\\\"request\\\\\\":{\\\\\\"allow_type_change\\\\\\":false,\\\\\\"authorized_scopes\\\\\\":[\\\\\\"global\\\\\\"],\\\\\\"patch\\\\\\":{\\\\\\"body\\\\\\":\\\\\\"Updated synthetic delivery.\\\\\\",\\\\\\"status\\\\\\":\\\\\\"completed\\\\\\"},\\\\\\"reopen\\\\\\":false,\\\\\\"restore\\\\\\":false},\\\\\\"scope_guard\\\\\\":{\\\\\\"nodes\\\\\\":{},\\\\\\"version\\\\\\":1}}\\",\\n \\"version\\": 1\\n}\\n",\n "journal_directory": "explicit_updates",\n "before": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:25Z\\"\\nupdated: \\"2026-09-18T08:41:25Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\n---\\n\\nDeliver a report.\\n",\n "head": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:25Z\\"\\nupdated: \\"2026-09-18T08:41:25Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\n---\\n\\nDeliver a report.\\n",\n "history": {}\n },\n {\n "branch": "A",\n "stage": "head_applied",\n "expected_revision": "e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1",\n "kwargs": {\n "authorized_scopes": [\n "global"\n ]\n },\n "patch": {\n "body": "Updated synthetic delivery.",\n "status": "completed"\n },\n "journal": "{\\n \\"checksum\\": \\"7df325a2f56738c065b3ca5db411134a3d6246bf75b4bc0afa14c05b555b93e6\\",\\n \\"payload\\": \\"{\\\\\\"action\\\\\\":\\\\\\"UPDATE\\\\\\",\\\\\\"after\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:27Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:27Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"completed\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\nfield_basis:\\\\\\\\n content:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_edit\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:41:27Z\\\\\\\\\\\\\\"\\\\\\\\n status:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_edit\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:41:27Z\\\\\\\\\\\\\\"\\\\\\\\nexplicit_operation_id: \\\\\\\\\\\\\\"edit-03acbce574bb4c851aba495fbc74966eaff9acad1f6d5943acb99f61dbb4c577\\\\\\\\\\\\\\"\\\\\\\\nexplicit_result_digest: \\\\\\\\\\\\\\"9270256710fd5bbcfa5db1ef020953a45dedb948ff760285d0144ec86f270caa\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nUpdated synthetic delivery.\\\\\\\\n\\\\\\",\\\\\\"basis_reset\\\\\\":false,\\\\\\"before\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:27Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:27Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"active\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nDeliver a report.\\\\\\\\n\\\\\\",\\\\\\"expected_revision\\\\\\":\\\\\\"e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1\\\\\\",\\\\\\"memory_id\\\\\\":\\\\\\"legacy-target\\\\\\",\\\\\\"operation_id\\\\\\":\\\\\\"edit-03acbce574bb4c851aba495fbc74966eaff9acad1f6d5943acb99f61dbb4c577\\\\\\",\\\\\\"prepared_at\\\\\\":\\\\\\"2026-09-18T08:41:27Z\\\\\\",\\\\\\"replacement_revision\\\\\\":\\\\\\"4ca29c30f215ea538d5ff9901ac66d9c3ceadc88a5a765f4975b179695c3897e\\\\\\",\\\\\\"request\\\\\\":{\\\\\\"allow_type_change\\\\\\":false,\\\\\\"authorized_scopes\\\\\\":[\\\\\\"global\\\\\\"],\\\\\\"patch\\\\\\":{\\\\\\"body\\\\\\":\\\\\\"Updated synthetic delivery.\\\\\\",\\\\\\"status\\\\\\":\\\\\\"completed\\\\\\"},\\\\\\"reopen\\\\\\":false,\\\\\\"restore\\\\\\":false},\\\\\\"scope_guard\\\\\\":{\\\\\\"nodes\\\\\\":{},\\\\\\"version\\\\\\":1}}\\",\\n \\"version\\": 1\\n}\\n",\n "journal_directory": "explicit_updates",\n "before": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:27Z\\"\\nupdated: \\"2026-09-18T08:41:27Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\n---\\n\\nDeliver a report.\\n",\n "head": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:27Z\\"\\nupdated: \\"2026-09-18T08:41:27Z\\"\\nhit_count: 0\\nstatus: \\"completed\\"\\nvalidity: \\"valid\\"\\nfield_basis:\\n content:\\n source: \\"explicit_edit\\"\\n source_time: \\"2026-09-18T08:41:27Z\\"\\n status:\\n source: \\"explicit_edit\\"\\n source_time: \\"2026-09-18T08:41:27Z\\"\\nexplicit_operation_id: \\"edit-03acbce574bb4c851aba495fbc74966eaff9acad1f6d5943acb99f61dbb4c577\\"\\nexplicit_result_digest: \\"9270256710fd5bbcfa5db1ef020953a45dedb948ff760285d0144ec86f270caa\\"\\n---\\n\\nUpdated synthetic delivery.\\n",\n "history": {\n "hist-326be0d9848e757d632f4bcb.md": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"hist-326be0d9848e757d632f4bcb\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:27Z\\"\\nupdated: \\"2026-09-18T08:41:27Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\nsource_count: 0\\nsource_digest: \\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\"\\nsources_omitted: 0\\nactive_memory_id: \\"legacy-target\\"\\nsuperseded_by: \\"legacy-target\\"\\narchived_at: \\"2026-09-18T08:41:27Z\\"\\n---\\n\\nDeliver a report.\\n"\n }\n },\n {\n "branch": "B",\n "stage": "prepared",\n "expected_revision": "e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1",\n "kwargs": {\n "source_time": "2026-09-18T08:00:00Z"\n },\n "patch": {\n "body": "Updated synthetic delivery.",\n "status": "completed",\n "deadline": {\n "text": "2026-09-30"\n }\n },\n "journal": "{\\n \\"checksum\\": \\"68b7606128b8ae066fb1beea2d879aa43e6bbf770f8cab5eca005f124bb1882a\\",\\n \\"payload\\": \\"{\\\\\\"after\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"completed\\\\\\\\\\\\\\"\\\\\\\\ndue_date: \\\\\\\\\\\\\\"2026-09-30\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\ndue_text: \\\\\\\\\\\\\\"2026-09-30\\\\\\\\\\\\\\"\\\\\\\\ndue_status: \\\\\\\\\\\\\\"resolved\\\\\\\\\\\\\\"\\\\\\\\ndue_anchor:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\nfield_basis:\\\\\\\\n content:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\n deadline:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\n status:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\nexplicit_update_operation_id: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\nexplicit_update_result_digest: \\\\\\\\\\\\\\"11d5b5ae49ea854bd9be67a773d7848bba3eab2bf3f0cb60f401b134f126e26b\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nUpdated synthetic delivery.\\\\\\\\n\\\\\\",\\\\\\"before\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:29Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"active\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nDeliver a report.\\\\\\\\n\\\\\\",\\\\\\"expected_revision\\\\\\":\\\\\\"e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1\\\\\\",\\\\\\"memory_id\\\\\\":\\\\\\"legacy-target\\\\\\",\\\\\\"operation_id\\\\\\":\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\",\\\\\\"prepared_at\\\\\\":\\\\\\"2026-09-18T08:41:29Z\\\\\\",\\\\\\"replacement_revision\\\\\\":\\\\\\"52461fcc59aa3f4a7cabaaddfd53c0882b7db3c333381b4ac235367f14db8d36\\\\\\",\\\\\\"request\\\\\\":{\\\\\\"patch\\\\\\":{\\\\\\"body\\\\\\":\\\\\\"Updated synthetic delivery.\\\\\\",\\\\\\"deadline\\\\\\":{\\\\\\"text\\\\\\":\\\\\\"2026-09-30\\\\\\"},\\\\\\"status\\\\\\":\\\\\\"completed\\\\\\"},\\\\\\"reopen\\\\\\":false,\\\\\\"source_time\\\\\\":\\\\\\"2026-09-18T08:00:00Z\\\\\\"},\\\\\\"scope_guard\\\\\\":null}\\",\\n \\"schema_version\\": 1\\n}\\n",\n "journal_directory": "memory_updates",\n "before": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:29Z\\"\\nupdated: \\"2026-09-18T08:41:29Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\n---\\n\\nDeliver a report.\\n",\n "head": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:29Z\\"\\nupdated: \\"2026-09-18T08:41:29Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\n---\\n\\nDeliver a report.\\n",\n "history": {}\n },\n {\n "branch": "B",\n "stage": "head_applied",\n "expected_revision": "e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1",\n "kwargs": {\n "source_time": "2026-09-18T08:00:00Z"\n },\n "patch": {\n "body": "Updated synthetic delivery.",\n "status": "completed",\n "deadline": {\n "text": "2026-09-30"\n }\n },\n "journal": "{\\n \\"checksum\\": \\"2a2123659f15090710e81672ea460c698e21f410c8f321bc2e8433fb65b20976\\",\\n \\"payload\\": \\"{\\\\\\"after\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"completed\\\\\\\\\\\\\\"\\\\\\\\ndue_date: \\\\\\\\\\\\\\"2026-09-30\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\ndue_text: \\\\\\\\\\\\\\"2026-09-30\\\\\\\\\\\\\\"\\\\\\\\ndue_status: \\\\\\\\\\\\\\"resolved\\\\\\\\\\\\\\"\\\\\\\\ndue_anchor:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\nfield_basis:\\\\\\\\n content:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\n deadline:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\n status:\\\\\\\\n source: \\\\\\\\\\\\\\"explicit_update\\\\\\\\\\\\\\"\\\\\\\\n event_key: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\n observed_at: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\n source_time: \\\\\\\\\\\\\\"2026-09-18T08:00:00Z\\\\\\\\\\\\\\"\\\\\\\\nexplicit_update_operation_id: \\\\\\\\\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\\\\\\\\\"\\\\\\\\nexplicit_update_result_digest: \\\\\\\\\\\\\\"3129f95f38e437471310ef04a8969d8847ee562b547b584fcebe0cf8a9c3af3c\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nUpdated synthetic delivery.\\\\\\\\n\\\\\\",\\\\\\"before\\\\\\":\\\\\\"---\\\\\\\\ntitle: \\\\\\\\\\\\\\"Synthetic delivery\\\\\\\\\\\\\\"\\\\\\\\nmemory_id: \\\\\\\\\\\\\\"legacy-target\\\\\\\\\\\\\\"\\\\\\\\ntags: []\\\\\\\\ntype: \\\\\\\\\\\\\\"todo\\\\\\\\\\\\\\"\\\\\\\\nscopes: [\\\\\\\\\\\\\\"global\\\\\\\\\\\\\\"]\\\\\\\\nsources: []\\\\\\\\ncreated: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\nupdated: \\\\\\\\\\\\\\"2026-09-18T08:41:31Z\\\\\\\\\\\\\\"\\\\\\\\nhit_count: 0\\\\\\\\nstatus: \\\\\\\\\\\\\\"active\\\\\\\\\\\\\\"\\\\\\\\nvalidity: \\\\\\\\\\\\\\"valid\\\\\\\\\\\\\\"\\\\\\\\n---\\\\\\\\n\\\\\\\\nDeliver a report.\\\\\\\\n\\\\\\",\\\\\\"expected_revision\\\\\\":\\\\\\"e8f138284c84219b8f8250265672e4da473acace1de519c11d749efb76bd59e1\\\\\\",\\\\\\"memory_id\\\\\\":\\\\\\"legacy-target\\\\\\",\\\\\\"operation_id\\\\\\":\\\\\\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\\\\\",\\\\\\"prepared_at\\\\\\":\\\\\\"2026-09-18T08:41:31Z\\\\\\",\\\\\\"replacement_revision\\\\\\":\\\\\\"b5a1039644745093d4ef88b7c163d81855ccf97ed31daa50d236bd9a0dffcee9\\\\\\",\\\\\\"request\\\\\\":{\\\\\\"patch\\\\\\":{\\\\\\"body\\\\\\":\\\\\\"Updated synthetic delivery.\\\\\\",\\\\\\"deadline\\\\\\":{\\\\\\"text\\\\\\":\\\\\\"2026-09-30\\\\\\"},\\\\\\"status\\\\\\":\\\\\\"completed\\\\\\"},\\\\\\"reopen\\\\\\":false,\\\\\\"source_time\\\\\\":\\\\\\"2026-09-18T08:00:00Z\\\\\\"},\\\\\\"scope_guard\\\\\\":null}\\",\\n \\"schema_version\\": 1\\n}\\n",\n "journal_directory": "memory_updates",\n "before": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:31Z\\"\\nupdated: \\"2026-09-18T08:41:31Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\n---\\n\\nDeliver a report.\\n",\n "head": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"legacy-target\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:31Z\\"\\nupdated: \\"2026-09-18T08:41:31Z\\"\\nhit_count: 0\\nstatus: \\"completed\\"\\ndue_date: \\"2026-09-30\\"\\nvalidity: \\"valid\\"\\ndue_text: \\"2026-09-30\\"\\ndue_status: \\"resolved\\"\\ndue_anchor:\\n source: \\"explicit_update\\"\\n event_key: \\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\"\\n observed_at: \\"2026-09-18T08:41:31Z\\"\\n source_time: \\"2026-09-18T08:00:00Z\\"\\nfield_basis:\\n content:\\n source: \\"explicit_update\\"\\n event_key: \\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\"\\n observed_at: \\"2026-09-18T08:41:31Z\\"\\n source_time: \\"2026-09-18T08:00:00Z\\"\\n deadline:\\n source: \\"explicit_update\\"\\n event_key: \\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\"\\n observed_at: \\"2026-09-18T08:41:31Z\\"\\n source_time: \\"2026-09-18T08:00:00Z\\"\\n status:\\n source: \\"explicit_update\\"\\n event_key: \\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\"\\n observed_at: \\"2026-09-18T08:41:31Z\\"\\n source_time: \\"2026-09-18T08:00:00Z\\"\\nexplicit_update_operation_id: \\"update-8d01fc736ebcfe03fc69869c33479202c9a6967971c10f20e6cb8185725050cd\\"\\nexplicit_update_result_digest: \\"3129f95f38e437471310ef04a8969d8847ee562b547b584fcebe0cf8a9c3af3c\\"\\n---\\n\\nUpdated synthetic delivery.\\n",\n "history": {\n "hist-6d6a167d8c2d09e1641ee23b.md": "---\\ntitle: \\"Synthetic delivery\\"\\nmemory_id: \\"hist-6d6a167d8c2d09e1641ee23b\\"\\ntags: []\\ntype: \\"todo\\"\\nscopes: [\\"global\\"]\\nsources: []\\ncreated: \\"2026-09-18T08:41:31Z\\"\\nupdated: \\"2026-09-18T08:41:31Z\\"\\nhit_count: 0\\nstatus: \\"active\\"\\nvalidity: \\"valid\\"\\nsource_count: 0\\nsource_digest: \\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\"\\nsources_omitted: 0\\nactive_memory_id: \\"legacy-target\\"\\nsuperseded_by: \\"legacy-target\\"\\narchived_at: \\"2026-09-18T08:41:31Z\\"\\n---\\n\\nDeliver a report.\\n"\n }\n }\n]')
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import json
|
|
4
|
-
from pathlib import Path
|
|
5
|
-
import tempfile
|
|
6
|
-
import unittest
|
|
7
|
-
|
|
8
|
-
from memleaf import Memleaf, Memory
|
|
9
|
-
from memleaf.incremental_journal import KEY, load_work
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class IncrementalFixture(unittest.TestCase):
|
|
13
|
-
def setUp(self):
|
|
14
|
-
self.temp = tempfile.TemporaryDirectory()
|
|
15
|
-
self.addCleanup(self.temp.cleanup)
|
|
16
|
-
self.s = Memleaf.initialize(Path(self.temp.name) / "vault")
|
|
17
|
-
self.capture()
|
|
18
|
-
|
|
19
|
-
def capture(self, turn="t", *, content="Atlas task completed", seq=1):
|
|
20
|
-
self.s.capture("hermes", "s", turn, "user", content, message_id=turn+"-u", source_sequence=seq,
|
|
21
|
-
source_time="2026-09-17T10:00:00+08:00")
|
|
22
|
-
self.s.capture("hermes", "s", turn, "assistant", "Acknowledged", message_id=turn+"-a",
|
|
23
|
-
source_sequence=seq+1, final=True)
|
|
24
|
-
|
|
25
|
-
def target(self, mid="mem-old", **kwargs):
|
|
26
|
-
args = dict(memory_id=mid, title="Atlas task", body="Deliver the report.", type="todo",
|
|
27
|
-
status="active", scopes=["global"], assignee="user", waiting_on="approval",
|
|
28
|
-
due_date="2026-09-20", custom={"keep": True})
|
|
29
|
-
args.update(kwargs)
|
|
30
|
-
# This fixture also simulates a later trusted edit of an existing target.
|
|
31
|
-
# Use the raw replacement API explicitly, not the create-only API.
|
|
32
|
-
return self.s.write_memory(Memory.new(**args), overwrite=True)
|
|
33
|
-
|
|
34
|
-
def request(self, items, **args):
|
|
35
|
-
params = dict(source="hermes", session_id="s", turn_id="t")
|
|
36
|
-
params.update(args)
|
|
37
|
-
preview = self.s.preview_incremental(**params)
|
|
38
|
-
return dict(**params, response=json.dumps({"items":items}), expected_snapshot=preview["snapshot_id"], intent_id="intent-1")
|
|
39
|
-
|
|
40
|
-
def update(self, **fields):
|
|
41
|
-
return {"action":"UPDATE", "target":"m1", "evidence":["e1"], "patch":fields or {"status":"completed"}}
|
|
42
|
-
|
|
43
|
-
def create(self, **fields):
|
|
44
|
-
value = {"type":"todo", "scope":"global", "title":"Atlas task", "body":"Deliver the report.", "status":"active"}
|
|
45
|
-
value.update(fields)
|
|
46
|
-
return {"action":"CREATE", "evidence":["e1"], "memory":value}
|
|
47
|
-
|
|
48
|
-
def no_memory(self, ref="e2"):
|
|
49
|
-
return {"action":"NO_MEMORY", "evidence":[ref]}
|
|
50
|
-
|
|
51
|
-
def ledger(self):
|
|
52
|
-
return json.loads(self.s.vault.processed_state_path.read_text())
|
|
53
|
-
|
|
54
|
-
def works(self):
|
|
55
|
-
state = self.ledger()
|
|
56
|
-
return [load_work(state, key) for key in state.get(KEY, {})]
|
|
57
|
-
|
|
58
|
-
def hist(self):
|
|
59
|
-
return self.s.vault.list_markdown("history")
|
|
60
|
-
|
|
61
|
-
def revise(self, content="Original assertion withdrawn"):
|
|
62
|
-
self.s.capture("hermes","s","t","user",content,message_id="t-u",message_revision="2",previous_message_revision="1",source_sequence=1)
|