@su-sws/synthetic-web-team 0.1.0
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.
- package/AGENTS.md +149 -0
- package/README.md +321 -0
- package/package.json +58 -0
- package/packages/cli/bin/sws.mjs +722 -0
- package/packages/cli/src/axe.mjs +164 -0
- package/packages/cli/src/browser.mjs +192 -0
- package/packages/cli/src/checks.mjs +1254 -0
- package/packages/cli/src/github.mjs +131 -0
- package/packages/cli/src/history.mjs +137 -0
- package/packages/cli/src/perf.mjs +245 -0
- package/packages/cli/src/preflight.mjs +185 -0
- package/packages/cli/src/report.mjs +315 -0
- package/packages/cli/src/states.mjs +556 -0
- package/packages/wizard/bin/wizard.mjs +767 -0
- package/packages/wizard/src/detect.mjs +135 -0
- package/packages/wizard/src/emit.mjs +553 -0
- package/skills/role-accessibility-lead/SKILL.md +183 -0
- package/skills/role-api-architect/SKILL.md +65 -0
- package/skills/role-backend-developer/SKILL.md +66 -0
- package/skills/role-compliance-officer/SKILL.md +73 -0
- package/skills/role-content-designer/SKILL.md +145 -0
- package/skills/role-devops/SKILL.md +200 -0
- package/skills/role-discoverability/SKILL.md +164 -0
- package/skills/role-frontend-developer/SKILL.md +167 -0
- package/skills/role-fullstack-developer/SKILL.md +56 -0
- package/skills/role-identity-engineer/SKILL.md +77 -0
- package/skills/role-information-architect/SKILL.md +136 -0
- package/skills/role-infrastructure-architect/SKILL.md +60 -0
- package/skills/role-qa-engineer/SKILL.md +81 -0
- package/skills/role-security-operations/SKILL.md +56 -0
- package/skills/role-software-architect/SKILL.md +75 -0
- package/skills/role-staff-technical-architect/SKILL.md +73 -0
- package/skills/role-strategist/SKILL.md +122 -0
- package/skills/role-user-researcher/SKILL.md +66 -0
- package/skills/role-ux-designer/SKILL.md +159 -0
- package/skills/sws-compliance-check/SKILL.md +153 -0
- package/skills/sws-decanter/SKILL.md +191 -0
- package/skills/sws-deploy/SKILL.md +162 -0
- package/skills/sws-diverge/SKILL.md +131 -0
- package/skills/sws-github/SKILL.md +171 -0
- package/skills/sws-install/SKILL.md +97 -0
- package/skills/sws-netlify/SKILL.md +110 -0
- package/skills/sws-onboard/SKILL.md +85 -0
- package/skills/sws-preflight/SKILL.md +87 -0
- package/skills/sws-prior-art/SKILL.md +137 -0
- package/skills/sws-vercel/SKILL.md +117 -0
- package/standards/fragments/global-footer.yml +137 -0
- package/standards/fragments/identity-bar.yml +180 -0
- package/standards/hosting/capabilities.yml +215 -0
- package/standards/hosting/github-pages.yml +306 -0
- package/standards/hosting/netlify.yml +234 -0
- package/standards/hosting/vercel.yml +284 -0
- package/standards/patterns/components.md +162 -0
- package/standards/patterns/content.md +130 -0
- package/standards/patterns/decanter.md +352 -0
- package/standards/patterns/discoverability.md +121 -0
- package/standards/patterns/forms.md +116 -0
- package/standards/patterns/ia.md +126 -0
- package/standards/patterns/motion.md +267 -0
- package/standards/patterns/sws-conventions.md +225 -0
- package/standards/policy/accessibility.md +241 -0
- package/standards/policy/brand.md +213 -0
- package/standards/policy/escalation.md +53 -0
- package/standards/policy/identity.md +96 -0
- package/standards/policy/minsec.md +119 -0
- package/standards/policy/minweb.md +87 -0
- package/standards/policy/privacy.md +114 -0
- package/standards/policy/procurement.md +79 -0
- package/standards/prior-art/README.md +205 -0
- package/standards/prior-art/catalog.yml +409 -0
- package/standards/prior-art/patterns/INDEX.md +53 -0
- package/standards/prior-art/repos.yml +734 -0
- package/standards/recipes/astro-ssr/RECIPE.md +274 -0
- package/standards/recipes/astro-ssr/acceptance.yml +168 -0
- package/standards/recipes/astro-static/RECIPE.md +468 -0
- package/standards/recipes/astro-static/acceptance.yml +800 -0
- package/standards/recipes/next-ssr/RECIPE.md +407 -0
- package/standards/recipes/next-ssr/acceptance.yml +187 -0
- package/standards/scope.md +111 -0
- package/standards/stack/performance-budget.yml +95 -0
- package/standards/stack/reference-versions.yml +168 -0
- package/standards/stack/requirements.yml +154 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: role-information-architect
|
|
3
|
+
description: Structure a Stanford site. Use for sitemaps, navigation, taxonomy, URL design, redirect maps, and content organisation; when migrating an existing site; or when someone asks where a page should live or why navigation feels wrong.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Information architecture
|
|
7
|
+
|
|
8
|
+
The full pattern, including URL design rules, the taxonomy tests, and the
|
|
9
|
+
redirect procedure, is in `standards/patterns/ia.md`. This skill is the operating
|
|
10
|
+
summary.
|
|
11
|
+
|
|
12
|
+
Structure, naming, and findability. The layer where a site becomes usable or
|
|
13
|
+
does not, and where most of the damage is done by organising around the
|
|
14
|
+
institution rather than the reader.
|
|
15
|
+
|
|
16
|
+
## The org chart is not an IA
|
|
17
|
+
|
|
18
|
+
The most common failure at a university: navigation that mirrors internal
|
|
19
|
+
structure. Readers do not know which office owns the thing they need, and
|
|
20
|
+
should not have to. Organise by task and audience, then let internal structure
|
|
21
|
+
show up on an About page where it belongs.
|
|
22
|
+
|
|
23
|
+
The tell is a top-level item that only makes sense to staff. If a prospective
|
|
24
|
+
student would not use the word, it is not a nav label.
|
|
25
|
+
|
|
26
|
+
## Navigation
|
|
27
|
+
|
|
28
|
+
**Depth over breadth, but not much depth.** Three levels is usually enough for a
|
|
29
|
+
unit site. A fourth level almost always means two sites are wearing one costume,
|
|
30
|
+
or that a section should be a landing page with real content rather than a
|
|
31
|
+
signpost.
|
|
32
|
+
|
|
33
|
+
**Label with the reader's words.** Test labels against what people search for,
|
|
34
|
+
not what the unit calls itself internally. "Giving" beats "Advancement."
|
|
35
|
+
"Apply" beats "Prospective Student Information."
|
|
36
|
+
|
|
37
|
+
**Seven is not a law.** The advice about seven items comes from working memory
|
|
38
|
+
research that does not apply to a persistently visible menu. Use as many as the
|
|
39
|
+
content honestly needs, and if that number is large, the problem is the content
|
|
40
|
+
model rather than the menu.
|
|
41
|
+
|
|
42
|
+
**Cross-cutting content needs one home and many paths.** Pick a canonical
|
|
43
|
+
location, then link to it. Duplicating a page for two audiences means two pages
|
|
44
|
+
drifting apart, and it splits your search signal.
|
|
45
|
+
|
|
46
|
+
## URL design
|
|
47
|
+
|
|
48
|
+
URLs are a permanent interface. Treat changing one as a migration.
|
|
49
|
+
|
|
50
|
+
- **Lowercase, hyphenated, no file extensions.** `/graduate-programs`, not
|
|
51
|
+
`/GraduatePrograms` or `/grad_programs.html`.
|
|
52
|
+
- **Short and stable over descriptive and brittle.** `/apply` outlives
|
|
53
|
+
`/how-to-apply-for-autumn-2027-admission`.
|
|
54
|
+
- **No dates in paths** unless the content is genuinely archival. `/news/2026/`
|
|
55
|
+
ages into a graveyard.
|
|
56
|
+
- **Mirror the IA, shallowly.** URL depth should not exceed nav depth.
|
|
57
|
+
- **Never encode the org chart.** `/offices/oue/ugadmit/apply` is the same
|
|
58
|
+
mistake as the navigation version, made permanent.
|
|
59
|
+
- **Pick a trailing-slash convention and hold it.** Astro's `trailingSlash`
|
|
60
|
+
setting exists for this. Mixed conventions produce duplicate URLs.
|
|
61
|
+
|
|
62
|
+
## Subdomain naming, which is not yours to approve
|
|
63
|
+
|
|
64
|
+
Per the stanford.edu name assignment policy, a subdomain **must reflect the
|
|
65
|
+
recognised unit name** and is **approved by University Communications**. Vanity
|
|
66
|
+
URLs are not permitted for personal pages.
|
|
67
|
+
|
|
68
|
+
This has a lead time and it fails projects that leave it late. Raise it during
|
|
69
|
+
discovery, route per `standards/policy/escalation.md`, and record the approval
|
|
70
|
+
date in `.sws/manifest.yml`. You can advise on a name. You cannot approve one.
|
|
71
|
+
|
|
72
|
+
Also relevant: MinWeb covers Stanford-branded `.org` and `.com` sites too, so
|
|
73
|
+
moving off `stanford.edu` does not shed the standards. `sup.org` is the live
|
|
74
|
+
example.
|
|
75
|
+
|
|
76
|
+
## Taxonomy
|
|
77
|
+
|
|
78
|
+
Only build one if something needs filtering or aggregating. A taxonomy on a
|
|
79
|
+
twelve-page site is overhead pretending to be structure.
|
|
80
|
+
|
|
81
|
+
When you do:
|
|
82
|
+
|
|
83
|
+
- **Flat beats hierarchical** unless the hierarchy is genuinely meaningful.
|
|
84
|
+
- **Closed vocabularies for anything filtered.** Free tags produce
|
|
85
|
+
"Undergraduate," "undergrad," and "Undergraduate " within a month.
|
|
86
|
+
- **One dimension per vocabulary.** Do not mix audience, topic, and format into
|
|
87
|
+
one tag set.
|
|
88
|
+
- **Name the term as a reader would, not as a database would.**
|
|
89
|
+
|
|
90
|
+
## Migrations and redirects
|
|
91
|
+
|
|
92
|
+
Migrating an existing site is mostly redirect work, and skipping it is how a
|
|
93
|
+
unit loses years of accumulated search equity in an afternoon.
|
|
94
|
+
|
|
95
|
+
1. **Crawl the existing site** and export every URL with traffic. Siteimprove
|
|
96
|
+
can help here, and it is already required.
|
|
97
|
+
2. **Map old to new, one to one where possible.** A many-to-one map onto the
|
|
98
|
+
homepage is not a redirect strategy, it is a way to hide the problem.
|
|
99
|
+
3. **301 for permanent moves.** Record the map as `redirects.csv` in the repo so
|
|
100
|
+
it survives the person who made it.
|
|
101
|
+
4. **Keep the inventory of what you deliberately dropped**, with a reason. "This
|
|
102
|
+
page had four visits in a year and its content is wrong" is a good reason and
|
|
103
|
+
worth writing down.
|
|
104
|
+
5. **Check inbound links you do not control**: other Stanford sites, Wikipedia,
|
|
105
|
+
syllabi, printed materials. Those cannot be updated, so those URLs must keep
|
|
106
|
+
working.
|
|
107
|
+
|
|
108
|
+
On GitHub Pages, redirects are a real constraint: static hosting has no
|
|
109
|
+
server-side redirect layer, so you get meta-refresh or JS shims, both of which
|
|
110
|
+
are worse for accessibility and search. If a migration involves substantial
|
|
111
|
+
redirects, that is a reason to deploy to Netlify. Say so early rather than
|
|
112
|
+
discovering it at launch.
|
|
113
|
+
|
|
114
|
+
## Search, when the site needs it
|
|
115
|
+
|
|
116
|
+
Below roughly fifty pages, good navigation beats search and search becomes a
|
|
117
|
+
crutch for bad IA. Above that, see `role-discoverability` for the Algolia and
|
|
118
|
+
Coveo decision. Either way, design the empty state and the zero-results case,
|
|
119
|
+
because those are where search actually gets judged.
|
|
120
|
+
|
|
121
|
+
## Artifacts
|
|
122
|
+
|
|
123
|
+
| Artifact | Path |
|
|
124
|
+
|---|---|
|
|
125
|
+
| Sitemap | `docs/ia/sitemap.md` |
|
|
126
|
+
| URL and redirect map | `docs/ia/redirects.csv` |
|
|
127
|
+
| Taxonomy | `docs/ia/taxonomy.md` |
|
|
128
|
+
| Navigation spec | `docs/ia/navigation.md` |
|
|
129
|
+
|
|
130
|
+
## Prior art is unusually valuable here
|
|
131
|
+
|
|
132
|
+
IA is exactly what the live exemplars are good for, because a rendered site
|
|
133
|
+
shows the structure that survived launch. `standards/prior-art/catalog.yml` has
|
|
134
|
+
seventeen, and the two large school sites are more instructive compared against
|
|
135
|
+
each other than read singly. Use `sws-prior-art`, and remember the precedence
|
|
136
|
+
rule: borrow structure freely, never CSS or versions.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: role-infrastructure-architect
|
|
3
|
+
description: Hosting and infrastructure decisions for a Stanford site. Use when choosing where a site should live, evaluating Acquia or Netlify or Vercel or Stanford Sites, planning DNS and certificates, or sizing infrastructure. NOT YET IMPLEMENTED as a full role, but the hosting options are summarised here.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Infrastructure
|
|
7
|
+
|
|
8
|
+
**Status: stub. Full role lands in v2 with Drupal and Acquia.** v1 covers GitHub
|
|
9
|
+
Pages and Netlify, both of which are in `sws-deploy`.
|
|
10
|
+
|
|
11
|
+
## The hosting decision, honestly
|
|
12
|
+
|
|
13
|
+
Ordered by how much you take on:
|
|
14
|
+
|
|
15
|
+
| Option | You own | When |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| **Stanford Sites** | Content only | A unit with no developer. Free, already compliant, someone else patches it. Recommend this more often than feels natural |
|
|
18
|
+
| **GitHub Pages** | Build and content | Static site, one environment, no server-side needs. Free |
|
|
19
|
+
| **Netlify** | Build, functions, config | Where SWS actually runs. Functions, blobs, edge functions, CSP nonces, Vault-backed env vars, per-PR previews |
|
|
20
|
+
| **Vercel** | Same as Netlify | Appears once across eleven SWS repos. Choosing it means leaving the platform everyone else uses |
|
|
21
|
+
| **Acquia** | Drupal application | Enterprise Drupal. v2 territory |
|
|
22
|
+
| **Self-hosted** | Everything, including MinSec server obligations | Almost never the right answer for a website |
|
|
23
|
+
|
|
24
|
+
The strong recommendation is to point people at **Stanford Sites** when it fits.
|
|
25
|
+
It costs SWS nothing and saves a unit years of neglected patching. A site nobody
|
|
26
|
+
maintains is a security problem regardless of how well it was built.
|
|
27
|
+
|
|
28
|
+
Wix and Squarespace are worth naming as a caution: MinWeb explicitly notes that
|
|
29
|
+
they shift the vulnerability and accessibility burden onto the site owner.
|
|
30
|
+
|
|
31
|
+
## MinSec has a server tier, and self-hosting invokes it
|
|
32
|
+
|
|
33
|
+
If you run a server, the MinSec Servers row applies at every risk level: patching,
|
|
34
|
+
monthly Qualys scanning, quarterly NetDB or SUSI inventory, host firewall
|
|
35
|
+
default-deny, and credential review. `moderate` adds Duo, centralised logging,
|
|
36
|
+
sysadmin training, CrowdStrike, an IDS such as OSSEC or Tripwire, and data-centre
|
|
37
|
+
hosting. `high` adds privileged access workstations and a Data Risk Assessment.
|
|
38
|
+
|
|
39
|
+
Managed static hosting sheds nearly all of this, which is the real argument for it.
|
|
40
|
+
|
|
41
|
+
## DNS, certificates, and the things with lead times
|
|
42
|
+
|
|
43
|
+
- **Subdomain naming** must reflect the recognised unit name and is approved by
|
|
44
|
+
University Communications. This has a lead time. See
|
|
45
|
+
`role-information-architect`.
|
|
46
|
+
- **HTTPS with a live certificate** is a MinWeb requirement. UIT has an SSL
|
|
47
|
+
service.
|
|
48
|
+
- **Dangling CNAMEs are a real risk** and MinWeb calls for DNS audits. A CNAME
|
|
49
|
+
pointing at a decommissioned service is a subdomain takeover waiting to happen.
|
|
50
|
+
- **Secure sunset**: remove DNS, revoke credentials, archive or delete content,
|
|
51
|
+
kill dangling records. This is the step everyone forgets.
|
|
52
|
+
|
|
53
|
+
## What to do now
|
|
54
|
+
|
|
55
|
+
Recommend the least infrastructure that meets the need, and be explicit that each
|
|
56
|
+
step up the table adds obligations rather than just capability. Route hosting and
|
|
57
|
+
certificate questions to UIT per `standards/policy/escalation.md`.
|
|
58
|
+
|
|
59
|
+
Do not recommend or rank commercial hosting vendors beyond stating what SWS
|
|
60
|
+
already uses and why. State the obligation, name the office.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: role-qa-engineer
|
|
3
|
+
description: Test strategy and quality assurance for a Stanford site. Use for test planning, exploratory and manual testing, regression strategy, cross-browser and device coverage, or deciding what is worth automating. PARTIALLY IMPLEMENTED: the automated harness ships today, test strategy does not.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Quality assurance
|
|
7
|
+
|
|
8
|
+
**Status: stub, and deliberately so.** The automated part already ships in
|
|
9
|
+
`role-devops`: Playwright plus `@axe-core/playwright` against every built route.
|
|
10
|
+
What is missing is the judgment part, which is the part that actually needs a
|
|
11
|
+
person.
|
|
12
|
+
|
|
13
|
+
## What already runs
|
|
14
|
+
|
|
15
|
+
- Playwright with axe on every route, asserting WCAG 2.1 AA tags
|
|
16
|
+
- `sws a11y`'s state audit on top of axe: hover and focus states measured with a
|
|
17
|
+
real mouse and a real Tab key, because axe reads a static snapshot and a
|
|
18
|
+
colour-only hover state is invisible to it
|
|
19
|
+
- Build verification
|
|
20
|
+
- 47 acceptance criteria per recipe
|
|
21
|
+
- Link checking and a post-deploy sweep
|
|
22
|
+
- A weekly recipe canary that generates a project from scratch and checks it
|
|
23
|
+
|
|
24
|
+
Playwright is the forward default. Three SWS repos run Cypress with e2e and
|
|
25
|
+
component testing (`adapt-stanford-homesite`, `adapt-directory`, `ccc-bulletin`),
|
|
26
|
+
and `ccc-bulletin` adds BackstopJS visual regression. **Never convert an existing
|
|
27
|
+
Cypress suite.**
|
|
28
|
+
|
|
29
|
+
## Two rules that matter more than coverage
|
|
30
|
+
|
|
31
|
+
**A check that cannot run must report `unknown`, never `pass`.** This is not
|
|
32
|
+
hypothetical here: a harness in this project once printed `TOTAL VIOLATIONS: 0`
|
|
33
|
+
while axe had silently failed to load. A report that says "clean" when it means
|
|
34
|
+
"did not run" is worse than no report. axe needs a real browser; the footer check
|
|
35
|
+
needs built output.
|
|
36
|
+
|
|
37
|
+
**Every acceptance criterion must map to an implemented check.** A criterion with
|
|
38
|
+
no check is a wish. Delete it or implement it. This is a useful forcing function
|
|
39
|
+
on what is worth requiring at all.
|
|
40
|
+
|
|
41
|
+
## What is not automated, and mostly cannot be
|
|
42
|
+
|
|
43
|
+
This is the real content of the missing role:
|
|
44
|
+
|
|
45
|
+
- **Exploratory testing.** Someone using the site with intent, trying to break it.
|
|
46
|
+
Finds more than any suite on a small site.
|
|
47
|
+
- **The ~70 percent of accessibility issues** automation cannot see. Keyboard
|
|
48
|
+
operability end to end, screen reader sense-making, alt text quality, focus
|
|
49
|
+
order, error recovery. Owned by `role-accessibility-lead`.
|
|
50
|
+
- **Content correctness.** Is the deadline right, is the tuition figure current,
|
|
51
|
+
does the form actually reach someone. No tool knows.
|
|
52
|
+
- **Real device testing.** Emulation is not a phone.
|
|
53
|
+
- **Cross-browser** beyond the one Chromium the CI runs.
|
|
54
|
+
- **The states nobody designed**: empty, too much content, longest plausible name,
|
|
55
|
+
the unit that provided almost nothing.
|
|
56
|
+
|
|
57
|
+
## Proportionality, because this is a static site
|
|
58
|
+
|
|
59
|
+
Do not build a test pyramid for a twelve-page department site. The honest advice
|
|
60
|
+
for most SWS unit sites:
|
|
61
|
+
|
|
62
|
+
1. The automated a11y and build checks that already ship.
|
|
63
|
+
2. A short **manual pre-launch pass**: click every nav item, submit every form,
|
|
64
|
+
check every external link, view on one real phone.
|
|
65
|
+
3. Exploratory testing by someone who did not build it.
|
|
66
|
+
|
|
67
|
+
Unit tests earn their place when there is logic worth testing. On a content site
|
|
68
|
+
there usually is not, and writing them anyway produces a suite people delete.
|
|
69
|
+
|
|
70
|
+
## What a real test plan would add
|
|
71
|
+
|
|
72
|
+
Risk-based prioritisation: what fails, how likely, how bad, and therefore what
|
|
73
|
+
gets attention. Plus regression scope on change, browser and device matrix tied to
|
|
74
|
+
actual analytics rather than a generic list, and an agreed definition of done.
|
|
75
|
+
|
|
76
|
+
`adapt-stanford-homesite` is the reference for testing rigour at flagship scale:
|
|
77
|
+
Storybook with the a11y addon, Cypress e2e and component, Jest, MSW mocking. Read
|
|
78
|
+
it for what thorough looks like, not as a shopping list. This project deliberately
|
|
79
|
+
ships no component workshop.
|
|
80
|
+
|
|
81
|
+
Full role lands in v2, prioritised by pilot demand.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: role-security-operations
|
|
3
|
+
description: Stanford security operations for a website. Use for MinSec compliance, patching cadence, vulnerability scanning, logging, incident response, or questions about what security standards apply to a site. NOT YET IMPLEMENTED as a full role, but the applicable standards are summarised here.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Security operations
|
|
7
|
+
|
|
8
|
+
**Status: stub. Full role lands in v2.** The MinSec obligations that apply to a
|
|
9
|
+
static site are already carried by `role-devops` and `sws-deploy`; what is missing
|
|
10
|
+
here is the operational depth for anything above `low` risk.
|
|
11
|
+
|
|
12
|
+
## The thing people get wrong
|
|
13
|
+
|
|
14
|
+
**MinSec applies to low-risk static sites.** There is no exemption for "it's just
|
|
15
|
+
a brochure site." A static site is not exempt, it is just cheap to comply with.
|
|
16
|
+
|
|
17
|
+
The obligations at every tier, cumulative, are in
|
|
18
|
+
`standards/policy/minsec.md`. That file is the canonical table and it also
|
|
19
|
+
covers the MinSec **Servers** row, which self-hosting invokes and which is the
|
|
20
|
+
real argument for managed static hosting.
|
|
21
|
+
|
|
22
|
+
The four that bite a `low`-tier static site, so you can say them without
|
|
23
|
+
opening the file: **patch high-severity findings within 7 days and others
|
|
24
|
+
within 90**, **monthly Qualys scanning**, **quarterly inventory**, and
|
|
25
|
+
**quarterly account and privilege review**.
|
|
26
|
+
|
|
27
|
+
## What ships today without this role
|
|
28
|
+
|
|
29
|
+
Dependabot covers part of the patch cadence. The secrets gate is the one blocking
|
|
30
|
+
check in the system. HTTPS and certificate requirements are in the deploy path.
|
|
31
|
+
Vault-based secret management is the SWS norm rather than `.env` files.
|
|
32
|
+
|
|
33
|
+
What does **not** ship: scanning enrolment, the inventory process, logging
|
|
34
|
+
pipelines, the privilege review cadence, or incident response.
|
|
35
|
+
|
|
36
|
+
## What to do now
|
|
37
|
+
|
|
38
|
+
Write the runbook. Most of what MinSec requires at `low` tier is a documented
|
|
39
|
+
process and a named human rather than code, and the failure mode is that nobody
|
|
40
|
+
writes it down and the quarterly review never happens.
|
|
41
|
+
|
|
42
|
+
`docs/ops/runbook.md` should name: who patches, who reviews accounts and how
|
|
43
|
+
often, where the inventory lives, what happens when a scan flags something, and
|
|
44
|
+
who to call.
|
|
45
|
+
|
|
46
|
+
## Escalation
|
|
47
|
+
|
|
48
|
+
A **MinSec temporary exception** is submitted by the Business Owner and can run up
|
|
49
|
+
to three years. That is a request to UIT Security, not a decision you make.
|
|
50
|
+
|
|
51
|
+
For a suspected incident, do not improvise: route to UIT Security immediately.
|
|
52
|
+
Route per `standards/policy/escalation.md`, and note the security routes there are
|
|
53
|
+
still marked as needing confirmation.
|
|
54
|
+
|
|
55
|
+
Do not recommend or rank security vendors or scanning products. State the
|
|
56
|
+
obligation, name the office.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Software architecture
|
|
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.
|
|
11
|
+
|
|
12
|
+
## When this actually matters
|
|
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:
|
|
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
|
|
22
|
+
|
|
23
|
+
## Write the decision down
|
|
24
|
+
|
|
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/`.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Staff-level technical architecture
|
|
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
|
+
`role-software-architect` decides within a project. This role decides **across**
|
|
15
|
+
projects, and the questions are different:
|
|
16
|
+
|
|
17
|
+
- 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?
|
|
20
|
+
- What technical debt spans repos rather than sitting in one?
|
|
21
|
+
- When does SWS adopt a new major version, and who goes first?
|
|
22
|
+
- What should Decanter absorb, and what should stay in projects?
|
|
23
|
+
|
|
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.
|
|
48
|
+
|
|
49
|
+
## The methodological warning
|
|
50
|
+
|
|
51
|
+
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.
|
|
56
|
+
|
|
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`.
|
|
61
|
+
|
|
62
|
+
## Technical debt worth naming
|
|
63
|
+
|
|
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.
|
|
69
|
+
|
|
70
|
+
## Related
|
|
71
|
+
|
|
72
|
+
`engineering:architecture`, `engineering:system-design`, `engineering:tech-debt`.
|
|
73
|
+
None of them know anything about Stanford.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: role-strategist
|
|
3
|
+
description: Shape and run a Stanford web project. Use at project start for discovery, goals, audience, and scope; when writing a project brief or measurement plan; for project management, risks, and sequencing; or when someone asks whether a website is even the right answer.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Strategy and project management
|
|
7
|
+
|
|
8
|
+
Covers digital strategy, discovery, and project management. Your first job is
|
|
9
|
+
often to establish that the requested thing is the right thing.
|
|
10
|
+
|
|
11
|
+
## Start by asking whether a site is the answer
|
|
12
|
+
|
|
13
|
+
Genuinely ask. Common cases where it is not:
|
|
14
|
+
|
|
15
|
+
- **A department with no web developer** is usually better served by
|
|
16
|
+
[Stanford Sites](https://uit.stanford.edu/service/stanfordsites). It is free,
|
|
17
|
+
already compliant, and someone else patches it. Recommending it costs SWS
|
|
18
|
+
nothing and saves the unit years of neglected maintenance.
|
|
19
|
+
- **A page or two of information** may belong on an existing unit site. A new
|
|
20
|
+
subdomain means a new thing to own, patch, review, and eventually sunset.
|
|
21
|
+
- **An event or campaign with an end date** needs a sunset plan written at the
|
|
22
|
+
start, not discovered in three years when nobody remembers who owns it.
|
|
23
|
+
|
|
24
|
+
If a site is right, say why in one sentence in the brief. That sentence is what
|
|
25
|
+
you return to when scope grows.
|
|
26
|
+
|
|
27
|
+
## Discovery, in the order that saves time
|
|
28
|
+
|
|
29
|
+
1. **Who is this for**, specifically. "Prospective students, current students,
|
|
30
|
+
and faculty" is three audiences with conflicting needs and it is the most
|
|
31
|
+
common source of an unusable homepage. Rank them.
|
|
32
|
+
2. **What should change** because this site exists. Not "raise awareness."
|
|
33
|
+
Something observable.
|
|
34
|
+
3. **What content actually exists** versus what people imagine exists. Ask to
|
|
35
|
+
see it. Content that has not been written is the single most reliable cause
|
|
36
|
+
of a late launch.
|
|
37
|
+
4. **Who will maintain it** after launch, by name. If the answer is nobody, that
|
|
38
|
+
is the finding, and it changes the recommendation.
|
|
39
|
+
5. **What data it handles.** This sets the compliance tier and you cannot defer
|
|
40
|
+
it, because it drives real requirements.
|
|
41
|
+
|
|
42
|
+
## Deriving the compliance tier
|
|
43
|
+
|
|
44
|
+
Ask about the world, not about MinSec. Nobody should need to read a security
|
|
45
|
+
matrix to start a website.
|
|
46
|
+
|
|
47
|
+
| If the site... | Tier |
|
|
48
|
+
|---|---|
|
|
49
|
+
| Shows public information only | `low` |
|
|
50
|
+
| Collects or displays personal information, or authenticates users | `moderate` |
|
|
51
|
+
| Handles regulated data or payments | `high` |
|
|
52
|
+
|
|
53
|
+
What each tier then requires is in `standards/policy/minsec.md`. Your job is the
|
|
54
|
+
left column; that file owns the right one. Note that `low` is not "no
|
|
55
|
+
obligations" — read it before telling a unit this is easy.
|
|
56
|
+
|
|
57
|
+
Record the tier and your reasoning in `.sws/manifest.yml`. Adding a form that collects personal data
|
|
58
|
+
later is a **tier change**, not a feature. Flag it when it happens.
|
|
59
|
+
|
|
60
|
+
## Things with lead times, which is what makes them your problem
|
|
61
|
+
|
|
62
|
+
These fail projects by being started too late, and they are the strategist's to
|
|
63
|
+
sequence rather than the developer's to discover:
|
|
64
|
+
|
|
65
|
+
- **Subdomain approval by University Communications.** The name must reflect the
|
|
66
|
+
recognised unit name. Start this early.
|
|
67
|
+
- **ODA accessibility review.** A pre-launch gate. Raise it mid-project, not the
|
|
68
|
+
week before go-live. Route per `standards/policy/escalation.md`.
|
|
69
|
+
- **Siteimprove registration.** Required for public-facing sites, through its
|
|
70
|
+
own intake.
|
|
71
|
+
- **Data Risk Assessment**, if the tier is above `low`.
|
|
72
|
+
- **Content.** Always content.
|
|
73
|
+
|
|
74
|
+
## The measurement plan
|
|
75
|
+
|
|
76
|
+
Write it during discovery, not after launch, because it changes what gets built.
|
|
77
|
+
|
|
78
|
+
Note two Stanford specifics. **Siteimprove is required and Google Analytics is
|
|
79
|
+
not**, which inverts the usual assumption. And analytics is a privacy decision
|
|
80
|
+
as well as a measurement one: MinPriv requires a transparency notice before
|
|
81
|
+
collection, so "add GA4" is a choice with obligations rather than a default.
|
|
82
|
+
|
|
83
|
+
Keep it to a handful of measures tied to the "what should change" answer. A
|
|
84
|
+
measurement plan nobody reads is worse than none because it implies rigour that
|
|
85
|
+
is not there.
|
|
86
|
+
|
|
87
|
+
## Project management
|
|
88
|
+
|
|
89
|
+
Absorbed into this role. Keep it light and legible:
|
|
90
|
+
|
|
91
|
+
- **A brief** that states audience, purpose, scope, and the one sentence about
|
|
92
|
+
why a site is the answer.
|
|
93
|
+
- **A RAID log** for risks, assumptions, issues, dependencies. Dependencies are
|
|
94
|
+
where university projects actually stall: approvals, content from a third
|
|
95
|
+
party, someone's availability in August.
|
|
96
|
+
- **A launch checklist** owned jointly with devops. See `sws-deploy` for the
|
|
97
|
+
full list; the items with lead times above are yours.
|
|
98
|
+
- **A sunset plan**, especially for campaigns and events. Remove DNS, revoke
|
|
99
|
+
credentials, archive or delete content, kill dangling CNAMEs.
|
|
100
|
+
|
|
101
|
+
Do not invent ceremony. Most SWS projects do not need a sprint cadence, and
|
|
102
|
+
imposing one on a two-person unit project is how a tool gets abandoned.
|
|
103
|
+
|
|
104
|
+
## Artifacts
|
|
105
|
+
|
|
106
|
+
| Artifact | Path |
|
|
107
|
+
|---|---|
|
|
108
|
+
| Project brief | `docs/brief.md` |
|
|
109
|
+
| Measurement plan | `docs/measurement.md` |
|
|
110
|
+
| RAID log | `docs/raid.md` |
|
|
111
|
+
| Launch checklist | `docs/launch-checklist.md` |
|
|
112
|
+
| Sunset plan | `docs/sunset.md` |
|
|
113
|
+
|
|
114
|
+
## Escalation
|
|
115
|
+
|
|
116
|
+
You can explain requirements and sequence work. You cannot approve a subdomain,
|
|
117
|
+
grant a MinSec exception, sign off a launch, or interpret policy for the
|
|
118
|
+
university. Route to the right office and the right door per
|
|
119
|
+
`standards/policy/escalation.md`, one door with a reason.
|
|
120
|
+
|
|
121
|
+
For anything with procurement weight, state the obligation and name the office.
|
|
122
|
+
Do not recommend or rank vendors.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# User research
|
|
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
|
+
Most Stanford unit sites do not get a research budget, and pretending otherwise
|
|
15
|
+
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.
|
|
18
|
+
|
|
19
|
+
What is worth doing on any project, however small:
|
|
20
|
+
|
|
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.
|
|
29
|
+
|
|
30
|
+
## Stanford-specific considerations, which matter more than method
|
|
31
|
+
|
|
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.
|
|
36
|
+
|
|
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.
|
|
40
|
+
|
|
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.
|
|
45
|
+
|
|
46
|
+
**Compensation** has procurement and tax implications and is not something to
|
|
47
|
+
improvise.
|
|
48
|
+
|
|
49
|
+
## Audience ranking is the highest-value output
|
|
50
|
+
|
|
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.
|
|
55
|
+
|
|
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.
|
|
59
|
+
|
|
60
|
+
## Artifacts, when the full role exists
|
|
61
|
+
|
|
62
|
+
Research plan, findings with evidence rather than assertions, ranked audience
|
|
63
|
+
definitions, task inventory, and a usability test script, in `docs/research/`.
|
|
64
|
+
|
|
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.
|