gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/tests/security.mjs

21.3 KB

  1. // tests/security.mjs — THE SECURITY GATE (mission SK, reports/SK-sec.md): real HTTP against a running tracker with a throw-away ident,
  2. // two users (alice = the owner and the editor, bob = another user) and anonymous callers. Proves, per area:
  3. // headers the files and text answers the app makes itself carry nosniff, images a sandbox policy
  4. // authz every face and route for anon / bob / alice: who may, what comes back (the matrix is printed)
  5. // faces no peer-sent `session`; ids a peer sends are checked (an episode of THIS show, an adult title nobody follows)
  6. // input HTML in every text field of a title / person / genre / season / episode never reaches a page raw; path traversal; the
  7. // login's `next=`; wrong types make no 500 that names the source
  8. // login cookie flags, a NEW session at login (fixation), a used code is refused, a request budget per caller, logout ends it
  9. // secrets no key, secret, token, identity id, session id, absolute path in any page; none in the log
  10. // budget the anonymous /person/tmdb/<id> that asks TMDB is capped per hour
  11. // On the OLD code (`TRACKER_APP_DIR=<old tree> node tests/security.mjs`) the checks named FIX in their label fail.
  12. //
  13. // node tests/security.mjs (TRACKER_GATE_PORT 8900, TRACKER_GATE_IDENT_PORT 8901, TRACKER_GATE_TMDB_PORT 8902)
  14. import { boot, J, BASE } from './seckit.mjs';
  15. let failures = 0, passes = 0;
  16. const check = (label, ok, detail = '') => { console.log(`${ok ? 'ok ' : 'FAIL'} ${label}${ok ? '' : ' — ' + String(detail).slice(0, 400)}`); if (ok) passes++; else failures++; };
  17. const SLUG = 'gate-test-show', EP1 = 'ep0000000000ep0e1', EP2 = 'ep0000000000ep0e2', SE1 = 'se000000000se0s1', ADULT = 'adult-gate-movie', MOVIE = 'gate-test-movie';
  18. let k;
  19. try {
  20. k = await boot({ TRACKER_LOGIN_PER_MINUTE: '5', TRACKER_GUEST_FALLBACK_PER_HOUR: '4', TRACKER_IMPORT_PER_HOUR: '3' });
  21. const A = k.aliceSession.cookie, B = k.bobSession.cookie;
  22. const err = (r) => r.value && r.value.error;
  23. const refused = (r) => r.value != null && r.value.error != null;
  24. const matrix = [];
  25. const face = async (ev, args, who) => { const r = await k.emit(ev, args, who === 'alice' ? A : who === 'bob' ? B : null); matrix.push(`${ev.padEnd(20)} ${who.padEnd(5)} ${r.status} ${(err(r) || (r.value && r.value.ok ? 'ok' : 'data')).slice(0, 50)}`); return r; };
  26. // ---- headers
  27. const hdr = async (p, h = {}) => { const r = await k.get(p, null, h); return r; };
  28. const img = await hdr('/posters/none'), ph = await hdr('/profiles/none'), bad = await hdr('/posters/a%00.png');
  29. check('FIX headers: an image answer carries X-Content-Type-Options: nosniff and a sandbox CSP (a stored svg opened as a page runs nothing)',
  30. [img, ph].every(r => r.headers.get('x-content-type-options') === 'nosniff' && /sandbox/.test(r.headers.get('content-security-policy') || '') && /default-src 'none'/.test(r.headers.get('content-security-policy') || '')), J([...img.headers.entries()]));
  31. const t404 = await hdr('/nope%3Cscript%3E'), find = await hdr('/find?q=x'), sid = await hdr('/abcde'), moved = await hdr('/unwatched');
  32. check('FIX headers: the plain-text answers (404, 301/302 redirects, bad name 400) carry nosniff',
  33. [t404, find, sid, moved, bad].every(r => r.headers.get('x-content-type-options') === 'nosniff'), J([t404, find, sid, moved, bad].map(r => r.status + ':' + r.headers.get('x-content-type-options'))));
  34. // ---- authz: pages
  35. const pages = ['/', '/movies', '/series', '/shows', '/genres', '/people', '/settings', '/my/movies', '/my/unwatched', '/my/schedule', '/my/series', '/franchises', '/franchises/edit', '/search/gate', '/series/gate-test-show'];
  36. let pageBad = [];
  37. for (const p of pages) for (const [n, c] of [['anon', null], ['bob', B], ['alice', A]]) {
  38. const r = await k.get(p, c);
  39. if (r.status !== 200) pageBad.push(`${p} ${n} ${r.status}`);
  40. if (n !== 'alice' && (/Adult Gate Movie/.test(r.body))) pageBad.push(`${p} ${n} shows alice's adult follow`);
  41. }
  42. check('authz pages: every page answers 200 to anon / bob / alice, and alice\'s followed adult title is on no page of anon or bob', pageBad.length === 0, pageBad.join('; '));
  43. const adultPage = await Promise.all([null, B, A].map(c => k.get('/movies/' + ADULT, c)));
  44. check('authz: the adult title\'s page names the title for its follower only (anon, bob: not found)', !/Adult Gate Movie/.test(adultPage[0].body) && !/Adult Gate Movie/.test(adultPage[1].body) && /Adult Gate Movie/.test(adultPage[2].body));
  45. const mine = await Promise.all([null, B, A].map(c => k.get('/my/unwatched', c)));
  46. check('authz: /my/unwatched lists alice\'s unwatched episodes for alice only (anon, bob: none of them)', /Second/.test(mine[2].body) && !/Pilot|Second/.test(mine[0].body) && !/Pilot|Second/.test(mine[1].body), J(mine.map(r => /Second/.test(r.body))));
  47. const fe = await Promise.all([null, B, A].map(c => k.get('/franchises/edit', c)));
  48. check('authz: the franchise editor page shows its form (fe-create) to the creator only; anon and bob are told "Only the creator"', /id="fe-create"/.test(fe[2].body) && !/id="fe-create"/.test(fe[0].body) && !/id="fe-create"/.test(fe[1].body) && /edit-refused/.test(fe[1].body), J(fe.map(r => [/id="fe-create"/.test(r.body), /edit-refused/.test(r.body)])));
  49. // ---- authz: faces
  50. const personal = [['unwatchedToggle', [EP1]], ['showToggleEpisode', [SLUG, EP1, {}, false]], ['showToggleSeason', [SLUG, SE1, {}, false]], ['showToggleMovie', [MOVIE]], ['showToggleFollow', [SLUG]], ['searchImport', ['movie', 5001]]];
  51. for (const [ev, args] of personal) {
  52. const a = await face(ev, args, 'anon');
  53. check(`authz: ${ev} signed out is refused`, refused(a), a.raw);
  54. }
  55. const editor = [['fedCreateFranchise', ['Gate F', 'x']], ['fedCreateTimeline', ['Gate T']], ['tedSetFranchise', ['t', 'f']], ['tedMove', ['t', 's', 1]], ['tedRemove', ['t', 's']], ['tedAdd', ['t', 's']]];
  56. for (const [ev, args] of editor) {
  57. const a = await face(ev, args, 'anon'), b = await face(ev, args, 'bob');
  58. check(`authz: ${ev} (the creator's) is refused to anon and to another user (bob)`, refused(a) && refused(b) && /only the creator/.test(err(a) + err(b)), J([a.value, b.value]));
  59. }
  60. const cf = await face('fedCreateFranchise', ['Gate F', 'x'], 'alice');
  61. check('authz: the creator (alice) creates a franchise', cf.value && cf.value.ok === true, cf.raw);
  62. const pub = [['searchDb', ['gate']], ['showComplete', [SLUG]], ['showSeasonEpisodes', [SE1]], ['fedFindTimelines', ['ga']], ['tedSearch', ['t', 'gate']], ['showRows', [SLUG, {}]]];
  63. let pubBad = [];
  64. for (const [ev, args] of pub) for (const w of ['anon', 'bob', 'alice']) { const r = await face(ev, args, w); if (r.status !== 200 || refused(r)) pubBad.push(`${ev} ${w}: ${r.raw.slice(0, 80)}`); }
  65. check('authz: the public faces (search, title parts, season episodes, timeline finder) answer anon / bob / alice', pubBad.length === 0, pubBad.join('; '));
  66. const adultRows = [await face('showRows', [ADULT, {}], 'anon'), await face('showRows', [ADULT, {}], 'bob'), await face('showRows', [ADULT, {}], 'alice')];
  67. check('authz: showRows of the adult title: "no such show" for anon and bob, the rows for its follower', refused(adultRows[0]) && refused(adultRows[1]) && adultRows[2].value.ok === true, J(adultRows.map(r => r.value && (r.value.error || 'ok'))));
  68. const sc = await face('showSeasonEpisodes', ['nope'], 'bob');
  69. check('authz: showSeasonEpisodes of an unknown season is "no such season"', refused(sc));
  70. // bob's own data
  71. const own = [];
  72. for (const [ev, args] of [['showToggleEpisode', [SLUG, EP1, {}, false]], ['showToggleSeason', [SLUG, SE1, {}, false]], ['showToggleMovie', [MOVIE]], ['showToggleFollow', [SLUG]], ['unwatchedToggle', [EP2]]]) {
  73. const r = await face(ev, args, 'bob'); own.push(r.value && r.value.ok === true);
  74. }
  75. check('authz: a signed-in user (bob) can toggle his own episode / season / movie / follow / unwatched', own.every(Boolean), J(own));
  76. const aliceUnw = await k.get('/my/unwatched', A);
  77. check('authz: bob\'s watches did not touch alice\'s lists (alice still has her unwatched "Second")', /Second/.test(aliceUnw.body));
  78. // ---- faces: a peer's session / ids
  79. const inj = await k.emit('showToggleFollow', [SLUG, { user: { id: 'gateu0000000000u1' } }], null);
  80. const inj2 = await k.emit('fedCreateFranchise', ['Inj', 'x', { user: { id: 'gateu0000000000u1' } }], B);
  81. check('faces: a `session` sent by the peer is refused (anonymous and bob cannot become alice by sending her user)', /never by the peer/.test(inj.raw) && /never by the peer/.test(inj2.raw), inj.raw + inj2.raw);
  82. const junk = await face('unwatchedToggle', ['junk-not-an-episode'], 'bob');
  83. check('FIX faces: unwatchedToggle with text that is no episode is refused (it stored a watch row for any text)', refused(junk), J(junk.value));
  84. const junk2 = await face('unwatchedToggle', [{ a: 1 }], 'bob');
  85. check('FIX faces: unwatchedToggle with an object is refused', refused(junk2) && junk2.status === 200, junk2.raw);
  86. const otherShow = await face('showToggleEpisode', ['unwatched-gate-show', EP1, {}, false], 'bob');
  87. check('FIX faces: showToggleEpisode with an episode of ANOTHER show is refused', refused(otherShow), J(otherShow.value));
  88. const otherSeason = await face('showToggleSeason', ['unwatched-gate-show', SE1, {}, false], 'bob');
  89. check('FIX faces: showToggleSeason with a season of ANOTHER show is refused', refused(otherSeason), J(otherSeason.value));
  90. const junk3 = await face('showToggleEpisode', [SLUG, 'junk', {}, false], 'bob');
  91. check('FIX faces: showToggleEpisode with text that is no episode is refused', refused(junk3), J(junk3.value));
  92. const bobFollowAdult = await face('showToggleFollow', [ADULT], 'bob');
  93. const bobSees = await k.get('/movies/' + ADULT, B);
  94. check('FIX faces: bob cannot follow alice\'s adult title by its slug (that opened the title\'s page to anyone who guessed it)', refused(bobFollowAdult) && !/Adult Gate Movie/.test(bobSees.body), J(bobFollowAdult.value) + bobSees.body.length);
  95. const bobUnwAdult = await face('unwatchedToggle', ['ad00000000epfl'], 'bob');
  96. const bobEpAdult = await face('showToggleEpisode', [ADULT, EP1, {}, false], 'bob');
  97. check('faces: the adult title\'s faces answer "no such …" to bob', refused(bobEpAdult), J(bobEpAdult.value));
  98. const aliceUnfollow = await face('showToggleFollow', [ADULT], 'alice');
  99. check('faces: alice (the follower) can unfollow her adult title', aliceUnfollow.value && aliceUnfollow.value.ok === true && aliceUnfollow.value.following === false, J(aliceUnfollow.value));
  100. const aliceAgain = await face('showToggleFollow', [ADULT], 'alice');
  101. check('faces: after her unfollow the title is hidden from alice too — she cannot follow it again by slug', refused(aliceAgain), J(aliceAgain.value));
  102. // ---- imports: a budget per user, a type check on the id
  103. const imp = [];
  104. for (let i = 0; i < 5; i++) { const r = await k.emit('searchImport', ['movie', 5001], B); imp.push(r.value && r.value.ok === true ? 'ok' : (err(r) || 'none').slice(0, 20)); }
  105. const impAlice = await k.emit('searchImport', ['movie', 5001], A);
  106. const impObj = await k.emit('searchImport', ['movie', { a: 1 }], A);
  107. check('FIX imports: a signed-in user\'s imports are budgeted (TRACKER_IMPORT_PER_HOUR=3): 3 pass, the rest "too many imports"; another user (alice) is not held back by bob\'s', imp.slice(0, 3).every(x => x === 'ok') && imp.slice(3).every(x => /too many imports/.test(x)) && impAlice.value.ok === true, J(imp) + J(impAlice.value));
  108. check('FIX imports: a TMDB id that is neither a number nor text is refused without a 500', impObj.status === 200 && refused(impObj), impObj.raw);
  109. // ---- input: wrong types make no 500
  110. const obj = { a: 1 };
  111. const typed = [['showComplete', [obj]], ['searchDb', [obj]], ['searchDb', [[1]]], ['searchWeb', [obj]], ['personFill', [obj]], ['fedFindTimelines', [obj]], ['tedSearch', ['t', obj]]];
  112. let t500 = [];
  113. for (const [ev, args] of typed) { const r = await k.emit(ev, args, B); if (r.status !== 200 || /\.hl:\d/.test(r.raw)) t500.push(`${ev} ${r.status} ${r.raw.slice(0, 90).replace(/\n/g, ' ')}`); }
  114. check('FIX input: a list or an object where a face wants text is answered without a 500 that names the source file and line', t500.length === 0, t500.join(' | '));
  115. // ---- input: HTML in every text field
  116. const evilPages = ['/series/xss-title', '/person/xss-person', '/genres/xss-genre', '/series', '/people', '/genres', '/search/xss', '/search/%3Cimg%20src%3Dx%20onerror%3D1%3E', '/movies/%3Cimg%20src%3Dx%3E'];
  117. let raw = [];
  118. for (const p of evilPages) { const r = await k.get(p, null); const b = r.body;
  119. if (/<img src=x onerror|<svg onload|<\/script><img|"><img src=x|href="javascript:/i.test(b)) raw.push(p); }
  120. check('input: HTML / script in a title, summary, tagline, cast, season, episode, person, genre and in the path never reaches a page raw (title page, person, genre, lists, search)', raw.length === 0, raw.join(' '));
  121. const links = (await k.get('/series/xss-title')).body;
  122. check('input: a stored homepage javascript: URL is not a link on the title page (external links are built from ids on fixed hosts)', !/javascript:/i.test(links.replace(/<script[\s\S]*?<\/script>/g, '')));
  123. const trav = ['/posters/..%2f..%2f.env', '/posters/%2e%2e/x', '/posters/a%00.png', '/profiles/..%5c..%5cx', '/posters/%2fetc%2fpasswd', '/__hl/../project.hl', '/%2e%2e/%2e%2e/etc/passwd', '/project.hl', '/.env', '/storage/mpackdb/users.db', '/lib/users.hl', '/tests/seckit.mjs'];
  124. let travBad = [];
  125. for (const p of trav) { const r = await k.get(p, null); if (r.status === 200 || /root:|TRACKER_SECRET|static identSecret/.test(r.body)) travBad.push(p + ' ' + r.status); }
  126. check('input: path traversal in /posters, /profiles and the source/data paths: never a 200, never file content', travBad.length === 0, travBad.join(' '));
  127. let nextBad = [];
  128. for (const nx of ['//evil.com', '/\\evil.com', 'https://evil.com', 'javascript:alert(1)', '/login/x', '/a%0d%0aSet-Cookie:%20x=1', '/a b']) {
  129. const code = await k.ident.selectorCode(k.alice, k.app, BASE);
  130. const r = await fetch(BASE + '/login/callback?ident_code=' + code + '&next=' + nx, { redirect: 'manual', headers: { 'x-client-ip': '10.1.1.' + nextBad.length + Math.floor(Math.random() * 99) } });
  131. const loc = r.headers.get('location') || '';
  132. if (!(loc === '/' || /^\/[A-Za-z0-9\-._~\/?&=%+,;@!$()*:]*$/.test(loc)) || /[\r\n]/.test(loc) || r.headers.get('x-evil') || /^x=1/.test(r.headers.get('set-cookie') || '')) nextBad.push(nx + ' → ' + loc);
  133. }
  134. check('input: the login\'s ?next= goes only to a same-site path (no //host, no scheme, no CR/LF)', nextBad.length === 0, nextBad.join(' | '));
  135. const f1 = await k.get('/find?q=a%0d%0aX-Evil:1'), f2 = await k.get('/find?q=%2F%2Fevil.com');
  136. check('input: /find?q= with CR/LF or // is a /search/<encoded> redirect, no header injection', f1.status === 302 && !f1.headers.get('x-evil') && /^\/search\/[^\r\n]*$/.test(f1.headers.get('location')) && /^\/search\//.test(f2.headers.get('location')), f1.headers.get('location') + ' ' + f2.headers.get('location'));
  137. // ---- login / session
  138. // RV28 (tracker#50): a visitor WITHOUT a cookie gets no session, no file and no cookie, on the start page and on an unknown /shows/ slug
  139. const anon1 = await fetch(BASE + '/', { redirect: 'manual' }), anon2 = await fetch(BASE + '/shows/no-such-slug-rv28', { redirect: 'manual' });
  140. check('sessions: a request without a cookie sets no cookie (start page and unknown /shows/ slug) — no session file for bots (tracker#50)', !anon1.headers.get('set-cookie') && !anon2.headers.get('set-cookie') && anon2.status === 200, `${anon1.headers.get('set-cookie')} | ${anon2.status} ${anon2.headers.get('set-cookie')}`);
  141. // a session that gets something stored (here the reason of a failed login) gets its cookie
  142. const fresh = await fetch(BASE + '/login/callback?ident_code=', { redirect: 'manual', headers: { 'x-client-ip': '10.2.2.1' } });
  143. const sc0 = fresh.headers.get('set-cookie') || '';
  144. check('login: the session cookie is HttpOnly, SameSite=Lax, path /, 14 days (Secure is hl:web\'s gap, recorded)', /^trackersid=[0-9a-f]{32};/.test(sc0) && /HttpOnly/.test(sc0) && /SameSite=Lax/.test(sc0) && /Path=\//.test(sc0), sc0);
  145. const planted = sc0.split(';')[0];
  146. const lg = await k.login(k.bob, { 'x-client-ip': '10.2.2.2' }, planted);
  147. const stillPlanted = await k.emit('showToggleFollow', [SLUG], planted);
  148. check('FIX login: a login brings a NEW session — the session id planted in the browser before it (fixation) stays signed out', lg.cookie != null && lg.cookie !== planted && refused(stillPlanted), `${lg.cookie} vs ${planted} / ${J(stillPlanted.value)}`);
  149. const fixedNew = await k.emit('showToggleFollow', [SLUG], lg.cookie);
  150. check('login: the new session is signed in as bob', fixedNew.value && fixedNew.value.ok === true, fixedNew.raw);
  151. const code = await k.ident.selectorCode(k.alice, k.app, BASE);
  152. await fetch(BASE + '/login/callback?ident_code=' + code, { redirect: 'manual', headers: { 'x-client-ip': '10.2.2.3' } });
  153. const replay = await fetch(BASE + '/login/callback?ident_code=' + code, { redirect: 'manual', headers: { 'x-client-ip': '10.2.2.3' } });
  154. check('login: a used login code cannot be used again', replay.headers.get('location') === '/login/failed');
  155. const post = await fetch(BASE + '/login/callback?ident_code=' + code, { method: 'POST', redirect: 'manual', headers: { 'x-client-ip': '10.2.2.4' } });
  156. check('login: the callback answers GET only (a POST is a failed login, no session)', post.headers.get('location') === '/login/failed');
  157. // the budget
  158. const stat = [];
  159. let lastCookie = null;
  160. for (let i = 0; i < 9; i++) {
  161. const r = await fetch(BASE + '/login/callback?ident_code=' + 'ab'.repeat(24), { redirect: 'manual', headers: { 'x-client-ip': '10.3.3.3' } });
  162. const ck = (r.headers.get('set-cookie') || '').split(';')[0] || lastCookie; lastCookie = ck;
  163. const page = await fetch(BASE + '/login/failed', { headers: { cookie: ck } }); const txt = await page.text();
  164. stat.push(/too many login attempts/.test(txt) ? 'limited' : 'tried');
  165. }
  166. check('FIX login: more than 5 tries a minute from one address (TRACKER_LOGIN_PER_MINUTE=5) are refused without asking ident — "too many login attempts"', stat.slice(0, 5).every(s => s === 'tried') && stat.slice(6).every(s => s === 'limited'), stat.join(','));
  167. const other = await k.login(k.alice, { 'x-client-ip': '10.3.3.4' });
  168. check('login: another address is not held back by it, and the real login works', other.cookie != null && other.location === '/', J(other));
  169. const faceStat = [];
  170. for (let i = 0; i < 8; i++) { const r = await k.emit('trackerLogin', ['ab'.repeat(24)], other.cookie); faceStat.push(/too many/.test(err(r) || '') ? 'limited' : 'tried'); }
  171. check('FIX login: the header selector\'s face trackerLogin is budgeted per session too (5 tries a minute)', faceStat.slice(0, 5).every(s => s === 'tried') && faceStat.slice(6).every(s => s === 'limited'), faceStat.join(','));
  172. // logout
  173. const al = await k.login(k.alice, { 'x-client-ip': '10.4.4.4' });
  174. const pre = await k.emit('showToggleFollow', [SLUG], al.cookie);
  175. const lo = await k.emit('trackerLogOut', [], al.cookie);
  176. const post2 = await k.emit('showToggleFollow', [SLUG], al.cookie);
  177. const pg = await k.get('/my/series', al.cookie);
  178. check('login: logout ends the session — the same cookie is signed out afterwards (face refused, /my page empty)', pre.value.ok === true && lo.value.ok === true && refused(post2) && !/Gate Test Show/.test(pg.body), J([pre.value, lo.value, post2.value]));
  179. // ---- secrets
  180. const secrets = { identSecret: k.app.secret, aliceIdentity: k.aliceIdentity, bobIdentity: k.bobIdentity, tmdbToken: 'gate-token', aliceCookie: A.split('=')[1], bobCookie: B.split('=')[1] };
  181. let leaks = [];
  182. for (const p of ['/', '/settings', '/my/movies', '/my/series', '/my/unwatched', '/series/gate-test-show', '/movies/' + ADULT, '/franchises/edit', '/login/failed', '/search/gate', '/person/Test-Actor', '/components/main.hl', '/components/show.hl', '/__hl/app.css', '/__hl/sw.js', '/__hl/manifest.webmanifest', '/login.js']) {
  183. for (const c of [null, A, B]) {
  184. const r = await k.get(p, c);
  185. for (const [n, v] of Object.entries(secrets)) if (r.body.includes(v)) leaks.push(`${p}:${n}`);
  186. if (/sk_[0-9a-f]{20}/.test(r.body) || /\/media\/|\/home\//.test(r.body)) leaks.push(`${p}:key-or-path`);
  187. }
  188. }
  189. check('secrets: no app secret, TMDB token, identity id (any user\'s), session id or absolute path in any page, component module or asset (the public ident key pk_… is in the login link by design)', leaks.length === 0, leaks.join(' '));
  190. const log = k.logs.server;
  191. check('secrets: none of them in the server log either', Object.entries(secrets).every(([, v]) => !log.includes(v)));
  192. // ---- budget: the anonymous TMDB-asking guest link
  193. const before = k.tmdb.personRequests.length;
  194. for (let i = 0; i < 10; i++) await fetch(BASE + '/person/tmdb/' + (700 + i), { redirect: 'manual' });
  195. const asked = k.tmdb.personRequests.length - before;
  196. check('FIX budget: an anonymous GET /person/tmdb/<id> without ?show= asks TMDB — at most 4 an hour in all (TRACKER_GUEST_FALLBACK_PER_HOUR=4), not one per request', asked > 0 && asked <= 4, `asked TMDB ${asked} times for 10 requests`);
  197. console.log('\n--- face matrix (who, status, answer)\n' + matrix.join('\n'));
  198. check('the server did not crash or panic through all of it', !/panic|SIGSEGV|Segmentation/i.test(log), log.slice(-300));
  199. } catch (e) {
  200. check('no exception', false, String(e && e.stack || e));
  201. } finally {
  202. if (k) await k.stop();
  203. }
  204. console.log(`\n${passes} passed, ${failures} failed`);
  205. process.exit(failures ? 1 : 0);

Branches

Latest commits

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker