Building / Governed Publishing System

Build 01 / Governed workflows

When is a publication actually complete?

Governed Publishing System

  • A page is released only on explicit editorial approval, clearance and its scheduled time.
  • Success is written back only after the live site is confirmed at the expected revision.
  • Retries start from observed state, so completed work is not repeated.

About 14 minutes to read · Go to the recorded release

Domain
Editorial operations
Maturity
Implemented; recorded use on this site; automated integration tests
My role
Requirements, approval boundaries, acceptance; AI-assisted implementation
Runtime AI
None in the publication path
Evidence
Recorded release, 5 Nov 2026; code and tests at the corrected release revision
Evidence date
4 Dec 2026
01 / Problem

Writing is not publishing.

The difficulty is not producing a page. It is keeping an approval meaningful while content moves between tools and becomes public.

I wanted to move beyond maintaining individual documents and website pages to a system that could preserve editorial intent as content moved across different tools. My writing is drafted and approved in one place, an editorial workspace with a source tracker, and published in another, a static site built from a version-controlled repository. Between them sit file conversion, quality checks, deployment and status reporting. If those are treated as one action, a change can succeed technically while the intended publication is incomplete, or the tracker can say "published" about something that is not yet live.

Operating requirementsOwner attestation
RequirementWhat success means
Explicit authorityNothing is published without website approval, author review and public-safe clearance, recorded in the editorial workspace.
Preserve approved contentWhat is released is the approved version, not whatever the source looks like at run time.
Truthful completion"Published" is written back only after the live site is confirmed.
Governed recoveryFailures are resolved by a governed retry, not by manual publication or bypass; a retry does not duplicate completed work.
Why not a conventional flow?Analytical comparison
File or pull-request flow

Move and deploy

Establishes that a change was merged, built and deployed. It does not by itself bind the release to an approval held in a separate workspace, or write a confirmed result back to it.

State-oriented flow

Complete a governed release

Resolve one authorised intent, validate it, apply a bounded change, confirm the live state, then reconcile the source record.

This is an analytical comparison, not a record of alternatives evaluated at the time. Scale is modest: at the revision inspected on 4 December 2026, the publication registry held 28 records, 25 published and 3 withdrawn.

02 / How it was built

Requirements were mine; implementation was AI-assisted.

Two different uses of AI are easy to conflate: how a system was built, and what runs inside it.

I defined the operating requirements, approval boundaries and acceptance conditions, and used AI-assisted engineering to translate them into specifications, implementation and tests. My involvement focused on shaping system behaviour, challenging design choices and evaluating whether the resulting system worked as intended.

During development

AI-assisted engineering

Specifications, implementation and automated tests were produced with AI assistance against requirements and acceptance conditions I set and reviewed.

At runtime

Deterministic publisher

Eligibility, quality gates, production confirmation, writeback and recovery are explicit code and a versioned contract. No model decides whether something is published.

Evidence note, 4 Dec 2026. The runtime statement rests on the publisher code inspected at the corrected release revision. AI may assist upstream in drafting editorial content, which still requires explicit human approval before it can be released.

03 / Behaviour

Turn editorial intent into a contract.

Separate what is requested, what has been authorised and what the system has established. The right-hand column traces the 5 November release through each rule.

Behaviour contractImplementation · inspected
ConcernSystem behaviourTraced: 5 Nov
IdentityA stable output identity is resolved independently of spreadsheet row position. A duplicate identity blocks execution.Resolved as the selected publication.
AuthorityPublication requires explicit website approval; content actions require author review and public-safe clearance.Approved; review and clearance recorded.
EligibilityApproval does not bypass a scheduled release time; the publisher evaluates eligibility independently.Eligible from 10:00 IST.
Source consistencyThe approved snapshot and source package are rechecked before mutation and before success is reported.Approved package retained in the retry.
CompletionProduction is confirmed at the expected revision, with relevant integrity checks, before success is written back.Governed confirm-then-write path; success at 12:31:54.
RecoveryAfter readiness is re-asserted, the next operation is derived from repository, production and tracker state; no duplicate content commit.Retry took the full-action path (nothing had been committed).

Not a complete specification. The implementation has further action-specific, schema, metadata and asset checks.

04 / System

Authority, execution and evidence are separate.

The publisher is a bounded executor, not an editor. It reads authority, it does not create it, and it writes back only what it has confirmed.

System mapImplementation · simplified
Build time, not runtime. Author sets requirements, approval boundaries and acceptance conditions; AI-assisted engineering produces specifications, publisher code and tests against them.
Human authority
Deterministic publisher
State and public surface
AuthorApproves, reviews, clears, schedules. Approve, Hold or Reject.
Source trackerAuthor-owned approval fields; publisher-owned result fields: status, version, confirmed time, URL, result
1 · Eligibility and source validationAuthority, schedule, identity, snapshot, package
Approved source packageContent and assets as approved
2 · Candidate build and quality gatesTests, browser quality, Lighthouse on a temporary build
Temporary candidate buildDiscarded; never the live site
3 · Versioned commitContent, PDF and registry change together
Repository and registryVersioned content and publication state
4 · Production confirmationExpected revision and relevant integrity, polled with a timeout
Public siteDeployed revision
5 · WritebackOnly after confirmation. Publish and Update write all five result fields; Archive and Withdraw write status, confirmed time and result
Source trackerResult fields updated
Recovery loop. On a retry, the publisher first re-asserts retry readiness, then reads repository, production and tracker state and chooses one of: full action, confirm deployment, writeback only, or no operation. It never makes a duplicate content commit.
Serialisation. Publisher workflows share one CI concurrency group, with cancellation of active runs disabled, so active publisher runs do not overlap or cancel each other. This is workflow-level serialisation, not a distributed lock: it does not stop someone editing the tracker or repository by other means.
Text equivalent of the system map
  1. At build time, the author sets requirements, approval boundaries and acceptance conditions; AI-assisted engineering produces the publisher's specifications, code and tests.
  2. At runtime, the author records approval, review, clearance and schedule in the source tracker.
  3. The publisher validates eligibility and the approved source package.
  4. It builds a temporary candidate and runs quality gates.
  5. It commits content, PDF and registry together to the repository.
  6. It confirms the public site at the expected revision, with a timeout.
  7. Only then does it write the result back to the tracker.
  8. On retry, it re-asserts readiness, then reads repository, production and tracker state to choose the next operation.
  9. Publisher runs share one concurrency group and queue rather than overlap.
Lifecycle of a publication intentImplementation · simplified
  1. RequestedNot authorised: no approval, review or clearance
  2. AuthorisedWaiting: schedule not reached
  3. EligibleBlocked: duplicate identity · Re-resolve: basis changed
  4. GatedHeld at quality gate: no commit
  5. CommittedUnconfirmed: confirmation timed out, no success written
  6. ConfirmedIncomplete reconciliation: result not yet written
  7. ReconciledComplete: no further action

Teal: states in order. Terracotta: the condition that stops progress at that state, and the response it requires.

Failure and recovery pathsImplementation and test evidence
FailureSystem responseEvidence
Eligibility or authority not metHeld; no content mutation.Code
Quality gate failsNo commit; the run fails and the intent stays unpublished.Recorded: the initial run, 5 Nov
Two publisher runs start togetherThe second queues behind the first; neither is cancelled.Workflow configuration
Confirmation times outNo success written; remains unresolved.Integration test
Committed, not yet confirmedCreate an auditable empty deployment-retry commit to trigger redeployment, confirm, then write back. No duplicate content commit.Code and integration test
Confirmed live, result missingWriteback-only recovery after re-confirmation. No duplicate content commit.Code and test; no production incident observed
Completion differs by actionImplementation · inspected
ActionWhat "confirmed" has to establishResult fields written
PublishExpected revision, published state and applicable asset integrity.Status, version, confirmed time, URL, result
UpdateExpected updated revision, published state and applicable asset integrity.Status, version, confirmed time, URL, result
ArchiveExpected revision, archived state and absence from discovery, with applicable asset checks.Status, confirmed time, result
WithdrawThe page and its required associated assets return 404, and the item is absent from the archive and the sitemap.Status, confirmed time, result

Evidence note, 4 Dec 2026. Verified against the confirmation code using AI-assisted repository inspection. Publish, Update and Archive confirm what should be present; Withdraw confirms what should be absent. Every action confirms production before writeback.

05 / Decisions

The choices behind the system.

Four decisions, each with its constraint, the trade-off it accepts and what would make me reconsider it.

Decision 01 · IdentityImplementation

Approve an intent, not a spreadsheet row.

Constraint
The tracker is a spreadsheet that people reorder and edit.
Alternative
Read and update the same row position.
Decision
Resolve a stable output identity and its owning source; reject duplicates and a changed origin; leave author-owned fields untouched.
Trade-off
More validation at the boundary, less dependence on document layout.
Reconsider if
The editorial workspace moves to a store with native record identity.
Decision 02 · Definition of doneImplementation and test

Deployment is not confirmation.

Constraint
A commit can succeed while the site serves an older build or is missing an asset.
Alternative
Mark the item published when the repository accepts the change.
Decision
Confirm production at the expected revision, with relevant integrity checks, before writing success. A test asserts that the tracker is not marked successful until the live state is confirmed.
Trade-off
Completion lags deployment; a timeout leaves the item unresolved rather than optimistically complete.
Reconsider if
Hosting provides an authoritative deployment event that carries the content revision.
Decision 03 · RecoveryImplementation and test

Retry from observed state, not from the start.

Constraint
Recovery must use a governed retry, never manual publication or a bypass.
Alternative
Re-run the whole workflow after any failure.
Decision
Re-assert retry readiness first, then map the observed repository, production and tracker state to one of four operations: full action, confirm deployment, writeback only, or no operation. Confirm deployment creates an auditable empty deployment-retry commit to trigger redeployment; no path makes a duplicate content commit.
Trade-off
A deployment retry leaves an extra, empty commit in history, which is the price of an auditable trigger. States outside the mapping are not guessed at; they need investigation.
Reconsider if
A recurring failure produces a state the mapping does not cover.
Decision 04 · Quality-gate samplingImplementation · the quality-gate change record

Measure three times; keep the bar.

Constraint
The release blocked on one homepage performance sample of 71 against a threshold of 90.
Alternatives
Keep a single sample; lower the threshold; bypass the gate for this release.
Decision
Take three measurements per route and require the median performance score to be at least 90, while every individual accessibility sample must be at least 90. Routes, steps and the numeric threshold are unchanged.
Trade-off
A single low performance sample no longer blocks a release; a regression that shows up only intermittently could pass. The two rules are not statistically equivalent.
Reconsider if
Individual low samples recur, or medians drift towards the threshold.

Alternatives in Decisions 01 to 03 are analytical reconstructions of the trade-offs, not a record of deliberations. Decision 04's alternatives describe the options open at the time; the change itself is recorded in the quality-gate change record.

06 / Recorded release

A release that met a quality gate.

The 5 November publication of a teardown, replayed from the run logs, pull request, CI record, commit and source tracker. Times are IST.

Annotated replay · What the Definition Leaves OutExecution record
  1. 10:00

    The publication becomes eligible.

    The tracker records approved version v1.0, author review and public-safe clearance, and a 10:00 release time.

    Execution recordSource tracker
  2. 12:02:22

    Publisher the initial run fails at the quality gate.

    Lighthouse checks four routes of a temporary candidate build on localhost, not the live site. The homepage scores 71 against a threshold of 90. Nothing is committed, and no success is written.

    Execution recordInitial run log; score from the quality-gate change record
  3. Before 12:22

    The failure is investigated.

    the quality-gate change record records identical homepage HTML and seven referenced assets between engine-only and certified candidate builds. These are findings stated in the PR, not re-run for this case. Whether the 71 reflected measurement variance or a real, transient condition cannot be settled from the records.

    Recorded claim · PRthe quality-gate change record
  4. 12:22:53

    The sampling design changes; the threshold does not.

    the quality-gate change record is merged: three measurements per route, median performance of at least 90, every accessibility sample at least 90. It makes no change to editorial, eligibility, schedule or publisher-enablement rules. The change was merged; the available record does not separately establish personal authorisation.

    Implementationthe quality-gate change record · corrected code revision
  5. After merge

    CI passes on the corrected revision.

    Non-mutating preflight, unit and integration tests, production build, browser quality, Lighthouse and dependency audit all succeed.

    Test evidenceCI run on the corrected release revision
  6. 12:25:31

    A governed technical retry begins.

    Retry run retains the approved package and eligibility. Nothing had been committed, so in recovery terms this is the full-action path.

    Execution recordRetry run log
  7. 12:30:42

    The candidate build passes.

    Three samples per route; every accessibility score is 100. See the measurements below.

    Execution recordRetry run log
  8. 12:30:53

    Content is committed.

    One commit carries the teardown narrative, its PDF and the registry change.

    Execution recordContent commit
  9. 12:30:53 to 12:31:54

    Production is confirmed before success is written.

    At this revision, the success path awaits production confirmation, runs a pre-write check and only then writes the result. The run log does not print a separate, timestamped confirmation receipt, so the ordering is established by the code, not by a logged event.

    ImplementationPublisher code at the corrected release revision
  10. 12:31:54

    Success is logged and the tracker reconciled.

    The run logs Publish SUCCESS 61 seconds after the commit. The tracker, which shows minutes, records Web Published, last web version v1.0, completed 12:31, SUCCESS: Published.

    Execution recordRetry run log · source tracker
Candidate-build measurements, the retryExecution record
RoutePerformance samplesMedianAccessibility
Homepage100 · 100 · 100100100 ×3
About99 · 99 · 9999100 ×3
Thinking99 · 98 · 9999100 ×3
Teardown99 · 99 · 9999100 ×3

Gate: median performance ≥ 90 per route; each accessibility sample ≥ 90. These are candidate-build checks, not a measure of production uptime or general performance.

Evidence note, 4 Dec 2026. On 4 December 2026 the public page was observed to load, showing the 5 November publication date, a PDF link and a site revision marker from a later build. That confirms current availability only. It is not the original deployment confirmation, and full content and PDF parity with v1.0 has not yet been checked. The published teardown ↗

07 / State explorer

What is the system allowed to do next?

Set the conditions independently. The explorer applies the rule table below and shows the permissible operation for a Publish intent.

Rule-driven modelIllustrative model

Start from a recorded or typical state:

Authority
Eligibility
Output identity
Observed state

Rule table

RuleWhenState and permissible operation
G1Website approval missingMissing authority. Await explicit approval.
G2Review or clearance missingMissing authority. Content prerequisites not met.
G3Scheduled time not reachedWaiting for eligibility. Approval does not bypass the schedule.
G4Identity is a conflicting duplicateDuplicate identity. Blocked until resolved. An identity already registered to this same intent is not a duplicate.
G5Source or approval basis changedChanged basis. Re-resolve the intent; renewed approval needed.
R0Gates pass; commit present; live confirmed; tracker completedCompleted operation. No further action; no mutation.
R1Gates pass; no commit; live not confirmed; tracker incompleteReady. Full governed publication.
R2Gates pass; commit present; live not confirmed; tracker incompleteUnconfirmed deployment. Empty deployment-retry commit, confirm, then write back; no duplicate content commit.
R3Gates pass; commit present; live confirmed; tracker incompleteIncomplete reconciliation. Writeback-only recovery; no duplicate content commit.
R4Gates pass; inconsistent identity/repository observations or any other unmapped combinationOutside the documented mapping. Stop and investigate.

Scope and simplifications. Gates G1 to G5 are checked for every state, including a completed one, because the publisher asserts retry readiness before it selects any recovery operation. All failing gates are reported together; the model does not claim which one the real publisher checks first. G1 to G5 are a simplified subset of the readiness checks. R0 to R3 follow the recovery mapping implemented at the corrected release revision; R4 is this model's conservative default, not documented system behaviour. The model covers Publish only, treats inconsistent identity and repository observations as unresolved, omits schema, metadata, asset and quality-gate checks, and does not call, write to or simulate the real publisher.

08 / Evidence

What is shown, and how strongly.

Each claim is labelled by the kind of evidence behind it.

Evidence registerAs of 4 Dec 2026
ClaimEvidence classLimit
Publication rules and architectureImplementation, inspected at the corrected release revisionNot reproducible by a reader
Confirmation before writebackImplementation and test evidenceNo separately timestamped receipt in the run log
Recovery mapping, readiness check and deployment-retry commitImplementation and test evidenceNo real production recovery observed
Action-specific confirmation; result fields; run serialisationImplementation, inspected at the release baselineNot observed in a production run for Archive or Withdraw here
Requirements and personal roleOwner attestationThe owner's account, not an independent record
5 Nov releaseExecution recordTwo runs, one commit, the tracker row
Quality-gate changeImplementation; recorded claim in the quality-gate change recordPR equality findings are stated in the PR, not re-run
Current public pageObservation, 4 Dec 2026Availability only; parity not checked
State explorerIllustrative modelIsolated; tested against its own rule table
Reliability, throughput, uptimeNot claimedNo measurements
09 / Open questions

What remains open.

The system works for what it was built to do. These are the parts I would examine next.

Should confirmation leave its own receipt?

The code guarantees that confirmation precedes writeback, but the run log does not show it as a separate, timestamped event. A receipt would make each release easier to reconstruct.

Noise or regression?

A median of three makes the gate less sensitive to one low sample. It does not tell a noisy measurement from a real intermittent regression, and the 5 November record cannot say which the 71 was.

States outside the mapping

Recovery covers four specified state combinations. Others stop for investigation. Serialised runs prevent two publishers racing each other, but not a person editing the tracker mid-run; whether that boundary holds will depend on the failures that actually occur.

Presence and absence

Publish, Update and Archive are confirmed by checking that something is there. Withdraw is confirmed by checking that something is gone: a 404, and absence from the archive and sitemap. A check at one moment shows absence from this site, not from every copy elsewhere.

← Return to Building