docs: qualify restricted help publication and pricing workflow
This commit is contained in:
parent
a36e1d8c17
commit
546ff751b4
@ -1,5 +1,11 @@
|
||||
# Development acceptance and handover
|
||||
|
||||
**Latest correction:** administrator-only help is excluded by authoritative source
|
||||
visibility. Current counts are 367 public / 42 administrator articles, 406 public
|
||||
sitemap URLs and 484 public routes. The original counts below describe the initial
|
||||
separation baseline. See [the visibility correction report](HelpVisibility/Readiness.md)
|
||||
for current release, access checks, pricing publication and rollback restrictions.
|
||||
|
||||
**Both products are independently functioning and qualified in Development. Both
|
||||
repositories are committed and pushed. Production cutover is prepared but has NOT
|
||||
been performed. Explicit owner approval remains required.**
|
||||
|
||||
@ -5,6 +5,31 @@ Nginx, external-provider or SQL change has been performed by this separation tas
|
||||
Development acceptance and outstanding requirements are recorded in Acceptance.md.
|
||||
Do not infer approval from a successful build, push, package or this document.
|
||||
|
||||
|
||||
## Help visibility correction — mandatory security floor
|
||||
|
||||
The 42 Story Intelligence Admin articles and their category are intentionally
|
||||
withdrawn from the public URL contract. The website serves only 367 explicitly
|
||||
public articles (406 sitemap URLs); administrator documentation remains in the
|
||||
application under its existing AdminOnly policy. Use format 2 audience `public`
|
||||
for the website and audience `application` for the application, generated from the
|
||||
same authoritative source commit. Internal/unclassified content is never public.
|
||||
Application stores are root-owned with runtime-group-only 0750 directories/0640
|
||||
files; the website runtime must not read the application publication.
|
||||
|
||||
Earlier migration-baseline help publications and pre-visibility application builds
|
||||
are **not safe public-help rollback targets**. Preserve them for recovery evidence,
|
||||
but use the newly qualified visibility-corrected release as the security rollback
|
||||
floor. If emergency recovery requires older binaries, keep affected help, drawer,
|
||||
diagnostics and sitemap routes fenced in maintenance until corrected code/content
|
||||
is restored; do not restore unrestricted combined-site help exposure. The original
|
||||
Production backup/schema recovery rules still apply; no automatic database restore.
|
||||
|
||||
Pricing is an explicitly published snapshot, not an automatic live database feed.
|
||||
Use the application's read-only Tools/PublicPricing exporter and review/publish
|
||||
Production plans independently. Development plan limits differ and must not be
|
||||
substituted. Recheck current plans/checkout IDs at final cutover preflight.
|
||||
|
||||
## Baseline and preconditions
|
||||
|
||||
Use the measured baseline in Audit.md: deployed commit
|
||||
|
||||
BIN
Docs/Separation/HelpVisibility/1440--help.png
Normal file
BIN
Docs/Separation/HelpVisibility/1440--help.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 268 KiB |
BIN
Docs/Separation/HelpVisibility/390--help.png
Normal file
BIN
Docs/Separation/HelpVisibility/390--help.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 292 KiB |
41
Docs/Separation/HelpVisibility/Readiness.md
Normal file
41
Docs/Separation/HelpVisibility/Readiness.md
Normal file
@ -0,0 +1,41 @@
|
||||
# Help visibility correction — Development qualification
|
||||
|
||||
Production cutover remains unapproved and has not been performed. Existing Production may still expose the old administrator help until the approved correction is deployed; Development verification does not change Production.
|
||||
|
||||
## Source and publication
|
||||
|
||||
All 409 help articles were audited: 367 explicitly public and 42 administrator-only (Story Intelligence Admin). The separate authoring guide is explicitly internal. Classification lives in authoritative application Markdown front matter, not a website exclusion list. Bodies and context identifiers remain available to authorised application administrators. Missing/invalid visibility fails closed.
|
||||
|
||||
A format-2 publication produces two versioned projections from the same source: public (367 articles) and application (409 articles). Website ingestion rejects application-audience, legacy and unclassified artifacts. Application lookups apply the existing authenticated email-allowlist AdminOnly policy per request, including cached content, search, recommendations, legacy routes, drawers and media. Diagnostics requires AdminOnly. Private application publication files are runtime-group-only and unreadable by the website service.
|
||||
|
||||
The current v3 publications use source 242e32e4a6d02a911ab9f8a43a6b7ff6af2b54b3 and version 2026.11.27-help-visibility-v3. Publish/consume commands and approval requirements are in Tools/PublicContent/README.md and the website Docs/Content.md. Publish the public projection to the website and the application projection using explicit --audience application. Publication switches immutable version pointers without application restart.
|
||||
|
||||
## Public URL correction
|
||||
|
||||
The 42 restricted article URLs and their category are intentionally withdrawn. All article, legacy context-key and drawer aliases return 404 to anonymous and ordinary users. Public navigation, search, related recommendations, sitemap and machine-readable guides exclude them. The corrected contract contains 406 sitemap URLs and 484 main public routes. No other public URL was removed. A pre-existing broken timeline help link was corrected in the authoritative source.
|
||||
|
||||
## Pricing
|
||||
|
||||
The application database is authoritative, through dbo.SubscriptionLevel_ListActive. Public pricing is a reviewed versioned snapshot, **not automatically synchronised**. Tools/PublicPricing provides a read-only, database-verified public-field export with a digest manifest. Review the exported plans, copy pricing.json into website Content, and publish the website independently after an authoritative pricing change. No live application/database connection is introduced.
|
||||
|
||||
A Development export verified four plans. Current Production-rendered prices, limits and checkout IDs match the website snapshot. Some Development limits intentionally differ and were not published as Production facts. No Production database/provider mutation or direct Production database verification was performed. Recheck an approved Production export before final cutover if pricing changes.
|
||||
|
||||
## Verification evidence
|
||||
|
||||
- Normal solution build passed with zero warnings/errors. The final full regression qualification is recorded below.
|
||||
- Production-mode local crawl also passed all 484 routes with public indexing policy; no Production service was touched.
|
||||
- Full website crawl: 484 rendered pages, 510 internal paths, 42 assets, all 42 restricted articles and aliases; no errors (website-http.json).
|
||||
- Browser verification: 26 public desktop/mobile checks; anonymous and authenticated nonadministrator application sessions each deny 126 restricted article/alias requests and the restricted category (application-browser.json).
|
||||
- Focused source/policy/controller tests render all 42 articles for an authorised administrator and deny anonymous, ordinary and role-only principals; verify cache isolation and media access. This is not a live owner-administrator login test.
|
||||
- Seven publication validation tests and eleven deployment/security tests pass. The website runtime cannot read the private application publication.
|
||||
- Public Help Centre screenshots: public-help-desktop.png, 1440--help.png and 390--help.png. No credentials or authentication screenshots are stored.
|
||||
|
||||
## Qualified Development releases
|
||||
|
||||
- Application: a36e1d8c172f81d7e22f513c96b66e8568f2c7c4, release development-a36e1d8c172f-20261127T224044Z, receipt 20261127T224250Z-d0095de7b1b2. Normal build: zero warnings/errors. Full regression retry passed; initial stalled existing SignalR run was stopped and rejected by the deployment guard.
|
||||
- Website: 15753345bf60a9023cc49916bd56b6b7e84477b7, release help-visibility-final-20261127, receipt 2e7d5a40-2478-44ff-9dd2-9e406d57b228. Later repository commits update tooling/evidence only.
|
||||
- URLs: https://dev.plotdirector.com and http://192.168.10.10:5051/. Both services remain independent.
|
||||
|
||||
## Cutover and rollback
|
||||
|
||||
Follow ../Cutover.md, including its mandatory corrected-help security floor. Earlier unrestricted help artifacts/builds are not safe public-help rollback targets. Use separately approved corrected application and website artifacts; preserve private stores, secrets and data protection keys. No database migration is needed. Production deployment, external integration changes, owner PWA synchronisation/reinstallation and physical Word verification remain governed by the existing cutover preflight; they were not performed by this correction.
|
||||
18
Docs/Separation/HelpVisibility/application-browser.json
Normal file
18
Docs/Separation/HelpVisibility/application-browser.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"passed": true,
|
||||
"checks": [
|
||||
{
|
||||
"principal": "anonymous",
|
||||
"articleAndAliasDenials": 126,
|
||||
"categoryDenials": 1,
|
||||
"navigationAndSearchClean": true
|
||||
},
|
||||
{
|
||||
"principal": "authenticated nonadministrator",
|
||||
"articleAndAliasDenials": 126,
|
||||
"categoryDenials": 1,
|
||||
"navigationAndSearchClean": true
|
||||
}
|
||||
],
|
||||
"administratorRendering": "All 42 real controllers/Markdown renders verified by focused policy/claims tests; no owner credentials used"
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
{"channel": "Development", "audience": "application", "version": "2026.11.27-help-visibility-v3", "manifestSha256": "18095001e8a345cce5bd9c0d93b9eead689c2d98531a1b96356e2194308981c8", "articles": 409}
|
||||
@ -0,0 +1,8 @@
|
||||
{
|
||||
"release": "development-a36e1d8c172f-20261127T224044Z",
|
||||
"sourceCommit": "a36e1d8c172f81d7e22f513c96b66e8568f2c7c4",
|
||||
"receipt": "20261127T224250Z-d0095de7b1b2",
|
||||
"status": "activated",
|
||||
"qualification": "build and full executable regression exit 0",
|
||||
"sqlChanges": 0
|
||||
}
|
||||
61
Docs/Separation/HelpVisibility/pricing-verification.json
Normal file
61
Docs/Separation/HelpVisibility/pricing-verification.json
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
"passed": true,
|
||||
"automaticSynchronization": false,
|
||||
"sourceStoredProcedure": "dbo.SubscriptionLevel_ListActive",
|
||||
"developmentReadOnlyExportVerified": true,
|
||||
"exportedPlanCount": 4,
|
||||
"productionRenderedPricingMatchesWebsite": true,
|
||||
"productionCheckoutIds": [
|
||||
{
|
||||
"name": "Draft Desk",
|
||||
"ids": []
|
||||
},
|
||||
{
|
||||
"name": "Writing Room",
|
||||
"ids": [
|
||||
"4"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Story Forge",
|
||||
"ids": [
|
||||
"3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Author Studio",
|
||||
"ids": [
|
||||
"1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"expectedDevelopmentDifferencesNotPublished": [
|
||||
{
|
||||
"plan": "Draft Desk",
|
||||
"differences": {
|
||||
"MaxCharactersPerProject": {
|
||||
"development": 75,
|
||||
"publishedProduction": 50
|
||||
},
|
||||
"MaxChaptersPerBook": {
|
||||
"development": 75,
|
||||
"publishedProduction": 40
|
||||
},
|
||||
"MaxScenesPerBook": {
|
||||
"development": 300,
|
||||
"publishedProduction": 99
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"plan": "Writing Room",
|
||||
"differences": {
|
||||
"MaxCharactersPerProject": {
|
||||
"development": 250,
|
||||
"publishedProduction": 200
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"productionDatabaseOrProviderChanges": false
|
||||
}
|
||||
11
Docs/Separation/HelpVisibility/production-mode-http.json
Normal file
11
Docs/Separation/HelpVisibility/production-mode-http.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"origin": "http://127.0.0.1:5053",
|
||||
"productionPolicy": true,
|
||||
"baselineUrls": 406,
|
||||
"renderedPages": 484,
|
||||
"internalPaths": 510,
|
||||
"assets": 42,
|
||||
"restrictedArticlesChecked": 42,
|
||||
"errors": [],
|
||||
"passed": true
|
||||
}
|
||||
1
Docs/Separation/HelpVisibility/public-consumption.json
Normal file
1
Docs/Separation/HelpVisibility/public-consumption.json
Normal file
@ -0,0 +1 @@
|
||||
{"channel": "Development", "audience": "public", "version": "2026.11.27-help-visibility-v3", "manifestSha256": "e68e3e9374e47c22c0e0ede7ccc8ec0905c4353fc08cc6936d3c1831abf6a1f7", "articles": 367}
|
||||
BIN
Docs/Separation/HelpVisibility/public-help-desktop.png
Normal file
BIN
Docs/Separation/HelpVisibility/public-help-desktop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 262 KiB |
24
Docs/Separation/HelpVisibility/verification-summary.json
Normal file
24
Docs/Separation/HelpVisibility/verification-summary.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"sourceArticles": 409,
|
||||
"publicArticles": 367,
|
||||
"administratorArticles": 42,
|
||||
"internalAuthoringDocuments": 1,
|
||||
"publicSitemapUrls": 406,
|
||||
"publicRoutes": 484,
|
||||
"publicationTests": 7,
|
||||
"deploymentSecurityTests": 11,
|
||||
"publicBrowserChecks": 26,
|
||||
"restrictedRequestsDeniedPerPrincipal": 126,
|
||||
"livePrincipals": [
|
||||
"anonymous",
|
||||
"authenticated nonadministrator"
|
||||
],
|
||||
"administratorVerification": "real controller/renderer and existing email-allowlist policy unit integration tests; no live owner login",
|
||||
"productionChanged": false,
|
||||
"pricingAutomaticallySynchronised": false,
|
||||
"fullRegressionPassedChecks": 896,
|
||||
"fullRegressionExitCode": 0,
|
||||
"initialQualification": "stalled in existing Native SignalR cancellation; stopped; guard refused deployment; full retry passed",
|
||||
"buildWarnings": 0,
|
||||
"buildErrors": 0
|
||||
}
|
||||
1
Docs/Separation/HelpVisibility/website-browser.json
Normal file
1
Docs/Separation/HelpVisibility/website-browser.json
Normal file
@ -0,0 +1 @@
|
||||
{"passed":true,"checks":26,"out":"/tmp/pd-help-website-browser"}
|
||||
1
Docs/Separation/HelpVisibility/website-deployment.json
Normal file
1
Docs/Separation/HelpVisibility/website-deployment.json
Normal file
@ -0,0 +1 @@
|
||||
{"operation": "2e7d5a40-2478-44ff-9dd2-9e406d57b228", "release": "help-visibility-final-20261127", "kind": "deploy", "startedUtc": "2026-11-27T22:39:00Z", "status": "activated", "sourceCommit": "15753345bf60a9023cc49916bd56b6b7e84477b7", "packageSha256": "0f11862e484d8cb2ebb1fffaf4b9f859280f1cccedc59c3a67ecc7b0144bda10", "manifestSha256": "f534c9b460e1acdae16eaed6a709a497bbd0b9317aa7f64c265b50f67fde7baf", "previous": "/opt/plotdirector-website-dev/releases/help-visibility-20261127/app", "health": {"healthy": true, "product": "PlotDirector.Website", "sourceCommit": "15753345bf60a9023cc49916bd56b6b7e84477b7"}, "smokeTests": [{"path": "/", "status": 200, "bytes": 33802}, {"path": "/pricing", "status": 200, "bytes": 19821}, {"path": "/help", "status": 200, "bytes": 15381}, {"path": "/problem-solver", "status": 200, "bytes": 10868}, {"path": "/sitemap.xml", "status": 200, "bytes": 78428}], "completedUtc": "2026-11-27T22:39:05Z"}
|
||||
11
Docs/Separation/HelpVisibility/website-http.json
Normal file
11
Docs/Separation/HelpVisibility/website-http.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"origin": "http://192.168.10.10:5051",
|
||||
"productionPolicy": false,
|
||||
"baselineUrls": 406,
|
||||
"renderedPages": 484,
|
||||
"internalPaths": 510,
|
||||
"assets": 42,
|
||||
"restrictedArticlesChecked": 42,
|
||||
"errors": [],
|
||||
"passed": true
|
||||
}
|
||||
17
PlotLine.Tests/Browser/help-visibility-development.cjs
Normal file
17
PlotLine.Tests/Browser/help-visibility-development.cjs
Normal file
@ -0,0 +1,17 @@
|
||||
const {chromium}=require('playwright'),fs=require('node:fs'),assert=require('node:assert/strict');
|
||||
const identity=JSON.parse(fs.readFileSync(process.argv[2]));assert.equal(identity.Database,'PlotDirector_Development');assert(identity.Email.startsWith('pwa-browser-'));
|
||||
const restricted=JSON.parse(fs.readFileSync('/srv/repos/PlotDirector.Website/Tests/restricted-help-routes.json'));const base='https://dev.plotdirector.com';
|
||||
(async()=>{const browser=await chromium.launch();const checks=[];try{
|
||||
for(const signedIn of [false,true]){
|
||||
const ctx=await browser.newContext(),page=await ctx.newPage();
|
||||
if(signedIn){await page.goto(base+'/Account/Login');await page.locator('#Email').fill(identity.Email);await page.locator('#Password').fill(identity.Password);await Promise.all([page.waitForURL('**/Projects'),page.locator('form button[type=submit]').click()]);}
|
||||
await page.goto(base+'/help');assert.equal(await page.locator('a[href*="story-intelligence-admin"]').count(),0);assert(!((await page.locator('main').innerText()).includes('Story Intelligence Admin')));
|
||||
for(const a of restricted.articles){for(const path of [a.Url,'/Help/Article/'+encodeURIComponent(a.ContextKey),'/HelpDrawer/Article?key='+encodeURIComponent(a.ContextKey)]){const response=await page.request.get(base+path);assert.equal(response.status(),404,path);}}
|
||||
for(const path of restricted.categories){const response=await page.request.get(base+path);assert.equal(response.status(),404);}
|
||||
await page.goto(base+'/help?q=Story%20Intelligence%20Admin');assert.equal(await page.locator('a[href*="story-intelligence-admin"]').count(),0);
|
||||
checks.push({principal:signedIn?'authenticated nonadministrator':'anonymous',articleAndAliasDenials:restricted.articles.length*3,categoryDenials:restricted.categories.length,navigationAndSearchClean:true});
|
||||
await ctx.close();
|
||||
}
|
||||
const publicPage=await browser.newPage();await publicPage.goto('http://192.168.10.10:5051/help');await publicPage.screenshot({path:'/tmp/pd-public-help-visibility.png',fullPage:true});
|
||||
fs.writeFileSync('/tmp/pd-help-application-browser.json',JSON.stringify({passed:true,checks,administratorRendering:'All 42 real controllers/Markdown renders verified by focused policy/claims tests; no owner credentials used'},null,2));console.log(JSON.stringify({passed:true,checks}));
|
||||
}finally{await browser.close();}})().catch(e=>{console.error(e.message);process.exitCode=1;});
|
||||
@ -27,7 +27,7 @@ PlotDirector.Website/Tools/consume_help.py. Full operator procedures are in that
|
||||
repository's Docs/Content.md. Publication and atomic content activation do not deploy
|
||||
or restart the application. Website renders from its local immutable publication;
|
||||
application contextual help keeps its current renderer and needs no website. Both
|
||||
products can independently consume the same publication into their own content store,
|
||||
products independently consume their audience-specific projection from the same source into their own content store,
|
||||
selected by HelpContent__Path, with manifest-driven hot reload and no restart.
|
||||
|
||||
Visibility is mandatory in source front matter. Public projection includes only `public`; application projection additionally retains `administrator`, which runtime protects with AdminOnly. Internal/unclassified content cannot enter a public artifact. Format 2 makes audience explicit; a URL allowlist never overrides visibility.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user