Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/routes_sheet.py +40 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "19ff250",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
19ff250
|
api/routes_sheet.py
CHANGED
|
@@ -1087,6 +1087,32 @@ def _reresolved_for_reader(session: Session, book, *, endings_only=False):
|
|
| 1087 |
slot = _binding_scope_key(session, db, binding)
|
| 1088 |
hit = (cache.get("refreshCells", {}).get(str(tab.get("id")) + "!" + addr, {})
|
| 1089 |
.get(slot)) if seen[db] else None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1090 |
if hit:
|
| 1091 |
_snapshot_cell(cell, hit["cell"])
|
| 1092 |
elif not seen[db]:
|
|
@@ -1098,7 +1124,20 @@ def _reresolved_for_reader(session: Session, book, *, endings_only=False):
|
|
| 1098 |
_snapshot_cell(cell, _binding_refusal("sheet_refresh_required",
|
| 1099 |
"Refresh this workbook to resolve this cell under your current access."))
|
| 1100 |
changed_values |= before != (cell.get("value"), cell.get("state"))
|
| 1101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1102 |
from modules import sheet as sheet_mod
|
| 1103 |
import formula_runtime as fr
|
| 1104 |
_recompute_formulas(fresh, fr, sheet_mod)
|
|
|
|
| 1087 |
slot = _binding_scope_key(session, db, binding)
|
| 1088 |
hit = (cache.get("refreshCells", {}).get(str(tab.get("id")) + "!" + addr, {})
|
| 1089 |
.get(slot)) if seen[db] else None
|
| 1090 |
+
if not hit and seen[db]:
|
| 1091 |
+
# ⛔⛔ THE BRIDGE S65-T03 LEFT OUT (SDLC 65 combine). It moved this reader onto
|
| 1092 |
+
# `sheet_binding.read_refresh_cache` while `core.sheets`' scope cache kept its two
|
| 1093 |
+
# writers: `compute_cell` fills BOTH, but the MCP gateway
|
| 1094 |
+
# (`routes_external.py::cache_binding`) fills only the legacy one. So a binding
|
| 1095 |
+
# written through MCP was invisible to its own next read and answered
|
| 1096 |
+
# `sheet_refresh_required` with NO VALUE. Measured by `verify_perm_scope.py::An
|
| 1097 |
+
# editor binding write replaces the old scope cache before reading its result`:
|
| 1098 |
+
# got None, want 75.
|
| 1099 |
+
# ⭐ A READ, never a second write: the legacy slot is keyed by the SAME
|
| 1100 |
+
# `_binding_scope_key`, so C5's per-scope isolation is the one this already
|
| 1101 |
+
# enforces, and nothing here resolves a binding (C2/R4 is untouched). Writing the
|
| 1102 |
+
# new cache from the gateway instead was tried and REJECTED: it makes
|
| 1103 |
+
# `refreshCells` non-empty, which retires the pre-C2 passthrough below for every
|
| 1104 |
+
# OTHER cell and blanked a bound cell that had a perfectly good stored value.
|
| 1105 |
+
try:
|
| 1106 |
+
from core import sheets as _sheets
|
| 1107 |
+
legacy = _sheets.cached_scope_value(
|
| 1108 |
+
_store(session), book["id"], str(tab.get("id")) + "!" + addr, slot)
|
| 1109 |
+
except Exception:
|
| 1110 |
+
legacy = None
|
| 1111 |
+
if legacy is not None:
|
| 1112 |
+
value = legacy.get("value")
|
| 1113 |
+
hit = {"cell": {"value": value, "state": "fresh",
|
| 1114 |
+
"display": "" if value is None else str(value),
|
| 1115 |
+
"refreshed_at": legacy.get("refreshedAt")}}
|
| 1116 |
if hit:
|
| 1117 |
_snapshot_cell(cell, hit["cell"])
|
| 1118 |
elif not seen[db]:
|
|
|
|
| 1124 |
_snapshot_cell(cell, _binding_refusal("sheet_refresh_required",
|
| 1125 |
"Refresh this workbook to resolve this cell under your current access."))
|
| 1126 |
changed_values |= before != (cell.get("value"), cell.get("state"))
|
| 1127 |
+
# ⛔⛔ A STALE FORMULA IS A REASON TO RECOMPUTE TOO, AND MISSING IT MADE THE TWO SERVER READS
|
| 1128 |
+
# DISAGREE (SDLC 65 combine). C2/R4 says this GET path never RESOLVES A BINDING, and it still
|
| 1129 |
+
# does not: `_recompute_formulas` evaluates the formula graph over cell values that are already
|
| 1130 |
+
# present and opens no database. Gating it on `changed_values` alone meant that after a
|
| 1131 |
+
# structure edit -- which stores every dependent formula `stale` with no value and moves no
|
| 1132 |
+
# bound cell -- the UI read returned `{'kind': 'formula', 'state': 'stale'}` with no figure
|
| 1133 |
+
# while `sheet_read_cells` (MCP) returned the computed one. `verify_perm_scope.py::The UI read
|
| 1134 |
+
# and MCP read agree on stored cells, figures and formats` measured exactly that pair: D1 and
|
| 1135 |
+
# F1 fresh 30.0 / 60.0 from MCP against stale-and-blank from the UI. A non-browser consumer has
|
| 1136 |
+
# no client engine to cover for it, so the blank is what it would have shown.
|
| 1137 |
+
stale_formula = any(
|
| 1138 |
+
cell.get("kind") == "formula" and (cell.get("state") != "fresh" or "value" not in cell)
|
| 1139 |
+
for tab in (fresh.get("sheets") or []) for cell in (tab.get("cells") or {}).values())
|
| 1140 |
+
if changed_values or stale_formula:
|
| 1141 |
from modules import sheet as sheet_mod
|
| 1142 |
import formula_runtime as fr
|
| 1143 |
_recompute_formulas(fresh, fr, sheet_mod)
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
1548a4da9ce9a7364d31b25a5b0d9ebd6546c18f93c2ba9e8b4b8658f1b60fb2
|