{
  "ok": true,
  "tool": "api_organize",
  "lens": "page",
  "title": "Order allocation — before",
  "text": "organization  Order allocation — before\nglance (cost, higher = worse):\n   plumbing                   25%  #####\n   dup mass                   21%  ####\n   stamped mass                0%\n   clone pairs                  0\n   bypasses                     1  #\nglance (coverage, higher = better):\n   concept-serving bindings   75%  ###############\nmarks: each # = 1 for counts (up to 40); each # = 5 points of share, floor; digits are authoritative\nglance basis: full (every count fits its marks)\n\nreuse: dup mass 48 of 226 total (21%)  clone pairs 0  bypasses 1  stamped signature families 0 of 2\nplumbing: 2 of 8 bindings touch no declared concept (25%); framework artifacts (0) counted separately\nvocabulary: 6 concepts (0 capabilities); 6 of 8 bindings serve one (75%); framework artifacts 0; bare-scalar params 10 (Int 7, String 3)\nlegend: the reuse and plumbing shares count COSTS (higher = more of the program\nis duplicated, stamped, or outside any declared concept); the vocabulary share\ncounts coverage (higher = more of the program speaks its declared concepts).\ndup mass = nodes repeated instead of shared; a bypass = a reused def\nhand-rolled elsewhere instead of called; a family marked !! stamps one code\nskeleton (copies), an unmarked family is signature convention without cloning;\neach concept line counts its bindings by role (intro/build/use/const) and sums\ntheir structural mass and internal duplication\n\ncapabilities:\n   (none)\n\nconcepts (one line each, by bindings served):\n   Stock  struct  intro 0  build 0  use 5  const 0  mass 186 dup 48  bare-scalars 7\n   Allocation  struct  intro 1  build 0  use 1  const 0  mass 48 dup 16  bare-scalars 1\n   CartPreview  struct  intro 1  build 0  use 0  const 0  mass 48 dup 16  bare-scalars 2\n   CheckoutDecision  struct  intro 1  build 0  use 0  const 0  mass 13 dup 0  bare-scalars 2\n   SupportReplacement  struct  intro 1  build 0  use 0  const 0  mass 60 dup 16  bare-scalars 2\n   unreferenced: ReplacementStatus (enum(2))\n\nsignature families (same shape, different types):\n   (_, _, _) -> _  x3  1 of 4 slots vary  mass 121 dup 32\n   (_, _) -> _  x2  2 of 3 slots vary  mass 56 dup 16\n\nframework artifacts (declarations discovered by checked type; not dead):\n   (none)\n\nbypasses (a reused def hand-rolled elsewhere instead of called):\n   allocation_plan  mass 39  used 1x  hand-rolled in: cart_preview, support_replacement\n\nclone pairs (whole bodies isomorphic, literals kept):\n   (none)\n"
}
