Refactor architecture into eight components and consolidate reliability work
Build and publish container images / images (push) Successful in 9m34s
Release container images / release (push) Successful in 36s

Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts.

Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation.

Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
This commit is contained in:
Anya Tokugawa committed 2026-11-01 15:23:31 +09:00
1 parent 9dd425f765
commit d5d21b7841
302 files changed
+20037 -3492

No files matched your search

+5 -11
View File
@@ -10,7 +10,6 @@ import (
"io"
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"strconv"
@@ -157,19 +156,14 @@ func (s *Server) generateMetadataProjection(payload metadataProjectionPayload) e
func (s *Server) inspectProjectionMetadata(payload metadataProjectionPayload) (metadataProjectionResult, error) {
result := metadataProjectionResult{Status: "ready"}
source, err := s.store.DocumentPath(payload.DocumentHash)
if err != nil || source == "" {
return result, errors.New("metadata projection requires immutable Document storage")
}
info, err := os.Stat(source)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
lease, err := s.store.MaterializeDocument(ctx, payload.DocumentHash, maxMetadataInputBytes)
if err != nil {
return result, err
}
if !info.Mode().IsRegular() || info.Size() > maxMetadataInputBytes {
return result, errors.New("metadata source exceeds the 512 MiB limit")
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
defer lease.Close()
source := lease.Path
if payload.Kind == "pdf" {
output, truncated, err := runMetadataCommand(ctx, 64<<10, "pdfinfo", "-enc", "UTF-8", source)
if err != nil || truncated {