AsklingDocs

How a change is written

What it does

After you click Approve, plain code with no AI writes one field of one record.

  • It re reads first. A newer edit by a person is never overwritten.
  • It writes the audit line first. No change without a record.
  • It reads back. The read back decides the result, not the answer of HubSpot.

The steps

StepWhat happens
1. ClaimThe suggestion moves from approved to executing. A second worker cannot take it.
2. Check the kill switchIf Askling is paused, it stops. The suggestion stays approved.
3. Static safety checksIs this kind of change allowed? Is the field on the check's write list? Is the batch within its cap? See Safety checks before a write.
4. Read the record againAskling reads the field and the fields the protection rules need.
5. Dynamic safety checksIs the new value valid for the field in HubSpot? Is the record still allowed (not read only)?
6. CompareHubSpot already holds the new value: HubSpot already had this value, nothing written. HubSpot no longer holds the old value: the result is stale and nothing is written.
7. Check the kill switch againSame as step 2.
8. Write the audit lineWriting to HubSpot is saved before the request. If it cannot be saved, nothing is sent.
9. WriteOne field of one record.
10. Read backAskling reads the field again, and once more after about 2 seconds if needed.
11. FinishThe suggestion is done with Updated in HubSpot at 07:15 (checked). A value that is not what Askling sent is failed with verify_mismatch. A read back that cannot be done is unknown.

Every step can be repeated safely. A change is applied successfully at most once.

If a worker dies in the middle, a sweeper looks every 5 minutes for writes that have been running more than 15 minutes. If no write had been sent, the change is marked failed with worker_crashed. If a write may have been sent, it is marked unknown with worker_crashed_after_write and locked until someone clicks Check again.

Getting approved values to the writer:

  • Sent after the save. The job for the writer is sent only after your click is saved. This fixed approved values that were never written (19 October 2026).
  • Self healing sweep. Every minute, and when the worker starts, approved values with no job that were not touched for a minute are sent to the writer again. Queued reverts and queued property requests too.
  • Never while paused, and always within the batch caps.
  • Waiting, not frozen. A batch whose rows are approved but not moving for a minute says N in line for HubSpot, written in a moment. A row held back by a cap says Waiting to be written.

How to use it

You need first

  • Profile: Admin or Non admin, to approve. Everyone can read. Yours shows beside your name in the sidebar footer.

See what happened to a change

  1. On Home, click Approve on a tile.
  2. Click the round Logbook button, bottom right of every page, and find the row. See the logbook.
  3. Open Settings, then Audit log, to see each step with its time. See the audit log.

Check it worked: the row reads Updated in HubSpot at 07:15 (checked).

What it does not do

  • It does not write more than one field or one record per step.
  • It does not retry a write on its own after an ambiguous result more than once.
  • It does not trust the status code of HubSpot. Only the read back counts.
  • It does not use AI at any step.

Why it works this way

Re reading before writing means a person's newer edit is never overwritten. Writing the audit line first means there is never a change without a record. Reading back means "done" is a fact.

Common questions

Why does it take a few seconds? Read, write and read back are three calls, plus a short wait if HubSpot is slow to show the new value.

What if HubSpot changes the value I sent? Askling accepts only known normalisations. Anything else is a verify_mismatch failure.

What if two people approve the same row? One click wins. The other sees the current state.

Does approving twice write twice? No. A suggestion is written at most once.

What does the 2 second wait do? HubSpot can take a moment to show a new value, so Askling reads once more.

Is the write the same for Revert? Yes, with the old and new value swapped and one extra rule. See Undo a change.

When something goes wrong

SymptomCauseWhat to do
HubSpot refused: CODEHubSpot returned an errorSee Errors
verify_mismatchHubSpot holds a different value after the writeCheck the record. See verify_mismatch
audit_failedThe audit line could not be savedNothing was sent. See audit_failed
Stuck on Applying…The worker diedWait for the sweeper. See worker_crashed
N in line for HubSpotAskling is paused, the Askling team stopped all writes, the worker is down or a cap holds rowsCheck the kill switch and the audit log. The sweep sends them again every minute. See Kill switch and Maintenance