Tencent/WeKnora · error
failed to roll back incoming pages: %s
Error message
failed to roll back incoming pages: %s
What it means
Compensation failure: while restoring original content on already-rewritten wiki pages (reverse order), one or more UpdateAutoLinkedContent calls failed; the collected per-slug failures are joined, meaning the rollback itself was incomplete and some pages may retain machine-rewritten links.
Source
Thrown at internal/agent/tools/wiki_link_mutation.go:69
}
return changes, updatedSlugs, nil
}
func rollbackWikiContentChanges(
ctx context.Context,
service interfaces.WikiPageService,
changes []appliedWikiContentChange,
) error {
var failures []string
for i := len(changes) - 1; i >= 0; i-- {
change := changes[i]
change.page.Content = change.originalContent
if err := service.UpdateAutoLinkedContent(ctx, change.page); err != nil {
failures = append(failures, fmt.Sprintf("%s: %v", change.page.Slug, err))
}
}
if len(failures) > 0 {
return fmt.Errorf("failed to roll back incoming pages: %s", strings.Join(failures, "; "))
}
return nil
}
func joinWikiMutationErrors(primary error, extras ...error) string {
parts := []string{primary.Error()}
for _, err := range extras {
if err != nil {
parts = append(parts, err.Error())
}
}
return strings.Join(parts, "; ")
}
View on GitHub (pinned to 988cbb0330)
Solutions
- Inspect the joined per-slug failures for causes
- Manually reconcile pages that failed to roll back
- Add retry or manual-repair queue for failed compensations
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at internal/agent/tools/wiki_link_mutation.go:69 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Tencent/WeKnora@988cbb0330 (2026-09-02).
Data as JSON: /api/errors/8c90f84fca15742e.
Report an issue: GitHub.