IB-WP-0014: archive-list, restore, retention annotation, docs (T03-T05)
Round out IB-WP-0014 with the remaining archive operations and docs.
- restore_archive() and `infospace-bench restore <pkg> --target <dir>` round-trip
a finalized package's bytes back to disk. Refuses to overwrite a non-empty
target unless --force. --from <infospace-root> resolves the store location.
- archive-list CLI with --with-retention flag; annotate_retention() opens the
per-infospace registry and joins each record with its current retention
state (effective class, expires, holds, eligibility).
- docs/archive-integration.md covers when to archive, the include set,
retention classes, storage layout, credentials policy, and the explicit
non-goal that S3/git backends live in artifact-store.
- SCOPE.md cross-links the new doc.
- Workplan flipped to status: done. Full pytest suite: 72 passed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:46:23 +02:00
|
|
|
from .archive import (
|
|
|
|
|
ArchiveRecord,
|
|
|
|
|
RestoredArchive,
|
|
|
|
|
annotate_retention,
|
|
|
|
|
archive_infospace,
|
|
|
|
|
list_archives,
|
|
|
|
|
restore_archive,
|
|
|
|
|
)
|
2026-05-14 11:32:25 +02:00
|
|
|
from .errors import InfospaceError
|
|
|
|
|
from .evaluation import EntityEvaluation, EvaluationSnapshot, MetricValue, ScoreEntry
|
2026-05-14 16:26:42 +02:00
|
|
|
from .engine import (
|
|
|
|
|
AssetRecord,
|
|
|
|
|
AssetSyncAction,
|
|
|
|
|
AssetSyncPlan,
|
|
|
|
|
EngineCapabilityContract,
|
|
|
|
|
LocalAssetRepository,
|
|
|
|
|
engine_capability_contract,
|
|
|
|
|
plan_asset_sync,
|
|
|
|
|
sync_assets,
|
|
|
|
|
)
|
2026-05-14 15:35:04 +02:00
|
|
|
from .evaluation_io import (
|
|
|
|
|
append_to_history,
|
|
|
|
|
read_entity_evaluation,
|
|
|
|
|
read_history,
|
|
|
|
|
read_snapshot,
|
|
|
|
|
write_entity_evaluation,
|
|
|
|
|
write_snapshot,
|
|
|
|
|
)
|
|
|
|
|
from .history import (
|
|
|
|
|
find_snapshot,
|
|
|
|
|
get_history,
|
|
|
|
|
get_latest_snapshot,
|
|
|
|
|
metric_trend,
|
|
|
|
|
read_metrics_file,
|
|
|
|
|
record_check_results,
|
|
|
|
|
write_metrics_file,
|
|
|
|
|
)
|
2026-05-14 16:01:32 +02:00
|
|
|
from .lifecycle import add_artifact, create_infospace, load_infospace, register_artifact
|
2026-05-14 11:32:25 +02:00
|
|
|
from .models import (
|
|
|
|
|
DisciplineBinding,
|
|
|
|
|
Infospace,
|
|
|
|
|
InfospaceConfig,
|
|
|
|
|
KnowledgeArtifact,
|
|
|
|
|
TopicConfig,
|
|
|
|
|
ViabilityThreshold,
|
|
|
|
|
)
|
2026-05-14 15:06:17 +02:00
|
|
|
from .semantics import EntityRecord, RelationRecord, list_entities, list_relations
|
2026-05-14 16:01:32 +02:00
|
|
|
from .workflow import load_workflows, plan_workflow, run_workflow
|
2026-05-14 11:32:25 +02:00
|
|
|
|
|
|
|
|
__all__ = [
|
IB-WP-0014: archive integration with artifact-store (T01+T02)
Reframe IB-WP-0014 from "in-repo S3/git backend adapters" to "durable archive
surface via artifact-store". The live infospace stays in a local working folder;
finalized snapshots are bundled into content-addressed artifact-store packages.
- New module infospace_bench.archive: archive_infospace(), list_archives(),
ArchiveRecord. Self-bootstraps a SQLite + local-FS registry under
output/archives/.store/ when no Registry is passed in.
- New output/archives/index.yaml records each archive event (package id,
manifest digest, retention class, included paths, file count, note).
- artifactstore added as a path dep; Python floor bumped to 3.12 to match.
- Makefile for venv-based dev setup; stack-and-commands.md updated.
- tests/test_archive.py covers index write, list, recursive-capture guard,
caller-supplied include, and empty-include error. Full suite 65 passed.
Remaining tasks (T03 list CLI, T04 restore, T05 docs) tracked in the workplan.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:30:49 +02:00
|
|
|
"ArchiveRecord",
|
2026-05-14 11:32:25 +02:00
|
|
|
"DisciplineBinding",
|
IB-WP-0014: archive-list, restore, retention annotation, docs (T03-T05)
Round out IB-WP-0014 with the remaining archive operations and docs.
- restore_archive() and `infospace-bench restore <pkg> --target <dir>` round-trip
a finalized package's bytes back to disk. Refuses to overwrite a non-empty
target unless --force. --from <infospace-root> resolves the store location.
- archive-list CLI with --with-retention flag; annotate_retention() opens the
per-infospace registry and joins each record with its current retention
state (effective class, expires, holds, eligibility).
- docs/archive-integration.md covers when to archive, the include set,
retention classes, storage layout, credentials policy, and the explicit
non-goal that S3/git backends live in artifact-store.
- SCOPE.md cross-links the new doc.
- Workplan flipped to status: done. Full pytest suite: 72 passed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:46:23 +02:00
|
|
|
"RestoredArchive",
|
2026-05-14 11:32:25 +02:00
|
|
|
"EntityEvaluation",
|
|
|
|
|
"EvaluationSnapshot",
|
|
|
|
|
"Infospace",
|
|
|
|
|
"InfospaceConfig",
|
|
|
|
|
"InfospaceError",
|
|
|
|
|
"KnowledgeArtifact",
|
|
|
|
|
"MetricValue",
|
2026-05-14 15:06:17 +02:00
|
|
|
"EntityRecord",
|
2026-05-14 16:26:42 +02:00
|
|
|
"EngineCapabilityContract",
|
2026-05-14 15:06:17 +02:00
|
|
|
"RelationRecord",
|
2026-05-14 16:26:42 +02:00
|
|
|
"AssetRecord",
|
|
|
|
|
"AssetSyncAction",
|
|
|
|
|
"AssetSyncPlan",
|
|
|
|
|
"LocalAssetRepository",
|
2026-05-14 11:32:25 +02:00
|
|
|
"ScoreEntry",
|
|
|
|
|
"TopicConfig",
|
|
|
|
|
"ViabilityThreshold",
|
|
|
|
|
"add_artifact",
|
IB-WP-0014: archive-list, restore, retention annotation, docs (T03-T05)
Round out IB-WP-0014 with the remaining archive operations and docs.
- restore_archive() and `infospace-bench restore <pkg> --target <dir>` round-trip
a finalized package's bytes back to disk. Refuses to overwrite a non-empty
target unless --force. --from <infospace-root> resolves the store location.
- archive-list CLI with --with-retention flag; annotate_retention() opens the
per-infospace registry and joins each record with its current retention
state (effective class, expires, holds, eligibility).
- docs/archive-integration.md covers when to archive, the include set,
retention classes, storage layout, credentials policy, and the explicit
non-goal that S3/git backends live in artifact-store.
- SCOPE.md cross-links the new doc.
- Workplan flipped to status: done. Full pytest suite: 72 passed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:46:23 +02:00
|
|
|
"annotate_retention",
|
2026-05-14 15:35:04 +02:00
|
|
|
"append_to_history",
|
IB-WP-0014: archive integration with artifact-store (T01+T02)
Reframe IB-WP-0014 from "in-repo S3/git backend adapters" to "durable archive
surface via artifact-store". The live infospace stays in a local working folder;
finalized snapshots are bundled into content-addressed artifact-store packages.
- New module infospace_bench.archive: archive_infospace(), list_archives(),
ArchiveRecord. Self-bootstraps a SQLite + local-FS registry under
output/archives/.store/ when no Registry is passed in.
- New output/archives/index.yaml records each archive event (package id,
manifest digest, retention class, included paths, file count, note).
- artifactstore added as a path dep; Python floor bumped to 3.12 to match.
- Makefile for venv-based dev setup; stack-and-commands.md updated.
- tests/test_archive.py covers index write, list, recursive-capture guard,
caller-supplied include, and empty-include error. Full suite 65 passed.
Remaining tasks (T03 list CLI, T04 restore, T05 docs) tracked in the workplan.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:30:49 +02:00
|
|
|
"archive_infospace",
|
2026-05-14 11:32:25 +02:00
|
|
|
"create_infospace",
|
2026-05-14 16:26:42 +02:00
|
|
|
"engine_capability_contract",
|
2026-05-14 15:35:04 +02:00
|
|
|
"find_snapshot",
|
|
|
|
|
"get_history",
|
|
|
|
|
"get_latest_snapshot",
|
IB-WP-0014: archive integration with artifact-store (T01+T02)
Reframe IB-WP-0014 from "in-repo S3/git backend adapters" to "durable archive
surface via artifact-store". The live infospace stays in a local working folder;
finalized snapshots are bundled into content-addressed artifact-store packages.
- New module infospace_bench.archive: archive_infospace(), list_archives(),
ArchiveRecord. Self-bootstraps a SQLite + local-FS registry under
output/archives/.store/ when no Registry is passed in.
- New output/archives/index.yaml records each archive event (package id,
manifest digest, retention class, included paths, file count, note).
- artifactstore added as a path dep; Python floor bumped to 3.12 to match.
- Makefile for venv-based dev setup; stack-and-commands.md updated.
- tests/test_archive.py covers index write, list, recursive-capture guard,
caller-supplied include, and empty-include error. Full suite 65 passed.
Remaining tasks (T03 list CLI, T04 restore, T05 docs) tracked in the workplan.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:30:49 +02:00
|
|
|
"list_archives",
|
2026-05-14 15:06:17 +02:00
|
|
|
"list_entities",
|
|
|
|
|
"list_relations",
|
2026-05-14 11:32:25 +02:00
|
|
|
"load_infospace",
|
2026-05-14 15:35:04 +02:00
|
|
|
"metric_trend",
|
|
|
|
|
"read_entity_evaluation",
|
|
|
|
|
"read_history",
|
|
|
|
|
"read_metrics_file",
|
|
|
|
|
"read_snapshot",
|
|
|
|
|
"record_check_results",
|
2026-05-14 16:01:32 +02:00
|
|
|
"register_artifact",
|
IB-WP-0014: archive-list, restore, retention annotation, docs (T03-T05)
Round out IB-WP-0014 with the remaining archive operations and docs.
- restore_archive() and `infospace-bench restore <pkg> --target <dir>` round-trip
a finalized package's bytes back to disk. Refuses to overwrite a non-empty
target unless --force. --from <infospace-root> resolves the store location.
- archive-list CLI with --with-retention flag; annotate_retention() opens the
per-infospace registry and joins each record with its current retention
state (effective class, expires, holds, eligibility).
- docs/archive-integration.md covers when to archive, the include set,
retention classes, storage layout, credentials policy, and the explicit
non-goal that S3/git backends live in artifact-store.
- SCOPE.md cross-links the new doc.
- Workplan flipped to status: done. Full pytest suite: 72 passed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:46:23 +02:00
|
|
|
"restore_archive",
|
2026-05-14 16:01:32 +02:00
|
|
|
"load_workflows",
|
|
|
|
|
"plan_workflow",
|
|
|
|
|
"run_workflow",
|
2026-05-14 16:26:42 +02:00
|
|
|
"plan_asset_sync",
|
|
|
|
|
"sync_assets",
|
2026-05-14 15:35:04 +02:00
|
|
|
"write_entity_evaluation",
|
|
|
|
|
"write_metrics_file",
|
|
|
|
|
"write_snapshot",
|
2026-05-14 11:32:25 +02:00
|
|
|
]
|