FeedAkış
Open, portable, evidence-driven resources for AI agents. Inspect the source, check the verification level, and adopt only what earns its place.
Yapay zekâ ajanları için açık, taşınabilir ve kanıt odaklı kaynaklar. Kaynağı incele, doğrulama seviyesini gör ve yalnızca işine yarayanı kullan.
Constraints survive context loss
Ensure active user prohibitions, scope bounds, protected invariants, open blockers, and wake conditions survive compaction, resets, and handoffs intact.
- VersionSürüm
- 0.1.0-draft
- MaturityOlgunluk
- drafttaslak
- LicenseLisans
- MIT
- AuthorsYazarlar
- Mete Avcı, Me the Tech
- VerificationDoğrulama
- passing (L1/L2)başarılı (L1/L2)
- Disclosure classYayın sınıfı
- PUBLIC-PRACTICE
constraints-survive-context-loss.md
Constraints survive context loss
Family: Rule
Disclosure class: PUBLIC-PRACTICE
Maturity: Draft
Context compaction, session resets, and handoffs drop operating constraints far more easily than feature descriptions. Active prohibitions, scope limits, and protected invariants must survive every transition intact.
Preserve constraints explicitly across turns
Whenever summarizing, compacting, or handing off work, carry these forward explicitly rather than assuming the next turn will infer them:
- Explicit prohibitions and scope limits (read-only boundaries, no-deploy rules, untouched paths, privacy rules).
- Protected invariants (existing features, responsive layouts, schemas, or API contracts that must not regress).
- Unresolved blockers and open states — never let compaction rewrite an unfinished or uncertain item into a completed fact.
- Explicit wake conditions for paused or waiting tasks so continuation triggers stay observable.
Re-anchor to live state after any context break
- After a reset or compaction, read authoritative live state (diffs, files, tests, receipts) before acting on a compressed summary.
- Treat prior session permissions, leases, and approvals as non-transferable until revalidated against current target identity and authority.
- Keep critical integrity and safety constraints compact and visible so they remain active even when detailed reference docs are unloaded.
Completion test
Before acting after compaction or handoff, verify that every active user prohibition, scope boundary, and protected invariant is explicitly accounted for and live target state matches the summary.
# Constraints survive context loss
**Family:** Rule
**Disclosure class:** `PUBLIC-PRACTICE`
**Maturity:** Draft
Context compaction, session resets, and handoffs drop operating constraints far more easily than feature descriptions. Active prohibitions, scope limits, and protected invariants must survive every transition intact.
## Preserve constraints explicitly across turns
Whenever summarizing, compacting, or handing off work, carry these forward explicitly rather than assuming the next turn will infer them:
- **Explicit prohibitions and scope limits** (read-only boundaries, no-deploy rules, untouched paths, privacy rules).
- **Protected invariants** (existing features, responsive layouts, schemas, or API contracts that must not regress).
- **Unresolved blockers and open states** — never let compaction rewrite an unfinished or uncertain item into a completed fact.
- **Explicit wake conditions** for paused or waiting tasks so continuation triggers stay observable.
## Re-anchor to live state after any context break
- After a reset or compaction, read authoritative live state (diffs, files, tests, receipts) before acting on a compressed summary.
- Treat prior session permissions, leases, and approvals as non-transferable until revalidated against current target identity and authority.
- Keep critical integrity and safety constraints compact and visible so they remain active even when detailed reference docs are unloaded.
## Completion test
Before acting after compaction or handoff, verify that every active user prohibition, scope boundary, and protected invariant is explicitly accounted for and live target state matches the summary.
Try it yourself (Feed Labs)Kendi ajanında dene (Feed Labs)
Export blinded scenarios without descriptive IDs or expected answers, then compare your assistant without vs. with this artifact loaded:
Açıklayıcı kimlikler ve beklenen cevaplar gizlenmiş kör senaryoları dışa aktarıp kendi asistanında bu kaynak olmadan ve bu kaynakla karşılaştırma yap:
python -B scripts/eval_review.py --blind constraints-survive-context-lossUsage guideKullanım rehberi
Ensure active user prohibitions, scope bounds, protected invariants, open blockers, and wake conditions survive compaction, resets, and handoffs intact.
Best for: Multi-session tasks, context-compacted IDE workflows, and structured handoff packets. When not to use: Unneeded for trivial, single-turn questions with no ongoing state, constraints, or multi-step carry-over. Status: Catalog release (releaseEligible: true; declarative L1/L2 contract verified; host runtime enforcement remains separate).
Trust summary
- License: MIT
- Executable scripts: None
- Network / credential access required: No
- External dependencies: None
- Use side effects: Advisory / declarative contract only
- Verification:
passing(Level 1–2 structural and executable contract verification viatests/test_strategic_revision_verification.py; runtime enforcement or behavioral compliance remains separate)
How to use
- Open constraints-survive-context-loss.md. Integrate the native artifact directly into your assistant workflow or project review process.
- Include in agent continuation conventions. Require every summary or handoff to explicitly preserve prohibitions (e.g., no-push, no-deploy, protected files), distinguish pending items from finished facts, verify live state upon resume, and revalidate permissions.
- Review the companion conformance suite and record concrete outcomes for your environment.
Example
Before compacting a database cleanup task, the handoff explicitly preserves "read-only audit only; do not drop columns" and marks schema apply as pending instead of letting summary compression soften it into "cleanup ready."
Known limitations
Governs summary authoring and resume checks; cannot prevent host runtime truncation if the host itself drops system text.
Frequently asked questionsSık sorulan sorular
Why do constraints disappear faster than feature goals during compaction?
Summarizers naturally prioritize positive task achievements over negative prohibitions and conditional edges unless explicitly anchored.
Do tool approvals from before compaction stay valid automatically?
No. Resumed sessions must revalidate current target identity and permissions rather than inheriting prior-session leases.
CompatibilityUyumluluk
No runtime-specific compatibility evidence is declared. Treat this artifact as a declarative specification whose enforcement depends on the consuming runtime.
Çalışma ortamına özgü uyumluluk kanıtı beyan edilmemiş. Bu kaynağı, uygulaması kullanan çalışma ortamına bağlı bir deklaratif sözleşme olarak değerlendirin.
Declared effectsBeyan edilen etkiler
- ExecutableÇalıştırılabilir
- NoHayır
- Network accessAğ erişimi
- NoHayır
- Filesystem writesDosya yazma
- NoHayır
Verification evidenceDoğrulama kanıtı
- [L1/L2 structural & contract] tests/test_strategic_revision_verification.py binds the 0.1.0-draft declarative rule to its required obligations, negative fail-closed cases, and conformance fixtures. Declarative contract verification proves structural/contract alignment only, not host runtime enforcement or live model compliance.
ProvenanceKaynak geçmişi
Original clean-room public engineering practice re-authored from general software methodology and verification principles; no private implementation source is embedded.