Generic runtime cannot extract Svelte/Vue embedded TS/JS; generation-0 refusals are hidden as accepted empty facts #424

Closed
opened 2026-10-23 10:52:51 +02:00 by buildagent · 3 comments
Member

Field report from TimeLineE4, independently reproduced on official 0.41.12 (49068746) with signed Svelte 0.2.0. Related: #275 (closed foundation), #119 and #279.

An App.svelte fixture with <script lang="ts">function greet() { return 1; }</script> is reparsed by a fresh one-shot index after approval. It ends with no symbols. file_contributions records package refused: fact.language_not_owned (no compiled-in extractor claims .ts in this build) under generation_id=0, while active generation=2. The previous builtin/text contribution remains under generation=1.

The partner has the same witness: active generation=3, previous contribution generation=2, refusal generation=0. Census: 501 .ts refusals and 10 .js refusals across Svelte contributions. Its approved TypeScript package is de.h-dv.typescript 0.1.3. file_outline nevertheless reports facts.state=accepted with no diagnostics, and index_coverage reports code with empty coverage_reasons/extraction_diagnostics.

Root dispatch witness: crates/indexer/src/embedded.rs::delegate only selects from &[Arc<dyn LanguagePlugin>] compiled-in extractors. The production generic runtime has those extractors disabled. Svelte 0.2.0 deliberately emits embedded-region requests, and C1 explicitly does not grade host-produced embedded facts. A cold rebuild or extra bridge grant cannot supply an absent extractor.

Required behavior: support embedded extraction through the versioned language-plugin path, retaining delegation attribution to the OUTER package, scope, authority, region and cost limits. Do not restore language-specific builtin parsers to the generic production runtime. If a necessary producer is unavailable, refuse explicitly and expose that refusal on the CURRENT generation's outline/coverage; never present accepted empty facts. Add a no-default-features / actual shipped-layout end-to-end test, including installed TS owner, missing producer, and negative authority/region controls. Preserve existing safety constraints and avoid an unrelated framework rewrite.

The partner preserved its DB/logs and has not deleted/rebuilt them. Local fixture: /tmp/cosi-svelte-04112-repro; file_contributions contains the exact refusal.

Field report from TimeLineE4, independently reproduced on official 0.41.12 (49068746) with signed Svelte 0.2.0. Related: #275 (closed foundation), #119 and #279. An App.svelte fixture with `<script lang="ts">function greet() { return 1; }</script>` is reparsed by a fresh one-shot index after approval. It ends with no symbols. `file_contributions` records `package refused: fact.language_not_owned (no compiled-in extractor claims .ts in this build)` under generation_id=0, while active generation=2. The previous builtin/text contribution remains under generation=1. The partner has the same witness: active generation=3, previous contribution generation=2, refusal generation=0. Census: 501 .ts refusals and 10 .js refusals across Svelte contributions. Its approved TypeScript package is de.h-dv.typescript 0.1.3. `file_outline` nevertheless reports facts.state=accepted with no diagnostics, and `index_coverage` reports code with empty coverage_reasons/extraction_diagnostics. Root dispatch witness: `crates/indexer/src/embedded.rs::delegate` only selects from `&[Arc<dyn LanguagePlugin>]` compiled-in extractors. The production generic runtime has those extractors disabled. Svelte 0.2.0 deliberately emits embedded-region requests, and C1 explicitly does not grade host-produced embedded facts. A cold rebuild or extra bridge grant cannot supply an absent extractor. Required behavior: support embedded extraction through the versioned language-plugin path, retaining delegation attribution to the OUTER package, scope, authority, region and cost limits. Do not restore language-specific builtin parsers to the generic production runtime. If a necessary producer is unavailable, refuse explicitly and expose that refusal on the CURRENT generation's outline/coverage; never present accepted empty facts. Add a no-default-features / actual shipped-layout end-to-end test, including installed TS owner, missing producer, and negative authority/region controls. Preserve existing safety constraints and avoid an unrelated framework rewrite. The partner preserved its DB/logs and has not deleted/rebuilt them. Local fixture: /tmp/cosi-svelte-04112-repro; file_contributions contains the exact refusal.
Author
Member

Source clarification: contributions::LIVE == 0 is intentional since m0075 (#307); it labels the live projection independently of the active generation id. Do NOT fix this by restamping live rows to generation 3 or by changing generation ownership. The demonstrated defect is that a refusal in the live projection is not exposed by outline/coverage. Readers must use the canonical live_label/live_label_opt rule. Partner SQL confirms the exact refusal even with an approved TypeScript package active.

Source clarification: `contributions::LIVE == 0` is intentional since m0075 (#307); it labels the live projection independently of the active generation id. Do NOT fix this by restamping live rows to generation 3 or by changing generation ownership. The demonstrated defect is that a refusal in the live projection is not exposed by outline/coverage. Readers must use the canonical live_label/live_label_opt rule. Partner SQL confirms the exact refusal even with an approved TypeScript package active.
Author
Member

PR #426 fixes the live-refusal disclosure part only. A fresh parser-free four-binary reproduction with the published signed Svelte 0.2.0 package produces a real generation-0 fact.language_not_owned refusal while files.parse_error is NULL; the candidate now reports facts.refused in file_outline and facts_refused/fact_validator in index_coverage. Pending/superseded refusals do not contaminate the live verdict, and unreadable contribution data does not become accepted.

Embedded TS/JS extraction itself remains unresolved and this issue must stay open. Enabling package-to-package dispatch also needs extraction-grant composition, a bounded whole-file budget, nested-region refusal and invalidation of wrapper facts when the embedded producer changes or disappears. Restoring native parsers to the generic runtime would bypass the intended plugin boundary. The release notes for #426 will state this remaining limit.

PR #426 fixes the live-refusal disclosure part only. A fresh parser-free four-binary reproduction with the published signed Svelte 0.2.0 package produces a real generation-0 fact.language_not_owned refusal while files.parse_error is NULL; the candidate now reports facts.refused in file_outline and facts_refused/fact_validator in index_coverage. Pending/superseded refusals do not contaminate the live verdict, and unreadable contribution data does not become accepted. Embedded TS/JS extraction itself remains unresolved and this issue must stay open. Enabling package-to-package dispatch also needs extraction-grant composition, a bounded whole-file budget, nested-region refusal and invalidation of wrapper facts when the embedded producer changes or disappears. Restoring native parsers to the generic runtime would bypass the intended plugin boundary. The release notes for #426 will state this remaining limit.
Author
Member

Released in v0.41.14 through #428 (ea08d164). All ten jobs in the release workflow passed.

Independent downloaded-artifact checks passed: signed core/channel catalogs, all four archive hashes, unchanged signed bundled packages, and retention of all 32 channel versions. The shipped Linux binaries passed Svelte JS/TS and Vue TS extraction, template bindings, watch/restart, base-side deletion, and missing-producer refusal followed by live repair. A database created by official v0.41.13 binaries/packages upgraded successfully without deletion; its old refusal cleared and its template handler bound to its TypeScript declaration.

The shipped runtime also indexed its own released source to ready: 1,348 files, 26,487 symbols, zero parse errors, extraction diagnostics or grant refusals.

After upgrading core, restart the project daemon/MCP session and allow the initial cache rebuild to complete (schema 89, host extraction epoch 4). Database deletion is unnecessary.

Released in [v0.41.14](https://git.h-dv.de/h-dv/code-index/releases/tag/v0.41.14) through #428 (`ea08d164`). All ten jobs in the [release workflow](https://git.h-dv.de/h-dv/code-index/actions/runs/1598) passed. Independent downloaded-artifact checks passed: signed core/channel catalogs, all four archive hashes, unchanged signed bundled packages, and retention of all 32 channel versions. The shipped Linux binaries passed Svelte JS/TS and Vue TS extraction, template bindings, watch/restart, base-side deletion, and missing-producer refusal followed by live repair. A database created by official v0.41.13 binaries/packages upgraded successfully without deletion; its old refusal cleared and its template handler bound to its TypeScript declaration. The shipped runtime also indexed its own released source to ready: 1,348 files, 26,487 symbols, zero parse errors, extraction diagnostics or grant refusals. After upgrading core, restart the project daemon/MCP session and allow the initial cache rebuild to complete (schema 89, host extraction epoch 4). Database deletion is unnecessary.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index#424
No description provided.