Skip to content

Nought Suite Sync Documentation

Move the change.
Keep the live data.

Nought Sync is a WordPress plugin for pairwise, baseline-driven selective deployment between local, staging and production. It moves typed resources in a signed, chunked package, preflights against the target, applies under a lock, runs health checks and can roll back the changeset.

  • Version 1.0.0
  • Status Release candidate
  • WordPress 6.5+
  • PHP 8.2+
  • HTTPS pairing

Start here

What Sync actually is

Sync is not a whole-site clone and not a database dump. Each installation is one environment of a project. Two environments pair, establish a baseline, and then exchange only the typed changes selected by an operator.

It does

Pair environments, compare manifests, build changesets, transfer packages, preflight conflicts, apply selected operations, verify hashes, run health checks, roll back a changeset and advance the pair baseline.

It does not

Copy the whole database, sync menus, users, comments, orders, payment data or form entries, provide Git/SSH/rsync deployment, act as a backup product, or offer a team approval workflow.

Current status

A 1.0.0 release-candidate build exists in the workspace and the PHPUnit suite passes. There is no tagged public release or configured Freemius checkout in this repository.

Pairing model

Production is the hub. Staging can issue join codes for Local environments. Environments authenticate each other with HMAC-signed REST requests.

Before installing

Requirements and installation

RequirementDetail
WordPress6.5 or later.
PHP8.2 or later.
PHP extensionsZipArchive and OpenSSL are used by the transfer/package path.
ComposerThe plugin expects vendor/autoload.php; use a release ZIP or run composer install.
NetworkHTTPS between paired environments. Optional HTTP basic auth is supported per link.
MultisiteSingle-site or network-activated; the network is treated as one environment.

Install the plugin on every environment that will participate. On production, run the setup and type PRODUCTION to confirm the environment role. Then copy a join code to staging or local and join the environment.

Environment identity

Identity and classification

Sync classifies an environment as Local, Staging or Production from NDX_SYNC_ENVIRONMENT or WordPress’s WP_ENVIRONMENT_TYPE. Project and environment IDs can be pinned to prevent two copies of a database claiming the same identity.

define('NDX_SYNC_ENVIRONMENT', 'staging');
define('NDX_SYNC_PROJECT_ID', 'client-project');
define('NDX_SYNC_ENVIRONMENT_ID', 'staging-01');

A clone guard splits identity when a copied production database boots in a non-production environment. Environment classification controls the production confirmation and the production-only capabilities.

Connecting sites

Pairing and join codes

  1. Open NDXSync → Environments on the production hub.
  2. Create an invite or issue a join code for staging/local.
  3. Open the same screen on the other environment and join.
  4. Test the connection and add HTTP basic auth if the host requires it.
  5. Confirm the site map on multisite, then revoke the invite or code when it is no longer needed.

Join codes are one-time, time-limited and require an HTTPS hub. Pairing tokens are random and stored hashed. The production hub is the trust anchor; staging can issue local codes after it is paired.

Comparison

Baselines and the Changes screen

Sync compares against a pairwise baseline, not just “local versus remote”. The Changes screen groups differences into theme, plugins, core, ACF, database, pages, sites and other resources.

  • A baseline must exist before Send is available.
  • The first baseline is created with Start tracking with ….
  • Changes are calculated as baseline → current for the source and compared with the target manifest.
  • The same baseline is advanced only after a verified successful apply.

What can move

Resource coverage

ResourceStatus
Plugin and theme filesSupported.
Posts and pagesSupported.
ACF field groups and fieldsSupported with ACF hydration.
Plugin/theme active stateSupported.
Gravity Forms definitionsSupported; entries are protected.
WooCommerce products and variationsSupported; orders and payments are protected.
Elementor library templatesSupported.
Mapped custom table rowsSupported with a stable unique key; auto-increment-only keys are refused.
OptionsA small allowlist of 11 site options. Broad plugin settings are not covered.
MenusNot implemented.
Users, comments, orders, form entriesProtected, not deployable.
Core updatesBlocked by preflight.
Do not sell “all plugin settings”

The current option coverage is deliberately narrow. Check the resource list before promising a specific plugin’s configuration will move.

Protection

Live-data policy

Every resource class has a policy: protected, ignored, deployable, adapter-managed, user-selected or unsupported. Users, comments, sessions, transients, logs, queues, Action Scheduler tables, Woo orders/payments, Gravity Forms entries and secrets-like options are protected by default.

An expert can override policy per resource with an actor and reason in Settings. The override is auditable but can relax a protection. Keep production-only data out of changesets unless you understand the consequence.

Packaging

Changesets and `.ndx` packages

A changeset is built from the source diff. The package is a .ndx ZIP with format.json, manifest.json, operations.json, checksums.json and payloads/. Empty changesets are refused.

LimitValue
Operations per changeset5,000
Payload50 MiB
Transfer100 MiB
Chunk size1 MiB default
Transfer TTL24 hours
Path length4,096 characters
Baseline resources200,000
HMAC skew300 seconds

Transport

Transfer protocol

Packages move over the ndx-sync/v1 REST namespace in HMAC-authenticated chunks. The signature covers method, path, timestamp, nonce, environment ID and the body SHA-256. Chunks are resumable and verified on completion.

Push is initiated from Changes. Pull exists as target-initiated pending pickup and refresh; there is no Dashboard “Pull” button in the current UI. The hourly pickup job is the practical pull path.

Before writing

Preflight and conflicts

Apply requires a three-way comparison of baseline, source and target. Preflight returns PASS, WARN or BLOCKED and lists identity, baseline, conflict, dependency and environment issues.

  • Independent target edits become conflicts rather than silent overwrites.
  • Each conflict can be resolved as use_incoming, keep_live or skip.
  • The reviewed live hash must still match at apply time.
  • Dependency omissions are rejected so a changeset cannot leave a broken resource graph.
  • Wrong target, wrong project, missing ACF adapter, insufficient disk, unwritable paths, unmapped multisite sites and core updates block preflight.

The deployment

Apply, health and rollback

Apply is synchronous. It acquires a deployment lock, captures a changeset-scoped rollback snapshot, runs pre-health checks, applies each operation with expected-target hash checks, verifies post-operation hashes, runs post-health checks and either advances the baseline or rolls back.

  • New critical health regressions trigger an automatic rollback.
  • Rollback data is stored privately and retained for the configured window; it is not a full site backup.
  • History records preflight verdict, conflicts, health before/after, rollback state and baseline acknowledgement.
  • If a process is interrupted, the deployment is marked interrupted, never completed.
  • The baseline acknowledgement is idempotent and retried hourly if the source cannot be reached.
Long synchronous applies have a recovery race

Interrupted-job recovery currently treats any deployment in APPLYING state as stale on admin bootstrap. A concurrent admin request during a long apply can mark it interrupted. Avoid unrelated wp-admin traffic during a production apply.

Using it

Admin screens and settings

ScreenPurpose
DashboardThis environment, links, last seen and shortcuts. Read-only.
Changes to syncChoose a pair, compare, start tracking and send selected changes.
EnvironmentsInvites, join codes, connection tests, HTTP auth, site map and revocation.
Review incomingList packages, run preflight, resolve conflicts, apply or reject.
HistoryRead-only deployment record.
SettingsRetention, smoke URLs, debug logging, policy overrides, custom tables and diagnostics.
EnvironmentIdentity, role and wp-config pins.

Settings include journal retention (90 days default), up to 20 same-host smoke URLs, debug logging, uninstall wipe, per-resource policy overrides and custom table maps. A redacted diagnostic ZIP can be downloaded.

Network

Multisite

A multisite network is treated as one environment. Portable site IDs and a site catalogue let Sync map sites between networks; unmapped sites block preflight. Network activation grants capabilities network-wide, and production apply requires a network administrator.

Trust

Security, hooks and limits

  • Capabilities: manage_ndx_sync for pairing, baselines, settings and production apply; propose_ndx_sync for Changes and Incoming review.
  • Every admin POST uses a per-action nonce. REST handlers enforce HMAC internally; permission_callback is true on all routes.
  • Filesystem writes are confined to plugin/theme roots with traversal and absolute-path rejection.
  • Package checksums detect transit/storage corruption but are not cryptographic signatures.
  • There is no rate limiting or IP allowlist at the REST layer.
  • Private storage must be denied by the web server. Nginx/LiteSpeed need an explicit rule.
  • No WP-CLI commands, shortcodes or blocks. Actions include ndx_sync_after_deployment; filters include ndx_sync_log and ndx_sync_debug_logging.
SymptomWhat to check
Send is unavailableNo pairwise baseline. Use Changes → Start tracking.
Nothing happens on DashboardSend is on Changes; review/apply is on Incoming. The Dashboard is read-only.
Production apply disabledCheck capability, network-admin rights and the production confirmation checkbox.
Apply blocked with unresolved conflictsResolve every conflict and re-run preflight. Live hashes must still match.
Package is not bound to this targetPackage target environment ID or active link does not match this environment.
Custom table key rejectedUse a stable unique key; auto-increment-only keys are refused.
Vendor autoloader missingInstall the release ZIP or run Composer.

Documentation for Sync 1.0.0, checked against the product source. Where this page and the installed product disagree, the installed product is authoritative.

What are we
building next?

Tell us about it