Skip to content
CodeBook

Test factory, versions and rollback

Check routing and configuration before execution, compare definitions and restore a previous version.

Test factory walks the configured paths with scripted outcomes. It checks routing, failure paths, escalation, permissions, token controls and contracts without asking a model to do the work.

What a simulation proves

Use its readiness findings to locate disconnected paths, unsafe loops and missing configuration. A simulation is useful before an installation, reviewed change, blueprint update or environment promotion.

It does not prove that a repository credential works, that a tool response is correct, or that an agent can complete your real task. Follow it with a small real card and inspect the outputs and run trail.

Test the station’s configured handoffs and failure routes. The old impact-level simulation belonged to the retired System Map. See the historical risk-routing guide.

Versions

Factory versions record definitions, not a backup of all operational data. Compare versions to see the changes in sentences. Runs record the factory version they used, allowing outcomes to be compared across definitions.

A reviewed publication, blueprint update or promotion creates a version. Direct definition changes are also captured by the versioning service.

Gate counting is included: the rule, minimum passes when applicable, and pass/fail wording. Compare and inspect versions to see those settings. New versions record defaults explicitly. Older snapshots that did not record counting show unknown history; matching covered values do not make that history complete.

The factory's and each station's model policy are included too. A version shows Factory model: … and each station's Model: …, and Compare lists a policy change. Saving or removing a policy creates a new version. Versions recorded before model policies were captured show a historical-coverage warning instead of a model. A worker's own policy is captured as a shared-resource dependency; restoring a factory does not rewrite that worker's policy.

Shared resource dependencies

New definitions record immutable identities and hashes for configured shared workers, instruction releases and skills, worker model/tool policies, crews, tool connections and outside runtimes. Shared resource dependencies shows the recorded components and whether their current destination matches.

An import requires you to choose matching, accessible destination resources. Review and publication check them again. A file cannot grant access, install credentials, silently pick another version or overwrite a shared worker. Configure the resource through its own controls first, then preview the factory change again.

Historical definitions that did not capture dependencies keep their original hashes and show unknown coverage. An older released instruction version with missing skill provenance may need a newly recorded Studio version before a new dependency-bound change can be applied; its history is not invented. Coverage does not include manager/planner configuration, workflow-scoped knowledge, repository permissions, environment variables or actual tool results. This is a definition audit, not a frozen execution environment.

Station-pack receipts

A version also records which station packs were installed where: for each, the pack, its version number, a hash of that version's contents and a hash of the station's or factory's settings as they are. An exported file carries the same, without this factory's installation records or any people.

When you import a file or restore a version, each recorded pack must already be installed here, at the same version; Station-pack origin in the dependency check shows matched, changed or not installed for each. A file never installs or removes a pack. Install the pack through the marketplace first, or remove the requirement from the file. Settings may still differ from the pack through local changes; those are compared separately.

Time travel on the factory map shows the receipts of the version at that moment. Versions recorded before receipts were kept say their pack origin is unknown; today's installations are never filled in for them.

Rollback

Choose a previous version in the factory’s Versions controls and inspect the comparison before restoring it. Rollback restores supported definition settings while preserving cards and run history. It does not reverse external effects such as a pull request, a tool call or an already-sent webhook.

Restoring an old snapshot with unknown gate counting preserves the current settings on surviving gates; a newly created gate uses defaults. The result warns that this is not an exact historical restoration. A reviewed rollback freezes those preserved settings in its draft for the reviewer. Model policies follow the same rule: restoring a version with unknown model history keeps the current policy on surviving scopes and lets new stations inherit.

If the version names a model your organization no longer has, the rollback does not choose another one. That factory or station is left without a policy of its own, so its runs inherit the wider choice, and the rollback outcome lists the missing model and is not reported as exact.

A dependency-bound restore is refused when a required shared resource is missing or changed. Restore that resource through its own approved controls first; the factory restore does not recreate it.

After restoring, test the definition and check affected stations before restarting work. See policies and operations for pausing and reviewing runs.

Work snapshots

Earlier CodeBook releases recorded the repository map versions and knowledge-source hashes available when work began. Those historical snapshots described what a worker could access. They did not preserve every source’s text.

Current Versions records the factory definition. For work on a particular change, open its story and inspect the run trail, linked pull request, artifacts and proof results at the tested commit. The former workspace System Map link opens the MadeBook card under Connected apps. Development knowledge during the transition