shraga 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "routine",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Daily operating contract — cadence (dispatcher ticks + work blocks), OKR-anchored priorities, autonomy tiers, comms policy, and an agenda seed.",
5
5
  "configSchema": {
6
6
  "workingDays": { "type": "string", "default": "Sun–Thu", "description": "Working days, prose (shown in the skill)" },
@@ -21,7 +21,7 @@
21
21
  "def": "tick",
22
22
  "name": "routine-tick",
23
23
  "trigger": { "kind": "cron", "expr": "{{tickCron}}", "tz": "{{tz}}" },
24
- "task": { "kind": "prompt", "prompt": "Dispatcher tick: load the routine skill (Dispatcher tick rules) and workspace/agenda.md, then follow the tick logic. Most ticks should end in a skip.", "model": "{{tickModel}}" }
24
+ "task": { "kind": "prompt", "prompt": "Dispatcher tick (pager only — no cognitive work): load the routine skill (Dispatcher tick rules) and workspace/agenda.md, then decide wake/skip per the tick logic. If work is due, book an immediate self-wake-* once-schedule with the intention (NO model override) and end — never do the work in this session. Most ticks should end in a skip.", "model": "{{tickModel}}" }
25
25
  },
26
26
  {
27
27
  "def": "work-block",
@@ -24,10 +24,16 @@ When choosing what to pick up, rank by:
24
24
  ## Cadence
25
25
 
26
26
  - **Pre-daily** (start of day): absorbs the morning sweep — review inboxes/boards, refresh `workspace/agenda.md` (Today/Focus/Queue), pick the day's focus.
27
- - **Dispatcher tick** (hourly during work hours) — the tick decides, it does not grind:
27
+ - **Dispatcher tick** (hourly during work hours) — the tick is a PAGER, not a worker. It runs on a
28
+ cheap model and must do NO cognitive work beyond the wake/skip decision. Never execute a task,
29
+ never read beyond the agenda + schedule list, never write anything but the agenda's wake note:
28
30
  - **Skip** if a session is already actively working — most ticks should end in a skip.
29
31
  - **Defer to self-wake**: if a `self-wake-*` schedule is already booked for the current thread, skip — the wake owns the continuation.
30
- - **Wake with intention**: only start work when the agenda names a concrete next step; wake into that step, not into "look around".
32
+ - **Dispatch, don't do**: when the agenda names a concrete, green-lit next step and nothing is on
33
+ it, book an IMMEDIATE one-shot schedule (`once` trigger, now) named `self-wake-<slug>` whose
34
+ prompt states the intention ("Work session: <the step>, per the agenda/board — load the routine
35
+ skill first"). Do NOT set a model on it — the work session must run on the full default model.
36
+ Note the dispatch in the agenda, then end the tick. The tick session itself NEVER does the work.
31
37
  - **Escalate when stuck**: the same item blocked across 3 consecutive ticks → escalate per the comms policy instead of ticking on it again.
32
38
  - **Post-daily** (end of day): absorbs the EOD digest — summarize what moved, update the agenda's Parked/Blocked, leave breadcrumbs.
33
39
  - **Weekly self-audit**: once a week, review the log against `{{okrSource}}` — is the priority function actually being followed?
@@ -39,7 +45,9 @@ The `routine-work-block` schedule is a superseded fallback (ships disabled); the
39
45
  I MAY book my own continuations as one-shot schedules (`once` trigger) named `self-wake-<slug>`. Bounds:
40
46
  - tier-a work only — never self-wake into tier b/c actions;
41
47
  - working hours only;
42
- - max {{maxSelfWakesPerDay}} self-wakes per day;
48
+ - max {{maxSelfWakesPerDay}} FUTURE-scheduled self-wakes per day (continuations I book ahead of
49
+ time). Immediate dispatch wakes booked by the tick don't count — they ARE the routine working,
50
+ not extra sessions;
43
51
  - each booking notes "why then" in `workspace/agenda.md` (what the wake will do and why that time).
44
52
 
45
53
  ## Breadcrumb contract
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shraga",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "The teammate you delegate coding to — a self-hostable, multi-user AI coding agent web UI (Claude Code, with a pluggable engine seam).",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",