@sentropic/h2a 0.98.6 → 0.98.7-rc.10
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -1
- package/dist/bin-routing.d.ts.map +1 -1
- package/dist/bin-routing.js +23 -3
- package/dist/bin-routing.js.map +1 -1
- package/dist/bin.js +51 -4
- package/dist/bin.js.map +1 -1
- package/dist/cli-command-map.d.ts.map +1 -1
- package/dist/cli-command-map.js +1 -0
- package/dist/cli-command-map.js.map +1 -1
- package/dist/cli-contract.js +2 -2
- package/dist/cli-contract.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +270 -45
- package/dist/cli.js.map +1 -1
- package/dist/focus-build.d.ts +10 -0
- package/dist/focus-build.d.ts.map +1 -0
- package/dist/focus-build.js +202 -0
- package/dist/focus-build.js.map +1 -0
- package/dist/focus-feedback.d.ts +30 -0
- package/dist/focus-feedback.d.ts.map +1 -0
- package/dist/focus-feedback.js +133 -0
- package/dist/focus-feedback.js.map +1 -0
- package/dist/hosts/agy.js +1 -1
- package/dist/hosts/agy.js.map +1 -1
- package/dist/hosts/installation-doctor.d.ts +1 -0
- package/dist/hosts/installation-doctor.d.ts.map +1 -1
- package/dist/hosts/installation-doctor.js +1 -1
- package/dist/hosts/installation-doctor.js.map +1 -1
- package/dist/hosts/muse.d.ts.map +1 -1
- package/dist/hosts/muse.js +2 -4
- package/dist/hosts/muse.js.map +1 -1
- package/dist/hosts/native-artifacts.d.ts +33 -0
- package/dist/hosts/native-artifacts.d.ts.map +1 -0
- package/dist/hosts/native-artifacts.js +104 -0
- package/dist/hosts/native-artifacts.js.map +1 -0
- package/dist/hosts/native-catalog.d.ts +19 -0
- package/dist/hosts/native-catalog.d.ts.map +1 -0
- package/dist/hosts/native-catalog.js +14 -0
- package/dist/hosts/native-catalog.js.map +1 -0
- package/dist/hosts/native-convergence.d.ts +169 -0
- package/dist/hosts/native-convergence.d.ts.map +1 -0
- package/dist/hosts/native-convergence.js +152 -0
- package/dist/hosts/native-convergence.js.map +1 -0
- package/dist/hosts/native-files.d.ts +46 -0
- package/dist/hosts/native-files.d.ts.map +1 -0
- package/dist/hosts/native-files.js +136 -0
- package/dist/hosts/native-files.js.map +1 -0
- package/dist/hosts/native-inspection.d.ts +31 -0
- package/dist/hosts/native-inspection.d.ts.map +1 -0
- package/dist/hosts/native-inspection.js +79 -0
- package/dist/hosts/native-inspection.js.map +1 -0
- package/dist/hosts/native-paths.d.ts +11 -0
- package/dist/hosts/native-paths.d.ts.map +1 -0
- package/dist/hosts/native-paths.js +21 -0
- package/dist/hosts/native-paths.js.map +1 -0
- package/dist/hosts/native-proof.d.ts +32 -0
- package/dist/hosts/native-proof.d.ts.map +1 -0
- package/dist/hosts/native-proof.js +31 -0
- package/dist/hosts/native-proof.js.map +1 -0
- package/dist/hosts/native-questions.d.ts +2 -0
- package/dist/hosts/native-questions.d.ts.map +1 -0
- package/dist/hosts/native-questions.js +22 -0
- package/dist/hosts/native-questions.js.map +1 -0
- package/dist/hosts/native-runtime-record.d.ts +3 -0
- package/dist/hosts/native-runtime-record.d.ts.map +1 -0
- package/dist/hosts/native-runtime-record.js +60 -0
- package/dist/hosts/native-runtime-record.js.map +1 -0
- package/dist/hosts/native-skills.d.ts +24 -0
- package/dist/hosts/native-skills.d.ts.map +1 -0
- package/dist/hosts/native-skills.js +56 -0
- package/dist/hosts/native-skills.js.map +1 -0
- package/dist/hosts/native-toml.d.ts +18 -0
- package/dist/hosts/native-toml.d.ts.map +1 -0
- package/dist/hosts/native-toml.js +93 -0
- package/dist/hosts/native-toml.js.map +1 -0
- package/dist/hosts/operator-notices.d.ts +3 -0
- package/dist/hosts/operator-notices.d.ts.map +1 -0
- package/dist/hosts/operator-notices.js +31 -0
- package/dist/hosts/operator-notices.js.map +1 -0
- package/dist/hosts/plugin.d.ts +30 -0
- package/dist/hosts/plugin.d.ts.map +1 -1
- package/dist/hosts/plugin.js +56 -4
- package/dist/hosts/plugin.js.map +1 -1
- package/dist/hosts/upgrade-equipment.d.ts +42 -0
- package/dist/hosts/upgrade-equipment.d.ts.map +1 -0
- package/dist/hosts/upgrade-equipment.js +26 -0
- package/dist/hosts/upgrade-equipment.js.map +1 -0
- package/dist/hosts/vibe-discovery.d.ts +12 -0
- package/dist/hosts/vibe-discovery.d.ts.map +1 -0
- package/dist/hosts/vibe-discovery.js +33 -0
- package/dist/hosts/vibe-discovery.js.map +1 -0
- package/dist/hosts/vibe-equipment.d.ts +73 -0
- package/dist/hosts/vibe-equipment.d.ts.map +1 -0
- package/dist/hosts/vibe-equipment.js +179 -0
- package/dist/hosts/vibe-equipment.js.map +1 -0
- package/dist/hosts/vibe-mcp.d.ts +32 -0
- package/dist/hosts/vibe-mcp.d.ts.map +1 -0
- package/dist/hosts/vibe-mcp.js +210 -0
- package/dist/hosts/vibe-mcp.js.map +1 -0
- package/dist/hosts/vibe.d.ts +12 -3
- package/dist/hosts/vibe.d.ts.map +1 -1
- package/dist/hosts/vibe.js +15 -7
- package/dist/hosts/vibe.js.map +1 -1
- package/dist/identity-operator-break.d.ts +31 -0
- package/dist/identity-operator-break.d.ts.map +1 -0
- package/dist/identity-operator-break.js +77 -0
- package/dist/identity-operator-break.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/agy-claude.d.ts +42 -0
- package/dist/runtime/agy-claude.d.ts.map +1 -0
- package/dist/runtime/agy-claude.js +140 -0
- package/dist/runtime/agy-claude.js.map +1 -0
- package/dist/runtime/focus/edit-receipts.d.ts +22 -0
- package/dist/runtime/focus/edit-receipts.d.ts.map +1 -0
- package/dist/runtime/focus/edit-receipts.js +46 -0
- package/dist/runtime/focus/edit-receipts.js.map +1 -0
- package/dist/runtime/live/contracts.d.ts +55 -0
- package/dist/runtime/live/contracts.d.ts.map +1 -0
- package/dist/runtime/live/contracts.js +59 -0
- package/dist/runtime/live/contracts.js.map +1 -0
- package/dist/runtime/local-files/identity-fence.d.ts.map +1 -1
- package/dist/runtime/local-files/identity-fence.js +2 -0
- package/dist/runtime/local-files/identity-fence.js.map +1 -1
- package/dist/runtime/local-files/orphan-gc.d.ts +3 -0
- package/dist/runtime/local-files/orphan-gc.d.ts.map +1 -0
- package/dist/runtime/local-files/orphan-gc.js +69 -0
- package/dist/runtime/local-files/orphan-gc.js.map +1 -0
- package/dist/runtime/local-files/presence.d.ts +5 -2
- package/dist/runtime/local-files/presence.d.ts.map +1 -1
- package/dist/runtime/local-files/presence.js +32 -29
- package/dist/runtime/local-files/presence.js.map +1 -1
- package/dist/runtime/local-files/recipient-hints.d.ts +10 -0
- package/dist/runtime/local-files/recipient-hints.d.ts.map +1 -0
- package/dist/runtime/local-files/recipient-hints.js +156 -0
- package/dist/runtime/local-files/recipient-hints.js.map +1 -0
- package/dist/runtime/local-files/store.d.ts.map +1 -1
- package/dist/runtime/local-files/store.js +22 -2
- package/dist/runtime/local-files/store.js.map +1 -1
- package/dist/runtime/loop/engine/adapters.d.ts.map +1 -1
- package/dist/runtime/loop/engine/adapters.js +7 -1
- package/dist/runtime/loop/engine/adapters.js.map +1 -1
- package/dist/runtime/mcp/agent-launch.d.ts +3 -0
- package/dist/runtime/mcp/agent-launch.d.ts.map +1 -1
- package/dist/runtime/mcp/agent-launch.js +93 -8
- package/dist/runtime/mcp/agent-launch.js.map +1 -1
- package/dist/runtime/mcp/handlers.d.ts +1 -0
- package/dist/runtime/mcp/handlers.d.ts.map +1 -1
- package/dist/runtime/mcp/handlers.js +7 -4
- package/dist/runtime/mcp/handlers.js.map +1 -1
- package/dist/runtime/mcp/notifications.d.ts +2 -1
- package/dist/runtime/mcp/notifications.d.ts.map +1 -1
- package/dist/runtime/mcp/notifications.js +16 -2
- package/dist/runtime/mcp/notifications.js.map +1 -1
- package/dist/runtime/mcp/server.d.ts +3 -0
- package/dist/runtime/mcp/server.d.ts.map +1 -1
- package/dist/runtime/mcp/server.js +19 -6
- package/dist/runtime/mcp/server.js.map +1 -1
- package/dist/runtime/mcp/sessions.d.ts +6 -6
- package/dist/runtime/mcp/sessions.d.ts.map +1 -1
- package/dist/runtime/mcp/sessions.js +18 -6
- package/dist/runtime/mcp/sessions.js.map +1 -1
- package/dist/runtime/mcp/stdio.d.ts.map +1 -1
- package/dist/runtime/mcp/stdio.js +11 -0
- package/dist/runtime/mcp/stdio.js.map +1 -1
- package/dist/runtime/mcp/tools.d.ts.map +1 -1
- package/dist/runtime/mcp/tools.js +11 -7
- package/dist/runtime/mcp/tools.js.map +1 -1
- package/dist/runtime/send.d.ts +10 -0
- package/dist/runtime/send.d.ts.map +1 -1
- package/dist/runtime/send.js +80 -5
- package/dist/runtime/send.js.map +1 -1
- package/dist/runtime/upgrade/index.d.ts +1 -0
- package/dist/runtime/upgrade/index.d.ts.map +1 -1
- package/dist/runtime/upgrade/index.js +1 -0
- package/dist/runtime/upgrade/index.js.map +1 -1
- package/dist/vendor/engram-live/contracts.d.ts +825 -0
- package/dist/vendor/engram-live/contracts.js +1734 -0
- package/fixtures/native-host-catalog.json +1 -0
- package/fixtures/native-host-history.json +1261 -0
- package/fixtures/native-host-renderers.json +1 -0
- package/focus-app/client/_app/immutable/chunks/{unQroC_0.js → BXS4ok-I.js} +2 -2
- package/focus-app/client/_app/immutable/chunks/BXS4ok-I.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/BXS4ok-I.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/{app.75Uzo4oj.js → app.BJwKYx8S.js} +2 -2
- package/focus-app/client/_app/immutable/entry/app.BJwKYx8S.js.br +0 -0
- package/focus-app/client/_app/immutable/entry/app.BJwKYx8S.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/start.to_m_bSO.js +1 -0
- package/focus-app/client/_app/immutable/entry/start.to_m_bSO.js.br +2 -0
- package/focus-app/client/_app/immutable/entry/start.to_m_bSO.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/{1.hqfmE-jM.js → 1.CvN150m3.js} +1 -1
- package/focus-app/client/_app/immutable/nodes/1.CvN150m3.js.br +3 -0
- package/focus-app/client/_app/immutable/nodes/1.CvN150m3.js.gz +0 -0
- package/focus-app/client/_app/version.json +1 -1
- package/focus-app/client/_app/version.json.br +0 -0
- package/focus-app/client/_app/version.json.gz +0 -0
- package/focus-app/h2a-focus.json +29 -29
- package/focus-app/handler.js +4 -4
- package/focus-app/index.js +4 -4
- package/focus-app/server/chunks/chunks/{internal.js-vq85iWAx.js → internal.js-BORbEOh-.js} +2 -2
- package/focus-app/server/chunks/chunks/{internal.js-vq85iWAx.js.map → internal.js-BORbEOh-.js.map} +1 -1
- package/focus-app/server/chunks/{handler-f-0S9j72.js → handler-Ccwb0eyC.js} +3 -3
- package/focus-app/server/chunks/{handler-f-0S9j72.js.map → handler-Ccwb0eyC.js.map} +1 -1
- package/focus-app/server/chunks/{index.js-DlbaFcic.js → index.js-CzPOZLjV.js} +2 -2
- package/focus-app/server/chunks/{index.js-DlbaFcic.js.map → index.js-CzPOZLjV.js.map} +1 -1
- package/focus-app/server/chunks/{manifest.js-CxrShg-z.js → manifest.js-E-BEcOes.js} +3 -3
- package/focus-app/server/chunks/{manifest.js-CxrShg-z.js.map → manifest.js-E-BEcOes.js.map} +1 -1
- package/focus-app/server/chunks/nodes/{1.js-O2SZgyXK.js → 1.js-BJ_PpMI-.js} +2 -2
- package/focus-app/server/chunks/nodes/{1.js-O2SZgyXK.js.map → 1.js-BJ_PpMI-.js.map} +1 -1
- package/focus-kit/dossier.evidence.template.json +206 -0
- package/focus-kit/dossier.schema.json +193 -0
- package/focus-kit/dossier.template.json +39 -0
- package/focus-kit/dossier.v2.schema.json +925 -0
- package/focus-kit/ecosystem.json +853 -0
- package/focus-kit/renderer-manifest.json +48 -0
- package/focus-kit/renderer.html +278 -0
- package/focus-kit/validator.mjs +1128 -0
- package/hooks/deny-manual-h2a-cli.mjs +38 -0
- package/hooks/hooks.json +17 -0
- package/hooks/vibe-post-agent.mjs +29 -0
- package/hooks/vibe-pre-tool.mjs +40 -0
- package/hooks/workspace-scope-grant.mjs +22 -0
- package/hooks/workspace-scope-guard.mjs +277 -0
- package/hooks/workspace-scope-shell.mjs +564 -0
- package/hooks/workspace-scope-state.mjs +71 -0
- package/hooks/workspace-scope.opt-in.json +17 -0
- package/package.json +24 -8
- package/scripts/qualification-budget.mjs +56 -0
- package/scripts/qualification-cleanup.mjs +15 -0
- package/scripts/qualification-oracles.mjs +44 -0
- package/scripts/qualification-patch.mjs +21 -0
- package/scripts/qualification-poll-hosts.mjs +19 -0
- package/scripts/qualification-probe.mjs +63 -0
- package/scripts/qualification-rpc.mjs +59 -0
- package/scripts/qualification-vibe.mjs +159 -0
- package/scripts/qualify-host.mjs +143 -0
- package/skills/h2a/SKILL.md +25 -2
- package/skills/h2a-run/SKILL.md +20 -1
- package/skills/harness/SKILL.md +19 -0
- package/skills/harness/track-report/SKILL.md +78 -5
- package/skills/harness/using-harness/SKILL.md +19 -0
- package/focus-app/client/_app/immutable/chunks/unQroC_0.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/unQroC_0.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/app.75Uzo4oj.js.br +0 -0
- package/focus-app/client/_app/immutable/entry/app.75Uzo4oj.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/start.BmwiFFoe.js +0 -1
- package/focus-app/client/_app/immutable/entry/start.BmwiFFoe.js.br +0 -2
- package/focus-app/client/_app/immutable/entry/start.BmwiFFoe.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/1.hqfmE-jM.js.br +0 -3
- package/focus-app/client/_app/immutable/nodes/1.hqfmE-jM.js.gz +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Opt-in native recipe. No native process is launched by doctor or upgrade.
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { tmpdir } from 'node:os';
|
|
5
|
+
import { isAbsolute, join, resolve } from 'node:path';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
import { randomUUID } from 'node:crypto';
|
|
8
|
+
import { runCli as runTrackCli } from '@sentropic/track';
|
|
9
|
+
import { QualificationBudget, VIBE_QUALIFICATION_PLAN, PHASE2_RECIPE } from './qualification-budget.mjs';
|
|
10
|
+
import { qualifyVibe } from './qualification-vibe.mjs';
|
|
11
|
+
import { qualifyVibeProbe } from './qualification-probe.mjs';
|
|
12
|
+
import { qualifyPollHost } from './qualification-poll-hosts.mjs';
|
|
13
|
+
import { clearQualificationRecords, ownedRecordSnapshot } from './qualification-cleanup.mjs';
|
|
14
|
+
import { atomicNativeWrite, digest, jsonBytes, snapshot } from '../dist/hosts/native-files.js';
|
|
15
|
+
import { planVibeEquipment } from '../dist/hosts/vibe-equipment.js';
|
|
16
|
+
import { captureRuntimeGeneratedFiles, verifyRuntimeRecord } from '../dist/hosts/native-runtime-record.js';
|
|
17
|
+
import { parseNativeToml } from '../dist/hosts/native-toml.js';
|
|
18
|
+
const flags = {};
|
|
19
|
+
for (let i = 2; i < process.argv.length; i++) {
|
|
20
|
+
const key = process.argv[i]; if (!key.startsWith('--')) throw new Error('named flags required');
|
|
21
|
+
flags[key.slice(2)] = process.argv[i + 1]?.startsWith('--') || i + 1 === process.argv.length ? true : process.argv[++i];
|
|
22
|
+
}
|
|
23
|
+
if (!['vibe', 'muse', 'agy'].includes(flags.host)) throw new Error('--host vibe|muse|agy required');
|
|
24
|
+
const components = String(flags.components ?? 'skills,MCP,context,guard,lifecycle').split(',');
|
|
25
|
+
if (components.some(c => !['skills', 'MCP', 'context', 'guard', 'lifecycle'].includes(c))) throw new Error('unknown component');
|
|
26
|
+
const plan = { host: flags.host, components, status: 'not executed', execution: 'one app-server session (fork included), or the CLI probe',
|
|
27
|
+
iteration: 'one model call, including every delegated child call', budget: VIBE_QUALIFICATION_PLAN, phase2: PHASE2_RECIPE,
|
|
28
|
+
migration: 'bootstrap B and R5/R7 receipts remain external', notice: 'After every update run h2a doctor --repair; immediate visible relay is not guaranteed.' };
|
|
29
|
+
if (!flags.execute) { process.stdout.write(JSON.stringify(plan, null, 2) + '\n'); process.exit(0); }
|
|
30
|
+
if (!flags.home || !flags.output || !isAbsolute(flags.home) || !isAbsolute(flags.output)) throw new Error('--execute requires explicit absolute --home and --output paths');
|
|
31
|
+
const phase = Number(flags.phase ?? 1); if (![1, 2].includes(phase)) throw new Error('--phase 1|2 required');
|
|
32
|
+
const lane = fs.mkdtempSync(join(tmpdir(), 'h2a-qualification-'));
|
|
33
|
+
const output = resolve(flags.output); fs.mkdirSync(output, { recursive: true, mode: 0o700 });
|
|
34
|
+
for (const name of ['workspace-a', 'workspace-b', 'runtime', 'config', 'state']) fs.mkdirSync(join(lane, name), { mode: 0o700 });
|
|
35
|
+
const env = { ...process.env, HOME: flags.home, VIBE_HOME: join(flags.home, '.vibe'), XDG_RUNTIME_DIR: join(lane, 'runtime'), XDG_CONFIG_HOME: join(flags.home, '.config'), XDG_STATE_HOME: join(flags.home, '.local/state') };
|
|
36
|
+
const busRoot = flags.root ? resolve(flags.root) : join(lane, 'bus');
|
|
37
|
+
const instance = `h2a-qualification-${randomUUID()}`;
|
|
38
|
+
const entrypoint = fileURLToPath(new URL('../dist/bin.js', import.meta.url));
|
|
39
|
+
const evidence = [], cleanup = { sessions: [], deleted: [], incomplete: false, instances: [] };
|
|
40
|
+
const budget = new QualificationBudget();
|
|
41
|
+
let previousAttempt;
|
|
42
|
+
if (phase === 2) {
|
|
43
|
+
if (!flags.previous) throw new Error('phase 2 requires --previous <phase-1 attempt.json>');
|
|
44
|
+
const previous = JSON.parse(fs.readFileSync(flags.previous, 'utf8'));
|
|
45
|
+
if (previous.host !== flags.host || previous.busRoot !== busRoot || previous.profileHome !== flags.home || previous.phase !== 1) throw new Error('phase-1 profile/bus mismatch');
|
|
46
|
+
budget.restorePhase1(previous.accounting, previous.elapsedMilliseconds);
|
|
47
|
+
previousAttempt = previous;
|
|
48
|
+
}
|
|
49
|
+
const controller = new AbortController(), interrupt = () => controller.abort();
|
|
50
|
+
process.once('SIGINT', interrupt); process.once('SIGTERM', interrupt);
|
|
51
|
+
const watchdog = setTimeout(interrupt, budget.remaining());
|
|
52
|
+
let receiptPublication;
|
|
53
|
+
const evidencePath = join(output, 'qualification-' + instance + '.json');
|
|
54
|
+
const report = { ...plan, status: 'partial', fixture: flags.fixture === true, phase, instance, busRoot, profileHome: flags.home, cleanup, evidence, results: {} };
|
|
55
|
+
try {
|
|
56
|
+
if (flags.host !== 'vibe') {
|
|
57
|
+
report.results = qualifyPollHost({ host: flags.host, env, cwd: join(lane, 'workspace-a'), evidence });
|
|
58
|
+
if (flags.host === 'agy') {
|
|
59
|
+
const root = join(flags.home, '.gemini'), state = join(root, '.h2a-install-agy');
|
|
60
|
+
const shared = snapshot(join(root, '.h2a-install-agy/shared-owner.json'));
|
|
61
|
+
if (shared) {
|
|
62
|
+
const path = join(state, 'import-observation.json');
|
|
63
|
+
atomicNativeWrite(path, jsonBytes({ schema: 1, root, status: report.results.import, sharedManifestHash: digest(shared.bytes) }), { state, expected: snapshot(path) });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
report.limit = 'The native Muse/agy model accounting and session trace contracts are unverified. No unbounded model invocation is launched; M-B remains required.';
|
|
67
|
+
} else {
|
|
68
|
+
// Track must resolve a real, private store in each disposable workspace;
|
|
69
|
+
// an empty-view hint from an unadopted directory is not context evidence.
|
|
70
|
+
for (const name of ['workspace-a', 'workspace-b']) {
|
|
71
|
+
const workspace = join(lane, name);
|
|
72
|
+
const code = await runTrackCli(['--track-dir', join(workspace, '.track'), 'init'], { cwd: workspace, out: () => {}, err: () => {} });
|
|
73
|
+
if (code !== 0) throw new Error('private qualification Track initialization failed');
|
|
74
|
+
}
|
|
75
|
+
if (phase === 2) {
|
|
76
|
+
const root = env.VIBE_HOME || join(flags.home, '.vibe');
|
|
77
|
+
const manifest = JSON.parse(fs.readFileSync(join(root, '.h2a-install/manifest.json'), 'utf8'));
|
|
78
|
+
// Never exercise a lifecycle that can mutate somebody else's instance.
|
|
79
|
+
if (!manifest.lifecycle?.enabled || manifest.lifecycle.root !== busRoot || !flags['owned-instance'] || manifest.lifecycle.instance !== flags['owned-instance'])
|
|
80
|
+
throw new Error('Phase 2 requires a dedicated lifecycle instance and exact private bus root explicitly declared with --owned-instance.');
|
|
81
|
+
if (ownedRecordSnapshot(busRoot, flags['owned-instance']).own) throw new Error('qualification instance already has a record');
|
|
82
|
+
cleanup.instances.push(flags['owned-instance']);
|
|
83
|
+
}
|
|
84
|
+
const profileRoot = env.VIBE_HOME || join(flags.home, '.vibe');
|
|
85
|
+
const manifest = JSON.parse(fs.readFileSync(join(profileRoot, '.h2a-install/manifest.json'), 'utf8'));
|
|
86
|
+
const requiredResources = Object.entries(manifest.files).filter(([path, entry]) => path.includes('/assets/') && entry.selected).map(([path]) => ({ path: resolve(profileRoot, path), bytes: fs.readFileSync(resolve(profileRoot, path), 'utf8') }));
|
|
87
|
+
report.results = await qualifyVibe({ command: flags['app-server'] ?? 'vibe-app-server', args: [], env,
|
|
88
|
+
workspaces: [join(lane, 'workspace-a'), join(lane, 'workspace-b')], busRoot, phase, budget, signal: controller.signal, evidence, cleanup, components, requiredResources,
|
|
89
|
+
clearRecords: () => clearQualificationRecords({ root: busRoot, instances: cleanup.instances, entrypoint, env }),
|
|
90
|
+
recordSnapshot: () => ownedRecordSnapshot(busRoot, flags['owned-instance']) });
|
|
91
|
+
if (phase === 1) report.probe = await qualifyVibeProbe({ command: flags.vibe ?? 'vibe', appServer: flags['app-server'] ?? 'vibe-app-server', cwd: join(lane, 'workspace-a'), env,
|
|
92
|
+
tools: report.results.probeTools ?? [], requiredResources, busRoot, components, budget, signal: controller.signal, evidence, cleanup, directory: lane });
|
|
93
|
+
if (flags.record && flags.metadata && !cleanup.incomplete) {
|
|
94
|
+
const metadata = fs.readFileSync(flags.metadata, 'utf8'), version = /^Version: (.+)$/m.exec(metadata)?.[1];
|
|
95
|
+
if (!/Name: mistral[-_]vibe/i.test(metadata) || version !== report.results.runtimeVersion) throw new Error('mistral-vibe wheel metadata does not match the native runtime');
|
|
96
|
+
const state = join(profileRoot, '.h2a-install'), config = parseNativeToml(fs.readFileSync(join(profileRoot, 'config.toml'), 'utf8'));
|
|
97
|
+
const installed = planVibeEquipment({ root: profileRoot, state, version: manifest.version, config, mcpAvailable: (config.mcp_servers ?? []).length > 0, repair: false });
|
|
98
|
+
const previous = snapshot(join(state, 'qualification.json'));
|
|
99
|
+
const receipt = previous ? JSON.parse(previous.bytes.toString()) : { schema: 1, host: 'vibe', root: profileRoot, components: {} };
|
|
100
|
+
if (previous && receipt.fixture !== report.fixture) receipt.components = {};
|
|
101
|
+
receipt.fixture = report.fixture; receipt.recordedAt = new Date().toISOString();
|
|
102
|
+
const generatedFiles = captureRuntimeGeneratedFiles(resolve(flags.record));
|
|
103
|
+
if (!verifyRuntimeRecord(resolve(flags.record), generatedFiles)) throw new Error('native runtime RECORD verification failed');
|
|
104
|
+
receipt.runtime = { generatedFiles, distribution: 'mistral-vibe', version, recordPath: resolve(flags.record), metadataPath: resolve(flags.metadata), recordSha256: digest(fs.readFileSync(flags.record)) };
|
|
105
|
+
const dependencies = { MCP: ['MCP', 'profile', 'node', 'entrypoint'], context: ['MCP', 'profile', 'node', 'entrypoint'],
|
|
106
|
+
skills: ['skills', 'filters', 'profile'], guard: ['guard', 'node', 'entrypoint', 'masking', 'guardBlock', 'MCP'], lifecycle: ['lifecycle', 'node', 'entrypoint', 'lifecycleSelection', 'lifecycleBlock'] };
|
|
107
|
+
const exercised = phase === 1 ? ['skills', 'MCP', 'context'] : ['guard', 'lifecycle'];
|
|
108
|
+
for (const component of components.filter(c => exercised.includes(c))) receipt.components[component] = { status: report.results[component] === 'observed' && (phase !== 1 || report.probe?.status === 'observed') ? 'qualified' : 'partial', dependencies: Object.fromEntries(dependencies[component].map(key => [key, installed.observed[key]])),
|
|
109
|
+
evidence: [evidencePath], evidenceHashes: {}, scope: phase === 2 ? 'explicit lifecycle; parent non-forked only' : 'two isolated native sessions; observed direct MCP is non migrated' };
|
|
110
|
+
receiptPublication = { state, previous, receipt, exercised };
|
|
111
|
+
}
|
|
112
|
+
report.limit = 'Native observations are partial until resource resolution, CLI probe, context and per-component oracles all agree; no fixture qualifies the target host.';
|
|
113
|
+
}
|
|
114
|
+
} catch (error) { report.error = String(error.message).replace(/[\r\n]/g, ' ').slice(0, 500); }
|
|
115
|
+
finally {
|
|
116
|
+
clearTimeout(watchdog); process.removeListener('SIGINT', interrupt); process.removeListener('SIGTERM', interrupt);
|
|
117
|
+
report.accounting = [...budget.executions.values()];
|
|
118
|
+
report.elapsedMilliseconds = Date.now() - budget.start;
|
|
119
|
+
const currentPhase = phase === 1 ? ['skills', 'MCP', 'context'] : ['guard', 'lifecycle'];
|
|
120
|
+
report.componentStatus = Object.fromEntries(components.map(component => {
|
|
121
|
+
const current = currentPhase.includes(component);
|
|
122
|
+
const attempt = current ? report : previousAttempt;
|
|
123
|
+
const observed = attempt?.results?.[component] === 'observed' &&
|
|
124
|
+
(!['skills', 'MCP', 'context'].includes(component) || attempt?.probe?.status === 'observed') &&
|
|
125
|
+
!attempt?.error && !attempt?.cleanup?.incomplete && attempt?.fixture === report.fixture;
|
|
126
|
+
return [component, observed ? 'qualified' : 'partial'];
|
|
127
|
+
}));
|
|
128
|
+
if (!report.error && !cleanup.incomplete && Object.values(report.componentStatus).every(status => status === 'qualified'))
|
|
129
|
+
report.status = report.fixture ? 'fixture-only' : 'qualified';
|
|
130
|
+
// Persist only bounded metadata/hashes, never prompts, model output, stderr or credentials.
|
|
131
|
+
const path = evidencePath;
|
|
132
|
+
if (!cleanup.incomplete) fs.rmSync(lane, { recursive: true, force: true });
|
|
133
|
+
else { report.cleanupResume = { sessions: cleanup.sessions.filter(id => !cleanup.deleted.includes(id)), lane, busRoot, instances: cleanup.instances }; }
|
|
134
|
+
const bytes = JSON.stringify(report, null, 2) + '\n';
|
|
135
|
+
fs.writeFileSync(path, bytes, { mode: 0o600, flag: 'wx' });
|
|
136
|
+
if (receiptPublication && !report.error && !cleanup.incomplete) {
|
|
137
|
+
const { state, previous, receipt, exercised } = receiptPublication;
|
|
138
|
+
for (const c of components.filter(c => exercised.includes(c))) receipt.components[c].evidenceHashes[path] = digest(bytes);
|
|
139
|
+
atomicNativeWrite(join(state, 'qualification.json'), jsonBytes(receipt), { state, expected: previous });
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
process.stdout.write(JSON.stringify({ status: report.status, evidence: evidencePath, cleanupComplete: !cleanup.incomplete }) + '\n');
|
|
143
|
+
process.exitCode = report.status === 'qualified' ? 0 : 2;
|
package/skills/h2a/SKILL.md
CHANGED
|
@@ -6,6 +6,25 @@ description: Coordinate with other CLI agents (Claude Code, Codex, Gemini) via t
|
|
|
6
6
|
|
|
7
7
|
# /h2a
|
|
8
8
|
|
|
9
|
+
## Questions for the human
|
|
10
|
+
|
|
11
|
+
When a useful clarification needs a human answer, use the native structured-question tool exposed in the current mode of the current host:
|
|
12
|
+
|
|
13
|
+
| Host | Native question tool |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| claude | `AskUserQuestion` |
|
|
16
|
+
| codex | `request_user_input` |
|
|
17
|
+
| muse | `request_user_input` |
|
|
18
|
+
| agy | `ask_question` |
|
|
19
|
+
| gemini | `ask_user` |
|
|
20
|
+
| vibe | `ask_user_question` |
|
|
21
|
+
|
|
22
|
+
Codex may expose `request_user_input_async` instead; use the variant actually available. Gemini disallows `ask_user` in non-interactive mode; Muse removes `request_user_input` in `--yolo` or when disabled. For other hosts, use their exposed native question tool without guessing its name.
|
|
23
|
+
|
|
24
|
+
Offer clear choices and preserve native free-text input. Do not change modes or permissions to obtain a tool. A preference is not authorization; existing authorization remains valid. Continue independent work when the mode allows.
|
|
25
|
+
|
|
26
|
+
For a decision with stakes, present a decision dossier with a diagram before the native question; never a bare text question or an unexplained option menu. If the native tool is unavailable, explain the limitation and leave the decision pending. Plain text is acceptable only for a low-stakes clarification when no native question tool is available.
|
|
27
|
+
|
|
9
28
|
When invoked, parse the arguments and dispatch to the matching subcommand below. If no subcommand is given, default to `status`.
|
|
10
29
|
|
|
11
30
|
```
|
|
@@ -356,7 +375,7 @@ These can be invoked directly from the shell at any time, outside the slash-comm
|
|
|
356
375
|
- `h2a sessions [--root <path>]` — same listing as `/h2a discover` but from the shell.
|
|
357
376
|
- `h2a status [--root <path>] [--scope <s>] [--instance <i>]` — inventory of connected sessions split **direct** (local mcp-serve heartbeat) vs **indirect** (mirrored in from a remote/sidecar), with counts.
|
|
358
377
|
- `h2a keys generate --instance <id>` — produce an ed25519 PEM keypair.
|
|
359
|
-
- `h2a install-skills --host <claude|codex|gemini|agy|hermes|opencode|muse>` —
|
|
378
|
+
- `h2a install-skills --host <claude|codex|gemini|agy|hermes|opencode|muse|vibe>` — install skills and their referenced resources. Vibe uses nonempty `VIBE_HOME` (default `~/.vibe`); Muse uses `~/.config/muse/skills`. agy shares Gemini commands and their ownership; run `agy plugin import gemini`, then `agy plugin enable h2a`. Native discovery/import is distinct from qualification; Gemini never qualifies agy. Unknown/custom native files survive `--force`.
|
|
360
379
|
|
|
361
380
|
**Operational surfaces** (also shell-invocable; matching `h2a_*` MCP tools where noted):
|
|
362
381
|
|
|
@@ -364,4 +383,8 @@ These can be invoked directly from the shell at any time, outside the slash-comm
|
|
|
364
383
|
- `h2a blockage raise|list|resolve` — the peer blockage feedback loop, distinct from the drumbeat and from escalation (`h2a_blockage_*`, DEC-092). Subscribed sessions get `peer.blocked`/`peer.unblocked` pushes.
|
|
365
384
|
- `h2a drumbeat record|scan|clear|escalations|watch` — anti-stall relance daemon + escalation-to-PRINCIPAL (DEC-086/091/095). Gov D2/D4 (0.64.0): a claimed conductor owns its workspace's relances — peers defer on fresh stalls (relanceCount=0); a failsafe lets a peer step in if the conductor leaves an agent stuck (relanceCount>=1, preventing workspace freeze). Cross-workspace relances emit a CoI advisory (warn, not blocked). Both behaviors are opt-in and default-allow: pass `--instance <self>` to `h2a drumbeat watch` to activate them.
|
|
366
385
|
- `h2a sysml verify --json <env> --public-key <pem>` — verify a SysML-v2 ref embedded in a signed envelope (commit-trust + content-integrity, DEC-099).
|
|
367
|
-
- `h2a host setup|status|plugin --host <codex|claude|gemini|agy|hermes|opencode|muse>` — render the
|
|
386
|
+
- `h2a host setup|status|plugin --host <codex|claude|gemini|agy|hermes|opencode|muse|vibe>` — inspect installation/qualification/migration separately. Muse/agy setup and connect render only a nonrecommended historical endpoint: **non migré — bootstrap registre attendu**. Do not ask the operator to paste, translate or merge those snippets. Vibe ships the interim direct entry (owner 16/10, derogation O7.2): `h2a host setup --host vibe --write` installs `[[mcp_servers]] h2a` into `<VIBE_HOME>/config.toml`; `h2a host setup --host vibe --remove` clears it for the R5/R7 registry migration. The registry integrator owns bootstrap/activation and R5/R7 receipts. Existing explicit Muse/agy JSON writers remain available until their migration. Vibe JSON targets stay refused. Muse stdio remains unconfirmed; polling does not qualify hooks.
|
|
387
|
+
- `h2a doctor --repair --host vibe|muse|agy` converges managed native components; `--dry-run` is nonmutating and launches no runtime. Vibe repair installs the interim direct MCP entry when absent (additive; `setup --write` owns argument changes). A Vibe with no MCP entry at inspect time still means **Skills installées, outils MCP absents — bootstrap registre attendu**; repair success never closes native equipment or registry migration. `--skip-hosts` skips this extension.
|
|
388
|
+
- Vibe lifecycle is explicit: `host plugin --host vibe --instance <id> --write <VIBE_HOME>/hooks.toml`. One dedicated non-forked parent session only; no automatic instance isolation is demonstrated. `--instance auto` is unavailable until B. Child/fork payloads produce no record. `/branch` and ACP copies are inactive on resume; `session/fork` attaches its copy by default immediately, while the origin stays active. `vibe -c` can resume the latest copy: use `vibe --resume <original-id>` or a fresh non-forked session. After repair use a new session or clean idle resume with an empty journal; an interrupted-turn resume retains old bindings. `drive receive` is N-A for Vibe.
|
|
389
|
+
- First Vibe guard activation needs a current native MCP component receipt; configuration, fixture and manual observation are insufficient. Native recipes are opt-in and never automatic. Preserve ordinary stale hooks; observable MCP loss suspends an intact managed guard. Muse/agy M-B stays required until the owner accepts M-A.
|
|
390
|
+
- Relay any `operator_notices` returned by `h2a_session_open` or `h2a_identity_status` visibly to the operator. If these tools are not called or the host hides their results, immediate notification is not guaranteed. **After every update run `h2a doctor --repair`** using the verified new entrypoint. Starting from 0.98.6: `h2a upgrade`, `h2a --version`, then `h2a doctor --repair`; the old upgrade alone does not equip hosts.
|
package/skills/h2a-run/SKILL.md
CHANGED
|
@@ -5,6 +5,25 @@ description: Translate a friendly launch intent ("terra 5.6 xhigh", "codex sol h
|
|
|
5
5
|
|
|
6
6
|
# h2a-run
|
|
7
7
|
|
|
8
|
+
## Questions for the human
|
|
9
|
+
|
|
10
|
+
When a useful clarification needs a human answer, use the native structured-question tool exposed in the current mode of the current host:
|
|
11
|
+
|
|
12
|
+
| Host | Native question tool |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| claude | `AskUserQuestion` |
|
|
15
|
+
| codex | `request_user_input` |
|
|
16
|
+
| muse | `request_user_input` |
|
|
17
|
+
| agy | `ask_question` |
|
|
18
|
+
| gemini | `ask_user` |
|
|
19
|
+
| vibe | `ask_user_question` |
|
|
20
|
+
|
|
21
|
+
Codex may expose `request_user_input_async` instead; use the variant actually available. Gemini disallows `ask_user` in non-interactive mode; Muse removes `request_user_input` in `--yolo` or when disabled. For other hosts, use their exposed native question tool without guessing its name.
|
|
22
|
+
|
|
23
|
+
Offer clear choices and preserve native free-text input. Do not change modes or permissions to obtain a tool. A preference is not authorization; existing authorization remains valid. Continue independent work when the mode allows.
|
|
24
|
+
|
|
25
|
+
For a decision with stakes, present a decision dossier with a diagram before the native question; never a bare text question or an unexplained option menu. If the native tool is unavailable, explain the limitation and leave the decision pending. Plain text is acceptable only for a low-stakes clarification when no native question tool is available.
|
|
26
|
+
|
|
8
27
|
## When to use this
|
|
9
28
|
|
|
10
29
|
- The user names a launch by nickname + effort ("terra 5.6 xhigh", "sol en max", "relance codex en xhigh") instead of a provider model id.
|
|
@@ -28,7 +47,7 @@ None of these require knowing a provider model id up front:
|
|
|
28
47
|
**The canonical model catalog and equivalence council belong to the llm-mesh API exposed through `@sentropic/cluster-mesh`**, never to h2a or this skill. This skill must not freeze a provider/model table. Before translating a nickname:
|
|
29
48
|
|
|
30
49
|
- if a gateway is already running for this session, query `GET <ANTHROPIC_BASE_URL>/v1/models` (the mesh's own live catalog) and match the flavor there;
|
|
31
|
-
- otherwise, ask the caller for an exact model id
|
|
50
|
+
- otherwise, ask the caller for an exact model id; never start the gateway for a mere model lookup and never inspect or recreate a h2a-local table.
|
|
32
51
|
|
|
33
52
|
The owner-ratified xhigh aliases are intentionally narrow: Opus 5 and Opus 4.8 resolve to Terra xhigh, Fable 5 to Sol xhigh, and Sonnet 5 to Luna xhigh. Any additional effort variant must come from the live Sentropic council. Bare vendor ids remain provider-faithful. Always prefer the exact live catalog id returned by the gateway; if the requested nickname is absent, do not invent one.
|
|
34
53
|
|
package/skills/harness/SKILL.md
CHANGED
|
@@ -5,6 +5,25 @@ description: Route repository work through the sentropic harness method. Use in
|
|
|
5
5
|
|
|
6
6
|
# Harness
|
|
7
7
|
|
|
8
|
+
## Questions for the human
|
|
9
|
+
|
|
10
|
+
When a useful clarification needs a human answer, use the native structured-question tool exposed in the current mode of the current host:
|
|
11
|
+
|
|
12
|
+
| Host | Native question tool |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| claude | `AskUserQuestion` |
|
|
15
|
+
| codex | `request_user_input` |
|
|
16
|
+
| muse | `request_user_input` |
|
|
17
|
+
| agy | `ask_question` |
|
|
18
|
+
| gemini | `ask_user` |
|
|
19
|
+
| vibe | `ask_user_question` |
|
|
20
|
+
|
|
21
|
+
Codex may expose `request_user_input_async` instead; use the variant actually available. Gemini disallows `ask_user` in non-interactive mode; Muse removes `request_user_input` in `--yolo` or when disabled. For other hosts, use their exposed native question tool without guessing its name.
|
|
22
|
+
|
|
23
|
+
Offer clear choices and preserve native free-text input. Do not change modes or permissions to obtain a tool. A preference is not authorization; existing authorization remains valid. Continue independent work when the mode allows.
|
|
24
|
+
|
|
25
|
+
For a decision with stakes, present a decision dossier with a diagram before the native question; never a bare text question or an unexplained option menu. If the native tool is unavailable, explain the limitation and leave the decision pending. Plain text is acceptable only for a low-stakes clarification when no native question tool is available.
|
|
26
|
+
|
|
8
27
|
Read `using-harness/SKILL.md` first in a sentropic repository. Then read only the workflow needed for the current task:
|
|
9
28
|
|
|
10
29
|
- `brainstorm/SKILL.md` before creative or design work.
|
|
@@ -5,6 +5,76 @@ description: Use when the owner asks for a human contextual track report, status
|
|
|
5
5
|
|
|
6
6
|
# harness/track-report
|
|
7
7
|
|
|
8
|
+
## The served route: `--status-table`, rolling window, user language
|
|
9
|
+
|
|
10
|
+
For an owner status report, serve the validated report below with
|
|
11
|
+
`node "$track_bin" report --status-table --format md` (or `text`/`json`)
|
|
12
|
+
after the bootstrap. `--status-table` selects the validated four-section
|
|
13
|
+
route, never a separate table builder: over an identical period it renders
|
|
14
|
+
byte-identical sections, with DÉCISIONS and its decision expectations kept:
|
|
15
|
+
question, options with each consequence, readable in two minutes, dossier
|
|
16
|
+
link, then the owner's actual answer. Versions are supporting references in
|
|
17
|
+
parentheses, never the purpose.
|
|
18
|
+
|
|
19
|
+
The served window is rolling by default: `--status-table` without a selector
|
|
20
|
+
covers the last seven days (rolling `last-week`). `--period last-day`
|
|
21
|
+
restricts to the last day. An explicit `--period` or `--since`/`--until`
|
|
22
|
+
selector wins over the rolling default. Bounds always come from the journal
|
|
23
|
+
and the clock (`--now` pins the clock); never invent a period, a delivery, or
|
|
24
|
+
evidence. What the log does not record stays unrecorded: a missing stage,
|
|
25
|
+
merge or deployment proof is flagged, never fabricated.
|
|
26
|
+
|
|
27
|
+
The served synthesis is written in the user's language. `--lang <bcp47>`
|
|
28
|
+
selects the stage/status labels: exact match, then primary subtag, else the
|
|
29
|
+
neutral codes — never a silent French fallback. Quote machine tokens literally
|
|
30
|
+
— stage/status codes, `D1 A`-style replies, `[n.m]` handles, the
|
|
31
|
+
`ordre = priorité` line and renderer-emitted fixed lines — and write every
|
|
32
|
+
human sentence, including the meaning of those fixed lines, in the user's language.
|
|
33
|
+
A translated placeholder is still a placeholder: it fails the serving audit
|
|
34
|
+
below. Waiting on another lane and suspension belong in the action cell, with
|
|
35
|
+
no new color.
|
|
36
|
+
|
|
37
|
+
## One row, one WP, one dossier — audited before serving
|
|
38
|
+
|
|
39
|
+
Every served À-FAIRE row carries exactly one strict WP attachment: the row's
|
|
40
|
+
WP cell names one WP, or `hors WP · items` with the outside-WP flag when no
|
|
41
|
+
strict ancestry exists — never silence, never two WPs. Every red row carries
|
|
42
|
+
exactly one investigated proposal; every blue-gated row carries exactly one
|
|
43
|
+
matching `D` number. A deferred dossier is not settled: it stays, with its
|
|
44
|
+
current answer need stated.
|
|
45
|
+
|
|
46
|
+
Stage and status are neutral codes over recorded evidence, never words to
|
|
47
|
+
guess: stage is one of `spec | dev | pr | merged | deployed`, status one of
|
|
48
|
+
`progressing | unforeseen | blocked | decision-awaited | not-qualified |
|
|
49
|
+
withdrawn`. Gates decide before stored marks: a live gate overrides a stored
|
|
50
|
+
green; nothing is
|
|
51
|
+
green without a conformity witness; `unforeseen` is a recorded reopening or
|
|
52
|
+
regression, or stale acceptance — never silence, never absence;
|
|
53
|
+
`not-qualified` and `withdrawn` carry no health colour. A withdrawal kept in
|
|
54
|
+
the served tables keeps its reason, or declares it missing.
|
|
55
|
+
|
|
56
|
+
Run the two structured audits before serving: `describeRowNextActions` plus
|
|
57
|
+
`auditNextActions(descriptors)` for the focus actions, and
|
|
58
|
+
`auditStatusProposals` plus `describeStatusProposals` (both in
|
|
59
|
+
`packages/track/src/report/audit.ts`) for red proposals and blue dossiers.
|
|
60
|
+
Presence and identity only: a green audit never certifies prose quality, and
|
|
61
|
+
the owner judges whether the sentence is right.
|
|
62
|
+
|
|
63
|
+
Audit the **served** data. Each À-FAIRE row carries machine `instruction`
|
|
64
|
+
(`to-instruct`, `not-instructed`, `structure-dossier`, `none-owed`, or
|
|
65
|
+
`investigated`) and `gateSteps` codes; translation must preserve those fields.
|
|
66
|
+
After investigating, set `instruction: investigated` and
|
|
67
|
+
`actionOrigin: investigated` beside the concrete `nextAction`. A gate-class
|
|
68
|
+
action keeps `actionOrigin: gate-class` in every language. Text alone never
|
|
69
|
+
certifies an instruction.
|
|
70
|
+
|
|
71
|
+
For each red item, add exactly one entry to the served view's `proposals`:
|
|
72
|
+
`{ itemId, proposal, proposalState: 'investigated' }`. Carry that exact proposal
|
|
73
|
+
in its row's `nextAction` and in RECOMMANDATION, in the requested language.
|
|
74
|
+
`proposalState: 'to-instruct'`, missing metadata, or absence from either served
|
|
75
|
+
section fails the audit. A stored `item.report-updated` proposal is a source
|
|
76
|
+
to investigate, never proof that the current report contains a fresh proposal.
|
|
77
|
+
|
|
8
78
|
`track` supplies complete, deterministic facts and already renders the four sections the owner
|
|
9
79
|
validated. The agent already in the conversation supplies the contextual synthesis on top of them. Do not
|
|
10
80
|
call a model, adapter, gateway, or network-backed report path. Every command below is a local, read-only
|
|
@@ -112,7 +182,8 @@ bucket counters.
|
|
|
112
182
|
|
|
113
183
|
**There is always a window, and it always has bounds.** "The whole log" *is* a window: first recorded
|
|
114
184
|
event → journal head. With no selector, a self-evident header example is
|
|
115
|
-
`période : <date du premier événement> → <date du dernier événement> (intégralité du journal, borne haute = dernier événement)
|
|
185
|
+
`période : <date du premier événement> → <date du dernier événement> (intégralité du journal, borne haute = dernier événement)` —
|
|
186
|
+
an example in the renderer's language, restated in the user's language in the served synthesis.
|
|
116
187
|
The phrase `aucune fenêtre` is wrong — it described the absence of a flag, not the absence of a period.
|
|
117
188
|
|
|
118
189
|
Scope the report to a measured period rather than filtering it by hand:
|
|
@@ -171,7 +242,7 @@ upward, nothing is lost — and the header declares how many (`8 sous-WP agrég
|
|
|
171
242
|
re-expand them. They come back on a short window, or on the owner's explicit request
|
|
172
243
|
(`track report --sub-wp`).
|
|
173
244
|
|
|
174
|
-
**À-FAIRE** — exactly
|
|
245
|
+
**À-FAIRE** — exactly seven columns: `WP · av. · étape · statut · à faire · bloqué · prochaine action`. There is no
|
|
175
246
|
`cible action` column; a DONE item carrying acceptance debt is named inside `à faire` with its bucket.
|
|
176
247
|
Print the line `ordre = priorité ; les cinq premiers sont le focus` under the heading.
|
|
177
248
|
|
|
@@ -240,8 +311,9 @@ The renderer marks them `à instruire : ouvrir l'item et nommer le geste`; you m
|
|
|
240
311
|
those markers before serving the report. Every other row keeps `non instruite`, which says plainly that
|
|
241
312
|
the action has not been instructed — that is honest, and it is what you leave there.
|
|
242
313
|
|
|
243
|
-
Checkable, and to be run before serving: `
|
|
244
|
-
`@sentropic/track`
|
|
314
|
+
Checkable, and to be run before serving: `describeRowNextActions(rows)` from
|
|
315
|
+
`@sentropic/track` turns the served rows into audit descriptors, and
|
|
316
|
+
`auditNextActions(descriptors)` returns `{ uninstructed, repeated, gateClauses, ok }`. `uninstructed > 0` means focus
|
|
245
317
|
rows still carry the renderer's marker — finish them. `ok === false` means a substantive action repeats
|
|
246
318
|
on three or more rows, or equals a gate clause: in both cases it names a class, not a gesture. Not
|
|
247
319
|
checkable, and the part that actually failed the UAT: whether the sentence is *right*. The owner judges
|
|
@@ -298,7 +370,8 @@ owner statement in this report request/current conversation, or (2) an explicitl
|
|
|
298
370
|
session artifact that maps this exact item, WP, or directive to an executor (and, if claimed, model/effort).
|
|
299
371
|
It excludes project memory, repository documents, installed configuration, defaults, prior conventions, and
|
|
300
372
|
inference. Context may enrich executor prose only; it never overrides emitted order, gates, or facts. When
|
|
301
|
-
the report needs model/effort but that narrow context is absent, write
|
|
373
|
+
the report needs model/effort but that narrow context is absent, write that meaning in
|
|
374
|
+
the user's language — the French reference wording is
|
|
302
375
|
`exécuteur: contexte owner requis (modèle/effort non présents dans le journal)`.
|
|
303
376
|
|
|
304
377
|
Do not call an absent `facts.wsjf` subjective "priority". A `priority-missing` directive means the log has
|
|
@@ -5,6 +5,25 @@ description: Load FIRST in any sentropic repo — establishes the harness method
|
|
|
5
5
|
|
|
6
6
|
# Using harness
|
|
7
7
|
|
|
8
|
+
## Questions for the human
|
|
9
|
+
|
|
10
|
+
When a useful clarification needs a human answer, use the native structured-question tool exposed in the current mode of the current host:
|
|
11
|
+
|
|
12
|
+
| Host | Native question tool |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| claude | `AskUserQuestion` |
|
|
15
|
+
| codex | `request_user_input` |
|
|
16
|
+
| muse | `request_user_input` |
|
|
17
|
+
| agy | `ask_question` |
|
|
18
|
+
| gemini | `ask_user` |
|
|
19
|
+
| vibe | `ask_user_question` |
|
|
20
|
+
|
|
21
|
+
Codex may expose `request_user_input_async` instead; use the variant actually available. Gemini disallows `ask_user` in non-interactive mode; Muse removes `request_user_input` in `--yolo` or when disabled. For other hosts, use their exposed native question tool without guessing its name.
|
|
22
|
+
|
|
23
|
+
Offer clear choices and preserve native free-text input. Do not change modes or permissions to obtain a tool. A preference is not authorization; existing authorization remains valid. Continue independent work when the mode allows.
|
|
24
|
+
|
|
25
|
+
For a decision with stakes, present a decision dossier with a diagram before the native question; never a bare text question or an unexplained option menu. If the native tool is unavailable, explain the limitation and leave the decision pending. Plain text is acceptable only for a low-stakes clarification when no native question tool is available.
|
|
26
|
+
|
|
8
27
|
`@sentropic/harness` is the native dev-discipline layer for sentropic repos. Its verbs and `harness/*`
|
|
9
28
|
skills are the SINGLE front door for code-work and PR-workflow. This skill is the index — load it
|
|
10
29
|
before any other so the replacement directive below is in effect.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/unQroC_0.js";export{o as load_css,r as start};
|
|
Binary file
|
|
Binary file
|