chore: scrub personal names, maintainer URLs and local paths (P2.2)
Sample data in tests, prompts and UI placeholders uses Alex Morgan instead of the maintainer's name; decision attributions say "owner". Personal details in two test fixtures are replaced. Local paths (D:/Projects/...) and paths into the maintainer's planning repository are reworded. Clone and install URLs in CONTRIBUTING.md and the getting started guide use placeholders until the public repository location is decided (Q9). The Benchmarks page no longer names the maintainer's hive-mind repository, and the upstream fixes log names the main Waggle repository instead of an internal git host.
This commit is contained in:
@@ -1005,7 +1005,7 @@ mod tests {
|
|||||||
std::fs::create_dir_all(&resources).expect("creates temp resources");
|
std::fs::create_dir_all(&resources).expect("creates temp resources");
|
||||||
std::fs::write(resources.join("service.js"), "console.log('ok')").expect("writes service");
|
std::fs::write(resources.join("service.js"), "console.log('ok')").expect("writes service");
|
||||||
|
|
||||||
let script = resolve_service_script(Some(&root), Path::new("D:/Projects/waggle-os"))
|
let script = resolve_service_script(Some(&root), Path::new("D:/work/waggle-os"))
|
||||||
.expect("bundled script resolves");
|
.expect("bundled script resolves");
|
||||||
|
|
||||||
assert_eq!(script.kind, ServiceScriptKind::Bundled);
|
assert_eq!(script.kind, ServiceScriptKind::Bundled);
|
||||||
|
|||||||
@@ -61,9 +61,6 @@ describe('BenchmarkApp', () => {
|
|||||||
expect(screen.getByText('+4.54')).toBeInTheDocument();
|
expect(screen.getByText('+4.54')).toBeInTheDocument();
|
||||||
expect(screen.getByText('92.27%')).toBeInTheDocument();
|
expect(screen.getByText('92.27%')).toBeInTheDocument();
|
||||||
expect(screen.getByText('100%')).toBeInTheDocument();
|
expect(screen.getByText('100%')).toBeInTheDocument();
|
||||||
|
|
||||||
// Method/caveat line.
|
|
||||||
expect(screen.getByText(/github\.com\/marolinik\/hive-mind/i)).toBeInTheDocument();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('toggles back to Capabilities', () => {
|
it('toggles back to Capabilities', () => {
|
||||||
|
|||||||
@@ -401,8 +401,6 @@ function MemorySotaView() {
|
|||||||
SOTA's exact published protocol, reproduced in-harness to 0.03 points before comparison. The intelligence lives in
|
SOTA's exact published protocol, reproduced in-harness to 0.03 points before comparison. The intelligence lives in
|
||||||
the <b className="text-foreground/90 font-medium">memory layer, not the model</b>, so it travels onto a small local
|
the <b className="text-foreground/90 font-medium">memory layer, not the model</b>, so it travels onto a small local
|
||||||
model too. Honest caveat: higher token use per question than the leanest systems; efficiency work underway.
|
model too. Honest caveat: higher token use per question than the leanest systems; efficiency work underway.
|
||||||
Reproducible offline:{' '}
|
|
||||||
<span className="font-mono" style={{ color: 'var(--text-2)' }}>github.com/marolinik/hive-mind</span>.
|
|
||||||
</Disclaimer>
|
</Disclaimer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ function GreetingHeader({
|
|||||||
lastActive?: string;
|
lastActive?: string;
|
||||||
}) {
|
}) {
|
||||||
// Round-7 fix 1: the server-composed greeting may already carry an
|
// Round-7 fix 1: the server-composed greeting may already carry an
|
||||||
// away/last-active statement ("You've been away 1 day, Marko") built from
|
// away/last-active statement ("You've been away 1 day, Alex") built from
|
||||||
// ITS OWN recency field. Repeating a client-computed "last active 2d ago"
|
// ITS OWN recency field. Repeating a client-computed "last active 2d ago"
|
||||||
// clause right below it showed two disagreeing truths in one viewport.
|
// clause right below it showed two disagreeing truths in one viewport.
|
||||||
// ONE truth: when the greeting already says it, the factual line drops its
|
// ONE truth: when the greeting already says it, the factual line drops its
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ const UserProfileApp = () => {
|
|||||||
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
|
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="profile-name" className="text-xs text-muted-foreground block mb-1">Name</label>
|
<label htmlFor="profile-name" className="text-xs text-muted-foreground block mb-1">Name</label>
|
||||||
<Input id="profile-name" name="name" autoComplete="name" value={name} onChange={e => setName(e.target.value)} placeholder="Marko Markovic"
|
<Input id="profile-name" name="name" autoComplete="name" value={name} onChange={e => setName(e.target.value)} placeholder="Alex Morgan"
|
||||||
className="w-full bg-muted/50 h-auto py-1.5" />
|
className="w-full bg-muted/50 h-auto py-1.5" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ beforeEach(() => {
|
|||||||
id: 1,
|
id: 1,
|
||||||
source: 'claude-code',
|
source: 'claude-code',
|
||||||
displayName: 'Claude Code',
|
displayName: 'Claude Code',
|
||||||
sourcePath: 'C:/Users/Marko/.claude/projects',
|
sourcePath: 'C:/Users/Alex/.claude/projects',
|
||||||
lastSyncedAt: '2026-07-08T12:00:00.000Z',
|
lastSyncedAt: '2026-07-08T12:00:00.000Z',
|
||||||
itemsImported: 4,
|
itemsImported: 4,
|
||||||
framesCreated: 9,
|
framesCreated: 9,
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ function FolderPickerModal({ open, storageType, currentPath, onSelect, onClose }
|
|||||||
}
|
}
|
||||||
}, [browsePath, newFolderName, storageType, fetchEntries]);
|
}, [browsePath, newFolderName, storageType, fetchEntries]);
|
||||||
|
|
||||||
// P14: Windows paths (C:\Users\Marko...) need separator-aware splitting.
|
// P14: Windows paths (C:\Users\Alex...) need separator-aware splitting.
|
||||||
// The old inline logic split only on '/' and collapsed Windows paths into
|
// The old inline logic split only on '/' and collapsed Windows paths into
|
||||||
// a single unusable crumb. Pure helper handles both separator styles.
|
// a single unusable crumb. Pure helper handles both separator styles.
|
||||||
const breadcrumbs = buildBreadcrumbs(
|
const breadcrumbs = buildBreadcrumbs(
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ const WhoAreYouStep = ({ profile, onChange, onContinue, saving }: WhoAreYouStepP
|
|||||||
autoComplete="name"
|
autoComplete="name"
|
||||||
value={profile.name ?? ''}
|
value={profile.name ?? ''}
|
||||||
onChange={e => onChange({ name: e.target.value })}
|
onChange={e => onChange({ name: e.target.value })}
|
||||||
placeholder="Marko Markovic"
|
placeholder="Alex Morgan"
|
||||||
className="w-full bg-muted/50 border border-border/50 rounded-lg px-3 py-1.5 text-[13px] sm:text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
className="w-full bg-muted/50 border border-border/50 rounded-lg px-3 py-1.5 text-[13px] sm:text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ describe('ChannelsSettings protected API integration', () => {
|
|||||||
}
|
}
|
||||||
: channel));
|
: channel));
|
||||||
mocks.getChannelPairings.mockResolvedValue({
|
mocks.getChannelPairings.mockResolvedValue({
|
||||||
telegram: [{ senderId: 'sender-1', senderName: 'Marko', pairedAt: Date.now() }],
|
telegram: [{ senderId: 'sender-1', senderName: 'Alex', pairedAt: Date.now() }],
|
||||||
});
|
});
|
||||||
render(<ChannelsSettings />);
|
render(<ChannelsSettings />);
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ describe('adapter isTauri() branch routing', () => {
|
|||||||
it('getIdentity routes to get_identity Tauri command + returns shape', async () => {
|
it('getIdentity routes to get_identity Tauri command + returns shape', async () => {
|
||||||
mockedInvoke.mockResolvedValue({
|
mockedInvoke.mockResolvedValue({
|
||||||
configured: true,
|
configured: true,
|
||||||
name: 'Marko',
|
name: 'Alex',
|
||||||
role: 'Founder',
|
role: 'Founder',
|
||||||
department: 'Egzakta',
|
department: 'Egzakta',
|
||||||
});
|
});
|
||||||
@@ -118,7 +118,7 @@ describe('adapter isTauri() branch routing', () => {
|
|||||||
|
|
||||||
expect(mockedInvoke).toHaveBeenCalledWith('get_identity');
|
expect(mockedInvoke).toHaveBeenCalledWith('get_identity');
|
||||||
expect(id.configured).toBe(true);
|
expect(id.configured).toBe(true);
|
||||||
expect(id.name).toBe('Marko');
|
expect(id.name).toBe('Alex');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ describe('buildBreadcrumbs', () => {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('splits C:\\Users\\Marko into root / drive / Users / Marko', () => {
|
it('splits C:\\Users\\Alex into root / drive / Users / Alex', () => {
|
||||||
const out = buildBreadcrumbs('C:\\Users\\Marko', 'Drives', 'local');
|
const out = buildBreadcrumbs('C:\\Users\\Alex', 'Drives', 'local');
|
||||||
expect(out).toEqual([
|
expect(out).toEqual([
|
||||||
{ label: 'Drives', path: '/' },
|
{ label: 'Drives', path: '/' },
|
||||||
{ label: 'C:', path: 'C:\\' },
|
{ label: 'C:', path: 'C:\\' },
|
||||||
{ label: 'Users', path: 'C:\\Users' },
|
{ label: 'Users', path: 'C:\\Users' },
|
||||||
{ label: 'Marko', path: 'C:\\Users\\Marko' },
|
{ label: 'Alex', path: 'C:\\Users\\Alex' },
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -58,25 +58,25 @@ describe('buildBreadcrumbs', () => {
|
|||||||
expect(out[1]).toEqual({ label: 'C:', path: 'C:\\' });
|
expect(out[1]).toEqual({ label: 'C:', path: 'C:\\' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('accepts mixed separators (C:/Users/Marko)', () => {
|
it('accepts mixed separators (C:/Users/Alex)', () => {
|
||||||
const out = buildBreadcrumbs('C:/Users/Marko', 'Drives', 'local');
|
const out = buildBreadcrumbs('C:/Users/Alex', 'Drives', 'local');
|
||||||
expect(out).toEqual([
|
expect(out).toEqual([
|
||||||
{ label: 'Drives', path: '/' },
|
{ label: 'Drives', path: '/' },
|
||||||
{ label: 'C:', path: 'C:\\' },
|
{ label: 'C:', path: 'C:\\' },
|
||||||
{ label: 'Users', path: 'C:\\Users' },
|
{ label: 'Users', path: 'C:\\Users' },
|
||||||
{ label: 'Marko', path: 'C:\\Users\\Marko' },
|
{ label: 'Alex', path: 'C:\\Users\\Alex' },
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('POSIX local paths', () => {
|
describe('POSIX local paths', () => {
|
||||||
it('splits /Users/marko/Documents into three crumbs', () => {
|
it('splits /Users/alex/Documents into three crumbs', () => {
|
||||||
const out = buildBreadcrumbs('/Users/marko/Documents', 'Drives', 'local');
|
const out = buildBreadcrumbs('/Users/alex/Documents', 'Drives', 'local');
|
||||||
expect(out).toEqual([
|
expect(out).toEqual([
|
||||||
{ label: 'Drives', path: '/' },
|
{ label: 'Drives', path: '/' },
|
||||||
{ label: 'Users', path: '/Users' },
|
{ label: 'Users', path: '/Users' },
|
||||||
{ label: 'marko', path: '/Users/marko' },
|
{ label: 'alex', path: '/Users/alex' },
|
||||||
{ label: 'Documents', path: '/Users/marko/Documents' },
|
{ label: 'Documents', path: '/Users/alex/Documents' },
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -102,9 +102,9 @@ describe('buildBreadcrumbs', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('handles deeply nested Windows paths without collapsing', () => {
|
it('handles deeply nested Windows paths without collapsing', () => {
|
||||||
const deep = 'C:\\Users\\Marko\\OneDrive - Egzakta d.o.o\\Desktop';
|
const deep = 'C:\\Users\\Alex\\OneDrive - Egzakta d.o.o\\Desktop';
|
||||||
const out = buildBreadcrumbs(deep, 'Drives', 'local');
|
const out = buildBreadcrumbs(deep, 'Drives', 'local');
|
||||||
// root + drive + Users + Marko + OneDrive... + Desktop = 6
|
// root + drive + Users + Alex + OneDrive... + Desktop = 6
|
||||||
expect(out).toHaveLength(6);
|
expect(out).toHaveLength(6);
|
||||||
expect(out[5]).toEqual({ label: 'Desktop', path: deep });
|
expect(out[5]).toEqual({ label: 'Desktop', path: deep });
|
||||||
expect(out[4].label).toBe('OneDrive - Egzakta d.o.o');
|
expect(out[4].label).toBe('OneDrive - Egzakta d.o.o');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Breadcrumb helper for the local-browse dialog.
|
* Breadcrumb helper for the local-browse dialog.
|
||||||
*
|
*
|
||||||
* On Windows the sidecar returns paths like `C:\Users\Marko`. The old
|
* On Windows the sidecar returns paths like `C:\Users\Alex`. The old
|
||||||
* breadcrumb rendering split on `/` only, so Windows paths collapsed
|
* breadcrumb rendering split on `/` only, so Windows paths collapsed
|
||||||
* into a single unusable crumb. This helper normalises across both
|
* into a single unusable crumb. This helper normalises across both
|
||||||
* separator styles, keeping virtual (POSIX) storage untouched.
|
* separator styles, keeping virtual (POSIX) storage untouched.
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const CACHE_KEY = 'waggle:home-cache:v1';
|
|||||||
|
|
||||||
function briefing(over: Partial<HomeBriefing> = {}): HomeBriefing {
|
function briefing(over: Partial<HomeBriefing> = {}): HomeBriefing {
|
||||||
return {
|
return {
|
||||||
greeting: 'Welcome back, Marko',
|
greeting: 'Welcome back, Alex',
|
||||||
date: '2026-07-07T08:00:00.000Z',
|
date: '2026-07-07T08:00:00.000Z',
|
||||||
recentWorkspaces: [
|
recentWorkspaces: [
|
||||||
{ id: 'w1', name: 'Alpha', group: 'Personal', lastActive: '2026-07-06T09:00:00.000Z', pendingCount: 0 },
|
{ id: 'w1', name: 'Alpha', group: 'Personal', lastActive: '2026-07-06T09:00:00.000Z', pendingCount: 0 },
|
||||||
@@ -44,7 +44,7 @@ describe('home-cache (Lane H item 1)', () => {
|
|||||||
});
|
});
|
||||||
const got = readHomeCache();
|
const got = readHomeCache();
|
||||||
expect(got).not.toBeNull();
|
expect(got).not.toBeNull();
|
||||||
expect(got!.briefing.greeting).toBe('Welcome back, Marko');
|
expect(got!.briefing.greeting).toBe('Welcome back, Alex');
|
||||||
expect(got!.highlights).toHaveLength(1);
|
expect(got!.highlights).toHaveLength(1);
|
||||||
expect(got!.overnight).toBeNull();
|
expect(got!.overnight).toBeNull();
|
||||||
expect(typeof got!.savedAt).toBe('number');
|
expect(typeof got!.savedAt).toBe('number');
|
||||||
|
|||||||
@@ -143,8 +143,8 @@ describe('buildMemoryPreview (round-7 fix 3 — humanized row titles)', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('keeps the remainder as the title when the harvest prefix wraps human text', () => {
|
it('keeps the remainder as the title when the harvest prefix wraps human text', () => {
|
||||||
const { title } = buildMemoryPreview('[Harvest:claude] Marko prefers dark mode across all tools');
|
const { title } = buildMemoryPreview('[Harvest:claude] Alex prefers dark mode across all tools');
|
||||||
expect(title).toBe('Marko prefers dark mode across all tools');
|
expect(title).toBe('Alex prefers dark mode across all tools');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('advances past a harvest lead with no usable remainder to the first human line', () => {
|
it('advances past a harvest lead with no usable remainder to the first human line', () => {
|
||||||
@@ -205,7 +205,7 @@ describe('humanizeMemoryTitle (round-9 Lane C fix 1)', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('leaves ordinary titles untouched with no meta', () => {
|
it('leaves ordinary titles untouched with no meta', () => {
|
||||||
expect(humanizeMemoryTitle('Marko prefers dark mode')).toEqual({ title: 'Marko prefers dark mode' });
|
expect(humanizeMemoryTitle('Alex prefers dark mode')).toEqual({ title: 'Alex prefers dark mode' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does not strip a handoff prefix down to an empty title', () => {
|
it('does not strip a handoff prefix down to an empty title', () => {
|
||||||
|
|||||||
@@ -33,24 +33,24 @@ describe('buildProfilePreview', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('greets by name with the memory promise when only the name is set', () => {
|
it('greets by name with the memory promise when only the name is set', () => {
|
||||||
expect(buildProfilePreview({ name: 'Marko' }, at(20)))
|
expect(buildProfilePreview({ name: 'Alex' }, at(20)))
|
||||||
.toBe('Good evening, Marko. Your work will be remembered here.');
|
.toBe('Good evening, Alex. Your work will be remembered here.');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('varies the salutation with the time of day', () => {
|
it('varies the salutation with the time of day', () => {
|
||||||
expect(buildProfilePreview({ name: 'Marko' }, at(9))).toMatch(/^Good morning, Marko/);
|
expect(buildProfilePreview({ name: 'Alex' }, at(9))).toMatch(/^Good morning, Alex/);
|
||||||
expect(buildProfilePreview({ name: 'Marko' }, at(14))).toMatch(/^Good afternoon, Marko/);
|
expect(buildProfilePreview({ name: 'Alex' }, at(14))).toMatch(/^Good afternoon, Alex/);
|
||||||
expect(buildProfilePreview({ name: 'Marko' }, at(20))).toMatch(/^Good evening, Marko/);
|
expect(buildProfilePreview({ name: 'Alex' }, at(20))).toMatch(/^Good evening, Alex/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('adds a role-aware clause from the selected work type', () => {
|
it('adds a role-aware clause from the selected work type', () => {
|
||||||
expect(buildProfilePreview({ name: 'Marko', workType: 'consulting' }, at(20)))
|
expect(buildProfilePreview({ name: 'Alex', workType: 'consulting' }, at(20)))
|
||||||
.toBe('Good evening, Marko. Ready to pick up your consulting work?');
|
.toBe('Good evening, Alex. Ready to pick up your consulting work?');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('falls back to the free-text role when no work type is selected', () => {
|
it('falls back to the free-text role when no work type is selected', () => {
|
||||||
expect(buildProfilePreview({ name: 'Marko', role: 'Strategy Consultant' }, at(9)))
|
expect(buildProfilePreview({ name: 'Alex', role: 'Strategy Consultant' }, at(9)))
|
||||||
.toBe('Good morning, Marko. Ready to pick up your strategy consultant work?');
|
.toBe('Good morning, Alex. Ready to pick up your strategy consultant work?');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('falls back to the raw id for an unknown work-type id', () => {
|
it('falls back to the raw id for an unknown work-type id', () => {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Phase 4.1 unblock — onboarding tier-filter tests.
|
* Phase 4.1 unblock — onboarding tier-filter tests.
|
||||||
*
|
*
|
||||||
* Spec: docs/ux-disclosure-levels.md r2 §"Templates — filter for Essential" + §"Personas — filter for Essential".
|
* Spec: docs/ux-disclosure-levels.md r2 §"Templates — filter for Essential" + §"Personas — filter for Essential".
|
||||||
* Decision (Marko Q1, 2026-05-07): drop `coder` from Essential personas — quote: "this is not the target."
|
* Decision (owner Q1, 2026-05-07): drop `coder` from Essential personas — quote: "this is not the target."
|
||||||
*/
|
*/
|
||||||
import { describe, it, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
import {
|
import {
|
||||||
@@ -31,7 +31,7 @@ describe('ESSENTIAL_PERSONA_IDS', () => {
|
|||||||
expect(ESSENTIAL_PERSONA_IDS).toEqual(['general-purpose', 'researcher', 'writer', 'analyst']);
|
expect(ESSENTIAL_PERSONA_IDS).toEqual(['general-purpose', 'researcher', 'writer', 'analyst']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does NOT include coder (Marko Q1 drop decision)', () => {
|
it('does NOT include coder (owner Q1 drop decision)', () => {
|
||||||
expect(ESSENTIAL_PERSONA_IDS).not.toContain('coder');
|
expect(ESSENTIAL_PERSONA_IDS).not.toContain('coder');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -175,9 +175,9 @@ describe('integration with constants.ts', () => {
|
|||||||
expect(filtered.every(t => typeof t.name === 'string' && t.icon !== undefined)).toBe(true);
|
expect(filtered.every(t => typeof t.name === 'string' && t.icon !== undefined)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Ljiljana-archetype journey: simple tier + agency-consulting → consultant first, 5 personas total', () => {
|
it('consultant journey: simple tier + agency-consulting → consultant first, 5 personas total', () => {
|
||||||
// The named-user persona Marko anchors against (consulting partner archetype).
|
// The consulting partner archetype.
|
||||||
// This test guards against the "Ljiljana sees 19 personas + 15 templates" regression.
|
// This test guards against the "a non-technical user sees 19 personas + 15 templates" regression.
|
||||||
const templates = getTemplatesForTier('simple', TEMPLATES);
|
const templates = getTemplatesForTier('simple', TEMPLATES);
|
||||||
expect(templates.find(t => t.id === 'agency-consulting')).toBeDefined();
|
expect(templates.find(t => t.id === 'agency-consulting')).toBeDefined();
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
* Live system context: the dock is already filtered by `UserTier` via `TIER_DOCK_CONFIG`
|
* Live system context: the dock is already filtered by `UserTier` via `TIER_DOCK_CONFIG`
|
||||||
* (apps/web/src/lib/dock-tiers.ts). The 0507_s1 brownfield diagnostic identified that
|
* (apps/web/src/lib/dock-tiers.ts). The 0507_s1 brownfield diagnostic identified that
|
||||||
* onboarding's TemplateStep + PersonaStep show ALL options regardless of the tier the
|
* onboarding's TemplateStep + PersonaStep show ALL options regardless of the tier the
|
||||||
* user picked at step 2 — an internal inconsistency that breaks the Ljiljana-bar.
|
* user picked at step 2 — an internal inconsistency that a non-technical user cannot follow.
|
||||||
*
|
*
|
||||||
* This file provides the smallest pure functions to close that gap. Pure helpers
|
* This file provides the smallest pure functions to close that gap. Pure helpers
|
||||||
* keep the test surface trivial; the components import + apply.
|
* keep the test surface trivial; the components import + apply.
|
||||||
*
|
*
|
||||||
* Marko Q1 (2026-05-07): drop `coder` from Essential personas — quote: "this is not
|
* Owner decision Q1 (2026-05-07): drop `coder` from Essential personas — quote: "this is not
|
||||||
* the target, unless you identify this tool can be useful for coders too, which I
|
* the target, unless you identify this tool can be useful for coders too, which I
|
||||||
* don't believe."
|
* don't believe."
|
||||||
*/
|
*/
|
||||||
@@ -24,7 +24,7 @@ import type { OnboardingTemplate, OnboardingPersona } from '@/components/os/over
|
|||||||
* `TEMPLATES` array. Other 12 templates remain reachable via "Show all" toggle.
|
* `TEMPLATES` array. Other 12 templates remain reachable via "Show all" toggle.
|
||||||
*/
|
*/
|
||||||
export const ESSENTIAL_TEMPLATE_IDS = [
|
export const ESSENTIAL_TEMPLATE_IDS = [
|
||||||
'agency-consulting', // Marko's archetype, Ljiljana's role, broadest professional services match
|
'agency-consulting', // consulting archetype, broadest professional services match
|
||||||
'research-project', // Universally useful (HR research, market research, due diligence)
|
'research-project', // Universally useful (HR research, market research, due diligence)
|
||||||
'blank', // Universal escape — any user who doesn't fit a category
|
'blank', // Universal escape — any user who doesn't fit a category
|
||||||
] as const;
|
] as const;
|
||||||
@@ -34,7 +34,7 @@ export const ESSENTIAL_TEMPLATE_IDS = [
|
|||||||
* template (e.g. `consultant` when the template is `agency-consulting`) is added on
|
* template (e.g. `consultant` when the template is `agency-consulting`) is added on
|
||||||
* top by `getPersonasForTier` so users still see the right specialist for their work.
|
* top by `getPersonasForTier` so users still see the right specialist for their work.
|
||||||
*
|
*
|
||||||
* Coder is excluded per Marko Q1 (2026-05-07).
|
* Coder is excluded per owner decision Q1 (2026-05-07).
|
||||||
*/
|
*/
|
||||||
export const ESSENTIAL_PERSONA_IDS = [
|
export const ESSENTIAL_PERSONA_IDS = [
|
||||||
'general-purpose',
|
'general-purpose',
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import { pickUserName } from './user-name';
|
|||||||
describe('pickUserName (UF-055)', () => {
|
describe('pickUserName (UF-055)', () => {
|
||||||
it('prefers the name in the profile', () => {
|
it('prefers the name in the profile', () => {
|
||||||
expect(pickUserName('Ana', 'Waggle')).toBe('Ana');
|
expect(pickUserName('Ana', 'Waggle')).toBe('Ana');
|
||||||
expect(pickUserName(' Ana ', 'Marko')).toBe('Ana');
|
expect(pickUserName(' Ana ', 'Alex')).toBe('Ana');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('falls back to a real identity name', () => {
|
it('falls back to a real identity name', () => {
|
||||||
expect(pickUserName('', 'Marko')).toBe('Marko');
|
expect(pickUserName('', 'Alex')).toBe('Alex');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('never returns the assistant default name as the user', () => {
|
it('never returns the assistant default name as the user', () => {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function renderSidebar() {
|
|||||||
onOpenWorkspaceSwitcher={() => {}}
|
onOpenWorkspaceSwitcher={() => {}}
|
||||||
onOpenCommand={() => {}}
|
onOpenCommand={() => {}}
|
||||||
onSpawnAgent={() => {}}
|
onSpawnAgent={() => {}}
|
||||||
userName="Marko"
|
userName="Alex"
|
||||||
/>
|
/>
|
||||||
</MemoryRouter>,
|
</MemoryRouter>,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ describe('investment celebration — overnight accrual pulse', () => {
|
|||||||
}
|
}
|
||||||
function makeBriefing(over: Partial<HomeBriefing> = {}): HomeBriefing {
|
function makeBriefing(over: Partial<HomeBriefing> = {}): HomeBriefing {
|
||||||
return {
|
return {
|
||||||
greeting: 'Welcome back, Marko',
|
greeting: 'Welcome back, Alex',
|
||||||
date: '2026-07-07T08:00:00.000Z',
|
date: '2026-07-07T08:00:00.000Z',
|
||||||
recentWorkspaces: [wsCard('w1', 'Alpha')],
|
recentWorkspaces: [wsCard('w1', 'Alpha')],
|
||||||
suggestedActions: [],
|
suggestedActions: [],
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function wsCard(id: string, name: string, pendingCount = 0): RecentWorkspaceCard
|
|||||||
|
|
||||||
function makeBriefing(over: Partial<HomeBriefing> = {}): HomeBriefing {
|
function makeBriefing(over: Partial<HomeBriefing> = {}): HomeBriefing {
|
||||||
return {
|
return {
|
||||||
greeting: 'Welcome back, Marko',
|
greeting: 'Welcome back, Alex',
|
||||||
date: '2026-07-07T08:00:00.000Z',
|
date: '2026-07-07T08:00:00.000Z',
|
||||||
recentWorkspaces: [],
|
recentWorkspaces: [],
|
||||||
suggestedActions: [],
|
suggestedActions: [],
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ describe('Onboarding ImportStep', () => {
|
|||||||
claudeCodeDetected: {
|
claudeCodeDetected: {
|
||||||
found: true,
|
found: true,
|
||||||
itemCount: 5514,
|
itemCount: 5514,
|
||||||
path: 'C:/Users/Marko/.claude/projects',
|
path: 'C:/Users/Alex/.claude/projects',
|
||||||
},
|
},
|
||||||
onClaudeCodeHarvest,
|
onClaudeCodeHarvest,
|
||||||
onContinue,
|
onContinue,
|
||||||
@@ -55,7 +55,7 @@ describe('Onboarding ImportStep', () => {
|
|||||||
claudeCodeDetected: {
|
claudeCodeDetected: {
|
||||||
found: true,
|
found: true,
|
||||||
itemCount: 12,
|
itemCount: 12,
|
||||||
path: 'C:/Users/Marko/.claude/projects',
|
path: 'C:/Users/Alex/.claude/projects',
|
||||||
},
|
},
|
||||||
onClaudeCodeHarvest,
|
onClaudeCodeHarvest,
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ function httpError(status: number, message = `HTTP ${status}`) {
|
|||||||
|
|
||||||
const RAW_ISO = '2026-06-11T07:42:13.512Z';
|
const RAW_ISO = '2026-06-11T07:42:13.512Z';
|
||||||
const briefing = (over: Record<string, unknown> = {}) => ({
|
const briefing = (over: Record<string, unknown> = {}) => ({
|
||||||
greeting: "Good morning, Marko. Here's your day",
|
greeting: "Good morning, Alex. Here's your day",
|
||||||
userName: 'Marko',
|
userName: 'Alex',
|
||||||
date: RAW_ISO,
|
date: RAW_ISO,
|
||||||
recentWorkspaces: [],
|
recentWorkspaces: [],
|
||||||
suggestedActions: [],
|
suggestedActions: [],
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ describe('PR7b · /auth — B1 accountless (no Clerk key)', () => {
|
|||||||
render(<MemoryRouter><AuthRoute /></MemoryRouter>);
|
render(<MemoryRouter><AuthRoute /></MemoryRouter>);
|
||||||
expect(screen.getByText(/running fully local/i)).toBeInTheDocument();
|
expect(screen.getByText(/running fully local/i)).toBeInTheDocument();
|
||||||
expect(screen.getByText(/don.t need this to start/i)).toBeInTheDocument();
|
expect(screen.getByText(/don.t need this to start/i)).toBeInTheDocument();
|
||||||
expect(screen.queryByText(/mara@egzakta/i)).not.toBeInTheDocument();
|
expect(screen.queryByText(/@egzakta\.com/i)).not.toBeInTheDocument();
|
||||||
expect(screen.queryByTestId('clerk-signin')).not.toBeInTheDocument();
|
expect(screen.queryByTestId('clerk-signin')).not.toBeInTheDocument();
|
||||||
expect(screen.queryByText(/signed in/i)).not.toBeInTheDocument();
|
expect(screen.queryByText(/signed in/i)).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
@@ -76,7 +76,7 @@ describe('PR7b · /auth — B2 Clerk form (explicitly enabled + key present)', (
|
|||||||
const signin = screen.getByTestId('clerk-signin');
|
const signin = screen.getByTestId('clerk-signin');
|
||||||
expect(signin).toBeInTheDocument();
|
expect(signin).toBeInTheDocument();
|
||||||
expect(signin).toHaveAttribute('data-redirect', '/home');
|
expect(signin).toHaveAttribute('data-redirect', '/home');
|
||||||
expect(screen.queryByText(/mara@egzakta/i)).not.toBeInTheDocument();
|
expect(screen.queryByText(/@egzakta\.com/i)).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('toggles to Sign up (with the honey local-first note) and back', async () => {
|
it('toggles to Sign up (with the honey local-first note) and back', async () => {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function renderAt(pathname: string) {
|
|||||||
onOpenWorkspaceSwitcher={() => {}}
|
onOpenWorkspaceSwitcher={() => {}}
|
||||||
onOpenCommand={() => {}}
|
onOpenCommand={() => {}}
|
||||||
onSpawnAgent={() => {}}
|
onSpawnAgent={() => {}}
|
||||||
userName="Marko"
|
userName="Alex"
|
||||||
/>
|
/>
|
||||||
</MemoryRouter>,
|
</MemoryRouter>,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function renderSidebar() {
|
|||||||
onOpenWorkspaceSwitcher={() => {}}
|
onOpenWorkspaceSwitcher={() => {}}
|
||||||
onOpenCommand={() => {}}
|
onOpenCommand={() => {}}
|
||||||
onSpawnAgent={() => {}}
|
onSpawnAgent={() => {}}
|
||||||
userName="Marko"
|
userName="Alex"
|
||||||
/>
|
/>
|
||||||
</MemoryRouter>,
|
</MemoryRouter>,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/marolinik/waggle-os.git
|
git clone <repository-url> waggle-os # the public repository location is not decided yet
|
||||||
cd waggle-os
|
cd waggle-os
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ This guide walks you through installing Waggle, configuring your API key, creati
|
|||||||
Best for a VPS or homelab, where you want a headless server rather than the desktop app:
|
Best for a VPS or homelab, where you want a headless server rather than the desktop app:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://raw.githubusercontent.com/marolinik/waggle-os/main/install.sh | bash
|
curl -fsSL <repository-raw-url>/main/install.sh | bash # the public repository location is not decided yet
|
||||||
```
|
```
|
||||||
|
|
||||||
The installer checks prerequisites (Node.js 20+, git — no sudo), clones the repo, builds the packages and web UI, then starts the sidecar and prints its URL (`http://127.0.0.1:3333`). A short wizard (all Enter-defaulted) lets you change the install dir, port, and data dir; add `--yes` to accept every default non-interactively. It boots in echo mode with zero API keys, so the UI works right away — add a provider key later under **Settings → API Keys**.
|
The installer checks prerequisites (Node.js 20+, git — no sudo), clones the repo, builds the packages and web UI, then starts the sidecar and prints its URL (`http://127.0.0.1:3333`). A short wizard (all Enter-defaulted) lets you change the install dir, port, and data dir; add `--yes` to accept every default non-interactively. It boots in echo mode with zero API keys, so the UI works right away — add a provider key later under **Settings → API Keys**.
|
||||||
@@ -24,7 +24,7 @@ Manage the server afterward with `scripts/waggle-server.sh {start|stop|status|lo
|
|||||||
|
|
||||||
### Option 2: Desktop App (Recommended)
|
### Option 2: Desktop App (Recommended)
|
||||||
|
|
||||||
Download the latest release for your platform from [GitHub Releases](https://github.com/marolinik/waggle/releases).
|
Download the latest release for your platform from the repository's Releases page (the public repository location is not decided yet).
|
||||||
|
|
||||||
**Windows**: Run the `.msi` installer. Waggle appears in your Start menu.
|
**Windows**: Run the `.msi` installer. Waggle appears in your Start menu.
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ If you prefer a browser-based interface or want to run Waggle without the deskto
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
git clone https://github.com/marolinik/waggle.git
|
git clone <repository-url> waggle
|
||||||
cd waggle
|
cd waggle
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ This log lists defects in the main Waggle project that we found while preparing
|
|||||||
|
|
||||||
Changes made only to meet the OSS scope (removing billing, tiers, KVARK, team mode and similar) are not defects and are not listed here.
|
Changes made only to meet the OSS scope (removing billing, tiers, KVARK, team mode and similar) are not defects and are not listed here.
|
||||||
|
|
||||||
Baseline: commit `b20b138` of `git.os-dev.tech/oleg.m/waggle-os`.
|
Baseline: commit `b20b138` of the main Waggle repository.
|
||||||
|
|
||||||
## Status values
|
## Status values
|
||||||
|
|
||||||
|
|||||||
@@ -344,8 +344,8 @@ model_list:
|
|||||||
|
|
||||||
# ── Qwen3.6-35B-A3B LOCKED decision (2026-04-19) ──────────────
|
# ── Qwen3.6-35B-A3B LOCKED decision (2026-04-19) ──────────────
|
||||||
# Canonical engine for Waggle Pro/Teams default + KVARK prod +
|
# Canonical engine for Waggle Pro/Teams default + KVARK prod +
|
||||||
# Track 2 benchmarks (H-42 / H-43 / H-44). Per LOCKED decision:
|
# Track 2 benchmarks (H-42 / H-43 / H-44). Per the owner's LOCKED decision
|
||||||
# D:\Projects\PM-Waggle-OS\decisions\2026-04-19-target-model-qwen35b-locked.md
|
# of 2026-04-19.
|
||||||
# 35B total / 3B active MoE, Apache-2.0, 262K native / 1M YaRN.
|
# 35B total / 3B active MoE, Apache-2.0, 262K native / 1M YaRN.
|
||||||
# Thinking mode default ON, togglable via `enable_thinking: false`.
|
# Thinking mode default ON, togglable via `enable_thinking: false`.
|
||||||
# HF source (verified 2026-04-19):
|
# HF source (verified 2026-04-19):
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ stability matrix) uses the canonical alias for its live run — which
|
|||||||
means the matrix now exercises the real 3.6 model, not the 3.5 OR
|
means the matrix now exercises the real 3.6 model, not the 3.5 OR
|
||||||
fallback. Materially improves Stage-2-prep defensibility.
|
fallback. Materially improves Stage-2-prep defensibility.
|
||||||
|
|
||||||
**Follow-up for Marko (when available).** If the key later gets mainland
|
**Follow-up for the owner (when available).** If the key later gets mainland
|
||||||
provisioning too, a second route `qwen3.6-35b-a3b-via-dashscope-mainland`
|
provisioning too, a second route `qwen3.6-35b-a3b-via-dashscope-mainland`
|
||||||
can be added with the same key pattern — but the intl endpoint is
|
can be added with the same key pattern — but the intl endpoint is
|
||||||
sufficient for Sprint 10 + Stage 2 benchmarks.
|
sufficient for Sprint 10 + Stage 2 benchmarks.
|
||||||
@@ -112,7 +112,7 @@ Sonnet) is the full functional regression — it replays the 10
|
|||||||
ground-truth triples through the repaired route and reports match rate
|
ground-truth triples through the repaired route and reports match rate
|
||||||
vs. PM human labels.
|
vs. PM human labels.
|
||||||
|
|
||||||
**PM review gate (open).** Per Sprint 10 brief §1.2, Marko ratifies the
|
**PM review gate (open).** Per Sprint 10 brief §1.2, the owner ratifies the
|
||||||
mapping before this PR merges. Open question for the reviewer: do we
|
mapping before this PR merges. Open question for the reviewer: do we
|
||||||
also want a separate PR to audit the Opus-4.6 dated snapshot, or leave
|
also want a separate PR to audit the Opus-4.6 dated snapshot, or leave
|
||||||
that out until a caller trips on it?
|
that out until a caller trips on it?
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ Tools:
|
|||||||
|
|
||||||
**Save routing rules:**
|
**Save routing rules:**
|
||||||
- Project decisions, meeting notes, task outcomes → workspace mind
|
- Project decisions, meeting notes, task outcomes → workspace mind
|
||||||
- "I prefer bullet points", "call me Marko", style corrections → personal mind
|
- "I prefer bullet points", "call me Alex", style corrections → personal mind
|
||||||
- If unsure, save to workspace (most things are project-specific).
|
- If unsure, save to workspace (most things are project-specific).
|
||||||
|
|
||||||
## System (interact with the local machine)
|
## System (interact with the local machine)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* Stage 1 deliverable per brief §3.4: JSONL files + daily markdown summary (no UI).
|
* Stage 1 deliverable per brief §3.4: JSONL files + daily markdown summary (no UI).
|
||||||
*
|
*
|
||||||
* BIND: thresholds are pre-registered in manifest § promotion_criteria + § rollback_triggers.
|
* BIND: thresholds are pre-registered in manifest § promotion_criteria + § rollback_triggers.
|
||||||
* Mid-flight changes require amendment + Marko ratifikacija (no-revisit-without-amendment).
|
* Mid-flight changes require an amendment and owner sign-off (no-revisit-without-amendment).
|
||||||
*
|
*
|
||||||
* AUDIT: gepa-phase-5/manifest.yaml § promotion_criteria, § rollback_triggers, § halt_and_pm_triggers.
|
* AUDIT: gepa-phase-5/manifest.yaml § promotion_criteria, § rollback_triggers, § halt_and_pm_triggers.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* - Hot reconfig via process restart; no code redeploy required.
|
* - Hot reconfig via process restart; no code redeploy required.
|
||||||
* - LOCKED scope (manifest § scope_LOCKED): claude::gen1-v1 +
|
* - LOCKED scope (manifest § scope_LOCKED): claude::gen1-v1 +
|
||||||
* qwen-thinking::gen1-v1. Mid-flight scope changes require new LOCKED
|
* qwen-thinking::gen1-v1. Mid-flight scope changes require new LOCKED
|
||||||
* decision memo + Marko ratifikacija.
|
* decision memo + owner sign-off.
|
||||||
*
|
*
|
||||||
* AUDIT: gepa-phase-5/manifest.yaml § canary_toggle, § scope_LOCKED.
|
* AUDIT: gepa-phase-5/manifest.yaml § canary_toggle, § scope_LOCKED.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ export const FEATURE_FLAGS = {
|
|||||||
* routed to GEPA-evolved variants (claude::gen1-v1 + qwen-thinking::gen1-v1)
|
* routed to GEPA-evolved variants (claude::gen1-v1 + qwen-thinking::gen1-v1)
|
||||||
* instead of pre-Phase-5 baseline.
|
* instead of pre-Phase-5 baseline.
|
||||||
*
|
*
|
||||||
* POST-KICK-OFF DEFAULT: 10 (canary Day 0 LIVE 2026-04-30 per PM signoff
|
* POST-KICK-OFF DEFAULT: 10 (canary Day 0 LIVE 2026-04-30 per PM signoff).
|
||||||
* D:/Projects/PM-Waggle-OS/decisions/2026-04-30-phase-5-1-5-pm-signoff-canary-authorize.md).
|
|
||||||
* When WAGGLE_PHASE5_CANARY_PCT env var is unset, parsePhase5CanaryPct
|
* When WAGGLE_PHASE5_CANARY_PCT env var is unset, parsePhase5CanaryPct
|
||||||
* returns 10. Set explicitly to 0 to roll back canary OFF without redeploy
|
* returns 10. Set explicitly to 0 to roll back canary OFF without redeploy
|
||||||
* per §2.3 rollback procedure. Set 25 / 50 / 100 to advance gradient per
|
* per §2.3 rollback procedure. Set 25 / 50 / 100 to advance gradient per
|
||||||
|
|||||||
@@ -576,7 +576,7 @@ describe('OneNoteConnector', () => {
|
|||||||
|
|
||||||
const fetchMock = vi.fn().mockResolvedValue({
|
const fetchMock = vi.fn().mockResolvedValue({
|
||||||
ok: true,
|
ok: true,
|
||||||
json: async () => ({ value: [{ id: 'n1', displayName: 'Marko Notebook' }] }),
|
json: async () => ({ value: [{ id: 'n1', displayName: 'Alex Notebook' }] }),
|
||||||
});
|
});
|
||||||
globalThis.fetch = fetchMock as unknown as typeof globalThis.fetch;
|
globalThis.fetch = fetchMock as unknown as typeof globalThis.fetch;
|
||||||
|
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ type MemorySnapshot = readonly MemoryRecord[];
|
|||||||
function createOrchestrator(memory: MemoryStore, model: string): Orchestrator {
|
function createOrchestrator(memory: MemoryStore, model: string): Orchestrator {
|
||||||
const orch = new Orchestrator({ memory, model });
|
const orch = new Orchestrator({ memory, model });
|
||||||
orch.getIdentity().create({
|
orch.getIdentity().create({
|
||||||
name: 'Marko',
|
name: 'Alex',
|
||||||
role: 'CEO',
|
role: 'CEO',
|
||||||
department: 'Egzakta Group',
|
department: 'Egzakta Group',
|
||||||
personality: 'Direct, pragmatic, sovereignty-focused',
|
personality: 'Direct, pragmatic, sovereignty-focused',
|
||||||
|
|||||||
@@ -621,7 +621,7 @@ type MemorySnapshot = readonly MemoryRecord[];
|
|||||||
function createOrchestrator(memory: MemoryStore, model: string): Orchestrator {
|
function createOrchestrator(memory: MemoryStore, model: string): Orchestrator {
|
||||||
const orch = new Orchestrator({ memory, model });
|
const orch = new Orchestrator({ memory, model });
|
||||||
orch.getIdentity().create({
|
orch.getIdentity().create({
|
||||||
name: 'Marko',
|
name: 'Alex',
|
||||||
role: 'CEO',
|
role: 'CEO',
|
||||||
department: 'Egzakta Group',
|
department: 'Egzakta Group',
|
||||||
personality: 'Direct, pragmatic, sovereignty-focused',
|
personality: 'Direct, pragmatic, sovereignty-focused',
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
* is 10 (env unset → 10). Test pin in vitest.setup.ts sets
|
* is 10 (env unset → 10). Test pin in vitest.setup.ts sets
|
||||||
* WAGGLE_PHASE5_CANARY_PCT='0' for shape-selection determinism in other tests;
|
* WAGGLE_PHASE5_CANARY_PCT='0' for shape-selection determinism in other tests;
|
||||||
* THIS file exercises the parser directly with explicit inputs.
|
* THIS file exercises the parser directly with explicit inputs.
|
||||||
*
|
|
||||||
* AUDIT: D:/Projects/PM-Waggle-OS/decisions/2026-04-30-phase-5-1-5-pm-signoff-canary-authorize.md
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, it, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { describe, it, expect } from 'vitest';
|
|||||||
import { extractClaimedSpecifics, checkGrounding } from '../src/grounding-check.js';
|
import { extractClaimedSpecifics, checkGrounding } from '../src/grounding-check.js';
|
||||||
|
|
||||||
// The real LOCKED-frame memory the live agent recalled (abridged).
|
// The real LOCKED-frame memory the live agent recalled (abridged).
|
||||||
const MEMORY = `Marko Markovic is founder and CEO of Egzakta Group. Working on Waggle OS launch project.
|
const MEMORY = `Alex Morgan is founder and CEO of Example Group. Working on Waggle OS launch project.
|
||||||
LOCKED DECISIONS:
|
LOCKED DECISIONS:
|
||||||
1. Pricing: Pro at $19/month, Teams at $49/seat/month
|
1. Pricing: Pro at $19/month, Teams at $49/seat/month
|
||||||
2. Public launch gated on beating Mem0's LoCoMo memory benchmark
|
2. Public launch gated on beating Mem0's LoCoMo memory benchmark
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { isSelfIncapacityAssertion } from '../src/memory-sign-gate.js';
|
|||||||
describe('isSelfIncapacityAssertion', () => {
|
describe('isSelfIncapacityAssertion', () => {
|
||||||
// The exact shapes that poisoned recall in the live DEFECT-2 repro.
|
// The exact shapes that poisoned recall in the live DEFECT-2 repro.
|
||||||
const POISON = [
|
const POISON = [
|
||||||
"I'm going to be direct with you, Marko. I have exhausted every option available to me.",
|
"I'm going to be direct with you, Alex. I have exhausted every option available to me.",
|
||||||
"I can't install an MCP connector for you from here.",
|
"I can't install an MCP connector for you from here.",
|
||||||
"I literally don't have the mechanism to do what you're asking.",
|
"I literally don't have the mechanism to do what you're asking.",
|
||||||
"This is a platform-side configuration change that you need to do.",
|
"This is a platform-side configuration change that you need to do.",
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ describe('Orchestrator — recall path hardening', () => {
|
|||||||
|
|
||||||
it('preserves byte-identical legitimate user preference and correction provenance', async () => {
|
it('preserves byte-identical legitimate user preference and correction provenance', async () => {
|
||||||
const preference = 'I prefer concise release updates with a clear owner and next step';
|
const preference = 'I prefer concise release updates with a clear owner and next step';
|
||||||
const correction = 'No, actually the release owner is Marko; update the project record before sending.';
|
const correction = 'No, actually the release owner is Alex; update the project record before sending.';
|
||||||
|
|
||||||
await orchestrator.autoSaveFromExchange(preference, 'Understood.');
|
await orchestrator.autoSaveFromExchange(preference, 'Understood.');
|
||||||
await orchestrator.autoSaveFromExchange(correction, 'Thanks, I will update the project record.');
|
await orchestrator.autoSaveFromExchange(correction, 'Thanks, I will update the project record.');
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ describe('runPatternWriteBack', () => {
|
|||||||
it('routes preferences and corrections to personal memory, decisions to the workspace', async () => {
|
it('routes preferences and corrections to personal memory, decisions to the workspace', async () => {
|
||||||
const deps = { memory, workspaceId: 'ws-1' };
|
const deps = { memory, workspaceId: 'ws-1' };
|
||||||
await runPatternWriteBack(deps, 'I prefer short status updates with a clear next step', 'Understood.');
|
await runPatternWriteBack(deps, 'I prefer short status updates with a clear next step', 'Understood.');
|
||||||
await runPatternWriteBack(deps, 'No, actually the launch owner is Marko, not Ana.', 'Thanks for the correction.');
|
await runPatternWriteBack(deps, 'No, actually the launch owner is Alex, not Ana.', 'Thanks for the correction.');
|
||||||
await runPatternWriteBack(deps, 'Sounds good, go ahead with that plan.', "Let's go with the staged rollout for the beta.");
|
await runPatternWriteBack(deps, 'Sounds good, go ahead with that plan.', "Let's go with the staged rollout for the beta.");
|
||||||
|
|
||||||
const personal = await inScope(PERSONAL_SCOPE);
|
const personal = await inScope(PERSONAL_SCOPE);
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ describe('truncateTraceText', () => {
|
|||||||
|
|
||||||
describe('scrubSecrets', () => {
|
describe('scrubSecrets', () => {
|
||||||
it('redacts obvious secret keys at top level', () => {
|
it('redacts obvious secret keys at top level', () => {
|
||||||
const out = scrubSecrets({ password: 'hunter2', username: 'marko' });
|
const out = scrubSecrets({ password: 'hunter2', username: 'alex' });
|
||||||
expect(out).toEqual({ password: '[REDACTED]', username: 'marko' });
|
expect(out).toEqual({ password: '[REDACTED]', username: 'alex' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('redacts nested objects', () => {
|
it('redacts nested objects', () => {
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ describe('Comprehensive CLI E2E Test', () => {
|
|||||||
|
|
||||||
// Session 1: save memories
|
// Session 1: save memories
|
||||||
await orchestrator.executeTool('save_memory', {
|
await orchestrator.executeTool('save_memory', {
|
||||||
content: 'My name is Marko and I work on the Waggle project',
|
content: 'My name is Alex and I work on the Waggle project',
|
||||||
importance: 'critical',
|
importance: 'critical',
|
||||||
});
|
});
|
||||||
await orchestrator.executeTool('save_memory', {
|
await orchestrator.executeTool('save_memory', {
|
||||||
@@ -146,8 +146,8 @@ describe('Comprehensive CLI E2E Test', () => {
|
|||||||
const orchestrator2 = session.orchestrator;
|
const orchestrator2 = session.orchestrator;
|
||||||
|
|
||||||
// Search for memories from previous session
|
// Search for memories from previous session
|
||||||
const result1 = await orchestrator2.executeTool('search_memory', { query: 'Marko Waggle' });
|
const result1 = await orchestrator2.executeTool('search_memory', { query: 'Alex Waggle' });
|
||||||
expect(result1).toContain('Marko');
|
expect(result1).toContain('Alex');
|
||||||
expect(result1).toContain('Waggle');
|
expect(result1).toContain('Waggle');
|
||||||
|
|
||||||
const result2 = await orchestrator2.executeTool('search_memory', { query: 'API key production' });
|
const result2 = await orchestrator2.executeTool('search_memory', { query: 'API key production' });
|
||||||
|
|||||||
@@ -59,11 +59,11 @@ describe('Hard Memory Persistence — Real Work Simulation', () => {
|
|||||||
department: 'Platform Team',
|
department: 'Platform Team',
|
||||||
personality: 'Thorough, opinionated, remembers everything',
|
personality: 'Thorough, opinionated, remembers everything',
|
||||||
capabilities: 'Code review, architecture, memory, search',
|
capabilities: 'Code review, architecture, memory, search',
|
||||||
system_prompt: 'You are Waggle, a senior engineering assistant for Marko.',
|
system_prompt: 'You are Waggle, a senior engineering assistant for Alex.',
|
||||||
});
|
});
|
||||||
|
|
||||||
// User context
|
// User context
|
||||||
orch.getAwareness().add('flag', 'User is Marko Markovic, prefers direct communication', 10);
|
orch.getAwareness().add('flag', 'User is Alex Morgan, prefers direct communication', 10);
|
||||||
orch.getAwareness().add('flag', 'Project: Rewrite payment service from Python to Go', 10);
|
orch.getAwareness().add('flag', 'Project: Rewrite payment service from Python to Go', 10);
|
||||||
orch.getAwareness().add('task', 'Design new payment service architecture', 9);
|
orch.getAwareness().add('task', 'Design new payment service architecture', 9);
|
||||||
orch.getAwareness().add('pending', 'Waiting for Stripe API credentials from DevOps (asked Alice)', 7);
|
orch.getAwareness().add('pending', 'Waiting for Stripe API credentials from DevOps (asked Alice)', 7);
|
||||||
@@ -82,7 +82,7 @@ describe('Hard Memory Persistence — Real Work Simulation', () => {
|
|||||||
importance: 'important',
|
importance: 'important',
|
||||||
});
|
});
|
||||||
await orch.executeTool('save_memory', {
|
await orch.executeTool('save_memory', {
|
||||||
content: 'Marko raised concern about the fraud-check service being a single point of failure. Decision: implement circuit breaker with 5-second timeout, fallback to allowing the charge (business decision: false negatives are worse than false positives for fraud).',
|
content: 'Alex raised concern about the fraud-check service being a single point of failure. Decision: implement circuit breaker with 5-second timeout, fallback to allowing the charge (business decision: false negatives are worse than false positives for fraud).',
|
||||||
importance: 'critical',
|
importance: 'critical',
|
||||||
});
|
});
|
||||||
await orch.executeTool('save_memory', {
|
await orch.executeTool('save_memory', {
|
||||||
@@ -117,7 +117,7 @@ describe('Hard Memory Persistence — Real Work Simulation', () => {
|
|||||||
importance: 'important',
|
importance: 'important',
|
||||||
});
|
});
|
||||||
await orch.executeTool('save_memory', {
|
await orch.executeTool('save_memory', {
|
||||||
content: 'Performance target from Marko: p99 latency under 200ms for charge endpoint (current Python service is 450ms). Go rewrite should easily beat this. Will add Prometheus metrics from day 1.',
|
content: 'Performance target from Alex: p99 latency under 200ms for charge endpoint (current Python service is 450ms). Go rewrite should easily beat this. Will add Prometheus metrics from day 1.',
|
||||||
importance: 'important',
|
importance: 'important',
|
||||||
});
|
});
|
||||||
await orch.executeTool('save_memory', {
|
await orch.executeTool('save_memory', {
|
||||||
@@ -148,7 +148,7 @@ describe('Hard Memory Persistence — Real Work Simulation', () => {
|
|||||||
importance: 'important',
|
importance: 'important',
|
||||||
});
|
});
|
||||||
await orch.executeTool('save_memory', {
|
await orch.executeTool('save_memory', {
|
||||||
content: 'Marko decided to descope the refund endpoint from the initial launch. Reason: the double-refund bug (PAY-142) needs careful handling and the PCI blocker already delays us. Refund stays in Python service for now, will be migrated in phase 2.',
|
content: 'Alex decided to descope the refund endpoint from the initial launch. Reason: the double-refund bug (PAY-142) needs careful handling and the PCI blocker already delays us. Refund stays in Python service for now, will be migrated in phase 2.',
|
||||||
importance: 'critical',
|
importance: 'critical',
|
||||||
});
|
});
|
||||||
await orch.executeTool('save_memory', {
|
await orch.executeTool('save_memory', {
|
||||||
@@ -177,7 +177,7 @@ describe('Hard Memory Persistence — Real Work Simulation', () => {
|
|||||||
|
|
||||||
// ─── Test B: Awareness items survive ───
|
// ─── Test B: Awareness items survive ───
|
||||||
const awareness = await orch.executeTool('get_awareness', {});
|
const awareness = await orch.executeTool('get_awareness', {});
|
||||||
expect(awareness).toContain('Marko Markovic');
|
expect(awareness).toContain('Alex Morgan');
|
||||||
expect(awareness).toContain('payment service');
|
expect(awareness).toContain('payment service');
|
||||||
|
|
||||||
// ─── Test C: "What are we working on?" ───
|
// ─── Test C: "What are we working on?" ───
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ describe('profile and awareness scopes', () => {
|
|||||||
const personal = new AwarenessLayer(db);
|
const personal = new AwarenessLayer(db);
|
||||||
const ws = new AwarenessLayer(db, workspaceDataScope('alpha'));
|
const ws = new AwarenessLayer(db, workspaceDataScope('alpha'));
|
||||||
const item = ws.add('task', 'Ship the beta', 2, undefined, { status: 'open' });
|
const item = ws.add('task', 'Ship the beta', 2, undefined, { status: 'open' });
|
||||||
personal.add('pending', 'Reply to Marko');
|
personal.add('pending', 'Reply to Alex');
|
||||||
expect(ws.getAll().map(i => i.content)).toEqual(['Ship the beta']);
|
expect(ws.getAll().map(i => i.content)).toEqual(['Ship the beta']);
|
||||||
expect(personal.countOpen()).toBe(1);
|
expect(personal.countOpen()).toBe(1);
|
||||||
expect(personal.get(item.id)).toBeUndefined();
|
expect(personal.get(item.id)).toBeUndefined();
|
||||||
|
|||||||
@@ -588,7 +588,7 @@ describe('seedMcpServers', () => {
|
|||||||
// `MATCH @query`. FTS5 implicit-ANDs every term, so a verbose natural-language
|
// `MATCH @query`. FTS5 implicit-ANDs every term, so a verbose natural-language
|
||||||
// `need` (always the case when acquire_capability calls searchMarketplace)
|
// `need` (always the case when acquire_capability calls searchMarketplace)
|
||||||
// matches zero packages, and special chars (':' '\\' '"') in paths like
|
// matches zero packages, and special chars (':' '\\' '"') in paths like
|
||||||
// `D:\Projects\X` raise an FTS5 syntax error that searchMarketplace swallows
|
// `D:\Work\X` raise an FTS5 syntax error that searchMarketplace swallows
|
||||||
// to []. Net: the inline capability-install feature never surfaces a
|
// to []. Net: the inline capability-install feature never surfaces a
|
||||||
// candidate for real agent queries. These tests reproduce that and lock the
|
// candidate for real agent queries. These tests reproduce that and lock the
|
||||||
// relaxation behaviour in.
|
// relaxation behaviour in.
|
||||||
@@ -638,7 +638,7 @@ describe('db.search — FTS5 query relaxation', () => {
|
|||||||
|
|
||||||
it('ROBUSTNESS: a need with FTS-special chars (path with : and \\ and quotes) does not throw and still matches', () => {
|
it('ROBUSTNESS: a need with FTS-special chars (path with : and \\ and quotes) does not throw and still matches', () => {
|
||||||
const need =
|
const need =
|
||||||
'remember D:\\Projects\\PM-Waggle-OS — need a "memory" knowledge graph: durable * context';
|
'remember D:\\Work\\Notes — need a "memory" knowledge graph: durable * context';
|
||||||
expect(() => ftsDb.search({ query: need, limit: 10 })).not.toThrow();
|
expect(() => ftsDb.search({ query: need, limit: 10 })).not.toThrow();
|
||||||
const r = ftsDb.search({ query: need, limit: 10 });
|
const r = ftsDb.search({ query: need, limit: 10 });
|
||||||
expect(r.total).toBeGreaterThan(0);
|
expect(r.total).toBeGreaterThan(0);
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ export const cronRoutes: FastifyPluginAsync = async (server) => {
|
|||||||
// POST /api/cron/:id/trigger — manually trigger a schedule
|
// POST /api/cron/:id/trigger — manually trigger a schedule
|
||||||
//
|
//
|
||||||
// M-43 / P25: triggering a disabled job auto-enables it before
|
// M-43 / P25: triggering a disabled job auto-enables it before
|
||||||
// execution. Rationale (Marko 2026-04-19): if the user is reaching
|
// execution. Rationale (owner, 2026-04-19): if the user is reaching
|
||||||
// for "Run now" they want the job running, and leaving it disabled
|
// for "Run now" they want the job running, and leaving it disabled
|
||||||
// after manual trigger produces the confusing "toggle stays off"
|
// after manual trigger produces the confusing "toggle stays off"
|
||||||
// effect the PDF-E2E issue list flagged. The response includes the
|
// effect the PDF-E2E issue list flagged. The response includes the
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ function resolveRankTimestamp(ws: {
|
|||||||
* "greeting with user name"). The greeting strings are fixed sentences like
|
* "greeting with user name"). The greeting strings are fixed sentences like
|
||||||
* "Good morning. Here's your day:" or "Welcome — anything you discuss here
|
* "Good morning. Here's your day:" or "Welcome — anything you discuss here
|
||||||
* will be remembered." — the name splices in before the first sentence break:
|
* will be remembered." — the name splices in before the first sentence break:
|
||||||
* "Good morning, Marko. Here's your day:". Unknown shapes pass through.
|
* "Good morning, Alex. Here's your day:". Unknown shapes pass through.
|
||||||
* Exported for unit tests.
|
* Exported for unit tests.
|
||||||
*/
|
*/
|
||||||
export function personalizeGreeting(greeting: string, name?: string): string {
|
export function personalizeGreeting(greeting: string, name?: string): string {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ describe('listWindowsDrives', () => {
|
|||||||
expect(drives[0]).toEqual({ name: 'C:', path: 'C:\\', type: 'directory' });
|
expect(drives[0]).toEqual({ name: 'C:', path: 'C:\\', type: 'directory' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns both C: and D: on a dual-drive machine like Marko\'s', () => {
|
it('returns both C: and D: on a dual-drive machine like Alex\'s', () => {
|
||||||
const drives = listWindowsDrives((p) => p === 'C:\\' || p === 'D:\\');
|
const drives = listWindowsDrives((p) => p === 'C:\\' || p === 'D:\\');
|
||||||
expect(drives).toHaveLength(2);
|
expect(drives).toHaveLength(2);
|
||||||
expect(drives.map((d) => d.name)).toEqual(['C:', 'D:']);
|
expect(drives.map((d) => d.name)).toEqual(['C:', 'D:']);
|
||||||
|
|||||||
@@ -106,12 +106,12 @@ describe('DiscordAdapter gateway', () => {
|
|||||||
handshake(ws);
|
handshake(ws);
|
||||||
ws.serverSend({
|
ws.serverSend({
|
||||||
op: 0, t: 'MESSAGE_CREATE', s: 2,
|
op: 0, t: 'MESSAGE_CREATE', s: 2,
|
||||||
d: { id: 'm1', channel_id: 'c1', content: 'hello', author: { id: 'u1', username: 'marko' } },
|
d: { id: 'm1', channel_id: 'c1', content: 'hello', author: { id: 'u1', username: 'alex' } },
|
||||||
});
|
});
|
||||||
await tick();
|
await tick();
|
||||||
expect(ctx.received[0]).toEqual({
|
expect(ctx.received[0]).toEqual({
|
||||||
platform: 'discord', chatId: 'c1', senderId: 'u1',
|
platform: 'discord', chatId: 'c1', senderId: 'u1',
|
||||||
senderName: 'marko', text: 'hello', messageId: 'm1',
|
senderName: 'alex', text: 'hello', messageId: 'm1',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ describe('PairingStore codes', () => {
|
|||||||
it('consumes a valid code exactly once and pairs the sender', () => {
|
it('consumes a valid code exactly once and pairs the sender', () => {
|
||||||
const store = new PairingStore(dir);
|
const store = new PairingStore(dir);
|
||||||
const { code } = store.generateCode('telegram');
|
const { code } = store.generateCode('telegram');
|
||||||
expect(store.consumeCode('telegram', code, 'user-1', 'marko')).toBe(true);
|
expect(store.consumeCode('telegram', code, 'user-1', 'alex')).toBe(true);
|
||||||
expect(store.isPaired('telegram', 'user-1')).toBe(true);
|
expect(store.isPaired('telegram', 'user-1')).toBe(true);
|
||||||
// Single-use: second redemption fails.
|
// Single-use: second redemption fails.
|
||||||
expect(store.consumeCode('telegram', code, 'user-2')).toBe(false);
|
expect(store.consumeCode('telegram', code, 'user-2')).toBe(false);
|
||||||
@@ -70,11 +70,11 @@ describe('PairingStore persistence', () => {
|
|||||||
it('persists allowlist across store instances (channels.json)', () => {
|
it('persists allowlist across store instances (channels.json)', () => {
|
||||||
const a = new PairingStore(dir);
|
const a = new PairingStore(dir);
|
||||||
const { code } = a.generateCode('telegram');
|
const { code } = a.generateCode('telegram');
|
||||||
a.consumeCode('telegram', code, 'user-1', 'marko');
|
a.consumeCode('telegram', code, 'user-1', 'alex');
|
||||||
|
|
||||||
const b = new PairingStore(dir);
|
const b = new PairingStore(dir);
|
||||||
expect(b.isPaired('telegram', 'user-1')).toBe(true);
|
expect(b.isPaired('telegram', 'user-1')).toBe(true);
|
||||||
expect(b.listPaired().telegram?.[0]?.senderName).toBe('marko');
|
expect(b.listPaired().telegram?.[0]?.senderName).toBe('alex');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does NOT persist pending codes (in-memory only)', () => {
|
it('does NOT persist pending codes (in-memory only)', () => {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ function makeFetchScript(updateBatches: unknown[][]) {
|
|||||||
return { fetchImpl, calls };
|
return { fetchImpl, calls };
|
||||||
}
|
}
|
||||||
|
|
||||||
function telegramUpdate(id: number, text: string, from = { id: 42, username: 'marko' }) {
|
function telegramUpdate(id: number, text: string, from = { id: 42, username: 'alex' }) {
|
||||||
return { update_id: id, message: { message_id: id, text, chat: { id: -100 }, from } };
|
return { update_id: id, message: { message_id: id, text, chat: { id: -100 }, from } };
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ describe('TelegramAdapter polling', () => {
|
|||||||
platform: 'telegram',
|
platform: 'telegram',
|
||||||
chatId: '-100',
|
chatId: '-100',
|
||||||
senderId: '42',
|
senderId: '42',
|
||||||
senderName: 'marko',
|
senderName: 'alex',
|
||||||
text: 'hello',
|
text: 'hello',
|
||||||
messageId: '7',
|
messageId: '7',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ function textMessage(overrides: Partial<WaMessageLike> = {}): WaMessageLike {
|
|||||||
body: 'zdravo',
|
body: 'zdravo',
|
||||||
type: 'chat',
|
type: 'chat',
|
||||||
id: { _serialized: 'false_3816x@c.us_m1' },
|
id: { _serialized: 'false_3816x@c.us_m1' },
|
||||||
_data: { notifyName: 'Marko' },
|
_data: { notifyName: 'Alex' },
|
||||||
...overrides,
|
...overrides,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -253,7 +253,7 @@ describe('WhatsAppAdapter inbound', () => {
|
|||||||
platform: 'whatsapp',
|
platform: 'whatsapp',
|
||||||
chatId: '3816x@c.us',
|
chatId: '3816x@c.us',
|
||||||
senderId: '3816x@c.us',
|
senderId: '3816x@c.us',
|
||||||
senderName: 'Marko',
|
senderName: 'Alex',
|
||||||
text: 'zdravo',
|
text: 'zdravo',
|
||||||
messageId: 'false_3816x@c.us_m1',
|
messageId: 'false_3816x@c.us_m1',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -74,13 +74,13 @@ const card = (id: string, pendingCount: number, rankTs: number): { card: RecentW
|
|||||||
|
|
||||||
describe('personalizeGreeting (P2 — B8 name in greeting)', () => {
|
describe('personalizeGreeting (P2 — B8 name in greeting)', () => {
|
||||||
it('splices the name before the first sentence break', () => {
|
it('splices the name before the first sentence break', () => {
|
||||||
expect(personalizeGreeting("Good morning. Here's your day", 'Marko'))
|
expect(personalizeGreeting("Good morning. Here's your day", 'Alex'))
|
||||||
.toBe("Good morning, Marko. Here's your day");
|
.toBe("Good morning, Alex. Here's your day");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('handles the em-dash fresh-state greeting', () => {
|
it('handles the em-dash fresh-state greeting', () => {
|
||||||
expect(personalizeGreeting('Welcome — anything you discuss here will be remembered.', 'Marko'))
|
expect(personalizeGreeting('Welcome — anything you discuss here will be remembered.', 'Alex'))
|
||||||
.toBe('Welcome, Marko — anything you discuss here will be remembered.');
|
.toBe('Welcome, Alex — anything you discuss here will be remembered.');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('passes through without a name', () => {
|
it('passes through without a name', () => {
|
||||||
@@ -89,7 +89,7 @@ describe('personalizeGreeting (P2 — B8 name in greeting)', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('passes through greetings with no sentence break', () => {
|
it('passes through greetings with no sentence break', () => {
|
||||||
expect(personalizeGreeting('Hello there', 'Marko')).toBe('Hello there');
|
expect(personalizeGreeting('Hello there', 'Alex')).toBe('Hello there');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -180,14 +180,14 @@ describe('GET /api/home/briefing (P2 — J08 needsReviewCount + greeting)', () =
|
|||||||
it('greets by name when identity is seeded (B8)', async () => {
|
it('greets by name when identity is seeded (B8)', async () => {
|
||||||
boot([{ id: 'w1', name: 'Alpha', group: 'Personal', created: new Date().toISOString() }]);
|
boot([{ id: 'w1', name: 'Alpha', group: 'Personal', created: new Date().toISOString() }]);
|
||||||
new IdentityLayer(server.waggleDb).create({
|
new IdentityLayer(server.waggleDb).create({
|
||||||
name: 'Marko', role: 'Founder', department: 'Egzakta',
|
name: 'Alex', role: 'Founder', department: 'Egzakta',
|
||||||
personality: '', capabilities: '', system_prompt: '',
|
personality: '', capabilities: '', system_prompt: '',
|
||||||
});
|
});
|
||||||
const res = await server.inject({ method: 'GET', url: '/api/home/briefing' });
|
const res = await server.inject({ method: 'GET', url: '/api/home/briefing' });
|
||||||
expect(res.statusCode).toBe(200);
|
expect(res.statusCode).toBe(200);
|
||||||
const briefing = res.json();
|
const briefing = res.json();
|
||||||
expect(briefing.userName).toBe('Marko');
|
expect(briefing.userName).toBe('Alex');
|
||||||
expect(briefing.greeting).toContain(', Marko');
|
expect(briefing.greeting).toContain(', Alex');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('greeting stays name-free when no identity exists', async () => {
|
it('greeting stays name-free when no identity exists', async () => {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ describe('POST /api/identity — merge-on-update', () => {
|
|||||||
boot();
|
boot();
|
||||||
const first = await server.inject({
|
const first = await server.inject({
|
||||||
method: 'POST', url: '/api/identity',
|
method: 'POST', url: '/api/identity',
|
||||||
payload: { name: 'Marko', role: 'Founder', department: 'Egzakta' },
|
payload: { name: 'Alex', role: 'Founder', department: 'Egzakta' },
|
||||||
});
|
});
|
||||||
expect(first.statusCode).toBe(200);
|
expect(first.statusCode).toBe(200);
|
||||||
|
|
||||||
@@ -39,11 +39,11 @@ describe('POST /api/identity — merge-on-update', () => {
|
|||||||
// survive (the old `body.x ?? ''` semantics silently wiped them).
|
// survive (the old `body.x ?? ''` semantics silently wiped them).
|
||||||
const partial = await server.inject({
|
const partial = await server.inject({
|
||||||
method: 'POST', url: '/api/identity',
|
method: 'POST', url: '/api/identity',
|
||||||
payload: { name: 'Marko M.' },
|
payload: { name: 'Alex M.' },
|
||||||
});
|
});
|
||||||
expect(partial.statusCode).toBe(200);
|
expect(partial.statusCode).toBe(200);
|
||||||
const body = partial.json();
|
const body = partial.json();
|
||||||
expect(body.name).toBe('Marko M.');
|
expect(body.name).toBe('Alex M.');
|
||||||
expect(body.role).toBe('Founder');
|
expect(body.role).toBe('Founder');
|
||||||
expect(body.department).toBe('Egzakta');
|
expect(body.department).toBe('Egzakta');
|
||||||
});
|
});
|
||||||
@@ -52,14 +52,14 @@ describe('POST /api/identity — merge-on-update', () => {
|
|||||||
boot();
|
boot();
|
||||||
await server.inject({
|
await server.inject({
|
||||||
method: 'POST', url: '/api/identity',
|
method: 'POST', url: '/api/identity',
|
||||||
payload: { name: 'Marko', role: 'Founder' },
|
payload: { name: 'Alex', role: 'Founder' },
|
||||||
});
|
});
|
||||||
const cleared = await server.inject({
|
const cleared = await server.inject({
|
||||||
method: 'POST', url: '/api/identity',
|
method: 'POST', url: '/api/identity',
|
||||||
payload: { role: '' },
|
payload: { role: '' },
|
||||||
});
|
});
|
||||||
expect(cleared.json().role).toBe('');
|
expect(cleared.json().role).toBe('');
|
||||||
expect(cleared.json().name).toBe('Marko');
|
expect(cleared.json().name).toBe('Alex');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -87,10 +87,10 @@ describe('SignalBus', () => {
|
|||||||
|
|
||||||
it('filters by teamId', () => {
|
it('filters by teamId', () => {
|
||||||
const bus = new SignalBus(10);
|
const bus = new SignalBus(10);
|
||||||
bus.record(makeSignal({ id: 'p1', teamId: 'personal::marko' }));
|
bus.record(makeSignal({ id: 'p1', teamId: 'personal::alex' }));
|
||||||
bus.record(makeSignal({ id: 't1', teamId: 'team-egzakta' }));
|
bus.record(makeSignal({ id: 't1', teamId: 'team-egzakta' }));
|
||||||
bus.record(makeSignal({ id: 'p2', teamId: 'personal::marko' }));
|
bus.record(makeSignal({ id: 'p2', teamId: 'personal::alex' }));
|
||||||
const personal = bus.query({ teamId: 'personal::marko' });
|
const personal = bus.query({ teamId: 'personal::alex' });
|
||||||
expect(personal.map((s) => s.id)).toEqual(['p2', 'p1']);
|
expect(personal.map((s) => s.id)).toEqual(['p2', 'p1']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ describe('recommendConnectors', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('CONNECTOR_RECOMMENDATIONS shape', () => {
|
describe('CONNECTOR_RECOMMENDATIONS shape', () => {
|
||||||
it('every recommendation has 3-6 primary entries (Ljiljana-bar cognitive ceiling)', () => {
|
it('every recommendation has 3-6 primary entries (cognitive ceiling of a non-technical user)', () => {
|
||||||
for (const [personaId, rec] of Object.entries(CONNECTOR_RECOMMENDATIONS)) {
|
for (const [personaId, rec] of Object.entries(CONNECTOR_RECOMMENDATIONS)) {
|
||||||
expect(rec.primary.length, `persona "${personaId}" primary out of range`).toBeGreaterThanOrEqual(3);
|
expect(rec.primary.length, `persona "${personaId}" primary out of range`).toBeGreaterThanOrEqual(3);
|
||||||
expect(rec.primary.length, `persona "${personaId}" primary out of range`).toBeLessThanOrEqual(6);
|
expect(rec.primary.length, `persona "${personaId}" primary out of range`).toBeLessThanOrEqual(6);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
// CI lint guard — invalid Claude 4.6 family dated snapshots.
|
// CI lint guard — invalid Claude 4.6 family dated snapshots.
|
||||||
//
|
//
|
||||||
// Authority: PM-Waggle-OS/decisions/2026-04-22-model-route-naming-locked.md §4
|
// Authority: the owner's model-route naming decision of 2026-04-22, section 4.
|
||||||
//
|
//
|
||||||
// The suffix -20250514 was never a valid snapshot ID for the Claude 4.6
|
// The suffix -20250514 was never a valid snapshot ID for the Claude 4.6
|
||||||
// family (Sonnet 4.6 + Opus 4.6). Any occurrence of this suffix in
|
// family (Sonnet 4.6 + Opus 4.6). Any occurrence of this suffix in
|
||||||
@@ -83,7 +83,7 @@ function main() {
|
|||||||
console.error(' - Floating alias for runtime code: claude-sonnet-4-6, claude-opus-4-6');
|
console.error(' - Floating alias for runtime code: claude-sonnet-4-6, claude-opus-4-6');
|
||||||
console.error(' - Dated snapshot for benchmarks only: claude-opus-4-6-20250610 (verify against Anthropic docs)');
|
console.error(' - Dated snapshot for benchmarks only: claude-opus-4-6-20250610 (verify against Anthropic docs)');
|
||||||
console.error('');
|
console.error('');
|
||||||
console.error('See PM-Waggle-OS/decisions/2026-04-22-model-route-naming-locked.md for the LOCK.');
|
console.error('Model route names are locked by the owner decision of 2026-04-22.');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ async function session2_memoryFormation() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const res = await chat(
|
const res = await chat(
|
||||||
'My name is Marko Markovic. I am 51 years old. I work as a business strategist at Egzakta Group. My favorite color is blue and I support Crvena Zvezda. Remember all of this.',
|
'My name is Alex Morgan. I am 51 years old. I work as a business strategist at Example Group. My favorite color is blue and I support my home football club. Remember all of this.',
|
||||||
{ workspace: 'test-memory', session: 's2' },
|
{ workspace: 'test-memory', session: 's2' },
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -222,12 +222,12 @@ async function session2_memoryFormation() {
|
|||||||
check('No garbage person entities', garbagePersons.length === 0,
|
check('No garbage person entities', garbagePersons.length === 0,
|
||||||
garbagePersons.length > 0 ? `GARBAGE: ${garbagePersons.map(e => e.name).join(', ')}` : 'clean');
|
garbagePersons.length > 0 ? `GARBAGE: ${garbagePersons.map(e => e.name).join(', ')}` : 'clean');
|
||||||
|
|
||||||
// Check Marko is stored as person (if entity extraction ran)
|
// Check Alex is stored as person (if entity extraction ran)
|
||||||
const hasMarko = mind.entityList.some(
|
const hasAlex = mind.entityList.some(
|
||||||
e => e.name.toLowerCase().includes('marko') && e.entity_type === 'person'
|
e => e.name.toLowerCase().includes('alex') && e.entity_type === 'person'
|
||||||
);
|
);
|
||||||
check('Marko extracted as person entity', hasMarko || mind.entities === 0,
|
check('Alex extracted as person entity', hasAlex || mind.entities === 0,
|
||||||
hasMarko ? 'found' : 'entity extraction may not have run');
|
hasAlex ? 'found' : 'entity extraction may not have run');
|
||||||
} else {
|
} else {
|
||||||
check('Personal mind exists', false, 'personal.mind not found');
|
check('Personal mind exists', false, 'personal.mind not found');
|
||||||
}
|
}
|
||||||
@@ -250,7 +250,7 @@ async function session3_memoryRecall() {
|
|||||||
|
|
||||||
// Check if response mentions stored facts
|
// Check if response mentions stored facts
|
||||||
const text = res.text.toLowerCase();
|
const text = res.text.toLowerCase();
|
||||||
check('Mentions name', text.includes('marko'), '');
|
check('Mentions name', text.includes('alex'), '');
|
||||||
check('Mentions age or role', text.includes('51') || text.includes('strategist'), '');
|
check('Mentions age or role', text.includes('51') || text.includes('strategist'), '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user