-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
2685 lines (2640 loc) · 106 KB
/
Copy pathapp.js
File metadata and controls
2685 lines (2640 loc) · 106 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Generated by tools/build-static.js — compiled ahead of time, do not edit. */
/* ---- ui_kits/portfolio/scene-visual.jsx ---- */
(function () {
const {
RegistrationMark
} = window.CalebStacyPortfolioDesignSystem_4a3883;
function SceneCharacter({
src,
alt
}) {
return /*#__PURE__*/React.createElement("div", {
"data-ds": "scene-character",
style: {
position: "absolute",
zIndex: 5,
top: 0,
right: 0,
bottom: 0,
width: "51%" /* copy is min(49%,560px); 49 + 51 = 100, so the two never touch */,
pointerEvents: "none",
animation: "character-enter var(--dur-character) var(--delay-character) var(--ease-authored) both"
}
}, /*#__PURE__*/React.createElement("div", {
style: {
position: "absolute",
zIndex: 0,
right: "3%",
bottom: "3%",
width: "76%",
height: "9%",
borderRadius: "50%",
background: "rgba(4,26,22,0.45)",
filter: "blur(18px)"
}
}), /*#__PURE__*/React.createElement("img", {
src: src,
alt: alt,
style: {
position: "absolute",
inset: 0,
width: "100%",
height: "100%",
objectFit: "contain",
objectPosition: "bottom right"
}
}));
}
Object.assign(window, {
SceneCharacter,
RegistrationMark
});
})();
/* ---- ui_kits/portfolio/screen-project.jsx ---- */
(function () {
const {
Stage,
StageCopy,
StorySection,
Outcome,
StageAction,
ChapterNav,
FactsPanel,
CardGrid,
GridCard,
Ledger,
SourceMap,
Pipeline,
DataTable,
ArtifactFigure,
PullQuote,
ProvenanceNote,
Eyebrow,
RegistrationMark,
LineArrow
} = window.CalebStacyPortfolioDesignSystem_4a3883;
function ProjectDocument({
project,
chapters,
onNext,
nextProject,
scrollRef
}) {
const [chapter, setChapter] = React.useState("overview");
React.useEffect(() => {
const node = scrollRef.current;
if (!node) return;
const onScroll = () => {
const marks = node.querySelectorAll("[data-chapter]");
let current = "overview";
marks.forEach(m => {
if (m.getBoundingClientRect().top < 220) current = m.dataset.chapter;
});
setChapter(current);
};
node.addEventListener("scroll", onScroll, {
passive: true
});
return () => node.removeEventListener("scroll", onScroll);
}, [project.id, scrollRef]);
const glide = React.useRef(null);
/* The glide writes scrollTop every frame; without this it keeps writing to a detached
scroller when the reader switches documents mid-animation. */
React.useEffect(() => () => {
if (glide.current) cancelAnimationFrame(glide.current);
}, []);
const jump = id => {
const node = scrollRef.current;
const target = node && node.querySelector('[data-chapter="' + id + '"]');
if (!node || !target) return;
const to = Math.max(0, node.scrollTop + target.getBoundingClientRect().top - node.getBoundingClientRect().top - 64);
if (glide.current) cancelAnimationFrame(glide.current);
if (window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
node.scrollTop = to;
return;
}
const from = node.scrollTop,
start = performance.now(),
dur = 430;
const ease = x => {
const b = (t, p, q) => 3 * (1 - t) * (1 - t) * t * p + 3 * (1 - t) * t * t * q + t * t * t;
let lo = 0,
hi = 1,
t = x;
for (let i = 0; i < 12; i++) {
t = (lo + hi) / 2;
if (b(t, 0.16, 0.3) < x) lo = t;else hi = t;
}
return b(t, 1, 1);
};
const step = now => {
const p = Math.min(1, (now - start) / dur);
node.scrollTop = from + (to - from) * ease(p);
if (p < 1) glide.current = requestAnimationFrame(step);
};
glide.current = requestAnimationFrame(step);
};
const artifacts = project.artifacts || [];
const hasArtifacts = artifacts.length > 0;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stage, {
style: {
minHeight: "min(660px, calc(100svh - 84px))",
display: "flex"
}
}, /*#__PURE__*/React.createElement(RegistrationMark, null), /*#__PURE__*/React.createElement(StageCopy, {
eyebrow: "Project " + project.number + " · " + project.context,
title: project.title,
statement: project.statement,
deck: project.summary
}, project.results ? /*#__PURE__*/React.createElement(Outcome, {
label: project.outcomeLabel,
items: project.results
}) : /*#__PURE__*/React.createElement(Outcome, {
label: project.outcomeLabel
}, project.outcomeProse)), /*#__PURE__*/React.createElement(SceneCharacter, {
src: project.character,
alt: project.characterAlt
})), /*#__PURE__*/React.createElement(ChapterNav, {
chapters: chapters,
active: chapter,
onSelect: jump
}), /*#__PURE__*/React.createElement("div", {
"data-chapter": "overview"
}, /*#__PURE__*/React.createElement(FactsPanel, {
facts: [{
label: "Role",
value: project.role
}, {
label: "Team and surface",
value: project.teamSurface
}]
})), /*#__PURE__*/React.createElement("div", {
"data-chapter": "problem"
}, /*#__PURE__*/React.createElement(StorySection, {
tone: "paper",
index: "01",
chapterLabel: "Problem",
kicker: "The operating condition",
title: project.statement,
intro: project.summary
}, /*#__PURE__*/React.createElement(SourceMap, {
items: project.sources
}), /*#__PURE__*/React.createElement(Ledger, {
items: project.ledger,
style: {
marginTop: "var(--space-6)"
}
}), /*#__PURE__*/React.createElement(ProvenanceNote, null, "Figures here are what's public. Where an exact lift is not public, this document says so."))), /*#__PURE__*/React.createElement("div", {
"data-chapter": "reframe"
}, /*#__PURE__*/React.createElement(StorySection, {
tone: "stage",
index: "02",
chapterLabel: "Reframe",
kicker: "What I changed",
title: "The reframe that made the work possible."
}, /*#__PURE__*/React.createElement(PullQuote, {
attribution: project.quoteBy
}, project.quote))), /*#__PURE__*/React.createElement("div", {
"data-chapter": "decisions"
}, /*#__PURE__*/React.createElement(StorySection, {
tone: "dark",
index: "03",
chapterLabel: "Decisions",
kicker: "How it works",
title: "The decisions worth repeating.",
intro: "Each row below is a decision I would make again on a comparable product."
}, /*#__PURE__*/React.createElement(Pipeline, {
steps: project.pipeline.map(label => ({
label
}))
}), /*#__PURE__*/React.createElement(CardGrid, {
columns: 2,
label: "Ownership",
style: {
marginTop: "var(--space-8)"
}
}, /*#__PURE__*/React.createElement(GridCard, {
label: "What I led",
title: "Content design",
body: project.role
}), /*#__PURE__*/React.createElement(GridCard, {
label: "What I did not own",
title: "Boundaries",
body: "Engineering implementation, research execution, and product prioritisation belonged to partners named above."
})))), /*#__PURE__*/React.createElement("div", {
"data-chapter": "proof"
}, /*#__PURE__*/React.createElement(StorySection, {
tone: "bright",
index: "04",
chapterLabel: "Proof",
kicker: hasArtifacts ? "Evidence" : "What I can and cannot show",
title: hasArtifacts ? "What the work produced." : "The results are real. The screens are not mine to publish.",
intro: hasArtifacts ? "Artifacts carry their own provenance labels." : undefined
}, project.table && /*#__PURE__*/React.createElement(DataTable, {
variant: "result",
columns: project.table.columns,
rows: project.table.rows
}), artifacts.map(a => /*#__PURE__*/React.createElement(ArtifactFigure, {
key: a.src,
style: {
marginTop: "var(--space-8)"
},
contain: true,
src: a.src,
alt: a.alt || a.caption,
label: a.label,
caption: a.caption
})), /*#__PURE__*/React.createElement(ProvenanceNote, null, project.evidenceNote || "Internal material is never exposed. Reconstructions are labelled as reconstructions."))), /*#__PURE__*/React.createElement("div", {
"data-ds": "case-next",
style: {
minHeight: 190,
display: "flex",
justifyContent: "space-between",
gap: 24,
alignItems: "center",
padding: "0 var(--gutter)",
background: "var(--paper)",
borderTop: "1px solid var(--ink)"
}
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Eyebrow, {
size: "micro",
tone: "signal"
}, "Next project"), /*#__PURE__*/React.createElement("p", {
style: {
margin: "10px 0 0",
fontFamily: "var(--font-sans)",
fontSize: "var(--display-s-size)",
fontWeight: "var(--display-s-weight)",
letterSpacing: "var(--display-s-tracking)"
}
}, nextProject.title)), /*#__PURE__*/React.createElement(StageAction, {
accent: "signal",
onClick: onNext
}, nextProject.statement)));
}
Object.assign(window, {
ProjectDocument
});
})();
/* ---- ui_kits/portfolio/screen-verso.jsx ---- */
(function () {
const {
Stage,
StageCopy,
Outcome,
RegistrationMark,
VersoHero,
CaseMeta,
StageAction,
Eyebrow
} = window.CalebStacyPortfolioDesignSystem_4a3883;
/* Rebuilt 2026-07-26 into the Horizon scroll grammar (see screen-horizon.jsx's own file comment
for the four rules this follows: one ground below the cover, no second cover, three text
sizes, artifacts float light) with one addition Horizon does not need: Verso now has three
satellite pages — Agent, Engine, Index — reached through three doors inside the story rather
than through a demo. Per reference/verso-subpages-plan.md: "the main story never demos; the
sub-pages never narrate." So everything that used to be a rendered instrument here (the
research grid, the fingerprint bars, the score ring, the rewrite diff, the index rows, the
rule split, the source map, the toolchain) moved to screen-verso-subpages.jsx, in full, with
room to be the subject instead of an aside. What is left below is four beats: the problem,
the system thesis, three doors to the implementation, and the strongest ownership and adoption
evidence.
The cover and the satellite pages use the same public-safe draft, revision, and measurement
fixture. The cover omits an aggregate score because this example does not define an honest
scalar; it shows only the supported dimension readings and the re-measurement verdict. */
const REWRITE = {
before: "Oops! Something went wrong with your world. Don't worry, we're fixing it! Please try again in a few minutes and everything should be back to normal.",
after: "We couldn't load your world. Check your connection and try again, or come back in a few minutes.",
deltas: [{
name: "Words",
from: 27,
to: 19
}, {
name: "Formality",
from: 25,
to: 68
}, {
name: "Directness",
from: 45,
to: 88
}, {
name: "Brevity",
from: 40,
to: 82
}]
};
const MEASURED_DIMS = [{
name: "Formality",
value: 82
}, {
name: "Vocabulary",
value: 65
}, {
name: "Directness",
value: 90
}, {
name: "Conciseness",
value: 71
}];
/* The cover instrument's checks window. Generic phrasing — no internal tool names — narrating
the same measure-and-rewrite pass the Agent page shows in full below. */
const HERO_THINKING = ["Reading the draft against the context's measurement profile", "Comparing eleven dimensions to the target band", "Two dimensions out of band", "Drafting a rewrite with the deltas attached"];
/* The closing beat's self-check. Verso measured ELEVEN dimensions (the sacred count; the
twelve-dimension trace belongs to the later open-source engine and must not appear here) —
`trace.json` on the (unmerged, at the time this shipped) `governance` branch, the same
voice_runtime engine this case describes, run on a different example than the Delivery
section's illustrative reading below. That file is not part of this change (plays/ is out of
scope here) — if it lands under a different path or the numbers move, update this string to
match rather than leave it stale, or close verbally instead ("Re-measured: in band."). Never
invent a number here.*/
const HERO_SELF_LINT = {
line: "Re-measuring the revision",
verdict: "Re-measured: all eleven dimensions in band."
};
const header = {
margin: 0,
textAlign: "left",
fontFamily: "var(--font-sans)",
fontSize: "var(--display-m-size)",
fontWeight: "var(--display-m-weight)",
lineHeight: "var(--display-m-leading)",
letterSpacing: "var(--display-m-tracking)"
};
const proseCol = {
marginTop: 22,
display: "flex",
flexDirection: "column",
gap: "1.15em",
fontFamily: "var(--font-sans)",
fontSize: "var(--prose-size)",
lineHeight: "var(--prose-leading)",
letterSpacing: "var(--prose-tracking)"
};
const SECTION_PAD_FIRST = "clamp(40px,6vh,64px) var(--gutter) 0";
const SECTION_PAD = "0 var(--gutter) clamp(56px,8vh,96px)";
const HAIRLINE = "1px solid color-mix(in srgb, var(--story-ink) 25%, transparent)";
function Beat({
id,
first,
title,
children
}) {
return /*#__PURE__*/React.createElement("section", {
"data-tone": "dark",
style: {
background: "var(--story-bg)",
color: "var(--story-ink)",
padding: first ? SECTION_PAD_FIRST : SECTION_PAD
}
}, /*#__PURE__*/React.createElement("div", {
id: id,
style: {
maxWidth: 640,
margin: "0 auto",
scrollMarginTop: 56,
...(first ? null : {
borderTop: HAIRLINE,
paddingTop: "clamp(40px,6vh,64px)"
})
}
}, title && /*#__PURE__*/React.createElement("h2", {
style: header
}, title), /*#__PURE__*/React.createElement("div", {
style: proseCol
}, children)));
}
/* A quiet door: one sentence, the site's drawn-underline link, never a card. Placed at the end
of the paragraph it belongs to, so the destination is already obvious from what was just
said. */
function Door({
onOpen,
children
}) {
return /*#__PURE__*/React.createElement("div", {
style: {
marginTop: 4
}
}, /*#__PURE__*/React.createElement(StageAction, {
accent: "signal",
onClick: onOpen
}, children));
}
function VersoDocument({
project,
onNext,
nextProject,
onNavigate,
scrollRef
}) {
const open = id => () => onNavigate && onNavigate(id);
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stage, {
style: {
minHeight: "min(660px, calc(100svh - 84px))",
display: "flex"
}
}, /*#__PURE__*/React.createElement(RegistrationMark, null), /*#__PURE__*/React.createElement(StageCopy, {
eyebrow: "Project " + project.number + " · " + project.context,
title: project.title,
statement: project.statement,
deck: project.summary
}, /*#__PURE__*/React.createElement(Outcome, {
label: project.outcomeLabel,
items: project.results
})), /*#__PURE__*/React.createElement(VersoHero, {
draft: REWRITE.before,
thinkingLabel: "Checks",
thinking: HERO_THINKING,
reading: {
verdict: "Two dimensions outside the applicable range.",
dimensions: MEASURED_DIMS
},
rewrite: {
after: REWRITE.after,
deltas: REWRITE.deltas
},
selfLint: HERO_SELF_LINT
})), /*#__PURE__*/React.createElement(Beat, {
id: "overview",
first: true
}, /*#__PURE__*/React.createElement(CaseMeta, {
role: project.role,
team: project.team,
timeline: project.timeline,
surface: project.surface
})), /*#__PURE__*/React.createElement(Beat, {
id: "condition",
title: "Content design was being asked to get on the loop, with no way to check what “on standard” meant."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "AI was moving faster than the org around it. Every week another content designer had built their own agent, the kind you'd hear about secondhand: “I made one that does this.” Every one of those agents was a prompt file shaped like software, and a prompt file shaped like software fails like software eventually. It just fails quietly, with nothing built in to say so."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "Central content design was asking the harder question underneath all of it. If we stop reviewing every draft an agent writes and trust it to write on its own, on the loop instead of in it, how do we know the writing is any good? Guidance said things like “be concise” and “sound genuine.” Both are true, and both are useless to a writer, because they describe what a reader feels, not what a writer does to produce that feeling.")), /*#__PURE__*/React.createElement(Beat, {
id: "question",
title: "Every claim is routed to the strongest computation it can honestly support."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "Voice and tone are not directly measurable properties of copy. They are reader interpretations produced by measurable patterns in language, context, and relationship. Verso measured eleven of those observable patterns and let an agent compare a draft to an adopted target for its context. That did not turn “warm” into a number. It made the evidence under the metaphor inspectable — and, once a target existed, difficult to ignore accidentally."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "A yes-or-no rule, like never say “click” or keep sentence case always, was solved by a regular expression decades ago. What was left, once all of that was pulled out, was smaller than anyone expected. It was almost all voice and tone. So I went looking for research on how language itself could be measured instead of just described: how formal a sentence reads, how direct it is, its rhythm, its density.")), /*#__PURE__*/React.createElement(Beat, {
id: "built",
title: "What I built ended up being three things that only work together."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "The agent is Verso. It drafts, and then it checks its own draft before a person ever sees it, the same way a build fails before it ships instead of after."), /*#__PURE__*/React.createElement(Door, {
onOpen: open("verso/agent")
}, "How the agent worked"), /*#__PURE__*/React.createElement("p", {
style: {
margin: "22px 0 0"
}
}, "Underneath it is the engine: eleven dimensions of language, each one sitting on published research, run as deterministic code rather than another model's opinion. It reads a draft against a target and hands back a reading: whether the draft sits in band, and if not, by how much."), /*#__PURE__*/React.createElement(Door, {
onOpen: open("verso/engine")
}, "How the reading worked"), /*#__PURE__*/React.createElement("p", {
style: {
margin: "22px 0 0"
}
}, "And underneath that is the index. I consolidated everything guidance had scattered across wikis, chat threads, spreadsheets and posts, ran a taxonomy over the pile, and categorized every rule by whether a machine could check it. What survived the sort became records a tool could route: versioned, owned, scoped to a surface and marked as a blocker or an advisory."), /*#__PURE__*/React.createElement(Door, {
onOpen: open("verso/index")
}, "What the index held")), /*#__PURE__*/React.createElement(Beat, {
id: "proof",
title: "I built it alone. It spread before I asked anyone to use it."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "I built all of it myself, over about six months: the agent, the engine, the taxonomy underneath it and the index. It ran on Meta's internal infrastructure, and once central content design was ready to take it on formally, I handed it to them."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "By the time central content design took it over, it had reached nearly sixty content designers across the company, and the agent had logged more than 500 conversations testing and refining what it should say. With central, it went from live on one product area to running company-wide in about six months, on word of mouth, before the partnership was even formal."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "I was laid off in the middle of finishing that handoff. Central kept running it anyway. It's still in use.")), /*#__PURE__*/React.createElement("div", {
id: "next",
"data-ds": "case-next",
style: {
minHeight: 190,
scrollMarginTop: 56,
display: "flex",
justifyContent: "space-between",
gap: 24,
alignItems: "center",
padding: "0 var(--gutter)",
background: "var(--paper)",
borderTop: "1px solid var(--ink)"
}
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Eyebrow, {
size: "micro",
tone: "signal"
}, "Next project"), /*#__PURE__*/React.createElement("p", {
style: {
margin: "10px 0 0",
fontFamily: "var(--font-sans)",
fontSize: "var(--display-s-size)",
fontWeight: "var(--display-s-weight)",
letterSpacing: "var(--display-s-tracking)"
}
}, nextProject.title)), /*#__PURE__*/React.createElement(StageAction, {
accent: "signal",
onClick: onNext
}, nextProject.statement)));
}
Object.assign(window, {
VersoDocument
});
})();
/* ---- ui_kits/portfolio/screen-verso-subpages.jsx ---- */
(function () {
const {
Eyebrow,
StageAction,
ResearchGrid,
SourceMap,
IndexRows,
EvidenceTrace,
BeforeAfter
} = window.CalebStacyPortfolioDesignSystem_4a3883;
/* Verso has three satellite pages because the system has three different jobs.
Agent follows a draft through generation and the self-check.
Engine shows which claims a method can honestly support.
Index shows where evidence and adopted policy live so neither the model nor the code has to
invent them.
The original sub-page plan said these pages should not narrate. The reader-facing essays and
the portfolio's current narrative rule made the problem with that clear: an isolated link still
has to tell a reader what the artifact is and why it exists. It also has to show where the
evidence stops. The
pages below keep their instrument richness, but each now has its own causal arc and its own
object. They do not repeat one scalar score three times.
The rewrite is public-safe example copy written for this portfolio. It is not an internal
screen or a recovered Meta string. It discloses no internal measurement. */
const HAIRLINE = "1px solid color-mix(in srgb, var(--story-ink) 25%, transparent)";
const SECTION_PAD_FIRST = "clamp(36px,5.5vh,56px) var(--gutter) 0";
const SECTION_PAD = "0 var(--gutter) clamp(48px,7vh,84px)";
const header = {
margin: 0,
textAlign: "left",
fontFamily: "var(--font-sans)",
fontSize: "var(--display-m-size)",
fontWeight: "var(--display-m-weight)",
lineHeight: "var(--display-m-leading)",
letterSpacing: "var(--display-m-tracking)"
};
const proseCol = {
marginTop: 22,
display: "flex",
flexDirection: "column",
gap: "1.15em",
fontFamily: "var(--font-sans)",
fontSize: "var(--prose-size)",
lineHeight: "var(--prose-leading)",
letterSpacing: "var(--prose-tracking)"
};
const artifactNote = {
margin: "4px 0 0",
color: "var(--story-muted)",
fontFamily: "var(--font-sans)",
fontSize: "var(--body-size)",
lineHeight: 1.45
};
const VERSO_REWRITE = {
before: "Oops! Something went wrong with your world. Don't worry, we're fixing it! Please try again in a few minutes and everything should be back to normal.",
after: "We couldn't load your world. Check your connection and try again, or come back in a few minutes."
};
const VERSO_AGENT_TRACE = [{
step: "Receive the brief or draft",
detail: "Verso starts with the writing job, the product surface, and the context the string will appear in."
}, {
step: "Produce one draft",
detail: "The draft is the exact string under review. The agent's explanation is kept separate from it."
}, {
step: "Load the applicable record",
detail: "The Content Index, Verso's governed matrix, supplies the scoped profile and any adopted rules that apply to this kind of string."
}, {
step: "Measure that string",
detail: "The Engine returns separate findings with their methods and limits. It does not replace them with one quality score."
}, {
step: "Revise and check again",
detail: "When the draft changes, the new string gets a new check. The prior result cannot certify different text."
}, {
step: "Return the current evidence",
detail: "The person reviewing the work sees the current draft and the findings that actually belong to it."
}];
const VERSO_RESEARCH = [{
source: "Biber",
year: "1988",
gives: "Multidimensional register analysis",
note: "Co-occurring linguistic features can distinguish kinds of language in a corpus. That supports a comparison method; it does not prove a brand effect."
}, {
source: "Searle",
year: "1976",
gives: "Speech-act categories",
note: "Requests, promises, apologies, and assertions give a reviewer categories to define and test. The paper does not validate an automatic classifier by itself."
}, {
source: "Brown & Levinson",
year: "1987",
gives: "Politeness strategies",
note: "Their framework gives names to mitigation and face work. Whether a reader experiences a string as considerate remains a claim about readers."
}, {
source: "Halliday",
year: "1985",
gives: "Lexical density",
note: "The ratio of content words to total words is computable. The ratio does not become a clarity score simply because it returns a number."
}];
const VERSO_CLAIM_ROUTES = [{
id: "claim.exact_feature",
asserts: "Can the property be established from the exact string? Run versioned code and return the result for that property.",
meta: ["method · code", "supports · construction within declared scope"]
}, {
id: "claim.observed_pattern",
asserts: "How often did a construction appear in comparable shipped strings? Compute the distribution and keep the sample visible.",
meta: ["method · corpus", "supports · description, never policy by frequency"]
}, {
id: "claim.contextual_reading",
asserts: "What reading might the construction support here? Record an identified interpretation and its evidence. Keep the uncertainty visible.",
meta: ["method · review or validated model", "supports · a bounded hypothesis, not a reader effect"]
}, {
id: "claim.reader_effect",
asserts: "Did people experience the string as clear, human, reassuring, or persuasive? That question needs research with the relevant readers.",
meta: ["method · human research", "supports · an audience effect within the study"]
}, {
id: "claim.policy_conformance",
asserts: "Does the string meet an adopted target? The Engine can answer only after the Index supplies an authorized rule and scope. The exception state must be known too.",
meta: ["method · adopted rule plus code", "missing policy · unresolved"]
}];
const VERSO_INDEX_ROWS = [{
id: "<context>.evidence.observed.v1",
asserts: "What the defined sample did. The record keeps the source, sample, string type, method, and date beside the observation.",
meta: ["status · descriptive", "revision preserves history"]
}, {
id: "<context>.target.proposed.v1",
asserts: "A future-facing target someone has proposed from the evidence. It remains a proposal until an authorized owner decides.",
meta: ["status · proposed", "rationale and open exceptions named"]
}, {
id: "<context>.policy.adopted.v1",
asserts: "The decision a named owner adopted, including where it applies, when it does not, and when it should be reviewed.",
meta: ["status · adopted", "owner, scope, and exceptions named"]
}, {
id: "<context>.check.executable.v1",
asserts: "The versioned implementation of an adopted rule, with examples that should pass, fail, and remain outside its scope.",
meta: ["method · code", "policy reference, tests, and version"]
}, {
id: "<context>.interpretation.review.v1",
asserts: "A contextual reading that still needs a person or validated classifier. Its evidence and uncertainty stay visible; it cannot quietly become a blocker.",
meta: ["status · review with method and owner", "insufficient evidence · unresolved"]
}];
const VERSO_SOURCES = ["Central content guidance", "Product-area guidance", "Docs, chats, and spreadsheets", "Real shipped strings"];
/* ---- shared layout: compact pine band, ink-ground beats, paper doors ---- */
function SubHeader({
eyebrow,
title,
purpose,
onBack
}) {
return /*#__PURE__*/React.createElement("header", {
"data-tone": "stage",
style: {
background: "var(--stage-field-section)",
color: "var(--stage-ink)"
}
}, /*#__PURE__*/React.createElement("div", {
style: {
maxWidth: 640,
margin: "0 auto",
padding: "clamp(20px,4vh,32px) var(--gutter) clamp(30px,5vh,44px)"
}
}, onBack && /*#__PURE__*/React.createElement("div", {
style: {
marginBottom: "clamp(14px,2.6vh,22px)"
}
}, /*#__PURE__*/React.createElement(StageAction, {
accent: "stage",
reverse: true,
onClick: onBack,
style: {
padding: "11px 0 12px"
}
}, "Back to the story")), eyebrow && /*#__PURE__*/React.createElement(Eyebrow, {
tone: "stage",
style: {
marginBottom: 12
}
}, eyebrow), /*#__PURE__*/React.createElement("h1", {
"data-doc-heading": true,
tabIndex: -1,
style: {
margin: 0,
color: "var(--stage-ink)",
fontFamily: "var(--font-sans)",
fontSize: "var(--display-l-size)",
fontWeight: "var(--display-l-weight)",
lineHeight: "var(--display-l-leading)",
letterSpacing: "var(--display-l-tracking)",
textWrap: "balance"
}
}, title), purpose && /*#__PURE__*/React.createElement("p", {
style: {
maxWidth: 520,
margin: "14px 0 0",
color: "var(--stage-muted)",
fontFamily: "var(--font-sans)",
fontSize: "var(--lede-size)",
lineHeight: "var(--lede-leading)",
letterSpacing: "var(--lede-tracking)"
}
}, purpose)));
}
function Beat({
id,
first,
title,
children
}) {
return /*#__PURE__*/React.createElement("section", {
"data-tone": "dark",
style: {
background: "var(--story-bg)",
color: "var(--story-ink)",
padding: first ? SECTION_PAD_FIRST : SECTION_PAD
}
}, /*#__PURE__*/React.createElement("div", {
id: id,
style: {
maxWidth: 640,
margin: "0 auto",
scrollMarginTop: 56,
...(first ? null : {
borderTop: HAIRLINE,
paddingTop: "clamp(36px,5.5vh,56px)"
})
}
}, title && /*#__PURE__*/React.createElement("h2", {
style: header
}, title), /*#__PURE__*/React.createElement("div", {
style: proseCol
}, children)));
}
function SubDoors({
onBack,
onForward,
forwardLabel
}) {
return /*#__PURE__*/React.createElement("div", {
"data-ds": "case-next",
style: {
minHeight: 150,
display: "flex",
flexWrap: "wrap",
justifyContent: "space-between",
gap: "18px 32px",
alignItems: "center",
padding: "clamp(28px,5vh,44px) var(--gutter)",
background: "var(--paper)",
borderTop: "1px solid var(--ink)"
}
}, /*#__PURE__*/React.createElement(StageAction, {
accent: "ink",
reverse: true,
onClick: onBack,
style: {
padding: "12px 0 14px"
}
}, "Back to the story"), /*#__PURE__*/React.createElement(StageAction, {
accent: "signal",
onClick: onForward,
style: {
padding: "12px 0 14px"
}
}, forwardLabel));
}
/* ============================================================================================
AGENT — the exact draft and its self-check loop
============================================================================================ */
function VersoAgentDocument({
project,
onNavigate,
scrollRef
}) {
const toStory = () => onNavigate && onNavigate("verso");
const toEngine = () => onNavigate && onNavigate("verso/engine");
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubHeader, {
eyebrow: "Verso",
title: "Agent",
purpose: "What happened between a writing brief and the draft Verso returned: generate the text, measure that exact string, then check any revision.",
onBack: toStory
}), /*#__PURE__*/React.createElement(Beat, {
id: "draft",
first: true,
title: "Verso was the part a content designer talked to."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "A designer gave the internal agent a brief or a draft. Verso proposed copy, sent that proposed string to the measurement service, and used the findings to decide whether another pass was needed. The model handled the open-ended act of writing. The Engine handled the repeatable measurement."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "The draft was the exact string that might be returned. Keeping it separate from the surrounding explanation mattered: a fluent rationale could not stand in for a check on the words a person might actually ship."), /*#__PURE__*/React.createElement(BeforeAfter, {
style: {
marginTop: 4
},
before: VERSO_REWRITE.before,
after: VERSO_REWRITE.after,
beforeLabel: "Example draft",
afterLabel: "Revised draft"
}), /*#__PURE__*/React.createElement("p", {
style: artifactNote
}, "This is portfolio copy built to show the sequence. It is not an internal Meta screen, and neither string came from a Meta product.")), /*#__PURE__*/React.createElement(Beat, {
id: "self-check",
title: "The check followed the draft when the words changed."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "Verso used the same measurement service on its own writing that it used on a designer's draft. If the result fell outside the applicable target, the agent could adjust the copy and call the service again. The revision had to be measured as a new string. A result for the earlier draft said nothing about the changed one."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "That separation is the self-lint loop. Generation can vary. The check runs as its own operation, with the context and current draft made explicit each time."), /*#__PURE__*/React.createElement(EvidenceTrace, {
label: "Self-check loop",
steps: VERSO_AGENT_TRACE,
style: {
marginTop: 4
}
})), /*#__PURE__*/React.createElement(Beat, {
id: "authority",
title: "Policy still needed an owner."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "The agent could interpret a brief and propose or repair drafts. It did not get to turn a preference into policy. The applicable target came from a governed record, and the Engine applied only the check that record supported."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "Some questions remained open after the checks ran. A person still had to decide whether the copy fit the situation, and a claimed effect on readers still required research with readers. When neither evidence nor an adopted decision settled the question, the honest result was unresolved.")), /*#__PURE__*/React.createElement(SubDoors, {
onBack: toStory,
onForward: toEngine,
forwardLabel: "See how Engine bounded each claim"
}));
}
/* ============================================================================================
ENGINE — the method has to match the claim
============================================================================================ */
function VersoEngineDocument({
project,
onNavigate,
scrollRef
}) {
const toStory = () => onNavigate && onNavigate("verso");
const toIndex = () => onNavigate && onNavigate("verso/index");
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubHeader, {
eyebrow: "Verso",
title: "Engine",
purpose: "What the Engine could establish about an exact string, which method supported the finding, and where the claim had to stop.",
onBack: toStory
}), /*#__PURE__*/React.createElement(Beat, {
id: "object",
first: true,
title: "The Engine received one string in one context."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "The Engine was a Python measurement service running warm on Meta's infrastructure. It did not write. Verso sent it the current string and the product context. The service computed eleven dimensions of language and returned the findings to the agent."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "I used to describe that as measuring voice. I think the narrower account is more useful. The Engine measured linguistic evidence: sentence structure, directness, density, cadence, lexical choices, and other observable features. “Human,” “warm,” and “confident” remained interpretations people could form from that evidence in a particular situation.")), /*#__PURE__*/React.createElement(Beat, {
id: "router",
title: "Every claim needs the strongest computation it can honestly support."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "A number can make several different claims look interchangeable. They are not. An exact count, a corpus comparison, a contextual interpretation, and a reader-effect study require different evidence. The router below is how I describe that boundary now: it keeps the method attached to the claim."), /*#__PURE__*/React.createElement(IndexRows, {
label: "Claim router",
rows: VERSO_CLAIM_ROUTES,
style: {
marginTop: 4
}
})), /*#__PURE__*/React.createElement(Beat, {
id: "research",
title: "Published research supplied methods with narrower claims."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "I built the eleven-dimension system from computational linguistics and standard Python tools. A published framework can justify a definition or calculation. It does not validate my implementation, establish a product target, or prove how a reader will respond. Those are separate jobs with separate evidence."), /*#__PURE__*/React.createElement(ResearchGrid, {
items: VERSO_RESEARCH,
style: {
marginTop: 4
}
})), /*#__PURE__*/React.createElement(Beat, {
id: "profile",
title: "A profile belongs to a defined kind of language."
}, /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "I derived context-specific profiles from real shipped strings. A button label and an error message do different jobs. A paragraph of explanation does another. Averaging them together mostly describes the sample mix. Each comparison needs the same kind of string and surface, with enough language for the method to mean anything."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "Several dimensions need more text than a short label contains. In that case the Engine should return unavailable. Low and unavailable are different findings. A missing measurement cannot be repaired by drawing a zero."), /*#__PURE__*/React.createElement("p", {
style: {
margin: 0
}
}, "The observed range is descriptive evidence. It becomes a target only after an authorized owner adopts it for a stated scope. The Index carries that decision.")), /*#__PURE__*/React.createElement(SubDoors, {
onBack: toStory,
onForward: toIndex,
forwardLabel: "See where policy lived in Index"
}));
}
/* ============================================================================================
INDEX — evidence, adoption, scope, and authority
============================================================================================ */
function VersoIndexDocument({
project,
onNavigate,
scrollRef
}) {
const toStory = () => onNavigate && onNavigate("verso");
const toAgent = () => onNavigate && onNavigate("verso/agent");
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubHeader, {
eyebrow: "Verso",
title: "Index",
purpose: "How scattered content guidance and shipped-language evidence became records an agent could use without inventing the policy.",
onBack: toStory