diff --git "a/documents.jsonl" "b/documents.jsonl" new file mode 100644 --- /dev/null +++ "b/documents.jsonl" @@ -0,0 +1,102 @@ +{"id":"PSDS-DOC-0098","document_id":"PSDS-DOC-0098","title":"Agent instructions","text":"# Agent instructions\n\nDocument ID: `PSDS-DOC-0098`\n\n## Scope and retrieval\n\nUse guidance/**/*.md as the document set. Use each named Markdown file as the guide for its topic. Where a topic has subguides, a file such as guidance/patterns/create-a-user-profile.md introduces the topic and the matching directory contains its subguides. Store the stable document ID and source commit. Resolve paths and anchors at that revision. Keep the H1 with every section retrieved from the same document. Use principle, component, pattern, template, utility and workflow as the document kinds, and use British English (en-GB). Use the README and this file for routing and governance.\n\n1. Classify the task by user goal, surface, variant and required behaviour. Retrieve the most specific guide, then follow relevant in-set links for dependencies.\n2. Record source IDs, revision, resolved paths and sections, test conditions, applicability and WCAG criteria where stated. Keep test procedures together with expected results. Keep complete fenced code blocks with their variant heading and any stated dependencies.\n3. Complete the [component semantics contract](guidance/templates/component-semantics-contract.md) for each behaviourally distinct variant with the host design system, visible and accessible names, semantics, focus, input methods, states, error recovery, data requirements and equivalent outputs. Prefer native elements when they satisfy the contract.\n4. Translate the HTML and styling examples into host components, routes, tokens and assets. Map state, event and focus handling explicitly. Treat an example’s styling or JavaScript dependency as part of the integration work.\n5. Run the relevant tests against the implemented journey. Record the build, variant, browser, input method, assistive technology and outcome. Label checks that are unrun, blocked or inapplicable. Report a pass only when the expected outcome was observed.\n\n## Import principle decisions\n\nRead the [governance map](guidance/principles/governance-map.json) when importing principles into a service governance system. Version 1 covers the shared-device reminder pilot. Resolve paths from the repository root at the revision being imported. Match records by stable ID, record the source commit and map the suggested role to a local decision owner. Keep local approvals and observed test results in the service’s records. An import creates guidance with verification pending. Revisit the local decision when its source or applicability changes.\n\n## Resolve a test and its evidence\n\nUse register titles to locate the source. Before implementing a requirement or assessing a result, read its full source section, including the procedure, expected outcome, applicability and surrounding setup. If an ID, path or anchor fails to resolve at the pinned commit, record the reference and revision, flag the gap to the owner and leave the assessment pending.\n\nFor example, follow the [reminder decision](guidance/principles/governance-map.json) to PSDS-REQ-0002. In the repository register, PSDS-TEST-0002 verifies that requirement. Open its [draft recovery procedure](guidance/principles/testing-techniques.md#psds-test-0002-verify-draft-recovery). The [pilot observations](pilots/save-draft/observations.json) record recovery after declining the reminder on build A and failure on build B. Each result belongs to that fixture and build. Record a fresh observation for an adopting service.\n\n## Procurement and delivery workflows\n\nFor a supplier response, retrieve the [vendor checklist](guidance/vendor-procurement/delivery-checklist.md) and [market profiles](guidance/vendor-procurement/jurisdiction-and-reporting.md). For local acceptance and management reporting, retrieve the [internal delivery workflow](guidance/internal-delivery/service-workflow.md). Use workflow as the document kind for these guides. Pin evidence to the assessed build. Draft tickets and report rows within the host permissions and route unresolved claims to the named reviewer.\n\n## Adapt a service brand\n\nChoose the core family and fallback order using [Font size and family](guidance/utilities/font-size-and-family.md#choose-the-family-and-fallback). Map brand colours to semantic roles and verify component states and Windows contrast themes using [Colour](guidance/utilities/example_colours.md#map-the-brand-palette-to-roles). Record the tested combinations in the host service.\n\n## Training and governance\n\n- Keep guide text, code examples and test procedures connected through stable IDs and the imported revision, retaining resolved paths and section headings. Create an evaluation split by guide or closely related family to avoid leakage from near-duplicate variants.\n- Treat examples as adapted guidance. Use the applicable version of the normative standard for conformance decisions. A component check alone cannot establish whole-service conformance.\n- Exclude service records, credentials, National Insurance numbers and identifying demographic data. Use clearly synthetic values in examples and fixtures.\n- Keep imported checklist procedures distinct from evidence collected against a host. Added checks marked as suggested are local verification guidance.\n- Retrieve external companion material only when its trigger applies. Retain its source identifier, version and licence when preparing a training corpus. Ask the relevant service owner to resolve conflicts between policy, support commitments and design decisions.\n\n## Companion retrieval\n\n| Retrieve when | Repository | Expected agent output |\n|---|---|---|\n| Different input or output modes, language switching, navigation or live feedback | [Inclusive Multimodal UX](https://github.com/Double-FW/Inclusive-Multimodal-UX) | Specify equivalent cues, actions and state across modalities. Use structural semantics and test the supported input and output paths. |\n| Research coverage, prioritisation or functional access needs | [Accessibility Demographics](https://github.com/Double-FW/Accessibility_Demographics) | Select outcome-based participant segments and document coverage gaps. Keep population estimates separate from evidence about this service. |\n| AI influences a public-service outcome | [EU AI Act accessibility, disability rights and delivery](https://github.com/Double-FW/EU-AI-Act-accessibility-disability-rights-and-delivery) | Identify the system role, applicable duties, oversight and evidence owners. Escalate rights-impacting or unresolved decisions to the service owner. |\n| The service operates across jurisdictions | [Global accessibility regulatory requirements](https://github.com/Double-FW/Global_Accessiblity_Regulatory_Requirements) | Map jurisdictions, service scope and evidence obligations. Verify applicability and current rules against primary sources. |\n| European public-sector web or mobile services, procurement or monitoring | [EU Web Accessibility Directive and EN 301 549](https://github.com/Double-FW/EU-Web-Accessibility-Directive_EN301549) | Map obligations to the relevant technical tests, evidence and reporting duties. Confirm the applicable edition and local requirements. |\n| Charts, maps or complex graphics convey information | [Accessible charts, graphs and maps](https://github.com/Double-FW/Accessible_Charts_Graphs_and_Maps) | Determine the visual insight, then provide equivalent summaries, values and interactions. Validate that all representations use the same data and filter state. |\n| Type tokens, font fallbacks or brand typography | [Accessible typography for UX and brand systems](https://github.com/Double-FW/Accessible-Typography-for-UX-and-Brand-Systems) | Check character distinction, script coverage, fallback metrics, line length and user overrides before setting tokens. Test with service content at the smallest and largest supported sizes. |\n| Conversational routing, assistance or an automated service entry point | [Accessible chatbots](https://github.com/Double-FW/Accessible-Chatbots) | Apply conversation semantics, status announcements, interruption recovery and a usable handoff to a person. |\n| Long forms, interruption, confirmation or task recovery | [Cognitive UX design](https://github.com/Double-FW/Cognitive-UX-Design) | Reduce recall demands with plain instructions, visible progress, review and recoverable state. Evaluate whether returning users can resume confidently. |\n| Confirmations, invitations, recovery or notifications delivered by email | [Accessible email design](https://github.com/Double-FW/Accessible-Email-Design) | Specify meaningful subject, text and links, accessible reading order and equivalent instructions on the service. Test the handoff in supported email clients. |\n| Personal attributes, disability information, identifiers or training evidence | [Data ethics and disability](https://github.com/Double-FW/Data_Ethics_and_Disability) | Record purpose, minimisation, access and retention. Use synthetic data for fixtures and keep disclosures, raw identifiers and live user records out of training. |\n\n## Stable identifiers\n\nResolve document, requirement and test IDs through the [repository register](guidance/identifier-register.json). It incorporates the [principles pilot register](guidance/principles/identifier-register.json). An expected outcome inherits the applicability and advisory status of its check. Record the local baseline before treating it as mandatory. Record the local adoption decision, imported Git commit, test ID, build and observed outcome. Resolve historical evidence at its recorded revision. Keep external criteria and versions separate.\n\nKeep identifiers through renames and clarifications. For materially different obligations or outcomes allocate a fresh identifier. Retain the retired source entry with a retirement note and successor ID. Requirements from the reminder pilot apply when the service adopts the decision. Ordinary examples remain part of their guide.\n\nRun `node scripts/principle-ids.mjs` from the repository root to regenerate the register. Then run `node scripts/repository-ids.mjs` to regenerate the repository register. Maintain test-to-requirement links in `guidance/test-requirements.json`. Resolve tests for a decision by looking up records whose verifies field matches its requirement IDs. Run both commands with `--check` to verify the published outputs. Allocate the next unused number for each kind and retain the ID in the source when moving text.\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"AGENTS.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/AGENTS.md#L1-L63","source_start_line":1,"source_end_line":63,"source_document_sha256":"9c705e03062245f0eb07a65ba74526b24ac74ecffd93ccf228f95b22d16151bd","text_sha256":"9c705e03062245f0eb07a65ba74526b24ac74ecffd93ccf228f95b22d16151bd","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-12-03","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."} +{"id":"PSDS-DOC-0097","document_id":"PSDS-DOC-0097","title":"Public service design system documentation","text":"# Public service design system documentation\n\nDocument ID: `PSDS-DOC-0097`\n\nDesign guidance and accessibility checks for public-service websites and applications. Each guide has a stable document ID. Resolve its path at the revision you are using. Component test pages are incorporated into the corresponding guides. The examples use synthetic content and British English.\n\n## Acknowledgements\n\nThe [U.S. Web Design System (USWDS)](https://designsystem.digital.gov/) provided the foundation for the component, pattern and utility guidance in this repository.\n\nThank you to the people at 18F and the U.S. Digital Service who created USWDS, and to the maintainers at the U.S. General Services Administration and the wider open-source community who have built, tested and documented it over the years. You can read more about the [project’s history](https://designsystem.digital.gov/about/) and the [USWDS community](https://designsystem.digital.gov/about/community/).\n\nDouble FW maintains this independent adaptation. We have adapted the examples for a wider public-service context and added accessibility testing and guidance for design, implementation and assurance.\n\n## Start here for agents\n\n1. Pin the repository commit and use the [agent instructions](AGENTS.md) to select the task and scope.\n2. Resolve the stable ID in the [repository identifier register](guidance/identifier-register.json). Open the recorded path and anchor at that same commit.\n3. Read the complete source section. For a component, follow the [component contract directory](guidance/templates/component-semantics-contract.md#component-contract-directory). For verification, retrieve the applicable test procedure, expected outcome and conditions.\n4. Record the observed result against the host build and environment. The [supplier-to-buyer pilot](guidance/vendor-procurement/delivery-checklist.md#executed-pilot--supplier-to-charity-handoff) shows how a result changes between builds.\n\n## From a decision to evidence\n\nFor a shared-phone application, the service owner records whether to offer an optional reminder. The designer and developer use the [component semantics contract](guidance/templates/component-semantics-contract.md) to agree how saving works and what feedback the person receives. QA follows the reminder decision to PSDS-TEST-0001 for delivery and PSDS-TEST-0002 for draft recovery. The adopting service records each result with its build, source commit and local decision.\n\n## Procurement and internal delivery\n\nSuppliers can use the [vendor checklist](guidance/vendor-procurement/delivery-checklist.md) and [jurisdiction profiles](guidance/vendor-procurement/jurisdiction-and-reporting.md) to prepare tender responses and maintain release evidence. Service owners can use the [internal workflow](guidance/internal-delivery/service-workflow.md) to assess the deployed journey and route sprint findings.\n\n## Adapt a service brand\n\nChoose the core family and fallback order using [Font size and family](guidance/utilities/font-size-and-family.md#choose-the-family-and-fallback). Map brand colours to semantic roles and verify component states and Windows contrast themes using [Colour](guidance/utilities/example_colours.md#map-the-brand-palette-to-roles). Record the tested combinations in the host service.\n\n## Find a guide\n\n### Which guide do I need?\n\n| When you need to… | Use this guide |\n|---|---|\n| Agree what a good service experience should deliver | [Design principles](guidance/principles/design-principles.md) |\n| Adopt or adapt a pattern for a service | [Using a design system](guidance/principles/using-a-design-system.md) |\n| Support someone under pressure or dealing with sensitive information | [Trauma-informed and cognitive design](guidance/principles/trauma-informed-and-cognitive-design.md) |\n| Assign responsibility for checks and handoffs | [Integrated accessibility](guidance/principles/integrated-accessibility.md) |\n| Choose journeys, conditions and priorities for testing | [Strategies in accessibility testing](guidance/principles/strategies-in-accessibility-testing.md) |\n| Run a check and interpret the result | [Testing techniques](guidance/principles/testing-techniques.md) |\n\n### Components, patterns and other guidance\n\n- [Components](guidance/components/overview.md)\n- [Patterns](guidance/patterns/intro.md) with guides for [creating a profile](guidance/patterns/create-a-user-profile.md), [completing a complex form](guidance/patterns/complete-a-complex-form.md) and [selecting a language](guidance/patterns/select-a-language.md)\n- [Utilities](guidance/utilities.md)\n- [Templates](guidance/templates/form-templates.md) and the [404 page](guidance/templates/404-page.md)\n\n## Use with a design or implementation agent\n\nStart with the user’s task and select the relevant guide. Use the guidance to specify expected behaviour, the code to understand structure, and the tests to verify a representative build. For automated retrieval or dataset assembly, use [AGENTS.md](AGENTS.md).\n\nThe examples depend on the host for routes, assets, tokens and interaction code where indicated. Verify the implementation in its service journey, including the applicable legal baseline and supported browsers, devices and assistive technologies.\n\n## Companion repositories\n\n| Retrieve when | Repository | Expected agent output |\n|---|---|---|\n| Different input or output modes, language switching, navigation or live feedback | [Inclusive Multimodal UX](https://github.com/Double-FW/Inclusive-Multimodal-UX) | Specify equivalent cues, actions and state across modalities. Use structural semantics and test the supported input and output paths. |\n| Research coverage, prioritisation or functional access needs | [Accessibility Demographics](https://github.com/Double-FW/Accessibility_Demographics) | Select outcome-based participant segments and document coverage gaps. Keep population estimates separate from evidence about this service. |\n| AI influences a public-service outcome | [EU AI Act accessibility, disability rights and delivery](https://github.com/Double-FW/EU-AI-Act-accessibility-disability-rights-and-delivery) | Identify the system role, applicable duties, oversight and evidence owners. Escalate rights-impacting or unresolved decisions to the service owner. |\n| The service operates across jurisdictions | [Global accessibility regulatory requirements](https://github.com/Double-FW/Global_Accessiblity_Regulatory_Requirements) | Map jurisdictions, service scope and evidence obligations. Verify applicability and current rules against primary sources. |\n| European public-sector web or mobile services, procurement or monitoring | [EU Web Accessibility Directive and EN 301 549](https://github.com/Double-FW/EU-Web-Accessibility-Directive_EN301549) | Map obligations to the relevant technical tests, evidence and reporting duties. Confirm the applicable edition and local requirements. |\n| Charts, maps or complex graphics convey information | [Accessible charts, graphs and maps](https://github.com/Double-FW/Accessible_Charts_Graphs_and_Maps) | Determine the visual insight, then provide equivalent summaries, values and interactions. Validate that all representations use the same data and filter state. |\n| Type tokens, font fallbacks or brand typography | [Accessible typography for UX and brand systems](https://github.com/Double-FW/Accessible-Typography-for-UX-and-Brand-Systems) | Check character distinction, script coverage, fallback metrics, line length and user overrides before setting tokens. Test with service content at the smallest and largest supported sizes. |\n| Conversational routing, assistance or an automated service entry point | [Accessible chatbots](https://github.com/Double-FW/Accessible-Chatbots) | Apply conversation semantics, status announcements, interruption recovery and a usable handoff to a person. |\n| Long forms, interruption, confirmation or task recovery | [Cognitive UX design](https://github.com/Double-FW/Cognitive-UX-Design) | Reduce recall demands with plain instructions, visible progress, review and recoverable state. Evaluate whether returning users can resume confidently. |\n| Confirmations, invitations, recovery or notifications delivered by email | [Accessible email design](https://github.com/Double-FW/Accessible-Email-Design) | Specify meaningful subject, text and links, accessible reading order and equivalent instructions on the service. Test the handoff in supported email clients. |\n| Personal attributes, disability information, identifiers or training evidence | [Data ethics and disability](https://github.com/Double-FW/Data_Ethics_and_Disability) | Record purpose, minimisation, access and retention. Use synthetic data for fixtures and keep disclosures, raw identifiers and live user records out of training. |\n\n## Licence\n\nSee [LICENSE](LICENSE) for the MIT licence covering Double FW’s original contributions. Material adapted from the U.S. Web Design System documentation retains its [CC0 1.0 Universal public-domain dedication](https://github.com/uswds/uswds-site/blob/main/LICENSE.md).\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"README.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/README.md#L1-L78","source_start_line":1,"source_end_line":78,"source_document_sha256":"8042a8f3ea543c420232e24bd58d7937c16178e4d8e545fd4415ed2453caab01","text_sha256":"8042a8f3ea543c420232e24bd58d7937c16178e4d8e545fd4415ed2453caab01","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-12-03","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."} +{"id":"PSDS-DOC-0007","document_id":"PSDS-DOC-0007","title":"Accordion","text":"# Accordion\n\nDocument ID: `PSDS-DOC-0007`\n\nAn accordion is a list of headers that hide or reveal additional content when selected.\n\n### Reference implementation\n\nThese examples show markup, content and states. Map the ds- classes, asset paths and data attributes to the host design system. Implement interactive behaviour in the host and run the accessibility tests against the integrated result.\n\n``` html\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n\n Have your application reference and any supporting documents ready.\n
\n\n Review the information you have entered before sending your application.\n
\n\n Use the reference number from your confirmation to check your progress.\n
\n\n Contact the service team if you need help completing your application.\n
\n\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n\n Have your application reference and any supporting documents ready.\n
\n\n Review the information you have entered before sending your application.\n
\n\n Use the reference number from your confirmation to check your progress.\n
\n\n Contact the service team if you need help completing your application.\n
\n\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n\n Have your application reference and any supporting documents ready.\n
\n\n Review the information you have entered before sending your application.\n
\n\n Use the reference number from your confirmation to check your progress.\n
\n\n Contact the service team if you need help completing your application.\n
\n\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n\n Have your application reference and any supporting documents ready.\n
\n\n Review the information you have entered before sending your application.\n
\n\n Use the reference number from your confirmation to check your progress.\n
\n\n Contact the service team if you need help completing your application.\n
\n\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n\n Have your application reference and any supporting documents ready.\n
\n\n Review the information you have entered before sending your application.\n
\n\n Use the reference number from your confirmation to check your progress.\n
\n\n Contact the service team if you need help completing your application.\n
\n\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n\n Have your application reference and any supporting documents ready.\n
\n\n Review the information you have entered before sending your application.\n
\n\n Use the reference number from your confirmation to check your progress.\n
\n\n Contact the service team if you need help completing your application.\n
\n