Files
infospace-bench/src/infospace_bench/__init__.py
tegwick ddefd69f71 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

101 lines
2.3 KiB
Python

from .archive import (
ArchiveRecord,
RestoredArchive,
annotate_retention,
archive_infospace,
list_archives,
restore_archive,
)
from .errors import InfospaceError
from .evaluation import EntityEvaluation, EvaluationSnapshot, MetricValue, ScoreEntry
from .engine import (
AssetRecord,
AssetSyncAction,
AssetSyncPlan,
EngineCapabilityContract,
LocalAssetRepository,
engine_capability_contract,
plan_asset_sync,
sync_assets,
)
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,
)
from .lifecycle import add_artifact, create_infospace, load_infospace, register_artifact
from .models import (
DisciplineBinding,
Infospace,
InfospaceConfig,
KnowledgeArtifact,
TopicConfig,
ViabilityThreshold,
)
from .semantics import EntityRecord, RelationRecord, list_entities, list_relations
from .workflow import load_workflows, plan_workflow, run_workflow
__all__ = [
"ArchiveRecord",
"DisciplineBinding",
"RestoredArchive",
"EntityEvaluation",
"EvaluationSnapshot",
"Infospace",
"InfospaceConfig",
"InfospaceError",
"KnowledgeArtifact",
"MetricValue",
"EntityRecord",
"EngineCapabilityContract",
"RelationRecord",
"AssetRecord",
"AssetSyncAction",
"AssetSyncPlan",
"LocalAssetRepository",
"ScoreEntry",
"TopicConfig",
"ViabilityThreshold",
"add_artifact",
"annotate_retention",
"append_to_history",
"archive_infospace",
"create_infospace",
"engine_capability_contract",
"find_snapshot",
"get_history",
"get_latest_snapshot",
"list_archives",
"list_entities",
"list_relations",
"load_infospace",
"metric_trend",
"read_entity_evaluation",
"read_history",
"read_metrics_file",
"read_snapshot",
"record_check_results",
"register_artifact",
"restore_archive",
"load_workflows",
"plan_workflow",
"run_workflow",
"plan_asset_sync",
"sync_assets",
"write_entity_evaluation",
"write_metrics_file",
"write_snapshot",
]