MCPcopy Create free account
hub / github.com/T0UGH/codex-self-evolution-plugin / is_archived_bucket

Function is_archived_bucket

src/codex_self_evolution/config.py:77–82  ·  view source on GitHub ↗

True when ``bucket_name`` matches the `` .archived. `` pattern produced by worktree consolidation (or the bare ``.archived`` suffix an older migration might have used). Used by scheduler scan and diagnostics to skip tombstone buckets consistently.

(bucket_name: str)

Source from the content-addressed store, hash-verified

75
76
77def is_archived_bucket(bucket_name: str) -> bool:
78 """True when ``bucket_name`` matches the ``<name>.archived.<ts>`` pattern
79 produced by worktree consolidation (or the bare ``.archived`` suffix an
80 older migration might have used). Used by scheduler scan and diagnostics
81 to skip tombstone buckets consistently."""
82 return bucket_name.endswith(ARCHIVED_BUCKET_SUFFIX) or f"{ARCHIVED_BUCKET_SUFFIX}." in bucket_name
83
84# Sidecar file that stores the bucket's canonical cwd. Written lazily by
85# :func:`build_paths`; read by the worktree migration to identify a bucket's

Callers 4

_inspect_bucketFunction · 0.85
plan_migrationFunction · 0.85
scan_all_projectsFunction · 0.85
collect_evidenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected