fix(backups): codify RS2000 unique-knowledge retention #839
No reviewers
Labels
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!839
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/795-unique-knowledge-retention"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Canary status: missing — fire canary 3+3 manually before merge
Canary Context Pack
Product story
RS2000 unique-knowledge backups should be visibly healthy and bounded so future agents read green state as green state instead of treating old backup growth or a stale failed unit as active fire.
What changed
Why it changed
Issue #795 required backup health evidence and a documented retention policy before any archive deletion.
Files touched
Relevant context
Runtime evidence
RS2000 backup service is green from a real 2026-06-26 backup path. Latest run
20260625T220004Zhas local and offsite restore receipts. Dry-run retention on RS2000 found 22 archive runs, keeps 8, and estimates 31,505,975,426 bytes reclaim withdeleted=0.Known constraints
No archive contents, secret values, token files, rclone config contents, or pCloud credentials were read or printed. Real deletion still requires scoped operator approval and
--execute.Explicit out-of-scope
Requested decision
Approve the source-controlled retention policy and helper. Runtime deletion can be performed separately after reviewing dry-run output.
Merge blockers
Spec sources read
Verification
PYTHONPATH=. python3 -m pytest tests/test_unique_knowledge_backup.pypython3 -m py_compile scripts/backup/unique_knowledge_retention.py--execute: matched 28 files, estimated 31,505,975,426 bytes, deleted 0.Closes #795
Patchwarden PR sanity
Operator signal: ✅ GO - Patchwarden can hand this exact head to the approval controller.
Automerge signal: 🟡 CONTROLLER ONLY - approval-ready, but outside the narrow safe-docs/status automerge lane.
Verdict: ✅ PASS - deterministic checks and configured reviewers are clean.
Next step: Continue through required Forgejo approval and the automerge controller.
839e460972b7ab8c6f07578d98c6dd05f8e14b398a1eligible_sanity_cleancleanmissingglm-5.2:cloud,deepseek-v4-pro:cloud,kimi-k2.7-code:cloudWhat I checked
5cleannot_reported3Approval Handoff
ready_for_external_controller_reviewSignal Board
cleannot reportedcleanreadyineligiblenot neededscripts/backup/README.md,scripts/backup/unique_knowledge_retention.py,tests/test_unique_knowledge_backup.py🧭 Merge authority: branch protection and automerge controller remain authoritative.
Required Fixes
No deterministic blockers.
Reviewer Details
Model reviewer lanes
global-glm/glm-5.2:cloudokOKglobal-deepseek/deepseek-v4-pro:cloudokOKredteam/kimi-k2.7-code:cloudokOKPolicy notes
Operator approval relayed from live Codex merge-fest scope: platform PR queue only.