Skip to content
CodeBook

Linked products — MadeBook, OpenBook and EvalBook

Link a workspace to MadeBook, OpenBook and EvalBook, run work under MadeBook governance, receive stories and epics from OpenBook and report back, gate a station on an EvalBook suite, and verify a linked story from plan through pull request evidence.

OpenBook plans work. CodeBook runs it and owns development knowledge and execution evidence, including repository guidance, test procedures and verified lessons. MadeBook owns policies, required approvals, security and compliance. EvalBook measures how agents and changes perform. Bookbag SSO manages identity, files and billing.

Open Connected apps from the workspace menu. Choose the product, link the destination and open What's shared to enable the flows you need. CodeBook can run a factory without linking these products. Links and each enabled flow are subject to their own permissions.

Development knowledge during the transition

CodeBook currently keeps story evidence, scoped work context and private manager notes. The earlier overlap moved shared repository knowledge, scoped-memory screens and the System Map out of CodeBook. Some workspaces still use those existing MadeBook surfaces or receive guidance through an enabled connection. The planned handover brings development-knowledge ownership and its versioned records into CodeBook while preserving policy decisions and evidence in MadeBook. The handover is tracked in CodeBook work order WO-23, stories #183–190. Keep recording task evidence on its story and repository instructions in the checkout during the transition. See memory and shared context.

A link records that a workspace here and a workspace there are the same work. Both products store it. A link is recorded when a workspace is created in a sibling product, or when an administrator links two existing workspaces from either side. Linking and unlinking need a workspace or organization administrator; the peer reads that person's role live from Bookbag SSO, never from what the calling product claims.

Every call between the products carries the shared peer secret and names the calling product. Callbacks and link events also carry an HMAC signature over the raw body, and each carries an idempotency key so a repeated delivery is acted on once. A refusal is always a non-2xx answer, so the sender retries rather than assuming success.

Unlinking from either side ends the link and revokes anything issued for it, including the credential a governed factory was using. A callback that arrives for a link that has ended is acknowledged and ignored.

Governed runs under MadeBook

When Send runs to MadeBook for supervision is enabled for a link, a governed native AI worker job becomes a MadeBook session. CodeBook registers the job with MadeBook using the job ID, so a retry or resumed job uses the same session. With the brief flow enabled, workers receive the linked guidance their run is allowed to use. Reports carry a report ID, and the worker must submit implementation-complete before the card may reach Done.

The credential CodeBook uses is requested from MadeBook for the linked workspace, stored encrypted, and requested again once if MadeBook answers 401. MadeBook must have approved codebook as a client for the organization; it is never approved automatically.

Every MadeBook reply carries a next_action, and CodeBook obeys it:

  • Continue (with or without a warning) carries on.
  • Remediate fixes what MadeBook names.
  • Decision required parks the job until a person decides in MadeBook and the decision.resolved callback arrives.
  • Blocked and hard stop stop the job where it is.

Pausing and resuming a session in MadeBook arrive by callback and pause or resume the job. If MadeBook cannot be reached, the job waits as awaiting MadeBook, the card says why, the scheduler retries, and the card offers Retry now. A governed run never runs ungoverned because MadeBook did not answer.

In a linked workspace with supervision on, CodeBook registers its own worker runs and governed crew runs as MadeBook sessions. A supervisor attending a governed card has its own supervised session. With a MadeBook that supports it, a governed run's progress can be saved and resumed under MadeBook's receipt, and a station worked by an outside runtime is registered and its result checked before MadeBook is told; see saved progress and outside runtimes.

Beyond starting and stopping, CodeBook enforces MadeBook's answers at the moment it acts: it asks before every model a governed run uses, tells MadeBook when a session ends for any reason, reports its own contract and evaluator results as evidence, sends its governance events to MadeBook's audit trail and keeps run bodies only as long as the organization's retention settings allow. See the governance handoff.

Stories from OpenBook

OpenBook sends a story to a factory, and CodeBook makes one card for it in the workflow chosen under Linked products. A story can name a workflow by ID or by name. A resend of the same revision is answered as a duplicate, an older revision as stale, a newer revision updates the card, and a story whose card has been closed is reported as closed.

Epics from OpenBook

An epic is bigger than a card. OpenBook sends one to a factory, which it names by the factory's numeric id; an epic is not sent to a single workflow. CodeBook makes the epic a work order in that factory. The work order gets the epic's title, and a goal made of the epic's description, its acceptance criteria and any stories a person already wrote under it. The planner is told not to propose those stories again. It runs at once and proposes the missing stories, choosing each one's workflow in the factory. CodeBook reports the plan back (epic.planned): each proposed story with its description, risk and category, plus the plan's summary, what is out of scope, and why the planner stopped if it did.

Nothing is built yet. The stories stay proposals until a person approves them in OpenBook. The approval names the exact stories the person saw, and CodeBook turns those into cards in their stations, the same way approving a work order's plan in CodeBook does. Stories still waiting on a dependency stay proposed and are listed as waiting. A resend of the same epic revision finds the same work order. A newer revision rewrites the goal without planning again, and the work order stays in the factory where it was first planned.

An epic's text is data. It becomes the work order's goal, which the planner reads as the task, never as instructions.

In OpenBook this happens on the workspace's Epics page (/space/<id>/epics), which is linked from its Workspace settings › Linked products. There a person sends an epic card to the factory, reviews the plan the planner proposed, approves some or all of the stories, follows the epic's status and each message's delivery, and sends a new revision after changing the epic. CodeBook has no list of factories for OpenBook to show, so the person types the factory's numeric id.

Two limits apply today. CodeBook reports only the plan (epic.planned). OpenBook learns which cards an approval made from CodeBook's answer to the approval, but no per-story progress or evidence goes back for an epic's cards. To follow them, look at the work order in CodeBook. The message contract is in the shared peer protocol, under Epics (OpenBook → CodeBook).

EvalBook

An administrator links an EvalBook project in Connected apps. Open What's shared on that link and review the flows individually. Trace export, outcome sharing and planning feedback have separate switches. Check the applicable switch if a project is linked and still waiting for data.

A station can require an EvalBook suite. Enable Ask EvalBook to judge a station's gate, then select the linked project and a suite in the station’s evaluators. You can pin the suite version and set a cost limit. CodeBook sends EvalBook the exact pull request candidate, including the head and base commits, repository and artifact digest. CodeBook verifies the report's identity, digest and complete evidence for that candidate and suite version. A failed, expired, incomplete or inconclusive report blocks a required gate and shows the reason. Advisory suites are recorded without deciding a gate. The card’s evidence and run trail show the report and its linked EvalBook result.

One authoritative gate per criterion. An agent evaluator and an EvalBook suite may both say what they measure (a short criterion key). A station whose required evaluators include both on the same criterion cannot be saved until a workspace administrator records a cutover saying which one decides; the other then runs as a shadow — recorded and measured, never deciding. Editing the station otherwise needs only write access; changing the cutover is the administrator's act.

Runs can be exported as traces. Enable Send each finished run to EvalBook as a trace. CodeBook sends a signed batch of spans for each subsequent finished run and retries using the same delivery identity. Run bodies are subject to the link setting and workspace retention. Check delivery in Connected apps if receipts are missing. Export runs independently of station completion.

Execution evidence and accounting stay with their sources. Keep the exact commit, test receipts and acceptance decisions on the CodeBook story. EvalBook measures the run and outcome metadata shared through the enabled flows. Check the link's body-sharing and retention settings separately before relying on a trace for run content. For a local run, CodeBook records reported token usage as own plan and does not charge for those tokens. Gross usage includes cached input. Use the provider's billing record for its actual charges. Local budgets and QA receipts

Improvement proposals can arrive as cards. The EvalBook side can enable the flow that sends its improvement proposals as stories. Each proposal describes the problem, its evidence and a bounded change. CodeBook creates a card on the selected workflow, applies the supplied run limits and protected paths, and reports progress as the card moves.

Work outcomes can be shared. Enable Tell EvalBook what became of finished work: merged, reverted, deployed. CodeBook sends recorded work events through its signed delivery queue. EvalBook reads those events as measurements and distinguishes story completion from acceptance and deployment. Use the linked project to see its received events and metrics.

Planning can learn from what EvalBook measured. With Ask EvalBook what became of earlier work when planning a work order on under Connected apps → What's shared (off at first), the factory planner also sees EvalBook's measurements of the earlier work orders it is shown: how many of their stories were accepted, reverted, rolled back or caused a production issue, and how their suites judged them. See learn from earlier work.

Every call between CodeBook and EvalBook is signed over its raw bytes and keyed so a retry is acted on once; every event names the link it travels on; a message for a link that has ended is acknowledged and ignored. The message contract is EvalBook's peer protocol, with CodeBook's readings recorded in its own peer protocol document.

Reports to OpenBook

CodeBook keeps an outbox of what it owes a peer:

  • story.accepted when a story becomes a card.
  • story.status_changed on every card move, block and resume.
  • story.evidence when a pull request is attached to the card, and when MadeBook's compliance verdict on that pull request changes.
  • epic.planned when an epic from OpenBook has been planned: the stories the planner proposed, for a person to approve.
  • link.unlinked when a link ends here.

Each message is signed, keyed for idempotency and retried with backoff. After the last attempt it is marked failed, never dropped, and shown under Linked products and on the card so a person can send it again.

What the card shows

A card that came from a story, or that is running under MadeBook, has a MadeBook and OpenBook panel: the story and what OpenBook sees, the governed session with a link into MadeBook, the decisions made, any hold, and the compliance verdict once one has arrived.

Configuration

Nothing is configured on CodeBook's server or in the workspace. CodeBook reads the peer directory from Bookbag SSO's app registry with its own app token: the sibling products with their names and API bases, CodeBook's own public API base, and the shared peer secret. Each product is registered once, under Platform admin → Apps at SSO, and an address that is wrong is fixed there.

CodeBook keeps the answer for a minute, refreshes it in the background and keeps the last good answer through an SSO outage; before its first answer it has no peers. When the secret is rotated at SSO, the previous one is still accepted for one hour so a sibling is not cut off mid-delivery; only the current one signs. A product switched off at SSO is an answer, not an outage: its peers disappear until it is switched on again.

A callback address is accepted only under the peer's API base from the directory, and CodeBook tells MadeBook to call it back under its own. PEER_SECRET, PEER_<APP>_URL and CODEBOOK_PUBLIC_API_URL still exist as local-development overrides; when one is set it wins and CodeBook logs that it is in effect. Production sets none.

Verify a linked story

Choose a test repository and a workspace where you can see all linked products. The steps below create a card, a governed run and a draft pull request.

  1. Connect the same repository in MadeBook and to the CodeBook workflow. Enable Open draft pull requests on the station doing the work. In MadeBook, enable compliance in monitor mode.
  2. Send a small story from OpenBook. Confirm that CodeBook creates a card for the correct revision in the intended workflow. Move it to the writing station and open its MadeBook session. For a requested decision, answer in MadeBook and check that CodeBook resumes the same session.
  3. On the draft PR, open the GitHub check named madebook/compliance and compare its head commit and verdict with the pull request in MadeBook and the MadeBook panel on the CodeBook card.
  4. Open the original story in OpenBook and verify its PR link and evidence. If one product is missing an update, check Workspace settings → Linked products in the sending product for a pending delivery or last error. Repair the link or configuration and retry the delivery there.

For incident rules, confirm the governed run’s report includes the approved rule, service-owner reference and result for the same candidate commit. Use the linked EvalBook project to inspect its own station evaluation. Governance handoff · Incident checks