没有不值得去解决的问题,也没有不值得去学习的技术!

History Should Be Preserved, Not Rebuilt: Why v2 Ultimately Needs a Breakpoint

History Should Be Preserved, Not Rebuilt: Why v2 Ultimately Needs a Breakpoint

作者:

在

In the previous post, I wrote about why history is worth preserving.

Its original purpose was actually quite practical:

Reuse high-quality translation results to avoid redundant Generation, redundant review, and meaningless language drift.

If a TranslationUnit’s source hasn’t changed, new glossaries haven’t actually affected it, the old candidate can still pass current machine validation, and Independent QC has already been completed, then the most reasonable approach is usually not to translate it again.

Instead, continue using the result that was already done correctly.

But during the development of this Go Learning & Documentation v2, I also encountered another side of history.

As the workflow became more complete, states like Snapshot, predecessor, promotion, authorization, receipt, identity, and provenance grew in number, and history began to take on a responsibility it was never originally intended to bear:

To complete today’s work, the system began requiring increasingly older historical states to be restored.

This is one of the important reasons why the actual development time for v2 significantly exceeded initial expectations.

What ultimately needed adjustment wasn’t “whether to preserve history.”

It was another question:

Does preserving history mean that the future must always be able to reconstruct the current state all the way from the depths of history?

v2’s later answer was:

No need.


At first, historical restoration seemed perfectly reasonable

Suppose there is currently a TranslationUnit.

It didn’t appear out of thin air.

It might have come from a certain Generation.

Then a Candidate Snapshot was created.

A Reviewer completed QC.

If it received a B, C, or D, it entered revision.

Then re-QC.

Then after finalization and promotion, it finally became the currently used result.

If we want the system to be able to prove:

“Why is it in this state now?”

A very natural design is to save all these relationships.

For example:

Plaintext
Current state
    ↓
Promotion
    ↓
Finalized Snapshot
    ↓
Quality Check
    ↓
Candidate Snapshot
    ↓
Generation

Every step has a clear origin.

Every result can continue to be traced back to its predecessor.

From an audit perspective, this chain is beautiful.

And when the system scale was still small, it indeed brought strong certainty.

If an anomaly occurred in a state, you could trace back along the historical relationships to check.

So initially, continuously enhancing historical traceability wasn’t a mistake in itself.

The real problem was that it gradually shifted from:

“When problems occur, history can be traced back”

to:

“Normal forward work must also first restore the complete history”.

These two things are very different.


To restore A, we started restoring A’s predecessor again

A very common scenario with historical restoration is:

The current work needs an old state.

But this state was produced by an old version of the workflow.

It lacks a field that was added later.

So it needs to be restored.

During restoration, we discover:

The predecessor of this state also needs to be recognizable by the current program.

So we continue forward.

Then the predecessor depends on another Snapshot.

That Snapshot might also lack a new identity or provenance.

Continue restoring.

Soon, a task that originally just wanted to solve a current problem turns into:

Plaintext
Restore the historical state currently needed
        ↓
Discover predecessor is incomplete
        ↓
Restore predecessor
        ↓
Discover an earlier Snapshot doesn't meet the current schema
        ↓
Continue restoring
        ↓
Discover old promotion still needs relationship patching
        ↓
Continue forward...

This is a feeling that became increasingly clear to me later on:

Historical restoration easily has no natural endpoint.

Every time I felt:

“Patching this one more layer should let us continue.”

But after patching it, the next layer of dependencies would appear.


This is not quite the same as regular data migration

When upgrading a database, we also often need to do migrations.

Convert old schema to new schema.

After completion, the system continues using the new data.

But the problem encountered this time was a bit more complex.

Because the workflow history is not just a single table.

It contains a series of interrelated facts:

  • Which Generation produced this candidate;
  • Which Snapshot the candidate belongs to;
  • Which exact candidate the Reviewer reviewed;
  • What finding the revision targets;
  • Which successor the re-QC corresponds to;
  • Which finalized result the promotion used;
  • What the relationship is between the current state and historical states.

After the new architecture adds new constraints, if we require all old history to meet the new completeness standards, we are essentially demanding:

That all states produced in past periods re-satisfy rules only defined today.

Theoretically, this can of course be done.

The only problem is:

The engineering cost might be very high.


The most dangerous thing is “We’ve already spent so much time, let’s just restore a little more”

This kind of problem also has a very typical trap.

After a lot of history has already been restored, it’s easy to develop a mindset:

We’ve restored so much already, just the last bit left, let’s just finish it completely.

But the so-called “last bit” often continues to unfold.

Because the old system never generated that evidence according to today’s architecture.

Some missing things aren’t bugs.

It’s just:

That concept simply didn’t exist in that era.

If we continue to demand that they all be patched up, a strange engineering goal starts to emerge:

Not for what the current translation or release needs.

But to make the past look like:

It was already running on today’s system back then.

This is clearly unrealistic.


I later started to wonder: why must we restore so far back?

The real turning point actually came from a very simple question:

To continue translating and publishing today, why must the entire state chain from months ago be converted into the current schema?

Suppose we can already reliably confirm a few facts:

Plaintext
Current candidate is trusted
Current source identity is known
Current glossary relationship is known
Current machine validation PASS
Current QC conclusion holds

Then, to continue processing new TranslationUnits in the future, do we really still need to prove:

That the current state can be completely reconstructed all the way back to the earliest historical starting point according to all the rules of the new system?

Gradually, I felt the answer was no.

History needs to be preserved.

But:

Current work shouldn’t forever depend on infinitely deep historical reconstruction.

These two things should be separate.


Historical preservation and historical executability are two different concepts

This is a distinction I feel is particularly important after this architectural adjustment.

An old history can continue to exist.

It can be used for:

  • Audit;
  • provenance;
  • failure diagnosis;
  • Understanding what happened in the past;
  • Manual investigation when necessary.

But this doesn’t mean:

It must continue to be an executable predecessor for future workflows.

The past design can be understood as:

Plaintext
History A
   ↓
History B
   ↓
History C
   ↓
Current
   ↓
Future

For the Future to continue forward, it must be guaranteed that:

Plaintext
A → B → C → Current

The entire chain can be reinterpreted according to today’s rules.

And the new approach is closer to:

Plaintext
Historical records
Historical records
Historical records
        ↓
────────────────
 Trusted checkpoint
────────────────
        ↓
 Current state
        ↓
 Future workflow

The history before the breakpoint still exists.

But the official execution starting point for future workflows begins from this trusted checkpoint.


A “breakpoint” is not deleting history

It’s easy to be misunderstood here.

Establishing a breakpoint is not:

Old history is too troublesome, so delete it all.

Nor is it:

What happened before doesn’t matter anymore.

On the contrary, old evidence, old Snapshots, and old provenance should still be preserved as much as possible.

What really changes is:

They no longer all bear the execution responsibility for the current workflow.

That is, the history before the breakpoint mainly answers:

What happened in the past?

The current authority after the breakpoint answers:

From now on, what state does the system continue forward from?

These are two different questions.


The breakpoint needs to be trusted

Of course, we also can’t just pick a random point in time and say:

From here on, ignore everything before.

That would just hide the problem.

A checkpoint that can truly serve as a new starting point must be able to provide sufficient current facts.

For example, it must at least be able to determine:

  • What the current source is;
  • What the current candidate is;
  • What the current glossary is;
  • Whether the current machine validation results hold;
  • Which TranslationUnits have been reliably completed;
  • Which are still pending;
  • What the current Generation / Reviewer provenance is;
  • From what state the subsequent workflow should continue.

In other words:

A breakpoint is not abandoning validation, but changing the validation target from “reconstructing all history” to “proving the current state is sufficiently trusted”.

This is what I feel is the most crucial distinction.


Current truth is more important than complete replay

The old architecture easily implied an idea:

As long as the entire history can be replayed, the current state is definitely trusted.

This idea makes some sense.

But after long-term system operation, there is another source of reliability:

Directly validating current truth.

For example:

If the current Page candidate can pass the latest parser again.

If glossary compatibility can be recalculated.

If the current source identity can be confirmed.

If the Reviewer’s official conclusion already exists, and the candidate identity it targets still matches.

Then these current facts themselves have value.

There’s no need to require reproducing all historical operations from dozens of steps ago just to prove them.

This is a bit like a long-running event system.

You can save all events.

But that doesn’t mean every time the program starts, it must replay from the first event all the way to today.

When history gets longer, a reasonable snapshot / checkpoint is itself part of the system design.


History was originally meant to make the future faster, not slower

This is also the point I cared about most when I later re-examined the entire history architecture.

The previous post already wrote:

History’s greatest initial value was avoiding redundant translation and redundant review.

That is, history was supposed to help us:

Plaintext
Less Generation
Less QC
Less revision
Faster continuation of adding new content

But if later, to reuse history, we first need to spend a lot of time restoring history:

Plaintext
restore old Snapshot
restore predecessor
restore promotion
repair identity
repair authorization
repair receipt
...

Then history has started to produce the opposite effect:

To avoid redundant work, even more historical restoration work was created.

At this point, what really should be checked isn’t:

“Can we automate the restoration a bit more?”

But rather:

Has the entire execution model deviated from the original goal?


The project’s fundamental goal is not to build a perfect history museum

Reaching this point, I felt the whole problem could actually be summarized in a somewhat blunt sentence:

This project is not about building a perfect history museum.

Its real goal remains:

Quickly and high-quality completing the multilingual translation of Go learning and documentation.

History helps this goal, so it’s preserved.

Glossaries help this goal, so they are governed.

QC helps this goal, so Independent Reviewers are established.

Parsers help this goal, so they are continuously improved.

But these are all just means.

If a certain means starts consuming a lot of engineering time without correspondingly improving:

  • Translation quality;
  • Release safety;
  • Reuse efficiency;
  • Recoverability;

Then it should be re-evaluated.

The same goes for history.


The originally estimated development time was stretched just like this

When this v2 started, my expectation for the overall launch time wasn’t particularly long.

Originally estimated that about 5 working days could complete this round.

After really starting, the Learn / Docs translation itself of course needed time.

Glossary, parser, Surface, Production, etc., also all needed continued refinement.

But an important reason it actually exceeded expectations was:

More and more time was spent on old state restoration.

And this part of the work is very easily underestimated.

Because looking at each restoration individually, it seems like just:

Patching a predecessor.

Fixing an old Snapshot.

Making a historical promotion recognizable again.

Individually, none of these things are particularly big.

But when they appear continuously, they form a very obvious cumulative cost.

Ultimately, the development time far exceeded the initially estimated 5 working days.

And this forced me to truly face a question:

Until when do we need to restore?

If the architecture has no clear answer, historical restoration could continue indefinitely.


What the new architecture really needs is a Stop Point

Later on, I increasingly liked using a very simple term to describe this adjustment:

Stop Point.

Which means:

Historical tracing must have a stopping point.

Before the Stop Point:

Preserve true history.

At the Stop Point:

Establish a sufficiently trusted current baseline.

After the Stop Point:

Continue forward using the current official architecture.

It can be simply understood as:

Plaintext
Past
│
│ preserved
│
▼
====================
    STOP POINT
====================
│
│ current authority
│
▼
Generation
Validation
QC
Revision
Surface
Production

In the future, if a real failure requires investigating old history, we can still look back.

But this is a:

diagnosis path

And no longer a:

normal execution path

This distinction is very important for long-term maintenance.


Normal path and Recovery path should be separate

There was another problem in the past that was easily conflated.

To guarantee recovery capability, the normal path also took on more and more historical requirements.

But actually:

“Can we recover when problems occur?”

and:

“Must every normal operation execute complete recovery logic”

are not the same thing.

A more reasonable design should be:

Normal circumstances:

Plaintext
current trusted state
↓
continue forward

Only when there truly is:

Plaintext
FAILED
unexpected state
mutation unknown

do we enter:

Plaintext
historical diagnosis
↓
recovery

This way, historical recovery capability still exists.

But it doesn’t make all normal workflows pay this cost.

This is also a shift in thinking I feel was very important in the later stages of v2.


“mutation unknown” should instead make us stop

Introducing a Stop Point doesn’t mean forcing forward whenever problems are encountered in the future.

Quite the opposite.

If it’s impossible to confirm what exactly happened to the current state, for example:

Plaintext
mutation = unknown

The more reasonable approach should still be:

Stop.

Diagnose first.

Don’t blindly replay.

Don’t think:

“Anyway, we have history, re-running it should be fine.”

Because once it’s impossible to confirm whether an operation has already produced a mutation, executing it again could itself create new states.

So the new architecture isn’t moving from “too strict” to “just continue casually”.

Instead, it more clearly distinguishes:

In which situations it’s safe to move forward.

In which situations we actually need to look back at history.

In which situations we must stop and wait for diagnosis.


Recovery should handle exceptions, not become daily work

This also corresponds to another principle mentioned in the previous post.

A long-term stable system should normally mainly handle:

Plaintext
new
changed
affected

Only in exceptional circumstances does it handle:

Plaintext
missing
restore_failed
validation_failed
unexpected
mutation unknown

If the vast majority of normal work constantly enters:

Plaintext
restore historical state

That means recovery has started taking over.

Ideally:

Recovery is a safety net, not the main road.

The same goes for historical preservation.

It should allow the system to look back when necessary.

But under normal circumstances, the direction should always be:

Forward.


A breakpoint can also lower the cost of future architectural evolution

This design also has long-term value.

If today’s workflow continues to upgrade in the future, it might add new:

  • schema;
  • identity;
  • evidence;
  • validation;
  • package types.

If every upgrade requires:

All historical records to be fully patched with new fields.

Then the longer the system runs, the higher the migration cost will be.

But if we officially establish:

Old history kept as is + current checkpoint + new rules taking effect from the checkpoint forward

Then future architectural evolution will be much easier.

The new rules don’t need to pretend:

That the system already knew today’s design ten months ago.

It only needs to guarantee:

From the new official starting point onward, all states conform to the new rules.

This is closer to how real software evolves.


Don’t let the future bear the infinite cost of the past

Reaching this point, I feel the core message this article really wants to express is already quite clear:

History needs to be preserved, but the future shouldn’t indefinitely bear the cost of restoring the past.

History can help us:

  • Reuse already completed translations;
  • Investigate real failures;
  • Preserve provenance;
  • Understand what happened in the past.

But future workflows shouldn’t default to requiring:

All past states must first be upgraded to the current architecture before proceeding to the next step.

At a certain stage, the system needs to allow itself to say:

What happened here before has been preserved.

Here is the validated current baseline.

From here on, continue forward.


This isn’t lowering quality, but protecting engineering goals

When first deciding to stop infinite historical restoration, it was indeed easy to have a worry:

Will it become less strict?

But later I felt:

True strictness shouldn’t be reflected in:

How many years ago the system can restore every internal state from.

It should be reflected in:

Whether the currently published content is reliable.

If the current candidate:

  • source is correct;
  • glossary is correct;
  • machine validation is correct;
  • QC is correct;
  • Surface is correct;
  • Production gates are correct;

Then the quality goals users truly care about have been met.

Spending extra days restoring an old predecessor that will no longer affect current truth won’t make the Chinese text users see any more accurate.

Quality assurance should be designed around real risks.

Not designed around “history must be infinitely complete”.


The two history articles actually talk about the same goal

The previous post wrote:

Why history is worth preserving.

This post writes:

Why history cannot be infinitely reconstructed.

It looks like two opposite directions.

But in fact, their fundamental goal is exactly the same:

Quickly and high-quality moving forward.

History helps avoid redundant work, so it’s preserved.

Historical restoration starts blocking new work, so a breakpoint is established.

In other words:

History is an optimization means, not a governance goal.

I feel this might be the most important lesson from v2’s history architecture in the end.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系