@su-sws/synthetic-web-team 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/AGENTS.md +6 -0
  2. package/README.md +113 -11
  3. package/package.json +3 -2
  4. package/packages/cli/bin/sws.mjs +162 -14
  5. package/packages/cli/src/acknowledged.mjs +6 -1
  6. package/packages/cli/src/brief.mjs +393 -0
  7. package/packages/cli/src/preflight.mjs +1 -1
  8. package/packages/cli/src/prior-art.mjs +329 -0
  9. package/packages/cli/src/report.mjs +21 -2
  10. package/packages/wizard/bin/wizard.mjs +299 -12
  11. package/packages/wizard/src/detect.mjs +111 -1
  12. package/packages/wizard/src/emit.mjs +130 -9
  13. package/skills/role-api-architect/SKILL.md +119 -61
  14. package/skills/role-backend-developer/SKILL.md +145 -55
  15. package/skills/role-compliance-officer/SKILL.md +133 -57
  16. package/skills/role-devops/SKILL.md +9 -6
  17. package/skills/role-fullstack-developer/SKILL.md +104 -37
  18. package/skills/role-identity-engineer/SKILL.md +126 -60
  19. package/skills/role-information-architect/SKILL.md +1 -1
  20. package/skills/role-infrastructure-architect/SKILL.md +105 -32
  21. package/skills/role-qa-engineer/SKILL.md +128 -57
  22. package/skills/role-security-operations/SKILL.md +137 -33
  23. package/skills/role-software-architect/SKILL.md +133 -63
  24. package/skills/role-staff-technical-architect/SKILL.md +112 -50
  25. package/skills/role-user-researcher/SKILL.md +119 -45
  26. package/skills/role-ux-designer/SKILL.md +1 -1
  27. package/skills/sws-compliance-check/SKILL.md +1 -1
  28. package/skills/sws-diverge/SKILL.md +2 -2
  29. package/skills/sws-github/SKILL.md +2 -0
  30. package/skills/sws-install/SKILL.md +1 -1
  31. package/skills/sws-netlify/SKILL.md +2 -0
  32. package/skills/sws-preflight/SKILL.md +5 -0
  33. package/skills/sws-vercel/SKILL.md +2 -0
  34. package/standards/hosting/github-pages.yml +1 -0
  35. package/standards/hosting/netlify.yml +1 -0
  36. package/standards/hosting/vercel.yml +1 -0
  37. package/standards/patterns/bolt-ons.md +1 -1
  38. package/standards/policy/identity.md +1 -1
@@ -1,75 +1,145 @@
1
1
  ---
2
2
  name: role-software-architect
3
- description: Software architecture and design decisions for a Stanford web project. Use when choosing between technical approaches, defining component or service boundaries, documenting a decision and its trade-offs, or reviewing a design proposal. NOT YET IMPLEMENTED as a full role.
3
+ description: Software architecture and design decisions for a Stanford web project. Use when choosing between technical approaches or recipes, modelling complex content, sharing components across sites, integrating a Stanford system, writing an ADR, reversing an earlier decision, or reviewing a design proposal before build.
4
4
  ---
5
5
 
6
6
  # Software architecture
7
7
 
8
- **Status: stub. Full role lands in v2, prioritised by pilot demand.** Most v1
9
- sites are static content sites where the architecture is decided by the recipe,
10
- which is the point of having recipes.
8
+ On most SWS unit sites the recipe has already made the architecture decisions, and
9
+ that is the point of having recipes. This role is for the projects where it has
10
+ not, and for writing down why, so the reasoning survives the next fork.
11
11
 
12
- ## When this actually matters
12
+ ## When this matters, and when it does not
13
13
 
14
- Not often, and saying so is useful. A twelve-page department site does not need
15
- architecture, it needs the recipe followed. Reach for this role when:
14
+ A twelve-page department site does not need architecture. It needs the recipe
15
+ followed. Reach for this role when:
16
16
 
17
- - A project spans multiple sites or shares components across them
18
- - Content modelling is genuinely complex, with many types and relationships
19
- - A CMS choice is being made and will be hard to reverse
20
- - Something needs to integrate with a Stanford system
21
- - A previous decision is being reversed and the reason has been forgotten
17
+ - A project spans multiple sites or shares components across them.
18
+ - Content modelling is genuinely complex, with many types and relationships.
19
+ - A content backend is being discussed and will be hard to reverse.
20
+ - Something must integrate with a Stanford system.
21
+ - A previous decision is being reversed and the reason has been forgotten.
22
+ - Someone proposes a framework, library, or host the recipe does not name.
23
+
24
+ Saying "this does not need architecture" is a useful answer. Give it when true.
25
+
26
+ ## Prior art first, then standards
27
+
28
+ Run `sws prior-art find "<what you are building>"` before designing. SWS has built
29
+ a lot, and most shapes of problem are solved. Then apply the precedence rule:
30
+
31
+ - Prior art tells you **how we solved a shape of problem**. Standards tell you **what
32
+ to build it with**. When they disagree, standards win.
33
+ - **Repeated identical choices across repos are a convention.** Count lineages, not
34
+ repos: copy-forked siblings share one decision, which may be frozen.
35
+ - Prior art **cannot tell you why** a dependency is there or **where the org is
36
+ going**. Ask a person. Never infer purpose from presence.
37
+
38
+ ## The three families
39
+
40
+ Choosing between these is most of the architecture work on a new project:
41
+
42
+ | Family | Shape | In this package |
43
+ |---|---|---|
44
+ | **Static, content in the repo** | Simplest, lowest tier, fewest obligations | **Yes.** All three recipes, including the two with a server runtime, which is for headers, redirects, search, and forms |
45
+ | **Static plus Storyblok** | Editors never touch git; publish triggers a rebuild. Six SWS repos | Out of scope for now. No tested recipe |
46
+ | **Decoupled Drupal** | GraphQL against Drupal, for Stanford Sites-scale content. Five SWS repos | Out of scope for now |
47
+
48
+ Out of scope is not forbidden, and the existing CMS work is not wrong
49
+ (`standards/scope.md`). If a project needs a backend this package does not ship,
50
+ say so early. What you must not do is quietly build half a content backend to avoid
51
+ the conversation. A Google Sheet feeding the people page is a CMS by another name
52
+ (`standards/patterns/bolt-ons.md`).
53
+
54
+ ## Decisions that set constraints
55
+
56
+ These are the ones that are expensive to reverse. Make each deliberately:
57
+
58
+ **Recipe.** Choose by what changes per request (`role-fullstack-developer`). A
59
+ runtime is a patching commitment; take it only for request-dependent work.
60
+
61
+ **Compliance tier.** Authentication, personal data, or payments move a site from
62
+ `low` to `moderate` or `high` with real obligations attached
63
+ (`standards/policy/minsec.md`). That is not a technical choice with a technical cost.
64
+ It belongs in the decision's consequences, and it is often the deciding factor.
65
+
66
+ **Content model.** Types, fields, and relationships outlive the templates. Model
67
+ from the content that exists and the tasks people do, not the org chart. Keep it in
68
+ typed content collections so a broken entry fails the build. `role-content-designer`
69
+ and `role-information-architect` own the model's content; you own its shape.
70
+
71
+ **Integration boundaries.** Fetch at build or on a schedule, normalise in one place,
72
+ type the boundary (`role-api-architect`).
73
+
74
+ **Shared components across sites.** Tempting and usually premature. A shared package
75
+ needs an owner, versioning, and a release process. Copy-forking is a legitimate SWS
76
+ practice; share only after the same component has been rebuilt three times and
77
+ someone will own it. Prefer contributing upward to Decanter.
78
+
79
+ **Dependencies.** Every package is a promise to patch it within MinSec's 7 or 90
80
+ days. Prefer the platform and Decanter. Install latest; do not pin, except Decanter
81
+ 8 and never 7.
22
82
 
23
83
  ## Write the decision down
24
84
 
25
- The one habit worth adopting even in stub form: record architectural decisions as
26
- short ADRs in `docs/adr/NNNN-title.md`. Context, the decision, the alternatives
27
- considered, and the consequences. Half a page.
28
-
29
- The reason is specific to how SWS works. Sites get **copy-forked** to start new
30
- client projects, which is a legitimate and effective practice. But a fork carries
31
- the code and not the reasoning, so eighteen months later nobody knows why the
32
- previous team chose Storyblok over Drupal or webpack over Turbopack. An ADR
33
- survives the fork. The `engineering:architecture` skill has a fuller ADR workflow
34
- if you want one.
35
-
36
- Real example worth documenting if you encounter it: all four decoupled Drupal
37
- repos run `next dev --webpack`, opting out of Turbopack. **Point-in-time, not
38
- forward: Turbopack is the forward default for new Next.js sites.** Consistent
39
- enough to be intentional, and nobody has written down why.
40
-
41
- ## Existing architectural patterns at SWS
42
-
43
- Three families, and choosing between them is most of the architecture work on a
44
- new project:
45
-
46
- - **Static, no CMS.** Content in the repo. Simplest, lowest tier, fewest
47
- obligations. **This is the only one this package currently builds** — see
48
- `standards/scope.md`. All three recipes sit here, including the two with a
49
- server runtime, because a runtime is for headers, redirects, search, and forms
50
- rather than for fetching content.
51
- - **Static plus Storyblok.** Content editors never touch git; publishing triggers
52
- a rebuild. Six SWS repos. **Out of scope here for now**: no tested recipe.
53
- - **Decoupled Drupal.** GraphQL against Drupal, for Stanford Sites-scale content
54
- and existing Drupal investment. Five SWS repos. **Out of scope here for now.**
55
-
56
- Prefer the least machinery that meets the need. Every step up adds patching
57
- surface, compliance obligations, and something for the next person to learn.
58
-
59
- **Choosing between the three is still architecture work**, and the honest answer
60
- may be that a project needs one this package does not ship. Say so — out of
61
- scope is not forbidden, and the existing SWS CMS work is not wrong. What you must
62
- not do is quietly build half a content backend to avoid the conversation.
63
-
64
- ## The constraint people miss
65
-
66
- Architecture decisions set the **compliance tier**. Adding authentication, personal
67
- data, or payments is not a technical choice with a technical cost; it is a move
68
- from `low` to `moderate` or `high` with real obligations attached. That belongs in
69
- the ADR's consequences section, and it is often the deciding factor.
70
-
71
- ## Related
72
-
73
- `engineering:architecture` for ADR creation and evaluation.
74
- `engineering:system-design` for service boundaries and data modelling.
75
- Neither knows anything about Stanford, so pair them with `standards/policy/`.
85
+ Record architectural decisions as short ADRs in `docs/adr/NNNN-title.md`:
86
+
87
+ ```markdown
88
+ # NNNN. Title in the imperative
89
+
90
+ Date: YYYY-MM-DD
91
+ Status: proposed | accepted | superseded by NNNN
92
+
93
+ ## Context
94
+ What forces are at play, including the tier and who maintains this.
95
+
96
+ ## Decision
97
+ What we chose, in one paragraph.
98
+
99
+ ## Alternatives considered
100
+ Each with the reason it lost.
101
+
102
+ ## Consequences
103
+ What gets easier, what gets harder, the tier, what we now patch.
104
+ ```
105
+
106
+ Half a page. The reason is specific to how SWS works: sites get **copy-forked** to
107
+ start new projects, and a fork carries the code but not the reasoning. Eighteen
108
+ months later nobody knows why the previous team chose Storyblok over Drupal or
109
+ webpack over Turbopack. An ADR survives the fork.
110
+
111
+ A divergence from the recipe also goes in `.sws/manifest.yml` (`sws-diverge`). The
112
+ manifest records **that** you diverged; the ADR records **why**, when the why takes
113
+ more than a sentence.
114
+
115
+ Real example worth documenting if you meet it: all four decoupled Drupal repos run
116
+ `next dev --webpack`, opting out of Turbopack. **Point-in-time, not forward:
117
+ Turbopack is the forward default for new Next.js sites.** Consistent enough to look
118
+ intentional, and nobody has written down why.
119
+
120
+ ## Reviewing a design proposal
121
+
122
+ - Does the project need this much machinery, or would the plain recipe do?
123
+ - Did someone check prior art, and count lineages rather than repos?
124
+ - What tier does this put the site in, and is that in the consequences?
125
+ - Who maintains this in eighteen months, and can they?
126
+ - What new runtime or dependencies join the patch cadence?
127
+ - Is anything here a content backend by another name?
128
+ - Is there an ADR, and does it list the alternatives honestly?
129
+
130
+ Give a recommendation, not a survey. Name the option you would choose and why.
131
+
132
+ ## Artifacts
133
+
134
+ | Artifact | Path |
135
+ |---|---|
136
+ | Decision records | `docs/adr/` |
137
+ | Recipe, divergences, prior art reused | `.sws/manifest.yml` |
138
+ | Content model | Content collection schemas, plus `docs/content-model.md` |
139
+
140
+ ## Escalation and related skills
141
+
142
+ Cross-project questions (should this become a house standard?) belong to
143
+ `role-staff-technical-architect`. `engineering:architecture` and
144
+ `engineering:system-design` cover general ADR and boundary work but know nothing
145
+ about Stanford; pair them with `standards/policy/`.
@@ -1,73 +1,135 @@
1
1
  ---
2
2
  name: role-staff-technical-architect
3
- description: Cross-project technical leadership at Stanford Web Services. Use for decisions affecting multiple sites, platform and standards direction, technical debt across a portfolio, or evaluating whether a practice should become a house standard. NOT YET IMPLEMENTED as a full role.
3
+ description: Cross-project technical leadership at Stanford Web Services. Use for decisions affecting multiple sites, whether a practice should become a house standard, technical debt across the portfolio, major-version adoption and who goes first, what Decanter should absorb, or auditing the SWS repos to set direction.
4
4
  ---
5
5
 
6
6
  # Staff-level technical architecture
7
7
 
8
- **Status: stub. Full role lands in v2.** This is the only role whose scope is the
9
- portfolio rather than a project, which makes it the hardest one to fake and the
10
- one most dependent on judgment a document cannot hold.
11
-
12
- ## What is distinct about this scope
13
-
14
8
  `role-software-architect` decides within a project. This role decides **across**
15
- projects, and the questions are different:
9
+ projects. It is the only role whose scope is the portfolio, which makes it the one
10
+ most dependent on judgment a document cannot hold. Its main job is to bring
11
+ evidence and a recommendation to the people who set direction, not to set it.
12
+
13
+ ## The questions at this scope
16
14
 
17
15
  - Should this practice become a house standard, or stay one team's choice?
18
- - What is the cost of the portfolio being inconsistent here, and is it worth
19
- paying to fix?
16
+ - What does the portfolio's inconsistency here cost, and is it worth paying to fix?
20
17
  - What technical debt spans repos rather than sitting in one?
21
18
  - When does SWS adopt a new major version, and who goes first?
22
19
  - What should Decanter absorb, and what should stay in projects?
20
+ - Where is the org going? (Not answerable from code. Ask.)
23
21
 
24
- ## The evidence for these decisions already exists
25
-
26
- `standards/prior-art/repos.yml` is a portfolio inventory: 11 production repos with
27
- era, family, stack, and rating. `standards/patterns/sws-conventions.md` is the
28
- derived view of what is actually consistent and what is not. Both were built by
29
- reading `package.json` files, which is a repeatable exercise worth redoing
30
- periodically.
31
-
32
- Findings already visible in that data, offered as the sort of thing this role
33
- would act on:
34
-
35
- - **Three architectural families** with different package managers, class-name
36
- utilities, and CMS approaches. Some of that divergence is reasonable (Drupal and
37
- Storyblok really are different) and some is drift.
38
- - **No house headless component library.** `react-aria` in one repo,
39
- `@base-ui/react` in another, MUI in two, `headlessui` in the ADAPT family. This
40
- is the layer where accessibility is usually won or lost, so it is the strongest
41
- candidate for a house decision.
42
- - **Storyblok SDK versions span 3.x to 6.x** across live sites. That is a real
43
- upgrade-debt cluster.
44
- - **Node floors span `>=20` to `>=24`.**
45
- - **`www.stanford.edu` runs a Decanter-derived design system that is influencing
46
- Decanter 8**, so the design system has a feedback loop from a flagship project.
47
- Managing that relationship is squarely this role's work.
22
+ ## The evidence already exists
23
+
24
+ - `standards/prior-art/repos.yml`: a portfolio inventory of 11 production repos with
25
+ era, family, stack, and rating.
26
+ - `standards/patterns/sws-conventions.md`: the derived view of what is consistent and
27
+ what is not, with its own error record.
28
+ - `standards/prior-art/catalog.yml`, searchable with `sws prior-art find`.
29
+ - Each project's `.sws/manifest.yml` and `sws check --format brief` output, for live
30
+ compliance and divergence data.
48
31
 
49
- ## The methodological warning
32
+ Both inventories were built by reading `package.json` files on default branches.
33
+ That is repeatable and worth redoing periodically; date each pass.
34
+
35
+ ## The methodological warning, which is the core of this role
50
36
 
51
37
  Reading repos to set direction is exactly what this role does, and it has a
52
- documented failure mode. A first pass over those 11 repos produced four proposed
53
- corrections to SWS standards and **three were wrong**: a content-author tool was
54
- read as developer tooling, current practice was read as intent, and a version
55
- mismatch was treated as a decision when the right move was to stop naming versions.
38
+ documented failure mode. The first pass over those 11 repos proposed five
39
+ corrections to SWS standards and **four were wrong**:
40
+
41
+ | Error | Example |
42
+ |---|---|
43
+ | **Inferred purpose from presence** | `sa11y` read as developer tooling. It is a content-author tool in Visual Editor overlays |
44
+ | **Read current practice as intent** | Cypress everywhere read as the standard. Playwright is where SWS is heading |
45
+ | **Solved the wrong problem** | A version mismatch treated as needing a decision. The fix was to stop naming versions |
46
+ | **Counted repos, not lineages** | Four `--webpack` repos read as four votes. They are one copy-forked decision. Turbopack is forward |
47
+
48
+ So, the three clauses of the precedence rule, applied at portfolio scale:
49
+
50
+ 1. **Standards beat prior art** when they disagree.
51
+ 2. **Repeated identical choices are a convention**, but count lineages. Siblings made
52
+ by copy-forking share one decision, which may be frozen rather than current.
53
+ 3. **Repos tell you what the org does, never why, and never where it is going.** A
54
+ staff architect who mines lockfiles and skips the conversation will confidently
55
+ entrench the present.
56
+
57
+ Every finding from a repo audit goes to a person as a question before it becomes a
58
+ recommendation.
59
+
60
+ ## Findings already visible
61
+
62
+ Offered as the kind of thing this role acts on, each still needing a conversation:
63
+
64
+ - **Three architectural families** with different package managers (npm in
65
+ Storyblok/ADAPT, yarn in decoupled Drupal), class-name utilities, and CMS
66
+ approaches. Some divergence is reasonable; some is drift. Sort which is which.
67
+ - **No house headless component library.** `react-aria` in one repo, `@base-ui/react`
68
+ in another, MUI in two, `headlessui` in the ADAPT family. This is where
69
+ accessibility is usually won or lost, so it is the strongest candidate for a
70
+ house decision.
71
+ - **Storyblok SDK versions span 3.x to 6.x** across live sites: an upgrade-debt
72
+ cluster.
73
+ - **Node floors span `>=20` to `>=24`.**
74
+ - **`www.stanford.edu` runs a Decanter-derived system that feeds Decanter 8.** The
75
+ design system has a feedback loop from a flagship project. Managing that
76
+ relationship is squarely this role's work.
77
+
78
+ ## Should this become a house standard?
79
+
80
+ Walk these in order:
81
+
82
+ 1. **How many independent lineages already do it?** One lineage is one decision.
83
+ 2. **What breaks if a project does it differently?** If nothing, leave it a choice.
84
+ Standardising harmless variety buys enforcement cost for no benefit.
85
+ 3. **Does it affect compliance or accessibility?** If yes, the case is stronger.
86
+ 4. **Can it be stated as something to avoid?** "No `tailwind.config.js`" ages better
87
+ than "Tailwind 4.x". Prefer avoidances to version requirements.
88
+ 5. **Is there an easy path that makes it the default?** A standard with no recipe or
89
+ package behind it is a wish.
90
+ 6. **Who owns it?** A standard nobody maintains decays into folklore.
91
+
92
+ Remember the tone: carrot, not stick. A standard that feels obstructive gets
93
+ bypassed, and then SWS has no influence at all.
94
+
95
+ ## Technical debt across the portfolio
96
+
97
+ `engineering:tech-debt` has a categorisation workflow. The Stanford ordering:
98
+
99
+ 1. **Compliance debt first.** An unpatched dependency is a MinSec finding. An
100
+ inaccessible component is an Admin Guide 6.8.1 finding.
101
+ 2. **Debt shared across a lineage**, because one fix lands in many sites.
102
+ 3. **Debt that blocks a forward direction**, such as a major version.
103
+ 4. **Developer experience last.** An awkward build is neither a finding nor a risk.
104
+
105
+ Present debt as clusters with the affected sites named and a rough cost, not as a
106
+ list of every outdated package.
107
+
108
+ ## Major versions and who goes first
109
+
110
+ Recipes install latest and pin nothing except Decanter 8 rather than 7, because
111
+ that boundary fails silently. For a portfolio upgrade:
112
+
113
+ - Pick a pilot site that is low-traffic and actively maintained.
114
+ - Record what broke and the fix, then update the recipe or standard.
115
+ - Upgrade lineages together where copy-forking makes them near-identical.
116
+ - Leave sites nobody maintains for a sunset conversation, not an upgrade.
117
+
118
+ ## What Decanter should absorb
56
119
 
57
- The lesson, which is the third clause of the precedence rule: **repos tell you what
58
- the org does, never why, and never where it is going.** A staff architect who mines
59
- lockfiles and skips the conversation will confidently entrench the present. See
60
- `sws-prior-art`.
120
+ A pattern rebuilt independently in three or more projects, with no project-specific
121
+ content, is a candidate. Bring the evidence and the variants to the Decanter
122
+ maintainers. Do not fork Decanter to get it sooner; a `www.stanford.edu` pattern can
123
+ be adopted in a project before it lands upstream.
61
124
 
62
- ## Technical debt worth naming
125
+ ## Deliverables
63
126
 
64
- `engineering:tech-debt` has a categorisation and prioritisation workflow. The
65
- Stanford-specific addition: debt that affects **compliance** outranks debt that
66
- affects developer experience. An unpatched dependency is a MinSec finding. An
67
- inaccessible component is an Admin Guide 6.8.1 finding. An awkward build is
68
- neither.
127
+ A short, dated memo per question: the evidence, the lineages counted, what is still
128
+ unknown and who could answer it, and one recommendation. Decisions go in an ADR in
129
+ this package or the affected repos.
69
130
 
70
131
  ## Related
71
132
 
72
133
  `engineering:architecture`, `engineering:system-design`, `engineering:tech-debt`.
73
- None of them know anything about Stanford.
134
+ None of them know anything about Stanford. `sws-prior-art` for the catalog and its
135
+ rules.
@@ -1,66 +1,140 @@
1
1
  ---
2
2
  name: role-user-researcher
3
- description: User research for a Stanford site. Use for research planning, usability testing, interviews, surveys, analytics interpretation, or deciding what evidence would settle a design disagreement. PARTIALLY IMPLEMENTED: lightweight research ships in role-ux-designer, the full discipline does not.
3
+ description: User research for a Stanford site. Use for ranking audiences, building a task inventory, planning and running usability tests, interviews, surveys, reading analytics and search logs, recruiting Stanford participants, or deciding what evidence would settle a design disagreement.
4
4
  ---
5
5
 
6
6
  # User research
7
7
 
8
- **Status: stub. Full role lands in v2.** The proportionate version ships today
9
- inside `role-ux-designer`, which is where most SWS unit projects will and should
10
- stop.
11
-
12
- ## The honest position
13
-
14
8
  Most Stanford unit sites do not get a research budget, and pretending otherwise
15
9
  produces research theatre: a survey nobody acts on, a persona document nobody
16
- reads. The lightweight practices in `role-ux-designer` are genuinely most of the
17
- available value.
10
+ reads. This role is about getting real evidence cheaply, being honest about what it
11
+ can support, and turning it into decisions the IA, content, and design roles can
12
+ use.
13
+
14
+ The lightest version, three practices, lives in `role-ux-designer`. This role is the
15
+ fuller method behind them.
16
+
17
+ ## The highest-value output: a ranked audience list
18
+
19
+ If research does one thing on a Stanford project, it should force a **ranked**
20
+ audience list. "Prospective students, current students, and faculty" is three
21
+ audiences with conflicting needs, and treating them as equals is the single most
22
+ reliable cause of an unusable homepage. Somebody has to be first.
23
+
24
+ It does not need a research programme. It needs one conversation with the unit,
25
+ some evidence, and the discipline to write the answer down where the IA and content
26
+ roles will see it:
27
+
28
+ ```markdown
29
+ 1. Prospective graduate applicants. Top tasks: requirements, deadlines, who to ask.
30
+ 2. Current students. Top tasks: course info, forms, advising contacts.
31
+ 3. Faculty and staff elsewhere at Stanford. Top tasks: find a person, find a policy.
32
+ Not served here: alumni (served by the alumni site), press (University Communications).
33
+ ```
34
+
35
+ "Not served here" is as useful as the ranking. It is permission to leave things out.
36
+
37
+ ## Free evidence first
38
+
39
+ Before recruiting anyone, collect what already exists:
40
+
41
+ - **The existing site's analytics**, if it has any: top pages, entry pages, exits,
42
+ devices. Google Analytics is not required at Stanford, so do not assume it exists.
43
+ - **Internal search logs.** The words people type are the words the site should use.
44
+ - **What people email and call about.** Ask the unit for a week of it, anonymised.
45
+ Those questions are the site's real information architecture, and they are usually
46
+ not what the navigation reflects.
47
+ - **Help tickets and FAQs**, which are the same evidence written down.
48
+ - **Peer sites.** `sws prior-art find` for what SWS has built for similar units.
49
+
50
+ Summarise into a **task inventory**: the twenty or so things people come to do,
51
+ ranked by evidence of frequency, with the audience for each.
52
+
53
+ ## Usability testing, proportionate
54
+
55
+ The most valuable method per hour. On a unit site:
56
+
57
+ - **Two to five people** who are not on the project, from the top-ranked audience.
58
+ - **Real tasks from the inventory**, written as goals, not instructions: "You want to
59
+ apply for the summer programme. Find out if you are eligible," not "click
60
+ Programmes."
61
+ - **Watch and do not help.** Note where they hesitate, what they say, where they
62
+ give up.
63
+ - **Test early.** A sitemap tested with a tree test, or a paper wireframe, is
64
+ cheaper to change than a built site.
65
+ - **Test the editing path too.** With content in the repo, whether a unit staff member
66
+ can update a page from GitHub's web UI is part of the product.
67
+
68
+ Write the script at `docs/research/test-script.md`: the intro, consent wording, the
69
+ tasks, and the questions afterward.
70
+
71
+ ## Interviews and surveys
72
+
73
+ **Interviews** are for understanding why, before you know what to build. Five to eight
74
+ is usually enough to hear the same things repeated. Ask about past behaviour ("tell
75
+ me about the last time you..."), not hypothetical preferences.
76
+
77
+ **Surveys** are for how many, once you know what to ask. They are the method most
78
+ often run badly: leading questions, no plan for the answers, too many fields. Before
79
+ sending one, write down which decision each question informs. Delete the rest.
80
+
81
+ ## Stanford-specific considerations
18
82
 
19
- What is worth doing on any project, however small:
83
+ These matter more than method.
20
84
 
21
- - **Five minutes of task-based testing with two people** who are not on the
22
- project. Give them a real task, watch, do not help. This finds more than a
23
- heuristic review and costs almost nothing.
24
- - **Read the existing site's analytics and internal search logs.** Free evidence
25
- about what people actually want, as opposed to what the unit thinks they want.
26
- - **Ask the unit what people email and call them about.** Those questions are the
27
- site's real information architecture, and they are usually not what the
28
- navigation reflects.
85
+ **Human subjects.** Formal research involving people, or anything generalisable that
86
+ will be published, may need IRB review. Usability testing of a website for internal
87
+ design purposes typically does not, but **the line is not yours to draw**. Ask before
88
+ assuming, and route it rather than deciding.
29
89
 
30
- ## Stanford-specific considerations, which matter more than method
90
+ **MinPriv applies to research data.** Anything collecting personal information needs
91
+ a transparency notice before collection, purpose limitation, and appropriate
92
+ storage. A third-party survey or recording tool may trigger a Data Risk Assessment
93
+ (`standards/policy/privacy.md`). Record sessions only with consent, store them
94
+ somewhere the unit controls, and delete them when the findings are written.
31
95
 
32
- **Human subjects.** Formal research involving students, or anything generalisable
33
- that will be published, may need IRB review. Usability testing of a website for
34
- internal design purposes typically does not, but the line is not yours to draw.
35
- Ask before assuming, and route it rather than deciding.
96
+ **Recruiting is the hard part.** Students, faculty, and prospective students are each
97
+ hard to reach for different reasons. Prospective students are close to impossible
98
+ for a department to recruit ethically; current students who applied recently are
99
+ the usual proxy, and say so in the findings.
36
100
 
37
- **Recruiting is the hard part.** Students, faculty, and prospective students are
38
- each hard to reach for different reasons, and prospective students are close to
39
- impossible for a department to recruit ethically.
101
+ **Compensation** has procurement and tax implications. Do not improvise gift cards.
102
+ Ask the unit's finance contact.
40
103
 
41
- **MinPriv applies to research data too.** A survey collecting anything personal
42
- needs a transparency notice before collection, purpose limitation, and appropriate
43
- storage. Introducing a third-party survey tool may trigger a Data Risk Assessment.
44
- Route to the University Privacy Office.
104
+ **Accessibility in research.** Include at least one participant who uses assistive
105
+ technology when the budget allows, and make the session itself accessible: materials
106
+ that work with a screen reader, captions on remote calls.
45
107
 
46
- **Compensation** has procurement and tax implications and is not something to
47
- improvise.
108
+ ## Settling a design disagreement
48
109
 
49
- ## Audience ranking is the highest-value output
110
+ When two people disagree about a design, ask: **what would you need to see to change
111
+ your mind?** If neither can answer, it is a preference, and the ranked audience list
112
+ should decide. If they can, design the smallest test that would show it: often two
113
+ versions, three people, one task.
50
114
 
51
- If this role does one thing on a Stanford project, it should be forcing a
52
- **ranked** audience list. "Prospective students, current students, and faculty" is
53
- three audiences with conflicting needs, and treating them as equals is the single
54
- most reliable cause of an unusable homepage. Somebody has to be first.
115
+ ## Findings, honestly
55
116
 
56
- That output does not need a research programme. It needs one conversation with the
57
- unit and the discipline to write the answer down where the IA and content roles
58
- will see it.
117
+ - **Evidence, not assertions.** Each finding cites what was observed and how many
118
+ people.
119
+ - **Say what it cannot support.** Five sessions show that a problem exists; they do
120
+ not show how common it is.
121
+ - **Never present two people's opinions as a finding.**
122
+ - **End with decisions.** "Move the deadline to the programme page's first paragraph"
123
+ beats "users struggled with deadlines."
124
+
125
+ ## Artifacts
59
126
 
60
- ## Artifacts, when the full role exists
127
+ | Artifact | Path |
128
+ |---|---|
129
+ | Research plan | `docs/research/plan.md` |
130
+ | Ranked audiences and task inventory | `docs/research/audiences.md` |
131
+ | Usability test script | `docs/research/test-script.md` |
132
+ | Findings, dated | `docs/research/findings/` |
61
133
 
62
- Research plan, findings with evidence rather than assertions, ranked audience
63
- definitions, task inventory, and a usability test script, in `docs/research/`.
134
+ ## Escalation
64
135
 
65
- For now: use the lightweight practices, be honest about what they can and cannot
66
- support, and never present two people's opinions as a finding.
136
+ Whether a study needs IRB review is the IRB's call. `standards/policy/escalation.md`
137
+ does not list that door yet, so ask the unit who handles research compliance, and
138
+ say that is what you are doing. Privacy questions go to the University Privacy
139
+ Office; a DRA to UIT Security, per the same file. Do not recommend or rank survey or
140
+ research tools.
@@ -35,7 +35,7 @@ Every page, in this order:
35
35
 
36
36
  1. Skip navigation link. The only thing permitted above the Identity Bar.
37
37
  2. **Stanford Identity Bar.** Nothing above it but the skip link, and it has a
38
- **fixed height** — roughly 29px, from `pt-5 pb-1` and a `text-20` logo. Use
38
+ **fixed height** — roughly 31px, from `pt-5 pb-1` and a `text-20` logo. Use
39
39
  `standards/fragments/identity-bar.yml` verbatim rather than styling your own;
40
40
  `logo` is the correct font mechanism, not `font-serif`. **The Stanford
41
41
  ligature font must be loaded** — Decanter 8 ships no font assets, so without
@@ -123,7 +123,7 @@ workaround. Write it to `.sws/acknowledged.yml`:
123
123
  - check: a11y.contrast
124
124
  path: src/components/Legacy.astro
125
125
  reason: Vendor widget; contrast fix requested from vendor 2026-08-04
126
- accepted_by: sheamck@stanford.edu
126
+ accepted_by: you@stanford.edu
127
127
  date: 2026-08-11
128
128
  review_by: 2026-11-10
129
129
  ```
@@ -48,7 +48,7 @@ divergences:
48
48
  cost_accepted: >
49
49
  Static export forfeits redirects, headers, and image optimization
50
50
  date: 2026-08-11
51
- by: sheamck@stanford.edu
51
+ by: you@stanford.edu
52
52
  ```
53
53
 
54
54
  The record is what lets the next person understand the project. When the choice
@@ -62,7 +62,7 @@ from the nag to a "Divergences" section, with the reason beside it:
62
62
  cost_accepted: A licence to renew, and a token every install needs
63
63
  checks: [security.no-fontawesome-pro]
64
64
  date: 2026-11-09
65
- by: sheamck@stanford.edu
65
+ by: you@stanford.edu
66
66
  ```
67
67
 
68
68
  `checks:` covers preferences only: criteria with `policy: patterns` or no