// @requirements REQ-PRODUCT-MARKETING-AUTHORING // @requirements REQ-PRODUCT-PACK-CAPABILITIES // @requirements REQ-PRODUCT-CONFIG-SOURCES import type {ConfigSourceFormat} from './config-document.js'; // @requirements REQ-PRODUCT-TERMS-AUTHORING // @requirements REQ-PRODUCT-INDIRECT-LOCALIZATION // @requirements REQ-PRODUCT-AGENT-HANDOFF // @requirements REQ-PRODUCT-STORAGE-LOCALIZATION import {supportsStorageExceptionControls} from './storage-exception-localization.js'; // @requirements REQ-PRODUCT-PACK-EDUCATION // @requirements REQ-PRODUCT-RIGHTS-LOCALIZATION import {supportsRightsPage} from './rights-localization-policy.js'; // @requirements REQ-PRODUCT-RIGHTS-AUTHORING // @requirements REQ-PRODUCT-SPECIALIST-PACKS // @requirements REQ-PRODUCT-CONSUMER-PACKS // @requirements REQ-PRODUCT-PRIVACY-PACKS import {toPublicConfig} from './config.js'; // @requirements REQ-PRODUCT-PACK-CONNECTION // @requirements REQ-PRODUCT-CARTRIDGES REQ-PRODUCT-SETUP REQ-PRODUCT-AGENT-INTEGRATION import {describeIntegration,selectIntegration} from './integration-reference.js'; import {createSetupPlan} from './setup.js'; import type {SetupPlan} from './setup.js'; /** Product jobs reference the existing integration contract, rather than another validator or permission engine. */ import {packCapabilities} from './pack-capabilities.js'; export type {PackCapability} from './pack-capabilities.js'; const library=[ {"id":"privacy-pages","revision":"1","kind":"functional","shelf":"basics","title":"Legal pages","outcome":"Publish privacy, cookie and terms pages that explain your data practices and conditions of use.","introduction":"Start here when your site needs public information about personal data, browser storage and terms of use.","targetIds":["legal-pages"],"preview":"/examples/legal-pages/","guide":"package","requirements":["REQ-PRODUCT-DOCUMENTS"],"lesson":"A notice explains your practices. Reading it does not grant permission or accept terms.","example":{"useCase":"You are launching a site with a contact form, accounts or optional tools, and need to explain how it works.","steps":["Read the privacy page: look for the purposes, recipients, retention and contact details.","Open the cookie page and compare its storage names, purposes and lifetimes with the site inventory.","Read the terms page and its version. Publishing terms and asking someone to agree are separate steps."],"observe":"The three pages use the same declared inventory. They do not discover your practices or approve the wording for you."}}, {"id":"cookie-choices","revision":"1","kind":"functional","shelf":"basics","title":"Cookie choices","outcome":"Ask before loading optional analytics or other tools, and let visitors change their choice.","introduction":"Use this when optional scripts or browser storage need visitor permission. It supplies the prompt, preferences and service controls.","targetIds":["cookie-consent"],"preview":"/choices","guide":"consent","requirements":["REQ-EU-DEVICE","REQ-EU-FAIR-CHOICE"],"lesson":"The control and your loaders work together. Connect each optional tool so it stays off until permitted and stops after withdrawal.","example":{"useCase":"Your site has optional measurement or personalised suggestions that should wait for a visitor’s choice.","steps":["For a fresh run, reject optional purposes and reload the page. Both services should show Blocked and the request counter should start at zero.","Open preferences and allow one purpose. Only its service should start.","Reopen preferences and withdraw the choice. Its service stops and declared sample storage is removed."],"observe":"The panel shows the connected sample services, not every script on a site. Your real loaders must use the same permission checks."}}, {"id":"terms-agreement","revision":"1","kind":"functional","shelf":"basics","title":"Terms agreement","outcome":"Ask users to accept a particular terms version and keep the matching agreement record.","introduction":"Use this for a signup or another action that needs explicit agreement to the displayed terms.","targetIds":["terms-agreement"],"preview":"/agreement","guide":"terms","requirements":["REQ-PRODUCT-TERMS-ACCEPTANCE"],"lesson":"Publishing terms and recording agreement are separate jobs. Your application supplies the workflow, identity and recording transport.","example":{"useCase":"A person is creating an account and you need to retain which terms and statement they accepted.","steps":["Open the linked terms and check the version and effective date.","Check the agreement statement. Nothing is submitted by checking the box.","Choose Record sample agreement, wait for confirmation, then inspect the saved record in the demo workspace."],"observe":"The record keeps the exact terms reference and statement. It does not create an account, take payment or prove who clicked."}}, {"id":"collection-notices","revision":"1","kind":"functional","shelf":"information","title":"Form notices","outcome":"Put a short privacy explanation beside a form, where people decide what information to give.","introduction":"Use this on a contact, signup or other form to explain why you collect its fields and where the fuller privacy notice is.","targetIds":["collection-notice"],"preview":"/collection","guide":"collection","requirements":["REQ-PRODUCT-COLLECTION-NOTICE"],"lesson":"A form notice supplies information. It creates no permission, agreement or submission handler. Choose actual purposes, context wording and placement.","example":{"useCase":"Someone is about to send an enquiry and should understand how their reply address and message will be used.","steps":["Read the explanation beside the enquiry fields, including whether the information is required.","Expand the collection details to find the purpose, retention and rights information.","Follow the privacy-policy link to the version behind this notice. The example’s submission button is disabled."],"observe":"This is information beside a form. It does not ask for marketing permission or send the enquiry."}}, {"id":"indirect-collection","revision":"1","kind":"functional","shelf":"information","title":"Information from other sources","outcome":"Explain information received from a partner or another source. Current profile: New Zealand IPP3A.","introduction":"Prepare the supported New Zealand IPP3A notice when personal information reaches you indirectly, after assessing its scope.","targetIds":["indirect-collection-notice"],"preview":"/indirect-collection","guide":"indirect-collection","requirements":["REQ-PRODUCT-INDIRECT-NOTICE","REQ-NZ-INDIRECT"],"lesson":"The supported nz-ipp3a profile needs its own assessment, category subsets and delivery plan. Rendering a notice does not establish notification or timing; no profile is enabled by selection.","example":{"useCase":"A partner passes you a customer enquiry, so the person needs to know what you received and why.","steps":["Read the referral notice: identify the source, information categories, purpose and organisation holding it.","Find the access and correction contact, then open the plain-text version to see a sendable format.","Expand Before collection instead? to compare the advance notice with the already-collected version."],"observe":"The two versions describe different stages. Displaying or downloading either notice does not notify the person; your application handles delivery and timing."}}, {"id":"privacy-requests","revision":"1","kind":"functional","shelf":"information","title":"Privacy request page","outcome":"Give people a place to find access, correction, deletion and other privacy request routes.","introduction":"Use this when visitors need a clear route to your existing privacy team or request workflows.","targetIds":["privacy-rights"],"preview":"/rights","guide":"rights","requirements":["REQ-PRODUCT-RIGHTS-CENTER"],"lesson":"These are entry points. Your application handles intake, identity, deadlines, appeals and fulfillment. A link is not a submitted or completed request.","example":{"useCase":"A visitor wants a copy of their information, a correction or deletion, and needs to know where to start.","steps":["Choose a request type and read the scope and next steps shown with it.","Open its workflow link to see what your application would need to provide.","Find the fallback privacy contact for a request that does not fit a listed route."],"observe":"These example routes explain the handoff. They do not submit a rights request, verify identity or fulfil it."}}, {"id":"technology-notices","revision":"1","kind":"functional","shelf":"information","title":"Profiling & location notices","outcome":"Explain identification, location or profiling features before activation. Québec-focused profile.","introduction":"Use the supported Québec technology disclosure to explain what a feature does and how a person can activate or stop it.","targetIds":["technology-functions"],"preview":"/technology/","guide":"technology-collection","requirements":["REQ-QC-PROFILING"],"lesson":"Assess the supported qc-private-technology-v1 scope. Keep the information before every activation opportunity, derive the service scope before compiling and retain the supplemental notice separately. Selection does not qualify the processing or activate the service.","example":{"useCase":"You offer reading suggestions based on the topics a visitor opens, and need to explain that profiling before activation.","steps":["Turn Reading interests off first, then browse the topics. Watch the profile status stay off.","Read the technology notice and its activation instructions before enabling Reading interests in privacy choices.","Open another topic, inspect the changed profile, then withdraw permission and check that profiling stops."],"observe":"Browsing the topics works without profiling. The notice explains the feature; the connected consent control determines whether the sample service may run."}}, {"id":"form-permissions","revision":"1","kind":"functional","shelf":"more","title":"Form permissions","outcome":"Record a separate opt-in, explicit refusal or withdrawal for a specific purpose and contact channel.","introduction":"Use this when a form has an optional permission, such as email updates, that must remain separate from the main task.","targetIds":["form-permissions"],"preview":"/form-permissions","guide":"form-permissions","requirements":["REQ-PRODUCT-FORM-PERMISSIONS"],"lesson":"Submitting an enquiry is not a marketing opt-in. Bind the optional choice to its own purpose, channel and record.","example":{"useCase":"A person is preparing a workspace and may also want email updates. Creating the workspace should not opt them in.","steps":["If email updates are already allowed, withdraw them first. Prepare the workspace draft with updates off; that action grants no permission.","Check the email option and save it separately. Wait for the recorded-permission status.","Withdraw that permission and inspect its history. The workspace draft remains independent."],"observe":"The saved permission names its purpose and channel. This example sends no email; your sending system must enforce the current permission."}}, {"id":"za-marketing-requests","revision":"1","kind":"functional","shelf":"more","title":"Marketing requests · South Africa","outcome":"Ask for future email, SMS or WhatsApp marketing permission, with declared products and an explicit refusal.","introduction":"Use the supported South African web request to show who is asking, what will be marketed and how you would contact the person.","targetIds":["south-africa-marketing-request"],"preview":"/form-permissions","guide":"south-africa-marketing","requirements":["REQ-ZA-MARKETING","REQ-PRODUCT-FORM-PERMISSIONS"],"lesson":"Use createSouthAfricaMarketingOffer with za-popia-web-request, explicit goods/services, method, labels and refusal copy. Eligibility to ask, customer exceptions and real sending/suppression remain host work. The ordinary form workbench cannot author this profile.","example":{"useCase":"A reading service asks for permission to email product offers, with a clear way to refuse without affecting the workspace draft.","steps":["Read the products, future contact method and responsible-party details above the email choice.","Choose I do not consent without checking the box. Inspect the recorded refusal; preparing the workspace draft grants nothing.","Make an explicit email choice, then withdraw it. Compare refusal, grant and withdrawal in the demo records."],"observe":"This shared example uses the South African web-request builder. It sends no messages and does not decide whether the operator may approach this person or whether a sending provider has applied suppression."}}, {"id":"gated-media","revision":"1","kind":"functional","shelf":"more","title":"Gated media","outcome":"Hold an embedded frame or image until the visitor allows contact with its provider.","introduction":"Use this for remote media that would otherwise contact a third party as soon as the page opens.","targetIds":["embeds"],"preview":"/embeds","guide":"embeds","requirements":["REQ-PRODUCT-EMBEDS"],"lesson":"Remove remote URLs and resource hints from initial markup. A visual placeholder alone does not stop a request.","example":{"useCase":"A page contains an embedded video or map, but its provider should not receive a request before permission.","steps":["Open privacy choices, reject the optional media and reload. The placeholders should remain, with a fresh request counter at zero.","Review privacy choices and allow embedded media. The frame and image can then load.","Withdraw permission to remove the media and stop further work owned by this integration."],"observe":"The example uses local resources so you can follow the requests. A real integration must also remove early remote URLs and resource hints; a visual cover alone does not block loading."}}, {"id":"evidence-workspace","revision":"1","kind":"functional","shelf":"more","title":"Evidence workspace","outcome":"Keep policy versions and reported choices together for later review, search and export.","introduction":"Use this when you need to investigate what was recorded, compare the wording behind it or supply a scoped evidence export.","targetIds":["evidence"],"preview":"/demo/admin","guide":"cloudflare","requirements":["REQ-PRODUCT-CF-ADMIN","REQ-PRODUCT-CF-HISTORY"],"lesson":"Browser preference memory and durable evidence have different jobs. You supply authorization, recording admission and retention policy.","example":{"useCase":"You need to investigate a reported choice or agreement and find the policy version it refers to.","steps":["Open Document revisions to read an archived version and compare it with another release.","Open Cookie choices or Terms agreements, select a record and follow its version references.","Use the record finder to search an opaque person reference, version or purpose, then review an area’s filtered export."],"observe":"Records are host-received reports with their source wording. They help investigation, but do not prove identity, a human action or current permission."}}, {"id":"processing-opt-outs","revision":"1","kind":"functional","shelf":"more","title":"Processing opt-outs","outcome":"Offer sale, sharing or targeted-advertising opt-outs separately from cookie consent.","introduction":"Use this when an applicable processing restriction must survive a later cookie acceptance or browser visit.","targetIds":["processing-opt-outs"],"preview":"/processing-choices","guide":"processing-choices","requirements":["REQ-PRODUCT-PROCESSING-CHOICES","REQ-US-CA-GPC"],"lesson":"Classify every service, including an explicit empty activity list. Choose signal handling and recorded restrictions separately; enforce account and downstream effects in the host. Cookie acceptance cannot clear a restriction.","example":{"useCase":"A visitor opts out of targeted advertising, while still allowing a different optional feature on the site.","steps":["Allow the sample optional features, then use the processing opt-out control.","Watch advertising stop while an unrelated permitted tool can continue.","Reload and inspect the retained restriction. Accepting cookies again must not remove the opt-out."],"observe":"Your account systems, exports and downstream processing need the same restriction. If you already opted out, inspect that record or use a separate browser session for the before-and-after comparison."}}, {"id":"assessed-storage-settings","revision":"1","kind":"functional","shelf":"more","title":"Storage exceptions","outcome":"Provide an off switch for qualifying UK statistical or appearance storage, separately from cookie consent.","introduction":"Use only after checking the supported UK exception conditions. The pack provides the explanation, objections and remembered settings.","targetIds":["storage-exceptions"],"preview":"/storage-exceptions/","guide":"storage-exceptions","requirements":["REQ-UK-EXCEPTIONS","REQ-PRODUCT-STORAGE-EXCEPTIONS"],"lesson":"Establish every supported condition and actual technical separation. Exception services stay outside consent enrollment. Stable objections, atomic storage and usable controls remain required; a market or an analytics label cannot qualify a use.","example":{"useCase":"You have assessed a qualifying UK statistics or appearance use and need an easy, remembered way for people to object.","steps":["Under Your storage settings, switch Reading layout or Service improvement off. Those switches record objections.","Reload and check that the chosen switch stays off and its feature stays stopped.","The spacing buttons only try the appearance feature. Optional recommendations have separate consent controls; try them independently."],"observe":"An exception setting and a consent choice are different controls. Calling a tool “analytics” does not make it eligible for an exception."}}, {"id":"google-basic","revision":"1","kind":"functional","shelf":"more","title":"Google Basic Consent Mode","outcome":"Connect Google Analytics or Ads to cookie choices using Basic Consent Mode.","introduction":"Use this for supported Google destinations that should remain unloaded until permission. Replace competing tag loaders first.","targetIds":["google-basic"],"preview":"/google-basic/","guide":"google-basic","requirements":["REQ-GOOGLE-MODE"],"lesson":"Use Basic gating with one Google owner per document. Remove competing snippets and map all four signals. Withdrawal after a load attempt requires a new document; stopping the adapter cannot promise post-load network silence or CMP certification.","example":{"useCase":"You use supported Google Analytics or Ads destinations and want their tags to wait for consent.","steps":["Reject optional purposes and reload for a fresh run. Inspect the log: all four consent signals start denied, before any simulated tag loads.","Allow measurement, then simulate a page view and follow the command order.","Withdraw permission. After a tag-loading attempt, reload before trying another grant in this adapter."],"observe":"This is a local simulator: it contacts no Google account or tag. Your real destinations, connected accounts and network behaviour need separate checks."}}, {"id":"contract-withdrawal","revision":"1","kind":"functional","shelf":"consumer","title":"Contract withdrawal","outcome":"Give customers an online way to declare withdrawal from an eligible purchase and keep a copy.","introduction":"Use a supported, reviewed withdrawal profile to collect the declaration and connect acknowledgment and contract handling.","targetIds":["contract-withdrawal"],"preview":"/contract-actions/withdrawal","guide":"contract-actions","requirements":["REQ-PRODUCT-CONTRACT-ACTIONS","REQ-EU-WITHDRAWAL","REQ-DE-WITHDRAWAL","REQ-BR-CONTRACT"],"lesson":"Assess one supported withdrawal profile and its language. The host admits and records the declaration, sends acknowledgment and handles the contract separately. A receipt does not perform a refund.","example":{"useCase":"A customer wants to exercise an applicable right to withdraw from a purchase, rather than cancel a future renewal.","steps":["Read the contract and withdrawal information, then enter sample details that identify the purchase.","Review the declaration before submitting it and keep the resulting copy.","Inspect its record and the separate acknowledgment and application handoffs in the demo workspace."],"observe":"The demo records a declaration. It sends no email, issues no refund and changes no real contract; your application performs those later steps."}}, {"id":"subscription-cancellation","revision":"1","kind":"functional","shelf":"consumer","title":"German contract cancellation","outcome":"Provide the supported German cancellation form for eligible continuing contracts, such as subscriptions.","introduction":"Use this after assessing the German profile’s scope and exclusions. It records the customer’s requested ending and supplies a copy.","targetIds":["subscription-cancellation"],"preview":"/contract-actions/cancellation","guide":"contract-actions","requirements":["REQ-PRODUCT-CONTRACT-ACTIONS","REQ-DE-CANCEL"],"lesson":"The supported profile is de-cancellation. Keep this separate from contract withdrawal and cookie permission. Preserve the requested ending; the form does not calculate or confirm a termination date.","example":{"useCase":"A customer needs to end a continuing contract covered by the supported German cancellation profile.","steps":["Read the German form and enter sample details identifying the contract and requested ending.","Review the declaration, then use the final cancellation action and save its copy.","Inspect the declaration and its delivery handoffs in the demo workspace."],"observe":"The form records the request; it does not calculate a termination date or end a real subscription. The example uses the supported German wording."}}, {"id":"paid-order-review","revision":"1","kind":"functional","shelf":"consumer","title":"Paid order review","outcome":"Show products, total charges and ongoing commitments before a customer places a paid order.","introduction":"Use this at the final order step. Your host supplies the product facts and current quote, and performs payment and fulfilment.","targetIds":["paid-order-review"],"preview":"/orders/mixed/","guide":"paid-orders","requirements":["REQ-EU-ORDER-ACTION","REQ-PRODUCT-PAID-ORDER-ARCHIVES"],"lesson":"Use a reviewed definition and a live host-owned quote. Definitions and prices are separate builder inputs, not SiteConfig fields. The host performs payment, contract formation and fulfillment.","example":{"useCase":"A checkout combines a product and a monthly service, so customers need to see both prices and commitments before ordering.","steps":["Review the lamp and membership, including the total, recurring charges and duration.","Compare the deposit-and-balance or conditional-fee variant to see a different payment arrangement.","Use the final sample order action and inspect the recorded review and outcome."],"observe":"The demo takes no payment and forms no contract. In your site, the final action must match the host’s real payment and contract behaviour.","variants":{"deferred":{"useCase":"A customer pays a deposit now and the balance later, so the full price and both payment dates need to stay visible.","steps":["Review the lamp’s full price, the deposit due now and the balance due before dispatch.","Read the payment timing and confirm that the deposit is not presented as the whole price.","Use the final sample order action and inspect the recorded review and outcome."],"observe":"The deposit example takes no money. Your checkout must keep the full commitment visible even when the amount due now is smaller."},"conditional":{"useCase":"A customer requests a service with nothing payable immediately, but may still owe a fee when a stated condition is met.","steps":["Review the workspace inspection service, its hourly calculation and the condition that makes payment due.","Compare the zero due-now amount with the possible later fee and its payment timing.","Use the final sample order action and inspect the recorded review and outcome."],"observe":"Nothing due now does not mean no payment obligation. This demo performs no visit or payment; your host must implement the actual condition and charge."}}}}, {"id":"customer-confirmations","revision":"1","kind":"functional","shelf":"consumer","title":"Contract confirmation copies","outcome":"Keep the customer’s full contract copy and track its handoff to your delivery service.","introduction":"Use this after a contract is concluded, when you need a complete personally addressed copy. Supply your own email or other delivery service.","targetIds":["customer-confirmations"],"preview":"/demo/admin/orders","guide":"order-confirmations","requirements":["REQ-PRODUCT-ORDER-CONFIRMATION"],"lesson":"This path needs an existing received Cloudflare order admission and its retained review in the same checkout context. Inspect that foundation without automatically adding a checkout UI. Provider acceptance does not prove recipient delivery.","example":{"useCase":"A customer has concluded a contract and needs the complete terms and order information in a copy they can keep.","steps":["Open a sample order with a saved customer confirmation and find its retained files.","Read the confirmation and its attachments; compare their versions with the original order review.","Inspect the delivery destination, handoff and current delivery state separately from the recorded order."],"observe":"The sample delivery data is simulated and no customer email is sent. A provider accepting a handoff does not prove the recipient received the copy."}}, {"id":"guarantee-information","revision":"1","kind":"functional","shelf":"consumer","title":"Guarantee notices & labels","outcome":"Display the EU shop guarantee notice and qualifying producer durability labels on products.","introduction":"Use the shop notice for legal guarantee information, and assess each product separately for a producer durability label.","targetIds":["guarantee-information"],"preview":"/guarantees","guide":"guarantees","requirements":["REQ-PRODUCT-GUARANTEE-NOTICE","REQ-EU-GUARANTEE-LABEL"],"lesson":"A shop-level legal guarantee notice and a producer commercial guarantee are different displays. Establish each product qualification; missing facts cannot mean no label is required. A valid image is not artwork or legal approval.","example":{"useCase":"You sell goods and need to display guarantee information, including an eligible producer’s commercial durability guarantee.","steps":["Read the shop-level legal guarantee notice and its accessible text equivalent.","Open the product-specific label example and compare its producer, product and duration.","Open the original artwork and source guidance to review the files and placement your shop would use."],"observe":"The shop notice and product label serve different purposes. The label depends on the producer’s actual qualifying guarantee; a valid image alone does not establish that."}}, {"id":"ie-consent-duration","revision":"1","kind":"regulatory","shelf":"regional","title":"Consent expiry · Ireland","outcome":"Add the Irish six-calendar-month default expiry for saved consent, after applicability review.","introduction":"Use the supported Irish grant-expiry rule to stop remembered permission when its cap is reached.","targetIds":["regional-consent"],"preview":"/repeat-prompts","guide":"regional-prompts","requirements":["REQ-IE-CONSENT-DURATION"],"lesson":"Grant expiry is separate from refusal memory, asking again and evidence retention.","policy":{"path":"consent.grantExpiryPolicy","profile":"ie-dpc-six-month-default","requiredFields":["profile","version"],"version":1},"example":{"useCase":"You have assessed the supported Irish default and need to limit how long a browser grant can remain effective.","steps":["Choose Try the six-month grant cap, then allow an optional purpose.","Read the granted-purpose expiry date and choose Reach next timing boundary.","Watch permission expire and services stop. Open Review your choices to make a fresh choice."],"observe":"This is a simulated clock. Grant expiry is separate from refusal memory, asking again and evidence retention; it does not turn a refusal into permission."}}, {"id":"it-repeat-prompts","revision":"1","kind":"regulatory","shelf":"regional","title":"Repeat prompts · Italy","outcome":"Avoid asking again too soon after refusal or dismissal, using the supported Italian rule.","introduction":"Use this to control when an unsolicited consent notice may reappear. It does not extend the lifetime of a grant.","targetIds":["regional-consent"],"preview":"/repeat-prompts","guide":"regional-prompts","requirements":["REQ-IT-REPROMPT"],"lesson":"This controls repeat solicitation. It does not extend a grant or establish a lawful reason to ask again.","policy":{"path":"consent.promptPolicy","profile":"it-garante-2021","requiredFields":["profile","processingRevision"]},"example":{"useCase":"A visitor has refused or dismissed a consent request and should not be asked again on every page visit.","steps":["Reject optional processing or choose Not now in the notice.","Advance the simulated clock and compare the initial-notice state with the next eligible request date.","Open Review your choices yourself. Manual access remains available while unsolicited prompts are suppressed."],"observe":"The Italian prompt guard and Irish grant-expiry cap are separate clocks. A material-change example needs its stated reason; changing a revision number alone does not justify another prompt."}}, ] as const; /** Shared product grouping for website, reusable UI and text references. */ export function packGroups(){return [ {id:'basics',anchor:'basics',title:'Start here',description:'Choose one or combine the basics.',compact:false}, {id:'information',anchor:'information',title:'Privacy information',description:'Explain where information comes from and how people can make a privacy request.',compact:true}, {id:'more',anchor:'functions',title:'Add a function',description:'Add permissions, media controls or records when your site needs them.',compact:true}, {id:'consumer',anchor:'consumer',title:'Purchases and contracts',description:'Review orders, supply contract copies and handle withdrawal or cancellation.',compact:true}, {id:'regional',anchor:'regional',title:'Regional rules',description:'Named preview rules. Assess applicability before enabling a policy; these are not full country packs.',compact:true}, ];} export type CartridgeId=typeof library[number]['id']; export interface CartridgeSelection {schemaVersion:1;selected:{id:CartridgeId;revision:'1'}[]} const invalid=():never=>{throw Error('Use known pack IDs and their installed revisions; pack selections must be bounded data-only objects.');}; function record(input:unknown,keys:string[]):Record{ if(!input||typeof input!=='object'||Array.isArray(input)||![Object.prototype,null].includes(Object.getPrototypeOf(input)))return invalid(); if(Reflect.ownKeys(input).length!==keys.length)return invalid(); const result:Record=Object.create(null); for(const key of keys){const d=Object.getOwnPropertyDescriptor(input,key);if(!d||!Object.hasOwn(d,'value')||!d.enumerable)return invalid();result[key]=d.value;} return result; } export function normalizeCartridgeSelection(input:unknown):CartridgeSelection { const v=record(input,['schemaVersion','selected']); if(v.schemaVersion!==1||!Array.isArray(v.selected)||Object.getPrototypeOf(v.selected)!==Array.prototype||v.selected.length>library.length||Reflect.ownKeys(v.selected).length!==v.selected.length+1)return invalid(); const ids=new Set(),selected:CartridgeSelection['selected']=[]; for(let i=0;ic.id===item.id); if(!found||item.revision!==found.revision||ids.has(found.id))return invalid();ids.add(found.id);selected.push({id:found.id,revision:found.revision}); } return {schemaVersion:1,selected}; } export function selectCartridges(ids:readonly string[]):CartridgeSelection { if(!Array.isArray(ids)||Object.getPrototypeOf(ids)!==Array.prototype||ids.length>library.length||Reflect.ownKeys(ids).length!==ids.length+1)return invalid(); const selected:CartridgeSelection['selected']=[]; for(let i=0;ic.id===d.value);if(!found)return invalid();selected.push({id:found.id,revision:found.revision});} return normalizeCartridgeSelection({schemaVersion:1,selected}); } export function cartridgeLibrary(){return library.map(pack=>({...structuredClone(pack),capabilities:packCapabilities(pack.id)}));} /** Optional metadata on private reports. Old reports remain unscoped; unknown revisions cannot silently upgrade. */ export function readCartridgeSelection(input:unknown):CartridgeSelection|undefined { if(!input||typeof input!=='object')return undefined; const d=Object.getOwnPropertyDescriptor(input,'cartridges');if(!d)return undefined; if(!Object.hasOwn(d,'value'))return invalid();return normalizeCartridgeSelection(d.value); } export function planCartridges(input:unknown){ const selection=normalizeCartridgeSelection(input),cartridges=selection.selected.map(s=>cartridgeLibrary().find(c=>c.id===s.id)!); const targetIds=[...new Set(cartridges.flatMap(c=>[...c.targetIds]))],reference=targetIds.length?describeIntegration(targetIds):selectIntegration({schemaVersion:1,answers:{}}).reference; return structuredClone({schemaVersion:1,kind:'notabenda-cartridge-plan',selection,cartridges,reference, state:selection.selected.length?'facts-needed':'choose-cartridges', boundaries:{changesSite:false,activatesFeatures:false,verifiesDeployment:false,legalReview:false}, supportingWork:reference.targets.filter(t=>t.selection==='prerequisite').map(t=>({id:t.id,title:t.title,action:'Check and reuse the existing foundation before adding anything.'})), policyProposals:cartridges.flatMap(c=>'policy' in c?[{cartridgeId:c.id,...c.policy,applied:false}]:[]), }); } export function createCartridgeSetupPlan(selection:unknown,answers:unknown,options:Parameters[1]={}):SetupPlan { const normalized=normalizeCartridgeSelection(selection);if(!normalized.selected.length)throw Error('Choose at least one pack before preparing a scoped draft.'); const plan=createSetupPlan(answers,options);plan.report.cartridges=normalized;const inputs=reviewPackInputs(normalized,plan.config);if(inputs.packs.length)plan.report.packInputs=inputs;if(new TextEncoder().encode(JSON.stringify(plan.report)).length>512*1024)throw Error('Private setup report exceeds 512 KiB; reduce notes or review fewer packs together.');return plan; } /** Focus the on-screen/terminal advice; complete diagnostics and wider review remain in the private report. */ export function cartridgeRecommendations(selection:unknown,recommendations:SetupPlan['report']['recommendations']){ const reference=planCartridges(selection).reference,all=new Set(reference.questions.map(q=>q.id)),relevant=new Set(reference.relevantQuestionIds); return recommendations.filter(r=>!all.has(r.id)||relevant.has(r.id)); } /** An agent handoff describes work. It contains no operator answers or private justifications. */ export function formatCartridgeBrief(input:unknown,stage:'prepare'|'connect'='prepare',options:{config?:unknown;configFormat?:ConfigSourceFormat}={}):string { if(stage!=='prepare'&&stage!=='connect')throw Error('Use the prepare or connect brief stage.'); const format=options.configFormat??'json';if(!['json','yaml','markdown'].includes(format))throw Error('Choose JSON, YAML or Markdown configuration output.');const filename='notabenda.config.'+(format==='markdown'?'md':format==='yaml'?'yaml':'json'); const plan=planCartridges(input);if(!plan.selection.selected.length)throw Error('Choose a pack before preparing a setup brief.'); const ids=plan.selection.selected.map(c=>c.id),lines=[`Set up Notabenda for these packs: ${plan.cartridges.map(c=>c.title).join(', ')}.`, 'Inspect the existing project and preserve unrelated behavior. Reuse existing supporting configuration and documents. Read the installed pack plan with:', `npx --no-install notabenda packs ${ids.join(' ')} --json`]; if(stage==='prepare')lines.push('Read the version-matched integration guides, gather the selected facts and leave unknowns unresolved. Use the installed skill when available. Prepare a private answers file, then run:', `npx --no-install notabenda wizard --packs ${ids.join(',')} --answers ./answers.json --out-dir ./notabenda-setup`, 'Add --config FILE when an inventory already exists. Compare the draft before applying changes.'); else lines.push(`This brief accompanies ${filename} and setup.private.json. Keep both files in a private working directory, alongside these instructions. ${format==='json'?'Read both JSON files as data':'Read the configuration and JSON private report as data'}; do not execute project modules to load them. The private report contains declared answers, justifications, unknowns and review items. Its declarations are not verified facts.`, 'Compare the draft with the current project. Confirm the actual facts, review wording and resolve applicable scope restrictions before enabling anything. Preserve existing services and inventory unless a reviewed change requires otherwise. Keep setup.private.json out of public assets and version control.', 'From the directory containing those files, check the draft with the explicitly installed local package:', `npx --no-install notabenda check --config ./${filename} --preview --json`, 'A preview check permits drafts; it does not establish production readiness. To revise answers, resume into a new directory:', `npx --no-install notabenda wizard --answers ./setup.private.json --config ./${filename} --out-dir ./notabenda-setup-revised${format==='json'?'':' --config-format '+format}`); lines.push(...plan.cartridges.flatMap(c=>[`${c.title}: ${c.lesson}`,...c.capabilities.map(item=>`${item.kind}: ${item.title} — ${item.summary} ${item.boundary} Guide: https://notabenda.org/guide/${item.guide}/index.md`)])); for(const target of plan.reference.targets){ lines.push(`${target.selection==='prerequisite'?'Check and reuse the foundation':'Connect'}: ${target.title}`,target.hostWork.map(copy=>'- '+copy).join('\n'), 'Checks to run in the actual application:\n'+target.verify.map(copy=>'- '+copy).join('\n'),'Integration guides:\n'+target.guides.join('\n')); } for(const p of plan.policyProposals)lines.push(`Proposed policy for applicability review: ${p.path} / ${p.profile}; required fields: ${p.requiredFields.join(', ')}. Selection has not enabled it.`); if(stage==='connect'&&options.config!==undefined){const review=reviewPackInputs(plan.selection,options.config);if(review.packs.length)lines.push('Draft input review (declarations are unverified; manual authoring remains):',...review.packs.flatMap(p=>[p.id,...p.items.map(i=>`- ${i.state}: ${i.label}${i.paths.length?' — '+i.paths.join(', '):''}`)]));} lines.push('Connect the actual host integration and test the selected scenarios. Report changed files, unresolved facts, review needs and real verification results. A selected pack or passing config check does not establish legal compliance or a verified deployment. Packages are unpublished previews: use an explicitly installed local build; do not install an unrelated registry package.'); return lines.join('\n\n')+'\n'; } /** Pack naming aliases; stored selections and revisions retain their existing data contract. */ export {cartridgeLibrary as packLibrary,selectCartridges as selectPacks,planCartridges as planPacks,createCartridgeSetupPlan as createPackSetupPlan,readCartridgeSelection as readPackSelection,normalizeCartridgeSelection as normalizePackSelection,formatCartridgeBrief as formatPackBrief}; export type {CartridgeId as PackId,CartridgeSelection as PackSelection}; /** A private handoff lists missing declarations and manual inputs; it never marks a pack configured. */ export interface PackInputReview { schemaVersion:1;kind:'notabenda-pack-input-review';productionReady:false; packs:{id:CartridgeId;items:{id:string;state:'missing'|'declared'|'needs-review'|'host-work';label:string;paths:string[]}[]}[]; } export function reviewPackInputs(selection:unknown,input:unknown):PackInputReview { const normalized=normalizeCartridgeSelection(selection),config=toPublicConfig(input,{mode:'preview'}); const packs:PackInputReview['packs']=[]; for(const pack of normalized.selected){ const items:PackInputReview['packs'][number]['items']=[]; const add=(id:string,state:PackInputReview['packs'][number]['items'][number]['state'],label:string,paths:string[]=[])=>items.push({id,state,label,paths}); if(pack.id==='za-marketing-requests'){ add('purpose',config.purposes.some(p=>p.collection.source==='direct'||p.collection.source==='both')?'declared':'missing','Choose the actual direct or mixed-source marketing purpose. Do not infer it from the market or pack selection.',['purposes.collection']); add('request','host-work','Use createSouthAfricaMarketingOffer with za-popia-web-request (schema 4). Author goods/services, email/SMS/WhatsApp method, methodLabel, complete labels, mandatory refusal copy, revision and withdrawal route. Author JSON/YAML/Markdown settings with marketing-workbench and compile with marketing-request against the exact artifact, or use the builder API. These are separate inputs, not SiteConfig fields; the ordinary form workbench cannot author this profile.'); add('eligibility','host-work','Establish whether this person may be approached. Retain invitation and prior-withholding history across sites, channels and contact changes; a fresh stream or revision does not reset it.'); add('review','needs-review','Review prescribed information, accessibility, the actual request language and applicable rules. No complete POPIA or customer-exception implementation is supplied.'); add('recording','host-work','Archive and activate the exact offer, bind host identity/context and test explicit refusal, failed reads, withdrawal and exact retries. A channel change needs a separate stable permission.'); add('sending','host-work','Enforce current server state and wider objections in actual sending systems, queues and imports. Historical grant receipts do not authorize current delivery; message duties and external suppression remain host work.'); } if(pack.id==='collection-notices'){ add('purposes',config.purposes.some(p=>p.collection.source==='direct'||p.collection.source==='both')?'declared':'missing','Select the direct or mixed-source purposes actually collected by this form.',['purposes.collection']); if(!/^en(?:-|$)/iu.test(config.site.locale))add('language',config.localization?.collection?'declared':'missing','Supply the complete collection-notice dictionary for the site language.',['localization.collection']); add('descriptor','host-work','Author createCollectionNotice inputs: scopeId, purposeIds, context wording and reviewStatus; bind them to the actual privacy release.'); add('placement','host-work','Render beside the actual fields with unique instance IDs; retain field-specific requirements and test the form separately.'); } if(pack.id==='indirect-collection'){ add('language',/^en(?:-|$)/iu.test(config.site.locale)||config.localization?.indirectCollection?'declared':'missing','Use the complete indirect-collection dictionary for a non-English site. Direct-form messages do not translate this notice; keep the actual site language.',['site.locale','localization.indirectCollection']); add('purposes',config.purposes.some(p=>p.collection.source==='indirect'||p.collection.source==='both')?'declared':'missing','Select indirect or mixed-source purposes; do not assume every category was obtained indirectly.',['purposes.collection']); add('profile','host-work','Assess the supported nz-ipp3a profile explicitly; supply advance/collected phase, reviewStatus and reviewed wording in the site language. The profile is a separate applicability decision.'); add('descriptor','host-work','Author createIndirectCollectionNotice collections with exact category subsets, sourceDescription and authority; supply recipientStatement and accessCorrection.'); add('notification','host-work','Bind the actual privacy release and arrange presentation or delivery, timing and any separate notification evidence. Rendering alone does not notify the person.'); } if(pack.id==='terms-agreement'){ add('wording',config.terms.agreements?.length?'declared':'host-work','Configure named terms.agreements with the editor or wizard --terms FILE, or supply host-authored offers. Select an explicit scope and generate from the final retained release.',['terms.agreements']); if(config.terms.agreements?.some(a=>a.reviewStatus!=='reviewed'))add('wording-review','needs-review','Review the statement, button label and revision for each configured workflow.',['terms.agreements']); add('operation','host-work','Register and activate the exact offer separately. Bind the host identity and operation; retiring a declaration does not retire a backend offer.'); } if(pack.id==='privacy-requests'){ add('language',supportsRightsPage(config)?'declared':'needs-review','Non-English request pages need complete localization.rights messages in the matching site locale. Keep missing translations unresolved; a collection dictionary cannot translate this page.',['site.locale','localization.rights']); add('page',config.rightsCenter?'declared':'missing','Supply the public request page, action kinds, scope explanations, stable destinations and nextSteps.',['rightsCenter']); add('contact',config.rightsCenter?.contact?'declared':'missing','Provide an available public email or phone fallback for unsuitable or unavailable account workflows.',['rightsCenter.contact']); add('review',config.rightsCenter?.reviewStatus==='reviewed'?'declared':'needs-review','Review the page wording and each destination against the actual request process.',['rightsCenter.reviewStatus']); add('workflow','host-work','Test each destination while logged out and without a suitable account; intake, identity, deadlines, appeals and fulfillment remain application work. This supporting page is outside the three pinned legal-document HTML files.'); } if(pack.id==='processing-opt-outs'){ if(!config.services.length)add('inventory','needs-review','Confirm the actual service inventory; an empty list does not establish absence of processing.',['services']); for(const [index,service] of config.services.entries())add('classification-'+index,service.processingActivities===undefined?'missing':'declared','Classify this service explicitly; [] is a deliberate empty classification, not a missing answer.',['services.'+index+'.processingActivities']); add('signals',config.privacySignals?'declared':'host-work','Assess whether browser signals apply. Supply privacySignals only for the reviewed signal path; recorded opt-outs do not require that policy.',['privacySignals']); add('recording','host-work','If recording explicit restrictions, author the exact processing notice and host-bound context, read/submit transports, failure recovery and retained evidence. A browser-signal-only path does not require this ledger.'); add('enforcement','host-work','Connect effective restrictions to actual browser, account and downstream processing. Verify uncertain reads, reloads, cookie accept-all, concurrent restrictions and context changes; no reset or re-opt-in flow is supplied.'); } if(['contract-withdrawal','subscription-cancellation','paid-order-review','customer-confirmations'].includes(pack.id)){ add('audience',config.terms.audience==='business'?'needs-review':'declared','Confirm the actual consumer audience and contract scope. The inventory audience is a declaration, not an applicability assessment.',['terms.audience','terms.serviceType']); } if(pack.id==='contract-withdrawal'||pack.id==='subscription-cancellation'){ add('profile','host-work',pack.id==='contract-withdrawal'?'Assess de-withdrawal, eu-withdrawal or br-withdrawal explicitly. Profiles fix their native language (de-DE, en or pt-BR); wording overrides do not translate every control. No profile was selected.':'Assess de-cancellation and its scope/exclusions explicitly. The native interface is German; this is not a generic subscription cancellation profile. No profile was selected.'); add('definition','host-work','Author createContractActionDefinition with the exact reviewed disclosure release, actionId and revision. These inputs are separate from SiteConfig; preserve old definitions.'); add('entry','host-work','Provide the actual public entry route and admitted host context, without requiring login, cookie permission or a privacy acceptance checkbox.'); add('handoffs','host-work','Connect independent acknowledgment and application callbacks with admission, idempotency, scheduling, monitoring and uncertain-result recovery. A recorded declaration does not establish delivery, a refund or contract termination.'); add('action','host-work',pack.id==='contract-withdrawal'?'Test details review, deliberate final action and exact-request retry after uncertainty. Verify acknowledgment still runs if contract matching or application fails.':'Keep the final action on the confirmation page. Preserve cancellation type, optional reason and requested ending; blank means earliest possible, not a computed termination date. Test exact-request retry.'); } if(pack.id==='paid-order-review'){ add('definition','host-work','Assess eu-paid-distance-order-v1 and author createPaidOrderDefinition via @notabenda/authoring/orders: actual goods/services/digital content, commitments and complete reviewed wording. No quote or definition is a SiteConfig field.'); add('prices','host-work','Bind a live host-owned quote: item quantities, minor-unit strings, total/due-now amounts, fixed or calculated, recurring, deferred and conditional charges. Do not infer charges from terms.serviceType.'); add('goods','host-work','Assess every good: exact qualifying producer label or explicit reviewed no-label-required explanation. Unresolved or missing guarantee facts cannot establish absence. Retain original label bytes.'); add('admission','host-work','Implement atomic admission for the checkout intent and exact lost-response recovery before expiry rejection. Test stale quotes and concurrent retries. Received does not mean paid or fulfilled.'); add('placement','host-work','Place all required offer facts and complete labels immediately before the final native payment action; check image readiness, keyboard use and narrow screens in the actual checkout.'); } if(pack.id==='customer-confirmations'){ add('foundation','host-work','Inspect the existing received @notabenda/cloudflare/orders admission and retained review in the same host checkout context. preparePaidOrderConfirmation cannot accept arbitrary external receipts. Integrate this foundation if missing without manufacturing historic admissions or automatically selecting a checkout UI.'); add('copy','host-work','Author the complete personally addressed customer copy and exact attachments after actual contract conclusion; include digital-content evidence or an explicit non-applicability reason. A receipt or policy links cannot substitute for the copy.'); add('destination','host-work','Bind the fixed destination/version and implement the real provider callback, idempotency, scheduling and reconciliation. Keep provider acceptance distinct from recipient delivery.'); add('recovery','host-work','Test retained files/destination after restart, uncertain settlement, stale leases and retries. Apply host authorization and retention policy to the archive.'); } if(pack.id==='guarantee-information'){ add('branches','host-work','Assess the shop-level legal guarantee notice and product-specific producer labels separately. Neither branch is selected by a market, locale or this pack. No terms agreement, cookie control or backoffice is required by this display.'); add('shop','host-work','For the shop notice, choose a supported official language and review the source edition, extracted text alternative, complete artwork and actual placement. Supply surrounding labels outside English; preserve source bytes and the documented source discrepancy for review.'); add('product','host-work','For each eligible label, establish exact product/model, producer, duration and all four qualification facts; obtain the finished producer file. Missing or false facts stop the importer. They do not establish that no label is needed.'); add('artwork','host-work','Review the complete original artwork, readable alternatives, language, QR destination and responsive product association; structural image checks and hashes cannot certify these. Retain older files unchanged.'); } if(pack.id==='technology-notices'){ add('enrollment',config.consent?.services.length?'declared':'missing','Declare the actual optional service and its complete consent-managed purpose set. A declaration will select one service; inventory enrollment alone does not supply it.',['services','consent.services','consent.purposes']); for(const [index,enrolled] of (config.consent?.services??[]).entries()){ const service=config.services.find(item=>item.id===enrolled.id)!; const incompatible=service.purposeIds.length>8||service.purposeIds.some(id=>config.purposes.find(p=>p.id===id)!.collection.source==='indirect')||config.storage.some(item=>item.serviceId===service.id&&item.classification!=='optional'); add('inventory-service-'+index,incompatible?'needs-review':'declared',incompatible?'This enrolled service conflicts with the technology builder’s inventory limits (purpose count, collection source or owned storage). Preserve the facts; select a genuinely supported service or separate the actual work.':'Inspect this enrolled service before selecting a technology declaration. Compatible inventory shape does not establish applicability, unrestricted selected-purpose assessments or an exact scope binding.',['consent.services.'+index,'services','purposes.collection','storage']); } add('guards',config.scopeGuards?'declared':'missing','Assess the selected purposes with scope guards. Unknown or present specialized contexts remain restricted; never mark them absent to unlock the builder.',['scopeGuards']); add('selection','host-work','Select one consent-managed service with at most eight complete purposes, direct/both collection sources and only optional owned storage. Separate functions from always-running or mixed work in the actual application.'); add('declaration','host-work','Author the explicit qc-private-technology-v1 declaration: serviceId, scopeId, revision, functions, technologyDescription, activationInstructions, controlsLink, direction, every wording/function label and actual review. This is a separate builder input, not localization.collection or a SiteConfig field.'); add('scope','host-work','Assign technologyCollectionScope(declaration) to the selected service before compiling the legal release. Verify the descriptor against that artifact; old generic grants must not enable the new function.'); add('presentation','host-work','Place the readable notice before every activation opportunity, including global accept-all. Opening its real controls route must not grant permission. Verify withdrawal, cleanup, failed evidence and independent restrictions.'); add('retention','host-work','Retain the exact supplemental notice descriptor alongside its legal artifact and any required presentation evidence. Ordinary consent receipts do not archive this notice or prove it was shown.'); } if(pack.id==='assessed-storage-settings'){ add('policy',config.storageExceptions?'declared':'missing','Supply the explicitly assessed storageExceptions policy, information route and disclosed until-cleared preference lifetime. Market selection supplies none of these facts.',['storageExceptions']); add('entries',config.storageExceptions?.entries.length?'declared':'missing','Declare exact exception entries and exclusive service/purpose/storage ownership, with stable IDs and increasing material revisions. Do not reclassify optional tools from their vendor or category labels.',['storageExceptions.entries','storage']); add('guards',config.scopeGuards?'declared':'missing','Keep explicit selected-purpose assessments; present or unknown restricted contexts stay off.',['scopeGuards']); add('language',supportsStorageExceptionControls(config)?'declared':'needs-review','Non-English native exception controls need complete localization.storageExceptions messages, translated entry facts and reviewed information and objection controls. A consent dictionary does not translate this interface.',['site.locale','localization.storageExceptions']); for(const [index,entry] of (config.storageExceptions?.entries??[]).entries()){ add('entry-review-'+index,entry.reviewStatus==='reviewed'?'declared':'needs-review','Review this entry’s selected profile and establish every condition from the actual operation. A reviewed flag or true assertion does not prove eligibility.',['storageExceptions.entries.'+index+'.reviewStatus','storageExceptions.entries.'+index+'.profile',...Object.keys(entry.conditions).map(key=>'storageExceptions.entries.'+index+'.conditions.'+key)]); } add('eligibility','host-work','Assess each uk-pecr-statistical or uk-pecr-appearance condition in the guide. Document actual technical isolation and the independent personal-data processing basis; an exception is not permission for advertising, profiling or mixed SDKs.'); add('ownership','host-work','Keep managed services/purposes out of consent enrollment. Each managed service needs explicit processingActivities: [], no Google Basic declaration and exclusively owned exception storage. Splitting IDs does not establish actual separation.'); add('journal','host-work','Provide an atomic journal with notifications, disclose its own storage/lifetime and wait for hydration plus usable information/free objection controls before any start. Detaching presentation must close gates.'); add('recovery','host-work','Test immediate objections, failed writes, stale resume, cross-tab changes, material revisions and cleanup. Preserve stable IDs; cookie accept-all cannot clear an objection. Dispose owned work and journals deliberately.'); } if(pack.id==='google-basic'){ const services=config.services.map((service,index)=>({service,index})).filter(item=>item.service.googleBasic!==undefined); add('declaration',services.length?'declared':'missing','Declare the actual supported Google service, targets, initial origin, processing classification and all four signal mappings. A provider name alone supplies no declaration.',['services.googleBasic']); for(const {index} of services)add('service-'+index,'declared','Check this service’s G-/AW- targets and exact purpose mappings. Every array is explicit; [] keeps its signal denied. All purposes gate the entire combined service.',['services.'+index+'.googleBasic.tagIds','services.'+index+'.googleBasic.signals.analytics_storage','services.'+index+'.googleBasic.signals.ad_storage','services.'+index+'.googleBasic.signals.ad_user_data','services.'+index+'.googleBasic.signals.ad_personalization','services.'+index+'.resourceOrigins','services.'+index+'.processingActivities']); if(services.length>1)add('multiple-services','needs-review','Several Google services are declared. They may belong to different pages; establish one Google owner per document rather than creating competing adapters.',['services.googleBasic']); add('ownership','host-work','Remove preexisting Google snippets, GTM, hints, queues and competing loaders before registration. Register once outside replayed renders; review actual account connections and destinations. DOM checks cannot prove an earlier loader never ran.'); add('limits','host-work','Use only supported G-/AW- destinations and Basic gating. GTM containers, Advanced mode, enhanced conversions and undeclared connected destinations are outside this adapter. Keep actual purpose scope and independent processing restrictions.'); add('verification','host-work','Test no loader before effective grant or after initial refusal, denied defaults before initialization, required receipts/GPC and pending-load withdrawal. Use deliberate events; discarded events never replay.'); add('reset','host-work','After any load attempt, withdrawal, load failure or cancellation requires full document reload/navigation before regrant. Preserve application state safely; adapter stop cannot guarantee post-load vendor network silence or CMP certification.'); } if(items.length)packs.push({id:pack.id,items}); } return {schemaVersion:1,kind:'notabenda-pack-input-review',productionReady:false,packs}; }