instar 1.3.2024 → 1.3.2026
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard/console/console.css +16 -2
- package/dashboard/console/development-model.js +38 -0
- package/dashboard/console/development.js +73 -3
- package/dist/cli.js +29 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/helper.d.ts +21 -0
- package/dist/commands/helper.d.ts.map +1 -0
- package/dist/commands/helper.js +100 -0
- package/dist/commands/helper.js.map +1 -0
- package/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +24 -2
- package/dist/commands/server.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +11 -3
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/data/effect-kinds.d.ts.map +1 -1
- package/dist/data/effect-kinds.js +14 -3
- package/dist/data/effect-kinds.js.map +1 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/localVerify/BorrowedRunMachine.d.ts +254 -0
- package/dist/localVerify/BorrowedRunMachine.d.ts.map +1 -0
- package/dist/localVerify/BorrowedRunMachine.js +1198 -0
- package/dist/localVerify/BorrowedRunMachine.js.map +1 -0
- package/dist/localVerify/BorrowedShadow.d.ts +73 -0
- package/dist/localVerify/BorrowedShadow.d.ts.map +1 -0
- package/dist/localVerify/BorrowedShadow.js +481 -0
- package/dist/localVerify/BorrowedShadow.js.map +1 -0
- package/dist/localVerify/LocalVerifyService.d.ts +41 -0
- package/dist/localVerify/LocalVerifyService.d.ts.map +1 -1
- package/dist/localVerify/LocalVerifyService.js +159 -6
- package/dist/localVerify/LocalVerifyService.js.map +1 -1
- package/dist/localVerify/borrowedAsk.d.ts +45 -0
- package/dist/localVerify/borrowedAsk.d.ts.map +1 -0
- package/dist/localVerify/borrowedAsk.js +74 -0
- package/dist/localVerify/borrowedAsk.js.map +1 -0
- package/dist/localVerify/borrowedAsking.d.ts +39 -0
- package/dist/localVerify/borrowedAsking.d.ts.map +1 -0
- package/dist/localVerify/borrowedAsking.js +71 -0
- package/dist/localVerify/borrowedAsking.js.map +1 -0
- package/dist/localVerify/borrowedCanary.d.ts +9 -0
- package/dist/localVerify/borrowedCanary.d.ts.map +1 -0
- package/dist/localVerify/borrowedCanary.js +21 -0
- package/dist/localVerify/borrowedCanary.js.map +1 -0
- package/dist/localVerify/borrowedClient.d.ts +81 -0
- package/dist/localVerify/borrowedClient.d.ts.map +1 -0
- package/dist/localVerify/borrowedClient.js +113 -0
- package/dist/localVerify/borrowedClient.js.map +1 -0
- package/dist/localVerify/borrowedCompare.d.ts +81 -0
- package/dist/localVerify/borrowedCompare.d.ts.map +1 -0
- package/dist/localVerify/borrowedCompare.js +142 -0
- package/dist/localVerify/borrowedCompare.js.map +1 -0
- package/dist/localVerify/borrowedDryRun.d.ts +84 -0
- package/dist/localVerify/borrowedDryRun.d.ts.map +1 -0
- package/dist/localVerify/borrowedDryRun.js +375 -0
- package/dist/localVerify/borrowedDryRun.js.map +1 -0
- package/dist/localVerify/borrowedEligibility.d.ts +118 -0
- package/dist/localVerify/borrowedEligibility.d.ts.map +1 -0
- package/dist/localVerify/borrowedEligibility.js +436 -0
- package/dist/localVerify/borrowedEligibility.js.map +1 -0
- package/dist/localVerify/borrowedLaneFlow.d.ts +375 -0
- package/dist/localVerify/borrowedLaneFlow.d.ts.map +1 -0
- package/dist/localVerify/borrowedLaneFlow.js +801 -0
- package/dist/localVerify/borrowedLaneFlow.js.map +1 -0
- package/dist/localVerify/borrowedNotices.d.ts +55 -0
- package/dist/localVerify/borrowedNotices.d.ts.map +1 -0
- package/dist/localVerify/borrowedNotices.js +120 -0
- package/dist/localVerify/borrowedNotices.js.map +1 -0
- package/dist/localVerify/borrowedPlan.d.ts +68 -0
- package/dist/localVerify/borrowedPlan.d.ts.map +1 -0
- package/dist/localVerify/borrowedPlan.js +113 -0
- package/dist/localVerify/borrowedPlan.js.map +1 -0
- package/dist/localVerify/borrowedPractice.d.ts +328 -0
- package/dist/localVerify/borrowedPractice.d.ts.map +1 -0
- package/dist/localVerify/borrowedPractice.js +441 -0
- package/dist/localVerify/borrowedPractice.js.map +1 -0
- package/dist/localVerify/borrowedRunSeams.d.ts +35 -0
- package/dist/localVerify/borrowedRunSeams.d.ts.map +1 -0
- package/dist/localVerify/borrowedRunSeams.js +166 -0
- package/dist/localVerify/borrowedRunSeams.js.map +1 -0
- package/dist/localVerify/borrowedState.d.ts +82 -0
- package/dist/localVerify/borrowedState.d.ts.map +1 -0
- package/dist/localVerify/borrowedState.js +190 -0
- package/dist/localVerify/borrowedState.js.map +1 -0
- package/dist/localVerify/helper/HelperService.d.ts +245 -0
- package/dist/localVerify/helper/HelperService.d.ts.map +1 -0
- package/dist/localVerify/helper/HelperService.js +1330 -0
- package/dist/localVerify/helper/HelperService.js.map +1 -0
- package/dist/localVerify/helper/acceptance.d.ts +46 -0
- package/dist/localVerify/helper/acceptance.d.ts.map +1 -0
- package/dist/localVerify/helper/acceptance.js +121 -0
- package/dist/localVerify/helper/acceptance.js.map +1 -0
- package/dist/localVerify/helper/admission.d.ts +41 -0
- package/dist/localVerify/helper/admission.d.ts.map +1 -0
- package/dist/localVerify/helper/admission.js +40 -0
- package/dist/localVerify/helper/admission.js.map +1 -0
- package/dist/localVerify/helper/commandRunner.d.ts +40 -0
- package/dist/localVerify/helper/commandRunner.d.ts.map +1 -0
- package/dist/localVerify/helper/commandRunner.js +103 -0
- package/dist/localVerify/helper/commandRunner.js.map +1 -0
- package/dist/localVerify/helper/comparedFiles.d.ts +32 -0
- package/dist/localVerify/helper/comparedFiles.d.ts.map +1 -0
- package/dist/localVerify/helper/comparedFiles.js +110 -0
- package/dist/localVerify/helper/comparedFiles.js.map +1 -0
- package/dist/localVerify/helper/dryRunRecord.d.ts +67 -0
- package/dist/localVerify/helper/dryRunRecord.d.ts.map +1 -0
- package/dist/localVerify/helper/dryRunRecord.js +193 -0
- package/dist/localVerify/helper/dryRunRecord.js.map +1 -0
- package/dist/localVerify/helper/governor.d.ts +147 -0
- package/dist/localVerify/helper/governor.d.ts.map +1 -0
- package/dist/localVerify/helper/governor.js +292 -0
- package/dist/localVerify/helper/governor.js.map +1 -0
- package/dist/localVerify/helper/helperConfig.d.ts +87 -0
- package/dist/localVerify/helper/helperConfig.d.ts.map +1 -0
- package/dist/localVerify/helper/helperConfig.js +156 -0
- package/dist/localVerify/helper/helperConfig.js.map +1 -0
- package/dist/localVerify/helper/helperProtocol.d.ts +345 -0
- package/dist/localVerify/helper/helperProtocol.d.ts.map +1 -0
- package/dist/localVerify/helper/helperProtocol.js +466 -0
- package/dist/localVerify/helper/helperProtocol.js.map +1 -0
- package/dist/localVerify/helper/helperRoutes.d.ts +26 -0
- package/dist/localVerify/helper/helperRoutes.d.ts.map +1 -0
- package/dist/localVerify/helper/helperRoutes.js +92 -0
- package/dist/localVerify/helper/helperRoutes.js.map +1 -0
- package/dist/localVerify/helper/helperRunnerVersion.d.ts +16 -0
- package/dist/localVerify/helper/helperRunnerVersion.d.ts.map +1 -0
- package/dist/localVerify/helper/helperRunnerVersion.js +73 -0
- package/dist/localVerify/helper/helperRunnerVersion.js.map +1 -0
- package/dist/localVerify/helper/helperWiring.d.ts +62 -0
- package/dist/localVerify/helper/helperWiring.d.ts.map +1 -0
- package/dist/localVerify/helper/helperWiring.js +164 -0
- package/dist/localVerify/helper/helperWiring.js.map +1 -0
- package/dist/localVerify/helper/hostTree.d.ts +128 -0
- package/dist/localVerify/helper/hostTree.d.ts.map +1 -0
- package/dist/localVerify/helper/hostTree.js +392 -0
- package/dist/localVerify/helper/hostTree.js.map +1 -0
- package/dist/localVerify/helper/learnedList.d.ts +63 -0
- package/dist/localVerify/helper/learnedList.d.ts.map +1 -0
- package/dist/localVerify/helper/learnedList.js +154 -0
- package/dist/localVerify/helper/learnedList.js.map +1 -0
- package/dist/localVerify/helper/limaDriver.d.ts +67 -0
- package/dist/localVerify/helper/limaDriver.d.ts.map +1 -0
- package/dist/localVerify/helper/limaDriver.js +218 -0
- package/dist/localVerify/helper/limaDriver.js.map +1 -0
- package/dist/localVerify/helper/packageCache.d.ts +31 -0
- package/dist/localVerify/helper/packageCache.d.ts.map +1 -0
- package/dist/localVerify/helper/packageCache.js +111 -0
- package/dist/localVerify/helper/packageCache.js.map +1 -0
- package/dist/localVerify/helper/runnerDriverBase.d.ts +145 -0
- package/dist/localVerify/helper/runnerDriverBase.d.ts.map +1 -0
- package/dist/localVerify/helper/runnerDriverBase.js +373 -0
- package/dist/localVerify/helper/runnerDriverBase.js.map +1 -0
- package/dist/localVerify/helper/sandboxDriver.d.ts +260 -0
- package/dist/localVerify/helper/sandboxDriver.d.ts.map +1 -0
- package/dist/localVerify/helper/sandboxDriver.js +176 -0
- package/dist/localVerify/helper/sandboxDriver.js.map +1 -0
- package/dist/localVerify/helper/seenAttempts.d.ts +14 -0
- package/dist/localVerify/helper/seenAttempts.d.ts.map +1 -0
- package/dist/localVerify/helper/seenAttempts.js +53 -0
- package/dist/localVerify/helper/seenAttempts.js.map +1 -0
- package/dist/localVerify/helper/sliceBudget.d.ts +32 -0
- package/dist/localVerify/helper/sliceBudget.d.ts.map +1 -0
- package/dist/localVerify/helper/sliceBudget.js +59 -0
- package/dist/localVerify/helper/sliceBudget.js.map +1 -0
- package/dist/localVerify/helper/testBypassDriver.d.ts +69 -0
- package/dist/localVerify/helper/testBypassDriver.d.ts.map +1 -0
- package/dist/localVerify/helper/testBypassDriver.js +108 -0
- package/dist/localVerify/helper/testBypassDriver.js.map +1 -0
- package/dist/localVerify/helper/wslDriver.d.ts +82 -0
- package/dist/localVerify/helper/wslDriver.d.ts.map +1 -0
- package/dist/localVerify/helper/wslDriver.js +196 -0
- package/dist/localVerify/helper/wslDriver.js.map +1 -0
- package/dist/localVerify/installInputs.d.ts +92 -0
- package/dist/localVerify/installInputs.d.ts.map +1 -0
- package/dist/localVerify/installInputs.js +266 -0
- package/dist/localVerify/installInputs.js.map +1 -0
- package/dist/localVerify/laneReport.d.ts +39 -0
- package/dist/localVerify/laneReport.d.ts.map +1 -1
- package/dist/localVerify/laneReport.js +52 -0
- package/dist/localVerify/laneReport.js.map +1 -1
- package/dist/localVerify/localVerifyRoutes.d.ts +25 -2
- package/dist/localVerify/localVerifyRoutes.d.ts.map +1 -1
- package/dist/localVerify/localVerifyRoutes.js +125 -2
- package/dist/localVerify/localVerifyRoutes.js.map +1 -1
- package/dist/localVerify/localVerifyWiring.d.ts +58 -0
- package/dist/localVerify/localVerifyWiring.d.ts.map +1 -1
- package/dist/localVerify/localVerifyWiring.js +105 -2
- package/dist/localVerify/localVerifyWiring.js.map +1 -1
- package/dist/localVerify/mainFileCounts.d.ts +109 -0
- package/dist/localVerify/mainFileCounts.d.ts.map +1 -0
- package/dist/localVerify/mainFileCounts.js +284 -0
- package/dist/localVerify/mainFileCounts.js.map +1 -0
- package/dist/localVerify/mainRunObserver.d.ts +142 -0
- package/dist/localVerify/mainRunObserver.d.ts.map +1 -0
- package/dist/localVerify/mainRunObserver.js +11 -0
- package/dist/localVerify/mainRunObserver.js.map +1 -0
- package/dist/localVerify/orchestrator.d.ts +32 -0
- package/dist/localVerify/orchestrator.d.ts.map +1 -1
- package/dist/localVerify/orchestrator.js +254 -6
- package/dist/localVerify/orchestrator.js.map +1 -1
- package/dist/localVerify/orchestratorSeams.d.ts.map +1 -1
- package/dist/localVerify/orchestratorSeams.js +3 -0
- package/dist/localVerify/orchestratorSeams.js.map +1 -1
- package/dist/localVerify/peer.d.ts +31 -0
- package/dist/localVerify/peer.d.ts.map +1 -1
- package/dist/localVerify/peer.js +28 -1
- package/dist/localVerify/peer.js.map +1 -1
- package/dist/localVerify/record.d.ts +26 -0
- package/dist/localVerify/record.d.ts.map +1 -1
- package/dist/localVerify/record.js +40 -0
- package/dist/localVerify/record.js.map +1 -1
- package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
- package/dist/native/instar-desktop-host +0 -0
- package/dist/server/AgentServer.d.ts +1 -0
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +1 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/middleware.d.ts.map +1 -1
- package/dist/server/middleware.js +21 -0
- package/dist/server/middleware.js.map +1 -1
- package/dist/server/routes.d.ts +2 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +4 -0
- package/dist/server/routes.js.map +1 -1
- package/dist/testing/selfActionRegistry.d.ts.map +1 -1
- package/dist/testing/selfActionRegistry.js +148 -0
- package/dist/testing/selfActionRegistry.js.map +1 -1
- package/package.json +1 -1
- package/scripts/blocking-decision-surfaces-baseline.json +20 -0
- package/scripts/helper/install-windows-owner-signal.ps1 +42 -0
- package/scripts/helper/windows-owner-signal.ps1 +78 -0
- package/src/data/awareness/local-verify-borrowed-helpers.md +6 -0
- package/src/data/builtin-manifest.json +97 -97
- package/src/data/effect-kinds.ts +14 -3
- package/src/data/feature-ladders.json +1 -1
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/src/data/state-coherence-registry.json +138 -0
- package/src/templates/helper/builder-egress.nft +32 -0
- package/src/templates/helper/instar-helper-checks.sh +175 -0
- package/src/templates/helper/instar-helper-progress-reporter.mjs +127 -0
- package/src/templates/helper/instar-helper-property-probe.cjs +238 -0
- package/src/templates/helper/instar-helper-runner.sh +369 -0
- package/src/templates/helper/lima-instar-helper.yaml +48 -0
- package/src/templates/helper/provision-sandbox.sh +88 -0
- package/src/templates/helper/wsl.conf +16 -0
- package/upgrades/1.3.2025.md +57 -0
- package/upgrades/1.3.2026.md +20 -0
- package/upgrades/eli16/engine-neutral-connector-reads.eli16.md +9 -0
- package/upgrades/side-effects/engine-neutral-connector-reads.md +78 -0
- package/upgrades/side-effects/lv-borrowed-helper.md +364 -0
- package/upgrades/side-effects/phone-chat-composer-fit.md +50 -0
|
@@ -1435,10 +1435,24 @@ a.machine-line-link:hover { border-color: var(--accent); color: var(--text); }
|
|
|
1435
1435
|
.chat-input { height: 44px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--surface-solid); color: var(--text); font: inherit; }
|
|
1436
1436
|
.chat-fingerprint { font-family: var(--font-mono); letter-spacing: .04em; }
|
|
1437
1437
|
@media (max-width: 899px) {
|
|
1438
|
-
/*
|
|
1439
|
-
so the composer stays on the first screen however long the conversation is (flex: 1 alone sizes to content). */
|
|
1438
|
+
/* An expanded Needs-you list keeps normal document scrolling and its bottom clearance. */
|
|
1440
1439
|
.chats-page .chat-open { min-height: 0; height: calc(100dvh - var(--topbar-h, 56px) - 64px - 32px); }
|
|
1441
1440
|
.chats-page .chat-messages { height: auto; flex: 1 1 auto; min-height: 160px; }
|
|
1441
|
+
/* With the list closed, the shell takes its actual space before sizing the chat.
|
|
1442
|
+
Only messages yield space; the composer stays above the bottom navigation. */
|
|
1443
|
+
.app:has(.chats-page.has-open):not(:has(.needs-strip[data-open="1"]:not([hidden]))) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: var(--nav-total); }
|
|
1444
|
+
.app:has(.chats-page.has-open):not(:has(.needs-strip[data-open="1"]:not([hidden]))) > .topbar,
|
|
1445
|
+
.app:has(.chats-page.has-open):not(:has(.needs-strip[data-open="1"]:not([hidden]))) > .preview-banner,
|
|
1446
|
+
.app:has(.chats-page.has-open):not(:has(.needs-strip[data-open="1"]:not([hidden]))) > .net-line { flex-shrink: 0; }
|
|
1447
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .main-column:has(.chats-page.has-open) { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
|
|
1448
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .main-column:has(.chats-page.has-open) > .needs-strip { flex-shrink: 0; }
|
|
1449
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .main:has(> .chats-page.has-open) { flex: 1; min-height: 0; padding-bottom: var(--s-4); }
|
|
1450
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) > .main:has(> .chats-page.has-open) { overflow-y: auto; }
|
|
1451
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .chats-page.has-open,
|
|
1452
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .chats-page.has-open .chat-view,
|
|
1453
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .chats-page.has-open .chat-open { height: 100%; min-height: 0; }
|
|
1454
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .chats-page.has-open .chat-open > :not(.chat-messages) { flex-shrink: 0; }
|
|
1455
|
+
.app:not(:has(.needs-strip[data-open="1"]:not([hidden]))) .chats-page.has-open .chat-messages { height: auto; flex: 1 1 auto; min-height: 0; }
|
|
1442
1456
|
.chat-bubble { max-width: 88%; }
|
|
1443
1457
|
.chat-menu .btn-quiet { padding: 0 10px; }
|
|
1444
1458
|
}
|
|
@@ -614,3 +614,41 @@ export function developmentHeadline({ shipping, feedback, pace } = {}) {
|
|
|
614
614
|
if (allOff) return { text: 'Development tools aren’t set up on this machine.', tone: 'muted', sub: 'Shipping and the feedback factory run on a machine with the Instar source checkout.' };
|
|
615
615
|
return { text: 'Nothing here needs you.', tone: 'ok', sub: lines.join(' · ') };
|
|
616
616
|
}
|
|
617
|
+
|
|
618
|
+
// ── Borrowed machines on the run machine (docs/specs/local-verify-borrowed-slices-count.md, G) ──
|
|
619
|
+
const BORROWED_LANE_WORDS = Object.freeze({ unit: 'quick tests', integration: 'integration tests', e2e: 'end-to-end tests' });
|
|
620
|
+
|
|
621
|
+
/** One lane's state in plain words. */
|
|
622
|
+
export function borrowedLaneWords(x) {
|
|
623
|
+
const l = x && typeof x === 'object' ? x : {};
|
|
624
|
+
if (l.proven === false || !l.evidence) return 'not tried yet (no dry run)';
|
|
625
|
+
if (l.state === 'counting') return 'its passing results count';
|
|
626
|
+
if (l.state === 'suspended') return 'paused after many disagreements in one run';
|
|
627
|
+
if (typeof l.state === 'string' && l.state.startsWith('lapsed')) return 'back to practice after a problem';
|
|
628
|
+
const ev = l.evidence;
|
|
629
|
+
const done = ['coverage', 'spread', 'failingDirection', 'checkSlice', 'wrongPassWindow'].filter((k) => ev[k] && ev[k].complete).length;
|
|
630
|
+
return `practising (${done} of 5 checks met)`;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* The run machine's borrowed helpers in plain words: a title, then per helper its lanes, what the
|
|
635
|
+
* last run sent and it finished, and a dry run in progress. Null when no helper is set up here.
|
|
636
|
+
*/
|
|
637
|
+
export function borrowedSummary(b) {
|
|
638
|
+
if (!b || typeof b !== 'object' || !b.mode || b.mode === 'off' || !Array.isArray(b.helpers) || b.helpers.length === 0) return null;
|
|
639
|
+
const rows = b.helpers.filter((h) => h && typeof h.machineId === 'string').map((h) => {
|
|
640
|
+
const lanes = h.lanes && typeof h.lanes === 'object' ? h.lanes : {};
|
|
641
|
+
const laneLines = ['unit', 'integration', 'e2e'].map((k) => `${BORROWED_LANE_WORDS[k]}: ${borrowedLaneWords(lanes[k])}`);
|
|
642
|
+
const lasts = ['unit', 'integration', 'e2e'].map((k) => lanes[k] && lanes[k].lastVerify).filter((x) => x && typeof x.sent === 'number');
|
|
643
|
+
lasts.sort((a, c) => String(c.at).localeCompare(String(a.at)));
|
|
644
|
+
const last = lasts[0] ? `Last run: it was given ${plural(lasts[0].sent, 'file')} and finished ${lasts[0].finished}.` : 'It has not been given any work yet.';
|
|
645
|
+
const intent = h.dryRunIntent && h.dryRunIntent.state;
|
|
646
|
+
const dry = h.dryRunRunning ? 'A dry run is going on.' : intent === 'requested' ? 'A dry run is waiting to start.' : null;
|
|
647
|
+
return { machine: h.machineId, lanes: laneLines, last, dry };
|
|
648
|
+
});
|
|
649
|
+
return {
|
|
650
|
+
title: b.mode === 'count' ? 'Borrowed machines help the test line' : 'Borrowed machines practise for the test line',
|
|
651
|
+
sub: 'Their answers are compared with this machine’s own; a lane counts only after it has proven itself and the line’s session records that decision.',
|
|
652
|
+
rows,
|
|
653
|
+
};
|
|
654
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
buildShipping, buildPace, buildFeedback, developmentHeadline, stoppedLead, foldFromHash, maintainerMode, authorityCard, holdWords, verifyWords, rollbackWords,
|
|
14
14
|
readinessAuthorityRequest, triageAuthorityRequest, commitRequest, authorityResultWords, commitResultWords, newDecisionRef, PACE_METRICS, DEV_TOOLS_KEY,
|
|
15
|
+
borrowedSummary,
|
|
15
16
|
} from './development-model.js';
|
|
16
17
|
import { el, setKids, pageHead, section, sheet, closeSheet, story, details, note, cantTell, askPin, forgetOperatorSession, firstPaint, arrivalScroll, markNeed, askLink } from './ui.js';
|
|
17
18
|
import { legacyHref } from './nav-model.js';
|
|
@@ -97,13 +98,15 @@ export async function renderDevelopment(main, ctx) {
|
|
|
97
98
|
const want = foldFromHash(location.hash);
|
|
98
99
|
if (want) { view.open = want; view.scrollTo = want; }
|
|
99
100
|
}
|
|
100
|
-
const [watcher, verify, release, readiness, triageSummary, triageProposal, execute, queue, drain, pace] = await Promise.all([
|
|
101
|
+
const [watcher, verify, release, readiness, triageSummary, triageProposal, execute, queue, drain, pace, helper] = await Promise.all([
|
|
101
102
|
read('/green-pr-automerge'), read('/local-verify'), read('/release-readiness'),
|
|
102
103
|
read('/feedback-factory/readiness-authorities/proposal'), read('/feedback-factory/triage/summary'), read('/feedback-factory/triage/authority/proposal'),
|
|
103
104
|
read('/feedback-factory/execute/status'), read('/feedback-factory/triage/queue'), read('/feedback-factory/drain/status'),
|
|
104
105
|
read(`/throughput/series?days=${view.days}`, 15000),
|
|
106
|
+
// Borrowed-machine helper role (docs/specs/local-verify-borrowed-unit-slices.md, G): 404 while off, so no card.
|
|
107
|
+
read('/local-verify/helper-status'),
|
|
105
108
|
]);
|
|
106
|
-
last = { res: { watcher, verify, release, readiness, triageSummary, triageProposal, execute, queue, drain, pace }, main, ctx };
|
|
109
|
+
last = { res: { watcher, verify, release, readiness, triageSummary, triageProposal, execute, queue, drain, pace, helper }, main, ctx };
|
|
107
110
|
paint();
|
|
108
111
|
}
|
|
109
112
|
|
|
@@ -126,13 +129,15 @@ function paint() {
|
|
|
126
129
|
const approvalsLine = approvals ? markNeed(el('button', { class: 'btn-primary btn-inline need-line', type: 'button', text: `${approvals === 1 ? 'A pull request needs' : `${approvals} pull requests need`} your approval: show ${approvals === 1 ? 'it' : 'them'}`, onclick: () => { view.open = 'shipping'; paint(); arrivalScroll(main.querySelector('#sec-shipping'), { key: `tap:${Date.now()}` }); } }), 'shipping-approvals') : null;
|
|
127
130
|
const stopped = stoppedCard(shipping, deps);
|
|
128
131
|
const keptOff = keptOffMainCards(res.verify, deps);
|
|
132
|
+
const helperLend = helperCard(res.helper, deps);
|
|
133
|
+
const borrowedRun = borrowedRunCard(res.verify);
|
|
129
134
|
const moreLine = todos.length > 1 ? el('button', { class: 'link-btn older-line', type: 'button', text: `${todos.length - 1} more ${todos.length === 2 ? 'thing needs' : 'things need'} you ›`, onclick: () => openMore(todos.slice(1), deps) }) : null;
|
|
130
135
|
|
|
131
136
|
// First arrival opens the section with the worst news (Shipping otherwise); 'none' is the operator's own collapse.
|
|
132
137
|
if (!view.open) view.open = feedback.tone === 'attn' || feedback.state === 'cant-tell' ? 'feedback' : 'shipping';
|
|
133
138
|
setKids(main, el('div', { class: 'dev-page' },
|
|
134
139
|
pageHead({ eyebrow: EYEBROW, headline: h.text, sub: h.sub, tone: h.tone }),
|
|
135
|
-
stopped, ...keptOff, lead, approvalsLine, moreLine,
|
|
140
|
+
stopped, ...keptOff, helperLend, lead, approvalsLine, moreLine, borrowedRun,
|
|
136
141
|
el('div', { class: 'page-sections' },
|
|
137
142
|
fold({ id: 'shipping', title: 'Shipping', line: shipping.line, tone: shipping.tone, body: () => shippingBody(shipping, deps) }),
|
|
138
143
|
fold({ id: 'feedback', title: 'Feedback', line: feedback.line, tone: feedback.tone, body: () => feedbackBody(feedback, deps) }),
|
|
@@ -192,6 +197,71 @@ function keptOffMainCards(verify, deps) {
|
|
|
192
197
|
), 'peer-main-quarantine'));
|
|
193
198
|
}
|
|
194
199
|
|
|
200
|
+
/**
|
|
201
|
+
* This run machine's borrowed helpers (docs/specs/local-verify-borrowed-slices-count.md, G): one quiet
|
|
202
|
+
* card, after anything that needs the operator, only while a helper is set up here. Nothing to do on it.
|
|
203
|
+
*/
|
|
204
|
+
function borrowedRunCard(verify) {
|
|
205
|
+
const s = borrowedSummary(verify && verify.ok && verify.data ? verify.data.borrowed : null);
|
|
206
|
+
if (!s) return null;
|
|
207
|
+
return el('div', { class: 'need-card muted', 'data-borrowed-run': '1' },
|
|
208
|
+
el('span', { class: 'need-title', text: s.title }),
|
|
209
|
+
el('span', { class: 'need-sub muted', text: s.sub }),
|
|
210
|
+
...s.rows.flatMap((r) => [
|
|
211
|
+
el('span', { class: 'need-sub', text: `${r.machine}: ${r.lanes.join('; ')}.` }),
|
|
212
|
+
el('span', { class: 'need-sub muted', text: r.last }),
|
|
213
|
+
...(r.dry ? [el('span', { class: 'need-sub muted', text: r.dry })] : []),
|
|
214
|
+
]));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* This machine lends test time to the test line (a borrowed helper): its state and the owner's
|
|
219
|
+
* pause toggle. Shown only while the helper role is on. No PIN: pausing is always safe, and resuming
|
|
220
|
+
* only lets the runs continue.
|
|
221
|
+
*/
|
|
222
|
+
function helperCard(r, deps) {
|
|
223
|
+
if (!r || !r.ok || !r.data || r.data.enabled !== true) return null;
|
|
224
|
+
const d = r.data;
|
|
225
|
+
const busy = d.busy ? (d.busy.kind === 'slice' ? 'running a slice of tests' : 'preparing a copy of the code') : 'idle';
|
|
226
|
+
const state = d.paused ? 'Paused by you' : (d.sandbox && d.sandbox.ownerBusy) ? 'Waiting: your machine was short of memory' : `Test runs on (${busy})`;
|
|
227
|
+
const refusal = d.lastRefusal ? `Last time it said no: ${helperReasonWords(d.lastRefusal.reason)}` : null;
|
|
228
|
+
const containment = d.sandbox && d.sandbox.containment && d.sandbox.containment.ok === false ? 'A safety check on the sealed-off sandbox did not pass, so nothing runs until it does.' : null;
|
|
229
|
+
const status = el('p', { class: 'action-status', role: 'status' });
|
|
230
|
+
const toggle = el('button', { class: 'btn-primary btn-inline', type: 'button', text: d.paused ? 'Resume test runs' : 'Pause test runs' });
|
|
231
|
+
toggle.addEventListener('click', async () => {
|
|
232
|
+
status.textContent = d.paused ? 'Resuming…' : 'Pausing…';
|
|
233
|
+
try {
|
|
234
|
+
const res = await fetch('/local-verify/helper-pause', { method: 'POST', headers: { Authorization: `Bearer ${bearer()}`, 'Content-Type': 'application/json', 'X-Instar-Request': '1' }, body: JSON.stringify({ paused: !d.paused }), cache: 'no-store' });
|
|
235
|
+
status.textContent = res.ok ? (d.paused ? 'Resumed.' : 'Paused. Current work stopped.') : `The server answered ${res.status}.`;
|
|
236
|
+
if (res.ok) setTimeout(() => deps.refresh(), 600);
|
|
237
|
+
} catch { status.textContent = 'The server could not be reached.'; }
|
|
238
|
+
});
|
|
239
|
+
return el('div', { class: 'need-card', 'data-helper-lend': '1' },
|
|
240
|
+
el('span', { class: 'need-title', text: 'This machine lends spare time to the test line' }),
|
|
241
|
+
el('span', { class: 'need-sub', text: state }),
|
|
242
|
+
...(refusal ? [el('span', { class: 'need-sub muted', text: refusal })] : []),
|
|
243
|
+
...(containment ? [el('span', { class: 'need-sub', text: containment })] : []),
|
|
244
|
+
el('span', { class: 'need-sub muted', text: 'Its answers are first only compared with the test line’s own; its passing answers count only after they have matched. It runs Instar’s code in a sealed-off sandbox that cannot see your files, and steps back when you are busy.' }),
|
|
245
|
+
toggle, status);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** Plain words for a helper refusal code; an unknown code gets a general phrase, never the raw code. */
|
|
249
|
+
function helperReasonWords(code) {
|
|
250
|
+
const c = String(code || '');
|
|
251
|
+
if (c.startsWith('owner-busy')) return c.endsWith('battery') ? 'your machine was on battery' : 'your machine was busy';
|
|
252
|
+
const words = {
|
|
253
|
+
busy: 'it was already working on another piece', 'disk-low': 'there was not enough free disk space', 'host-disk-low': 'there was not enough free disk space',
|
|
254
|
+
'not-merged': 'the code was not yet merged', expired: 'the request arrived too late', replayed: 'the same request came twice',
|
|
255
|
+
'wrong-helper': 'the request was meant for another machine', unsigned: 'the request was not signed by a trusted machine', tunnel: 'the request came from outside the home network',
|
|
256
|
+
paused: 'you had paused it', 'result-oversize': 'a test result was too large to accept',
|
|
257
|
+
'base-not-merged': 'the code was not yet merged', 'head-not-ours': 'the change was not one of the project’s own open changes', 'head-fork': 'the change came from a copy of the project',
|
|
258
|
+
'head-pr-closed': 'the change was already closed', 'head-moved': 'the change had moved on', 'dry-run-not-done': 'its first full trial run was not done yet',
|
|
259
|
+
'merge-conflict': 'the change did not merge cleanly', 'install-inputs-changed': 'the change alters the installed packages', 'queue-full': 'it already had a full queue of work',
|
|
260
|
+
'not-prepared': 'its copy of the code was not ready yet',
|
|
261
|
+
};
|
|
262
|
+
return words[c] || 'a safety rule did not allow it';
|
|
263
|
+
}
|
|
264
|
+
|
|
195
265
|
async function clearKeptOff(machineId, deps) {
|
|
196
266
|
const auth = await askPin({ title: 'Let it test main again', explain: 'This helper machine will test main again. A recent PIN unlock is needed; it is kept in this page only until it expires.', adapter: 'session' });
|
|
197
267
|
if (!auth) return;
|
package/dist/cli.js
CHANGED
|
@@ -714,6 +714,35 @@ backupCmd
|
|
|
714
714
|
const { restoreBackup } = await import('./commands/backup.js');
|
|
715
715
|
return restoreBackup(id, opts);
|
|
716
716
|
});
|
|
717
|
+
// ── Borrowed-machine helper (local-verify-borrowed-unit-slices) ──
|
|
718
|
+
const helperCmd = program
|
|
719
|
+
.command('helper')
|
|
720
|
+
.description('Owner controls for this machine\'s borrowed-machine test helper (pause, resume, uninstall)');
|
|
721
|
+
helperCmd
|
|
722
|
+
.command('pause')
|
|
723
|
+
.description('Pause the helper: it refuses new work and stops current work')
|
|
724
|
+
.option('-d, --dir <path>', 'Project directory')
|
|
725
|
+
.action(async (opts) => {
|
|
726
|
+
const { helperPause } = await import('./commands/helper.js');
|
|
727
|
+
return helperPause(opts, true);
|
|
728
|
+
});
|
|
729
|
+
helperCmd
|
|
730
|
+
.command('resume')
|
|
731
|
+
.description('Resume the helper: it accepts new work again')
|
|
732
|
+
.option('-d, --dir <path>', 'Project directory')
|
|
733
|
+
.action(async (opts) => {
|
|
734
|
+
const { helperPause } = await import('./commands/helper.js');
|
|
735
|
+
return helperPause(opts, false);
|
|
736
|
+
});
|
|
737
|
+
helperCmd
|
|
738
|
+
.command('uninstall')
|
|
739
|
+
.description('Remove the helper sandbox, its learned list and its setting (needs --yes)')
|
|
740
|
+
.option('-d, --dir <path>', 'Project directory')
|
|
741
|
+
.option('--yes', 'Actually remove (without it, only lists what would be removed)')
|
|
742
|
+
.action(async (opts) => {
|
|
743
|
+
const { helperUninstall } = await import('./commands/helper.js');
|
|
744
|
+
return helperUninstall(opts);
|
|
745
|
+
});
|
|
717
746
|
// ── Git State ────────────────────────────────────────────────────
|
|
718
747
|
const gitCmd = program
|
|
719
748
|
.command('git')
|