Sharelife v1 Frozen Plan (2026-03-24)
1. Scope and Intent
sharelife is an AstrBot plugin for template distribution and controlled rollout under strict governance.
v1 scope:
- Official template source only.
- Strict-mode execution.
- Session-level user trial without global mutation.
- Admin-governed apply and rollback.
- Dedicated Sharelife WebUI page.
- VitePress + Diataxis docs with bilingual support.
2. Frozen Decisions
- Source:
Jacobinwwey/astrbot_plugin_sharelifeonly. - Coverage: subagent + agent + broader AstrBot settings.
- Mode: strict.
- Trial allowed for normal users.
- Trial TTL: 2 hours.
- Trial renewal: forbidden.
- First trial triggers dual notification once (user + admin).
- Retry requests are queued and admins are notified.
- Queue timeout after 72h goes to
manual_backlog, not auto-closed. - Any admin can process manual backlog.
- 10-minute lock is enabled for admin review.
- Force takeover is allowed but reason is mandatory.
- Notification channels: WebUI notification center + admin DM.
- Real-time admin notifications route to current on-call only.
- Offline admins receive offline-window digest after coming online.
- Docs: zh-CN + en-US in parallel, ja-JP reserved.
- SDK v4 migration readiness via runtime compatibility ports.
- Priority path:
v1 is personal-user/community-first; enterprise mechanisms (on-call rotation, takeover lock, offline digest) remain as future-ready options. - Personal user preference controls: switch between two execution modes and toggle task-detail observability (default off).
3. Modular Architecture
Layers:
- Domain: models, policy rules, state machines.
- Application: use-case orchestration.
- Infrastructure: GitHub source, storage, runtime adapters, notifications.
- Interfaces: commands, APIs, WebUI DTOs.
Dependency direction:
interfaces -> application -> domain, with infrastructure implementing ports only.
4. Strict Mode and Risk Tiers
- L1: low-risk content tuning.
- L2: medium-risk routing/tool-whitelist changes.
- L3: high-risk provider/permission/global security-affecting changes.
Rules:
- Global apply requires dry-run first.
- L3 is disabled by default.
- Session trial cannot activate L3.
5. Session Trial Model
- Overlay-only on session scope.
- No global config writes.
- Lifecycle: preview -> dryrun -> start -> in_trial -> stop/expire.
- TTL: 7200s.
- Retry requires admin path, no renewal.
6. Retry Queue and Manual Backlog
State machine:
queued -> notified -> reviewing -> approved | rejected | manual_backlog -> closed
Rules:
- At 72h, request moves to
manual_backlog. - Backlog remains actionable.
- Duplicate retry requests are merged.
7. Concurrency Controls
- Opening a request acquires a 10-minute lock.
- Others are read-only unless takeover.
- Force takeover requires mandatory reason.
- Decision submission uses optimistic concurrency (
request_version + lock_version).
8. Notification Contract
Channels:
- WebUI notification center.
- Admin DM.
Routing:
- Real-time -> current on-call admin.
- Offline digest -> admins after online return.
9. v1 API Draft
User:
GET /api/sharelife/v1/templatesGET /api/sharelife/v1/templates/{id}POST /api/sharelife/v1/trial/dryrunPOST /api/sharelife/v1/trial/startPOST /api/sharelife/v1/trial/stopPOST /api/sharelife/v1/trial/retry-requestGET /api/sharelife/v1/trial/retry-request/statusGET /api/sharelife/v1/preferencesPOST /api/sharelife/v1/preferences/modePOST /api/sharelife/v1/preferences/observe-details
Admin:
GET /api/sharelife/v1/admin/retry-requestsPOST /api/sharelife/v1/admin/retry-requests/{id}/decisionPOST /api/sharelife/v1/admin/retry-requests/{id}/takeoverPOST /api/sharelife/v1/admin/dryrunPOST /api/sharelife/v1/admin/applyPOST /api/sharelife/v1/admin/rollbackGET /api/sharelife/v1/admin/audit
10. Documentation and i18n
- VitePress with Diataxis structure.
- Bilingual docs (zh/en) in parallel.
- ja-JP is reserved as beta expansion.
11. SDK v4 Migration Path
- Introduce
RuntimePortas a stable boundary. - Keep
runtime_v3now and prepareruntime_v4adapter. - Keep business logic SDK-agnostic.
- Use capability detection and feature flags for phased migration.
12. Development Priority (Community-First)
v1 priority:
- Official template distribution and standard package rules.
- Strict-mode session trial + admin-governed apply/rollback.
- Core notifications and audit for personal users and small communities.
- Bilingual docs (zh/en) with ja-JP reserved.
Future-ready enterprise options:
- On-call rotation.
- Multi-admin takeover locks and advanced concurrency governance.
- Offline-window digest and richer enterprise workflows.
13. Open Items
- On-call source mechanism: manual switching vs scheduler.
- Offline digest frequency and cap.
- Escalation channel when admin DM delivery fails.
This document is the frozen baseline; future changes should be incremental updates on top of it.