Skip to content

v0.13.0

Choose a tag to compare

@BrianArfi BrianArfi released this 16 Oct 08:53
· 12 commits to main since this release

Added

  • gmail_manager.py send now refuses without --approved. Same gate and wording as slack_client.py (the shared require_send_approval, now labelled Gmail), checked before any network call and before the text gates, with no environment bypass. send_email() takes approved=False, so a programmatic caller is gated too. Every documented send command carries the flag, to be added only at the post-approval step; a recipient outside the work domain still needs the two-turn approval first. docs/gates_inventory.md gap 1 is closed.
  • The Slack handle gate now runs inside slack_client.py. A named, resolvable person with no <@ID> is refused on post and update before the network call, using the same logic as the hook (gates/handles.py, override SLOP_GUARD_ALLOW_PLAIN_NAMES=1, also barred from token.env). Two live accounts for one name warn and pass. The chase queue and the dashboard click-send stay warn-only: they print the finding and pass the same override to the child, so a cron send cannot start failing.
  • Em-dash gate on Linear and Jira writes. linear_client.py (create, update, comment) and jira_client.py (create, edit, comment) refuse an em-dash or en-dash in the title, summary, description or comment, after the --approved check and before the network call. Override SLOP_GUARD_ALLOW_EMDASH=1. docs/gates_inventory.md records exactly what is left for WhatsApp, which lives outside this repo.
  • Send gates now live in the sending scripts, not only in Claude Code hooks. The em-dash ban, the internal Fathom link block and the reply-router conversation claim moved into a shared package, .agent/scripts/gates/. slack_client.py (both connectors), gmail_manager.py send and gdoc_comment.py run those checks before their first network call, so the rules hold under agy-bridge, opencode, cron or a member's setup. The hooks import the same functions and behave as before. Overrides are the existing ones (SLOP_GUARD_ALLOW_EMDASH=1, SLOP_GUARD_ALLOW_FATHOM_CALLS=1, CLAIM_GUARD_DISABLE=1); slack_client.py refuses to read them from token.env. gates/outbound.py check gives WhatsApp helpers outside the repo the same check. docs/gates_inventory.md lists every hook as in-tool, moved, or hook-only with a reason.
  • A read-only checkout health check. one_host_check.py reports which checkouts hold unpushed commits, which machine last wrote each journal/state file, and whether the ASB app opens a non-canonical checkout. Nothing was changed on any machine.
  • A prompt hook recalls the right memory files. memory_recall.py (UserPromptSubmit) matches the prompt against the names and descriptions of the files in journal/memory/ that the always-loaded MEMORY.md index does not list, and prints at most five lines (Relevant memory: <name> - <description> (<path>)). Kill switch: MEMORY_RECALL_DISABLE=1.
  • Routines keep a note between runs. routine_memory.py recall <routine> prints the last note and retain <routine> --text ... stores a new one (last 20 kept in journal/state/routine_memory/<routine>.jsonl). The daily update, the sweep and the chase queue now start with recall and end with retain, so a run does not repeat the searches the last run settled.
  • Sessions can find, warn and message each other. Say "sesi lain", "yang tadi" or "the other session" and a prompt hook (session_mention.py) adds one line with the three session cards that best match your words. claims.py records which session holds a Google Doc, Jira or Linear key, file or branch (a claim goes stale after 12 hours, or when its session is done), and the Doc writers now warn when another live session holds the Doc and claim it for the current one otherwise (resource_claim_guard.py; it warns and never blocks). session_notes.py leaves a note for a session or for a work-tree node, and the target gets it at its next start (notes_inbox.py, five at most).
  • Every Claude session leaves a card, and new sessions see who else is running. At the end of each turn a Stop hook (session_card.py) writes one small JSON file per session to journal/sessions/: a spoken name, a one-line purpose, the status (active, or waiting on you when the last reply ends in a question), the links, ledger ids and work-tree nodes it touched, and up to three open items. The card points to the transcript and never copies it. Because the folder is in git, a Windows, WSL or macOS session can see the others. At session start also_running.py lists up to five sessions active in the last 24 hours, one line each. session_cards.py adds list, show, active-brief and set-status, and /session (session_ref.py) now reads cards first and opens a transcript only when the card is missing or the detail is needed.
  • Session cards get a better purpose and name over time. A card starts with the first prompt as its purpose. session_cards.py refine [--max 10] takes cards that still carry that raw text and have at least three user turns, asks claude -p --model haiku for one plain English line under 90 characters plus a 2 to 4 word spoken name, and stores purpose_refined. It runs from a temp directory with the card hook off, so it writes no card of its own, and it never runs inside the Stop hook. At session start also_running.py launches refine --max 5 in the background with no output and no wait, at most once every 30 minutes (stamp file journal/sessions/.refine_stamp, gitignored). Off switch: SESSION_REFINE_DISABLE=1.
  • Every work-tree node now shows the records filed under it. Commitments, waiting-on and decisions already named their node; now the node names them back. work_tree_rollup.py builds the reverse link from the records on every ledger sync, so it never drifts from them: a node's live records, counts for everything below it, last activity, and a health worked out from the records (red only when something slipped in the last 7 days, amber for older overdue, due soon, or live past 30 days). A parent takes the worst health below it. You can set a node's health by hand, but only with a reason, and with an end date if you want it to lapse. work_tree.py show <node> prints all of it, and the dashboard Work tab shows it next to the node. work_tree.py set-next ties a node's next step to the records it waits on, and the rollup flags record ids in a node's notes that have since closed.
  • Waiting-on records tell you when they move. The waiting watchdog checks every hour whether the person you are waiting on replied in the thread, and runs "done-checks" for asks that finish as an action instead of a reply (first one: a GitHub repository now exists). When a record you watch moves, by any path, one Slack DM from the bot lists it with the link, so you can continue straight away. New records are watched by default; older ones only after watch <id> --on. The morning update opens with "Moved since yesterday" from the new moved command.
  • The daily update can keep a read-only Sheet copy of a git ledger. A team that records decisions and blockers as files in a git repository can let people without git still read them. When the workspace has a ledger mirror script, /daily-update runs it once a day in Step 4: it pulls the ledger repository, rewrites a Google Sheet that nobody edits, and does nothing on a second run the same day. Creating the Sheet the first time still needs an explicit go.
  • Haiku agents stay under 100,000 tokens of context. Claude Haiku 5.5 charges five times more per token once one request's prompt passes 100,000 tokens, cache reads included, and every turn re-reads the whole history. Splitting 400k of work into five fresh agents of 100k or less costs about a tenth of one long run. New chunk_work.py splits a work list into chunks of about 85k tokens and keeps findings in a state file, so each fresh harvester reads one chunk plus the earlier findings and stops. harvester gets maxTurns: 20 as a backstop, and CLAUDE.md Subagents has the rule.
  • Ledger records lose priority when nobody raises them. priority_decay.py calculates
    each open commitment, waiting-on and decision's priority on every read: one level down
    after 14 days with no signal, another after 30, and at 30 days it goes on the Saturday
    review list. A signal is a reply in the record's Slack thread, a meeting note or decision
    citing it, a ticket update, a chase, or priority_decay.py signal <ID> --why "...". Your
    own briefings do not count, so listing a record does not keep it alive. Records due within
    7 days, or owed to or by the two named VIPs, never decay; records under a live work-tree
    node drop one level at most. The tracker opens with a Relevance section, the morning
    carry-over shows each record's level, and the chase list picks by level.
  • Linear admin access can be cut back in one command. linear_client.py restrict-admins --keep a@x.com,b@x.com
    shows who keeps admin and who drops to member, and changes nothing until --approved.
    linear_client.py members lists every active user with their role.
  • Calendar events can repeat. gcal_manager.py create --recurrence 'FREQ=MONTHLY;BYMONTHDAY=5'
    makes one recurring event, for checks like a monthly earnings review.
  • A weekly report shows which sessions spent the most, and on which model. token_usage_report.py
    ranks sessions by price-weighted tokens, splits parent and subagent spend, and shows the share of
    subagent spend on Opus. It runs every Monday at 12:55 WIB.
  • Subagents with no model run on Sonnet, and costly spawns get a warning. .claude/settings.json
    sets CLAUDE_CODE_SUBAGENT_MODEL=sonnet, so a spawned agent no longer inherits an Opus session.
    The new agent_spend_guard.py hook warns, and never blocks, when Opus is named for QA or lookup
    work, a session passes 15 agents, or an agent spawns another agent. It is safe to also register
    globally: two copies of the hook on one spawn log and warn once.

Changed

  • CLAUDE.md is smaller. The always-on file went from about 83 KB to about 61 KB (about 30 KB outside the app-managed sections). Long mechanics moved verbatim to docs/claude_md_detail.md; every hard rule keeps a one-line statement and a link. The map of what moved where is docs/claude_md_slim_2026-10-15.md.
  • MEMORY.md is split by scope. It keeps the user and feedback lines (always loaded). Project and reference lines moved to INDEX_project.md and INDEX_reference.md in the same folder, each linked from MEMORY.md.
  • The Dashboard no longer loads into every session. dashboard_context.py now injects a 2-line pointer; the trimmed Dashboard block loads at session start only for cron or daily-update runs (AGENT_MODE=1, PSB_ROUTINE, or a headless claude -p ancestor) or with DASHBOARD_CONTEXT_FULL=1. Otherwise dashboard_prompt_context.py (UserPromptSubmit) injects it once, the first time a prompt looks like Work or PM work.
  • Records can no longer sit on a top-level area. Filing a commitment, waiting-on or decision on an area like "E-Commerce Solution" or "B2C Super App" told you nothing about which piece of work it moves, so the ledger tools now refuse it and list the nodes underneath. A top-level node with nothing under it still takes records. work_tree.py coverage and validate report any record still sitting on one.
  • A record's squad now comes from its work-tree node. portfolio_tagger.py reads the node first and only falls back to guessing from the record's text when the node does not say which squad owns the work.

Fixed

  • Session card refine no longer pops up a terminal window on Windows. also_running.py started session_cards.py refine with DETACHED_PROCESS, so the child had no console, and its claude -p --model haiku call got a new visible console (shown by Windows Terminal) at most every 30 minutes. The hook now uses CREATE_NO_WINDOW | NEW_PROCESS_GROUP, and summarize_with_claude() passes CREATE_NO_WINDOW as well.
  • The ledger watcher now sees gmail_manager.py send --approved as a sent email, and ignores a refused one. The old pattern only matched gmail_connector or gmail.py, so a real send by the connector script filed no "Email sent" reminder. The draft_lint_stop.py hook also takes DRAFT_LINT_LOG, so tests no longer write fake events into journal/draft_feedback/lint_events.jsonl.
  • Draft jobs fall back to GLM when the Gemini quota runs out. When z.ai came back on 21 Sep, GLM was re-added to the reasoning and cross-lineage chains but not to the draft chain. So when the Antigravity Gemini quota ran out, every pre-meeting card skipped its cheap writer and went to Claude. This happened on three mornings in a row. glm-5.3-flash now sits third in the draft chain, after the two Gemini models, which matches the 22 Jul ordering decision.
  • Unattended Claude jobs find Claude again when only the editor extension has it. On a machine where Claude Code exists only inside the VS Code (or Cursor) extension, ai_call.py found no Claude and handed every job to the non-Claude bridge. Jobs that need tools refused to run, so the Saturday ledger audit skipped itself with "tools-unavailable" and the waiting-on pile grew unchecked. It now falls back to the newest extension binary, which shares the same sign-in. The audit also stopped forcing an old stored token over that sign-in: the token had expired, and every run failed on "Invalid bearer token" in two seconds.
  • A deferred or cancelled ticket no longer closes a record. The daily automatic check closed any commitment or waiting-on whose ticket Jira files as "done", and Jira files Deferred, Won't Do and Cancelled there too. Two records closed as answered because their ticket was deferred. Those states now go to the model and the weekly review as evidence instead, and Linear's Canceled is treated the same way.
  • Published artifacts now show up in the app's Outputs panel. publish_cf.py deploy printed only the per-build https://<hash>.work-artifacts.pages.dev address, which Outputs skips on purpose, so no published HTML artifact ever reached Outputs. A deploy now ends with one Name -> https://work-artifacts.pages.dev/<slug> line for each artifact it added or changed, and the new publish_cf.py links <slug> prints the stable link of an artifact that is already live, for handing it over.
  • The public sync survives a sync from another machine. When the public repo already had a newer sync commit, the push was rejected as non-fast-forward and the release never ran. The sync now moves onto the remote commit and keeps the freshly built tree, so nothing published there is lost.
  • The waiting-on sweep closes a record only when its owner replies. Before, any reply in the
    thread from someone other than the owner closed it, so one person's answer could close another
    person's open ask. When the owner's Slack id is unknown, the old behaviour stays.
  • The calendar sweep shows the right "Today" before 07:00 WIB. gcal_manager.py sweep
    took the date in UTC, so an early morning update listed yesterday's meetings. It now uses
    the host's local timezone.
  • link_sync.py no longer crashes on a Windows console. Its tick-mark output raised a
    UnicodeEncodeError under cp1252, so the run looked failed. Output is now UTF-8.

Added

  • Migration backlog rows show where the work really is. afm_linked_sync.py
    reads the delivery tickets each backlog row cites (MSP, STOR, MBA, MP, MPS),
    writes them as clickable links with their live status, and fills the PRD
    column. It proposes a row status change only from the row's own delivery
    ticket, never from a legacy or dependency ticket. A second mode rewrites each
    tracking ticket's description from its sheet row: what, context, engineering
    questions and answers, blockers, related tickets, PRD and backlog link.
    Both modes are dry runs until --approved.
  • Backlog rows without a ticket get one, with a one-pager inside it.
    afm_create_tickets.py turns a one-pager per backlog row (story, why, scope,
    acceptance criteria, dependencies, open questions, what is missing before
    estimation) into an AFM Jira ticket: epics first, stories under them, every
    description linking its PRD section and the sheet row. A dry run writes one
    review file to read before anything is created.
  • Long Jira batches survive slow responses, and a ticket rewrite never loses
    text.
    The AFM Jira helper retries reads and updates after a timeout (never
    creates, which may have landed). Rewriting a ticket description keeps the
    text it replaces under a "Previous description" heading.
  • Reply drafts get a review page with pinned comments. draft_review.py publish
    turns a draft file (the original thread plus the draft) into an unlisted page on
    the artifact host with shared comments on, so the owner marks the exact line to
    change instead of retyping it in chat. Revisions republish to the same URL,
    comments reads the pins back, and pages expire from the site after 30 days.
    Sending still needs approval in chat.

Fixed

  • Mixpanel raw export reaches the EU data host. The connector called
    data.eu.mixpanel.com, which does not resolve, so every export failed with
    a DNS error. It now calls data-eu.mixpanel.com.
  • The public sync blocks timestamped token backups. A file named
    token*.json.bak-<date> slipped past both token*.json and *.bak. The leak
    audit stopped the push, so nothing leaked, and the blocklist now covers the name.

Full changelog: v0.12.0...v0.13.0