Skip to content

Commit 6f540de

Browse files
committed
test+docs: include 'intent' in the app-type ladder (22->23)
Add intent to app-types.test.ts (count 22->23, type list, slot-count map=9) and update the ladder-count comments in slots.ts + the test header. intent is a non-detectable type (builder-produced), alongside about/encyclopedia. 35/35 app-type tests pass.
1 parent 5ad0d82 commit 6f540de

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/core/slots.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ export function isPlaceholder(value: unknown): boolean {
136136
return false;
137137
}
138138

139-
/** App-type to active category mapping. The canonical 22-type ladder —
139+
/** App-type to active category mapping. The canonical 23-type ladder —
140140
* 20 detectable apps + `about` (non-app, 0 slots, owner-attested)
141-
* + `encyclopedia` (curated knowledge surface, FAFipedia and similar).
141+
* + `encyclopedia` (curated knowledge surface, FAFipedia and similar)
142+
* + `intent` (human-intent seed from builder.faf.one, not auto-detected).
142143
* (See v6.6.md doctrine memory + fafipedia-vs-grokipedia-architecture.)
143144
* Sorted ascending by active slot count for readability.
144145
*

tests/core/app-types.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* WJTTC — app-types canonical ladder (v6.6.0)
33
*
4-
* ENGINE: locks the 22-type ladder, slot allocation, and the universal-
4+
* ENGINE: locks the 23-type ladder, slot allocation, and the universal-
55
* category extension to small types (cli/library/mcp/frontend/
66
* data-science).
77
*
@@ -32,16 +32,17 @@ const CATEGORY_SIZES: Record<SlotCategory, number> = {
3232
enterprise_ops: 3,
3333
};
3434

35-
describe('WJTTC ENGINE: app-types canonical ladder (22 types)', () => {
36-
test('exactly 22 types defined', () => {
37-
expect(Object.keys(APP_TYPE_CATEGORIES).length).toBe(22);
35+
describe('WJTTC ENGINE: app-types canonical ladder (23 types)', () => {
36+
test('exactly 23 types defined', () => {
37+
expect(Object.keys(APP_TYPE_CATEGORIES).length).toBe(23);
3838
});
3939

4040
test('all canonical types present', () => {
4141
const expected = [
4242
// 0 slots — non-app representation (v6.6.0)
4343
'about',
4444
// 9 slots — minimal
45+
'intent',
4546
'documentation',
4647
'encyclopedia',
4748
'cli', 'library', 'sdk', 'wasm', 'html',
@@ -64,6 +65,7 @@ describe('WJTTC ENGINE: app-types canonical ladder (22 types)', () => {
6465
describe('WJTTC ENGINE: per-type slot allocation', () => {
6566
// Per v6.6.md — sorted ascending by slot count.
6667
const expectedSlotCounts: Record<string, number> = {
68+
intent: 9,
6769
documentation: 9,
6870
encyclopedia: 9,
6971
cli: 12,

0 commit comments

Comments
 (0)