Skip to content

v0.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 17:15
40e39be

This release is largely the work of @louis-byers: 12 merged pull
requests (#147, #148, #151, #152, #154, #162, #163, #164, #166, #168,
#172, #174) and a run of carefully written issues, covering team KBs (the merge
driver, conflict resolution, contributor ownership of raw articles,
unpushed-work alerts, version trailers), Claude token handling, session
re-mining and the KB-first agent handshake. Thank you. The security
hardening below was driven by an Aikido SAST triage. 0.6.3 was never
tagged; its changes are part of this release.

Upgrade notes. Every KB with a remote: add NEEDS-ATTENTION.md to
.gitignore (scribe init adds it only in new KBs), because the hourly
scribe commit stages everything outside output/ and would commit the
per-machine report. If it is already tracked, run
git rm --cached NEEDS-ATTENTION.md, then commit and push (doctor's
attention-report row says so). Team KBs: sync sets the merge driver in
.git/config before every pull and adds any missing merge=scribe lines
to .gitattributes, which its next commit carries, so no scribe init
is needed. While unmerged paths exist, a rebase or merge is in progress,
or HEAD is detached, scribe commit stages and commits nothing and exits
non-zero. Sync pauses during the first three; on a detached HEAD it runs
every phase but commits nothing, so a KB on a detached HEAD (checked out
as a git submodule, say) no longer gets commits until it is on a branch.
git pull and git push stop after 5 minutes; set
SCRIBE_GIT_TIMEOUT=15m for a slow remote. Runs whose stdin is not a
terminal set GIT_TERMINAL_PROMPT=0 and ssh -o BatchMode=yes, so ssh
passphrase prompts, SSH_ASKPASS, password logins and unknown host keys
now fail there: load the key into ssh-agent (or the macOS Keychain), or
set core.sshCommand or GIT_SSH_COMMAND, which scribe then leaves
alone. HTTPS credential helpers still work. Sync now pushes commits that
earlier runs left unpushed (a solo KB with
sync.always_pull_before_sync: false keeps them local). Team
contextualize: each machine contextualizes only the raw articles it
committed; a teammate's articles that are still unmarked are taken over
after 7 to 14 days.

Added

  • Scheduled runs can use a long-lived Claude token (#149). Put a
    claude setup-token value under integration_tokens.claude in
    ~/.config/scribe/config.yaml (or export SCRIBE_CLAUDE_TOKEN), and
    scribe passes it to every claude -p call as
    CLAUDE_CODE_OAUTH_TOKEN. LaunchAgents run zsh -lc, which does not
    read ~/.zshrc, so a token exported there never reached cron runs, and
    an expired keychain login failed every LLM step. An exported
    CLAUDE_CODE_OAUTH_TOKEN still wins (a blank one does not); with no
    token, claude keeps using its keychain login. ANTHROPIC_API_KEY or
    ANTHROPIC_AUTH_TOKEN in the environment outranks it inside claude.

  • A failed claude -p names the reason (#149). The envelope's result
    text ("Failed to authenticate: OAuth session expired…") now leads the
    error, so run records and scribe doctor show it instead of a bare
    exit status 1 followed by a truncated JSON line. A call that exits 0
    with is_error names it too, instead of a bare subtype (success on
    an auth failure). The reason and the output tail are masked first: the
    configured Claude token by exact value, plus sk-ant-… keys and OAuth
    tokens and every token shape the secret gate knows (ghp_…, AKIA…),
    also in output/errors/ records.

  • Every scribe commit now carries a Scribe-Version trailer. Sync,
    commit, absorb, dream, the dream lease, promote and the init scaffold
    commit all end with Scribe-Version: <version>, so a team can tell which
    binary wrote each commit. It is a message paragraph, so it works on any
    git version.

  • scribe doctor shows each committer's scribe version. A new
    team-versions row in the state section (team KBs only) reads the last 14 days of
    commits and keeps each author's newest version. It is [ok] when everyone
    matches this binary, and [warn] names each member on a newer release
    (this machine is behind), an older one, or a dev build, with a fix that
    says which side to upgrade. Committers with no trailer yet are listed for
    information and never warn on their own. Your own row is marked (you)
    and clears after this machine's next commit. Emails and versions come
    from teammates' commits, so control characters are stripped and lengths
    capped before they reach the terminal.

  • Agent blocks and the scribe-kb skill ask for one KB query before
    the first file edit
    (#150), including continuations, hand-backs,
    reviews and ship runs; a review finding cites a recorded decision when
    the KB has one, but is never dropped because of KB content or because
    no decision exists; subagent briefs carry the same instruction. In
    Codex, an in-sandbox qmd search counts as the pre-edit query. On one KB,
    sessions that queried before their first edit went from 32% to 79%
    over 7 days. The blocks now say "knowledge base" rather than "personal
    knowledge base", and address "the user" where they meant the person in
    the session, so a team KB reads correctly for every member. Existing
    installs pick it up on the next scribe init --yes.

  • scribe merge-file: a git merge driver for team KBs (#162). scribe init adds merge=scribe lines to a team KB's .gitattributes (and a
    team KB's sync adds any that are missing, then commits them; a pattern
    that already sets its own merge attribute is left alone), and init
    and every sync with a remote set merge.scribe.driver in the clone, so pulls (scribe's
    and manual ones) merge KB files by class instead of stopping: article
    frontmatter key by key (list keys as a three-way union, so a removed link
    stays removed; the later updated wins; two different values for title,
    status, superseded_by, verdict or index_tier_override stay a conflict for a
    person, and for any machine-maintained key the value that sorts first is
    kept and logged) and bodies as a three-way text merge; rolling memory files
    and log.md as a three-way union that keeps entries whole and keeps
    archived entries out; derived files by picking a side. Any other file still
    gets git's text merge, so non-overlapping edits merge cleanly. When the
    binary is missing, or too old to know merge-file, the driver line falls
    back to git merge-file. The
    sync-side fallback keeps the modified side of a delete/modify only for KB
    files, leaves a rebase you started by hand alone (one left by a killed
    scribe pull is aborted on the next sync; one pull runs per repo at a
    time), and drops the autostash entry
    once it has resolved its conflicts. scribe stages and commits nothing
    while a rebase or merge is in progress, HEAD is detached, or unmerged
    paths exist, and leaves the index as it is (scribe commit then exits
    non-zero), so a paused rebase never picks up unrelated edits. scribe doctor
    shows a merge-driver row that warns when lines are missing or not
    committed, a rebase-in-progress row, and an unmerged-paths row.

  • Unpushed KB commits are flagged (#164). scribe doctor has a
    state/unpushed-work row: it fails when the oldest local commit on the
    KB's branch has waited more than 6 hours and a sync has tried to push
    since, so a machine whose pulls keep aborting no longer goes unseen for
    days. Sync logs the count every run and posts a macOS notification at
    most once a day while the work is stuck. Sync now also pushes commits an
    earlier run left behind (it used to push only right after a new commit,
    so work committed offline waited for the next one). A KB with a remote
    but no upstream, or an upstream ref that no longer exists, gets a warn
    row instead of a silent pass, and log.showSignature no longer skews
    the count.

  • scribe sessions backfill-watermarks [-n] [--cap N] [--mode tools|envelope] [--mined-before YYYY-MM-DD] (#146) gives entries mined before watermarks existed the
    watermark their mine most likely reached, so the remine pass can read
    what those mines did not: messages stamped after the mine, and, in
    envelope mode, the middle of a transcript over the cap (assumed
    min(transcript_max_chars, 24000) unless --cap says otherwise; in
    tools mode, everything after message 50 of a session over 300
    messages). Messages stamped within --margin (default 2h) before
    the processed time count as unread, since the mine and ccrider's
    indexing both ran before that time was stamped. Opt-in; -n reports
    the sessions the remine lane would actually pick (in scope, and partial
    or past remine_min_new_chars) with an estimate of the LLM calls and
    sync runs it takes to drain them. The write takes the sync lock. A KB
    whose mode or cap changed over time can backfill in passes with
    --mode, --cap and --mined-before.

  • scribe eval retrieval measures whether KB search finds the right
    article.
    --generate N samples N articles across the KB's top-level
    dirs and asks the configured contextualize model for two queries per
    article:

    • a direct one, in the article's own words
    • an indirect one, which describes the situation without the title's
      words. Questions that reuse a title word are dropped.

    The set is written once to eval/retrieval-fixture.json in the KB, so
    later runs measure the same questions. A plain run feeds it to
    qmd bench and scores four backends (bm25, vector, hybrid, hybrid +
    rerank) on hit@5, hit@10, MRR and p50 latency. It stores the result
    under output/eval/, prints the change in MRR since the last run, and
    lists questions the full pipeline missed with what it returned instead.
    Questions whose article has since been removed are skipped and counted.
    qmd before 2.5.0 ignores bench --json and prints a table, so scribe
    also parses the table. In that mode the misses list can't name the wrong
    top hit; upgrade qmd to get it.

Security

Most of these fixes come from a triage of an Aikido SAST scan; the last two
came from a pre-release audit. Each Aikido finding was checked by hand; about
half were false positives and are listed in the research note, not here.

  • Discovered projects no longer commit git credentials. wiki/.repo.yaml
    recorded the project's origin verbatim, so a remote like
    https://user:TOKEN@host/repo was committed (and pushed, in a team KB).
    The userinfo is now stripped, and the file is YAML-encoded so a path or
    remote cannot inject keys.
  • scribe lint --resolve reads only KB files. It read the paths named in
    wiki/_contradictions.md, a tracked file, without a containment check,
    and sent their contents to the LLM. A pushed [../../.ssh/id_ed25519 | …]
    line could exfiltrate a local file.
  • Captured URLs are fetched through a public-only client. trafilatura and
    defuddle fetched pages themselves and followed redirects unchecked, so a
    public link that redirected to a local service (or a rebinding DNS answer)
    got that service's response stored in the KB. scribe now fetches the page,
    refusing non-public addresses at connect time on every hop, and the
    extractors read it on stdin. stale --check-urls uses the same client.
    The up-front check also blocks CGNAT, 0.0.0.0/8, multicast and reserved
    ranges, and private IPv4 inside NAT64.
  • Inbox limits. A raw/inbox file over 256 MiB is quarantined instead of
    being read whole, a drain handles at most 200 files, and EPUBs are capped
    at 10,000 entries and 512 MiB of decompressed chapters.
  • Symlink and path hardening. hot refuses symlinked
    projects/*/{decisions-log,learnings}.md and replaces wiki/_hot.md
    atomically instead of writing through a symlink; the stop-word gate holds
    a staged symlink instead of writing through it; drop parking never uses a
    project name as a path.
  • Team KBs ignore a pushed lock_dir. Set it in scribe.local.yaml.
  • Prompt and log hygiene. log.md lines from the model lose every
    control character (CR, ESC, U+2028/9) and are capped; contextualize's
    source metadata is flattened to one line per field and its article cut
    respects UTF-8; subscription notifications pass the title to osascript
    as an argument, not as AppleScript source; claude -p and extractor
    errors mask credentials before they reach logs.
  • Installer verifies the release signature when cosign is installed.
    install.sh checks checksums.txt against its keyless signature from this
    repo's release workflow for the requested tag. SCRIBE_REQUIRE_SIGNATURE=1
    refuses to install without it.
  • CI. No checkout persists the token (the metrics push passes it for that
    one command); the release job uses no Go or Zig cache; the pandoc .deb
    is SHA-256 pinned; govulncheck is pinned; Scorecard's top-level token is
    read-only.
  • Credentials in git output are masked wherever scribe keeps it. A
    failed push logged git's last lines unredacted, and the URL rule needed
    a user:password pair, so a remote like https://<token>@host/kb.git
    could reach the /tmp logs, error messages and run records. The git
    messages scribe logs or returns from pull, push, commit, the conflict
    resolver, the merge driver and ls-files now have the userinfo of any
    scheme://…@host URL masked (the host stays), along with the other
    credential shapes, and are flattened to one line.
  • scribe sessions stats strips terminal escapes. last_scan, the
    extract times, project names and remine_skip reasons come from
    wiki/_sessions_log.json, which teammates push; they now get the same
    sanitizer as the session IDs.

Changed

  • Dependencies: Go 1.26.11, go-sqlite3 1.14.53 (SQLite 3.54.1),
    golang.org/x/{net,sync,sys}, ledongthuc/pdf; GitHub Actions setup-go
    7.1.0, codeql-action 4.39.5, scorecard-action 2.6.0, goreleaser-action
    7.3.0, cosign-installer 4.1.4, sbom-action 0.24.4.

  • sync.always_pull_before_sync: false now also keeps sync from
    retrying old pushes on a solo KB
    (follow-up to #164). That is the
    setting for offline and air-gapped machines, so sync no longer retries
    the push of older commits at the end of every run, sends no desktop
    alert, and the unpushed-work doctor row stays [warn] ("sync does
    not retry old pushes") instead of turning [FAIL] after 6 hours. New
    commits are still pushed right after they are made. A team KB ignores
    the setting here: it lives in the shared scribe.yaml, so one member
    could otherwise silence everyone's alert.

  • git pull and git push time out after 5 minutes (follow-up to
    #164). A hung network (dead VPN, captive portal) could hold the sync
    lock with no end, first in the pull at the start of sync.
    SCRIBE_GIT_TIMEOUT (a duration such as 15m) changes the limit.
    Interactively (stdin is a terminal), git stays in scribe's process
    group, so Ctrl-C and ssh/HTTPS prompts work as before, and the timeout
    kills git alone. Runs whose stdin is not a terminal (launchd, cron, CI,
    pipes) run git in its own process group with prompts off (GIT_TERMINAL_PROMPT=0, and
    ssh -o BatchMode=yes unless you set your own ssh command). There, the
    timeout or a SIGINT/SIGTERM/SIGHUP kills the whole group and cleans up
    before scribe exits from the signal. A signal the parent set to be
    ignored (nohup) stays ignored. A pull killed mid-rebase aborts
    its rebase, removing the index.lock the killed git left if that is
    what blocks the abort; otherwise it leaves the rebase for the next sync
    to abort.

  • scribe sessions stats names the sessions behind each
    remine_skip reason
    (follow-up to #172). --json adds
    remine_skip_ids and --ids lists them in the table, at most 50 per
    reason, sorted.

Fixed

  • Sync no longer dirties the tree while you finish a rebase. With a
    rebase you started, a merge in progress or unmerged paths, sync refused
    to pull and commit but still rewrote wiki/_digest.md and other
    derived files, so git rebase --continue failed until you discarded
    them, and cron dirtied the tree again every run. Sync now logs one
    "sync paused" line, writes no KB file and records the run as degraded
    until the operation is finished. This also works for a KB that is a
    linked worktree or a submodule. A rebase an interrupted scribe pull left
    is still aborted by the next pull. On a plain detached HEAD sync runs
    every phase and skips only its commits, with one log line. A git that
    fails outright (dubious ownership under cron, a broken repository) no
    longer reads as a detached HEAD: sync keeps running and the commit
    reports git's own error.

  • A failed pull or push says why. A failed pull reported git's first
    line, usually From /path/to/remote; it now reports the fatal:,
    rejected or error: line. A failed push returns git's reason instead
    of push error: exit status 128, and scribe commit and dream log it
    instead of "push failed (offline?)". When the pull that a rejected push
    needs fails, the log says what to do by cause: only a conflict asks for
    a manual resolve; a timeout or an unreachable remote waits for the next
    sync. Sync no longer retries older unpushed commits after its own pull
    failed, which repeated the same pull.

  • scribe doctor error rows keep the cause. A long error was cut at
    140 bytes, which dropped its end ("… needs manual resolution"), and
    could split a UTF-8 character. It is now trimmed from the middle.

  • Team KBs: contextualize only adds the retrieval-context block to raw
    articles this machine added (#163).
    Two machines contextualizing the same
    pulled article wrote two different LLM paragraphs, which always conflicted.
    In a team KB a raw article now belongs to the commit author email of the
    commit that added it (author.email / GIT_AUTHOR_EMAIL count), or to
    this machine while it is not committed yet. A teammate's article that is
    still unmarked one to two weeks after it was added is taken over, so
    articles of someone who left are not stranded; each machine waits a
    different fixed extra delay, so they do not all take it over in the same
    run. Solo KBs, KBs without git or
    a commit, and machines without an author email contextualize every article
    as before. --force follows the same rule.

  • NEEDS-ATTENTION.md no longer stops team KB pulls (#173). The
    report describes one machine, but scribe commit stages everything
    outside output/, so it committed the report in every KB whose
    .gitignore does not list it (a git add -A does too). The KB then
    tracks it, and
    two machines that rewrote it between pulls hit a rebase conflict that
    aborted every pull until someone merged by hand. scribe init now
    gitignores it in new KBs; an existing KB needs the line added by hand
    (see the upgrade notes). For KBs that still track it, the pull resolver of the
    merge-driver change (#162) treats it as a derived file: a content
    conflict takes either side. A delete/modify conflict on a derived file
    that the KB's .gitignore lists lets the delete win, during the rebase
    and when --autostash re-applies local edits, so a pull never re-tracks
    a file a teammate untracked; the machine's own copy stays on disk,
    untracked. Only the KB's .gitignore files count, not the per-machine
    .git/info/exclude or core.excludesFile, so every machine resolves
    the conflict the same way. scribe doctor warns (attention-report)
    when the file is tracked in a KB with a remote, and prints the
    git rm --cached fix.

  • One session ccrider lost the messages for no longer keeps
    sync --sessions degraded on every run (#171).
    The remine pass
    reported "max sequence below the mined watermark" each run, so doctor
    showed a FAIL that never cleared. A session with no messages left in
    ccrider is now skipped with one log line and no degraded status, unless
    it was only partly mined (its unread rest is lost) or more than 5
    sessions lose their messages in one run (a ccrider re-import or
    cleanup): those degrade the run once. A real rewrite (messages left, but
    the max sequence is below the watermark) is still degraded, but once per
    session. Every case writes a remine_skip mark on the
    wiki/_sessions_log.json entry so later runs stay silent; the mark is
    cleared when ccrider's messages change, and the sessions-log merge keeps
    it across machines. Each run records the newly marked counts
    (remine_skip_new_no_messages, remine_skip_new_rewritten), and
    scribe sessions stats shows the marked sessions by reason.

  • Team KBs no longer stall on six shared wiki/_ files (#153).
    wiki/_contextualized_log.json, wiki/_contextualized_wiki_log.json
    and wiki/_absorb_log.json union their entries (newer wins per key),
    wiki/_extraction_outcomes.json unions its entries oldest first, and
    wiki/_duplicates.md / wiki/_identity-proposals.md resolve as
    reports rebuilt by the next lint run. Before, two members writing one
    of them between pulls aborted the rebase on every later sync until
    someone merged by hand. A side with trailing garbage is recovered; a
    side that won't parse at all still aborts the rebase for a human merge
    rather than dropping its entries. Contextualize also stops re-stamping
    already-logged articles (raw and wiki), which changed the logs (and
    conflicted) on every run. Each auto-resolved pull conflict now logs one
    line naming the file and whether both sides were merged or one was
    kept. A semantically merged file is replaced atomically, and a path
    that is not a regular file inside the KB (a committed symlink) aborts
    the rebase instead of being written through.

  • scribe drop --rolling-target no longer needs --action append
    (#167).
    The agent handshake blocks tell agents to add
    --rolling-target learnings, but drop rejected it unless --action append was also given, so a drop that followed the instructions was lost.
    --rolling-target now implies --action append when --action is
    omitted, which fixes the handshake blocks users already have without a
    re-init. An explicit --action create or --action update with a rolling
    target is still an error. The templates and DROP_FILES.md now show the
    full form.

  • scribe tier write no longer bumps updated:. Filling in or
    recomputing index_tier is derived metadata, not an edit, but every
    write set updated: to today, so one tier write --missing-only sweep
    made hundreds of untouched articles look freshly edited to hot.md and
    the staleness checks.

  • wiki/_index.md no longer contains broken UTF-8. The index cut each
    article summary at 80 bytes, which could land inside a multi-byte
    character such as an en dash, and left an invalid byte before the "...".
    The cut now backs up to a character boundary. The same fix applies to the
    truncated text in sessions, triage, chapter titles and a relations
    error message.

  • No false "no upstream" alert with push.autoSetupRemote or
    push.default=current
    (follow-up to #164). A bare git push works
    there without an upstream, so unpushed work is now measured against
    origin/<branch> (or every commit no origin ref holds, before the first
    push).

  • Teammates' commits pulled by the push retry are indexed in the same
    run
    (follow-up to #164). A rejected push pulls first; the end-of-run
    retry now reindexes and surfaces subscribed arrivals when that moved
    HEAD, as the pull at the start of sync does.

  • A pull that aborts on a team-file conflict says why (follow-up to
    #154). The error names the reason the semantic merge refused (a side
    that does not parse, a symlink, a failed write or git add) instead of
    only "semantic merge failed". Per-file "merged both sides" lines are now
    logged once the pull's outcome is known, and marked "(rolled back)" when
    a later conflict aborted the rebase.

  • Project extraction on a hosted provider now sees the project.
    In envelope mode, every provider except Ollama loaded
    extract-anthropic.md, the tool-mode prompt written for claude -p. It
    tells the model to Read and Glob files and has no {{FILES_CONTENT}},
    so on Together, Groq or any OpenAI-compatible endpoint the model was
    never shown a file. On the reference KB, all 96 project extractions
    from 2026-10-19 to 2026-11-12 wrote nothing. Envelope extraction now
    always uses the envelope prompt with the gathered files. In a live run
    the same project went from a 1.3k-token prompt and no output to a
    9.3k-token prompt and four articles. Its rolling_memory_append
    example also named the field entry where the executor reads
    content, so every rolling-memory note from extraction was dropped.

  • A drop that updates an existing page now reaches that page. A drop
    with action: append or update names its page by target or
    title. Extraction never showed the model existing pages, and the
    prompt allows append only on a path the model was shown. So the model
    answered with create, the executor refused to overwrite the existing
    file, and the update was lost (3 of 19 drops in one live run).
    Extraction now looks up the drop's page and names it in the drop's
    header, so the model appends to it. A title shared by two pages gets no
    hint, so a drop is never merged into the wrong one.

  • Extraction no longer loses learnings to an empty domain field.
    Hosted models often leave domain off a rolling_memory_append op and
    leave the log_append line empty, and the executor rejected both (4 of
    8 ops in one live run, two of them learnings from a drop). Project
    extraction and scribe deep now fill in the project's own domain and
    fall back to the op's content, or a plain breadcrumb, for the log line.

  • Projects too large for one sync pass no longer block every other
    project.
    The sync.max_extract_files size check ran after the
    --max cap had picked which projects to extract. A project with staged
    drops is always picked, so two large projects with drops took both
    sync --max 2 slots on every run, were then skipped, and no project
    extracted at all (the reference KB ran that way for days). The size
    check now runs first. A project over the limit takes no slot, unless
    it has staged drops: then sync extracts just the drops and leaves
    last_sha where it is, so scribe deep <project> still sees every
    held commit.

  • Drop files are no longer staged again and again, or deleted unread.
    A drop still staged from a failed or deferred extraction was collected
    again on every sync as another suffixed copy: on the reference KB, 467
    unique drops had become 172,031 staged files (about 1 GB), and the
    per-drop duplicate scan made each sync spend two minutes collecting. A
    byte-identical drop is now skipped, checked against one hash pass over
    the staging folder. And when an
    extraction shows the model drop files but writes nothing, those drops
    move to output/drops-unextracted/<project>/ for review instead of
    being deleted (extract_drops_parked in run records).

  • Project and deep extraction no longer fail every run on a bare {}.
    0.6.2 made envelope parsers reject the empty {} reply instead of
    treating it as "nothing to extract". Project extraction and
    scribe deep never got the strict schema and retry that session mining
    got, so a small project with nothing new failed on every sync and
    scribe doctor reported sync as failing. Both now request a strict
    json_schema (meta must hold the log_append op) and retry an
    unusable reply once with a corrective prompt. Run records count
    extract_envelope_corrective_retries and
    deep_envelope_corrective_retries.

  • A mined session is no longer frozen at the moment it was mined
    (#146).
    Sessions are admitted while still open, and envelope mode (and
    the tools-mode large prompt) never showed the model the middle of a long
    transcript, but the session was marked processed and never read again.
    Each processed entry now records through_seq, the ccrider sequence of
    the last message the model was shown. A new remine pass at the end of
    sync --sessions mines what came after it, through the envelope path,
    with a header naming the pages already written from the session so the
    model appends instead of re-creating them. Settings under
    session_mine:: remine (default on), remine_min_new_chars (20000),
    remine_quiet_hours (6), remine_max_per_run (2). Entries written
    before this release carry no through_seq and are never re-mined, so
    an upgrade does not start re-mining old history. The sessions-log git
    merge keeps the higher through_seq of the two sides.

  • The dream consolidates again. On the reference KB, every weekly and
    daily dream since at least 2026-10-26 applied only its log line. It saw
    the 40 newest articles, which by construction are never stale, plus
    contradiction pairs from elsewhere in the KB, as metadata only, so it
    never had grounds to act. Each run now gets up to 4 focus pairs (2 for
    --hot), with bounded body excerpts. Go picks them from near-duplicate
    bodies (the lint --duplicates detector), then from same-type articles
    sharing two or more specific tags. Pairs reviewed in the last 60 days
    are skipped (output/dream-focus-reviewed.json). The model may mark one
    side of a duplicate pair status: superseded; Go enforces that and adds
    the related link to the kept article, keeping existing links. It may
    also append a conflict note to an overlapping pair. It no longer rewrites
    bodies it never saw. New run-record fields dream_focus_pairs,
    dream_content_actions and dream_superseded show whether a run changed
    anything. envelope_actions_applied read 1 on every no-op run.
    Any dream update_frontmatter that sets related is merged with the
    article's existing links; it can add links but never drop them.

  • Re-absorbing a source no longer drops the page's related links.
    Pass-2 absorb regenerates a page from its source and overwrote it whole,
    keeping only created. Every link added since, by other writers or by
    hand, was lost: about 3,500 links to live articles on the reference KB
    between May and November. The overwrite now keeps the existing links,
    then adds the new page's links that aren't already there. Links to pages
    that no longer exist are still cleaned up by link --fix-broken. A
    regenerated page can no longer remove a link just by leaving it out.

  • Re-absorbing a source keeps the page's title, owned fields and lost
    sections.
    Overwriting a page now also:

    • keeps its title, so [[links]] to it keep resolving (even a
      separator-only retitle broke them). The new title becomes an alias.
    • restores status, contributor, index_tier and authority when the
      new page omits them, so a dream supersede survives re-absorb.
    • can re-add ## sections the new page dropped and doesn't cover
      elsewhere (under half of the section's word trigrams found in the new
      body). This is absorb.carry_sections, and it defaults to report:
      it logs "would carry" and writes nothing. Set it to on to write them.
      Carried sections are marked <!-- scribe:carried DATE --> and placed
      before a trailing Sources / See Also block, with at most 8 KB of new
      and 8 KB of earlier carries per overwrite. Rolling pages are exempt,
      since compaction archives their old entries on purpose.

    Replayed against the reference KB's 178 shrinking rewrites, section
    carry would have restored 502 sections on 122 pages. In a hand-classified
    sample of 20 of them, 10 were real losses, 4 were already covered under
    another heading, 2 were stale (the new page corrected them) and 4 were
    unclear. That's why it's opt-in. These guards cover the JSON pass-2 and
    single-pass paths. Tools-mode pass-2 (claude -p writing files itself)
    doesn't go through them.


Full commit list

Changelog

  • 344de07 ci(goreleaser): drop scoped chore/docs/test commits from release notes
  • 3f79c62 feat(claude): pass integration_tokens.claude to claude -p; name the failure reason (#151)
  • 3aef8da feat(eval): scribe eval retrieval — benchmark whether KB search finds the right article
  • 6204aff feat(gitmerge): scribe merge driver and resolver for team KB conflicts (#162)
  • eb4349c feat(gitops): add Scribe-Version commit trailer and doctor team-versions (#166)
  • 6fe7775 feat(sessions): backfill-watermarks for entries mined before watermarks (#148)
  • 68e09cb feat(sessions): list session IDs per remine_skip reason in stats (follow-up to #172)
  • e2a86cd feat(sync): alert when KB commits stay unpushed for 6h (#164)
  • 77c05e9 feat(templates): KB query before the first edit; neutral owner wording (#152)
  • 878bab3 fix(absorb): carry old related links even when the new list has duplicates
  • fa248ef fix(absorb): keep a page's related links when pass-2 overwrites it
  • 8a48bc3 fix(absorb): keep title, owned fields and dropped sections on overwrite
  • db9f345 fix(absorb): make section carry opt-in (report by default); review fixes
  • 5cf1f5c fix(absorb): normalize carry_sections and warn on unknown values; dry-run wording for related
  • 9719480 fix(commit): stage nothing while a rebase or merge is unfinished
  • 54bb2bf fix(commit,dream): log why a push failed
  • bbaedaa fix(contextualize): only contextualize raw articles this machine added (#163)
  • e4cc02e fix(doctor,sessions): keep the cause in error rows; sanitize sessions stats
  • 79f0e7c fix(dream): drop a bare updated bump on a focus-pair article
  • a601634 fix(dream): give the dream focus pairs with bodies, not newest-40 metadata
  • 6687455 fix(dream): merge related on every update_frontmatter, never replace it
  • 0235d17 fix(drop): let --rolling-target imply --action append (#168)
  • 1daea4d fix(eval): parse qmd bench's table, since qmd 2.1.0 ignores --json
  • 868710e fix(extract): fill the project's domain and a log line where the model left them empty
  • 071abc2 fix(extract): give hosted providers the envelope prompt; stop drop re-staging and silent drop loss
  • 7a44fae fix(extract): strict schema and one corrective retry for project and deep extraction
  • 6b0b367 fix(extract): tell the model which existing page an append/update drop merges into
  • 8bd8d34 fix(frontmatter): write midnight-UTC dates back as dates, not timestamps
  • aca055f fix(git): redact remote credentials in git output; name git's real reason
  • 2658df9 fix(gitmerge): merge six shared wiki/_ files across team machines; log each resolution (#154)
  • 2326fa2 fix(gitmerge): say why a semantic merge refused; log resolutions after the outcome (follow-up to #154)
  • b34c382 fix(gitops): keep per-machine NEEDS-ATTENTION.md from stopping team pulls (#174)
  • f13fdc6 fix(index): never split a multi-byte rune when truncating summaries
  • e21d84b fix(security): harden fetch, inbox, paths and CI from an Aikido SAST triage
  • 31e8ace fix(sessions): re-mine sessions that grew after they were mined (#147)
  • d91bfbc fix(sessions): report a session with no ccrider messages once, not every run (#172)
  • d4ef24f fix(sync): bound git pull too, keep team KBs alerting (follow-up to #164)
  • bea741d fix(sync): keep Ctrl-C reaching git; handle signals in scheduled runs (follow-up to #164)
  • 87c68b7 fix(sync): keep offline KBs local and bound git push (follow-up to #164)
  • 8cdb155 fix(sync): leave inherited-ignored signals alone; settle the signal watcher (follow-up to #164)
  • 4c578e0 fix(sync): pause while the user finishes a rebase; add team .gitattributes
  • 255e11c fix(sync): size-gate projects before the --max cap; extract drops of held projects
  • 40e39be fix(sync,git): release-review follow-ups
  • 97b85af fix(tier): tier write no longer bumps updated: