Initial SQL-only 1C adapter baseline

This commit is contained in:
2026-07-22 03:03:47 +03:00
commit e2503b77e7
545 changed files with 184711 additions and 0 deletions
@@ -0,0 +1,30 @@
{
"schema_version": 1,
"source": {
"name": "synthetic-example",
"environment": "example",
"configuration_name": "Demo",
"configuration_version": "0.0.1"
},
"created_at": "2026-06-19",
"modules": [
{
"module_id": "catalog.Номенклатура.object",
"object_kind": "catalog",
"object_name": "Номенклатура",
"module_type": "object",
"content_hash": "example",
"content": "Процедура ПередЗаписью(Отказ) Экспорт\n Если Не ЗначениеЗаполнено(Наименование) Тогда\n Отказ = Истина;\n КонецЕсли;\nКонецПроцедуры",
"procedures": [
{
"name": "ПередЗаписью",
"export": true,
"line": 1,
"params": ["Отказ"]
}
],
"functions": [],
"references": ["Наименование"]
}
]
}
@@ -0,0 +1,68 @@
{
"schema_version": 2,
"source": {
"name": "synthetic-example-v2",
"environment": "example",
"configuration_name": "Demo",
"configuration_version": "0.0.1",
"platform_version": "8.3"
},
"created_at": "2026-06-19",
"objects": [
{
"kind": "catalog",
"name": "Номенклатура",
"full_name": "Справочник.Номенклатура",
"synonym": "Номенклатура",
"attributes": [
{ "name": "Артикул", "type": "Строка", "synonym": "Артикул", "indexed": true },
{ "name": "ВидНоменклатуры", "type": "СправочникСсылка.ВидыНоменклатуры" }
],
"tabular_sections": [
{
"name": "Цены",
"attributes": [
{ "name": "ТипЦен", "type": "СправочникСсылка.ТипыЦен" },
{ "name": "Цена", "type": "Число" }
]
}
],
"forms": [
{ "name": "ФормаЭлемента" },
{ "name": "ФормаСписка" }
],
"modules": [
{ "module_id": "catalog.Номенклатура.object", "module_type": "object", "name": "Модуль объекта" }
]
}
],
"access": {
"users": [
{ "id": "user.ivanov", "name": "Иванов И.И.", "active": true, "groups": ["group.sales"] }
],
"groups": [
{ "id": "group.sales", "name": "Менеджеры продаж", "profiles": ["profile.sales"] }
],
"profiles": [
{ "id": "profile.sales", "name": "Продажи", "roles": ["role.sales.orders"] }
],
"roles": [
{
"id": "role.sales.orders",
"name": "ДобавлениеИзменениеЗаказовКлиентов",
"permissions": [
{ "object": "Document.ЗаказКлиента", "actions": ["read", "create", "update", "post"] },
{ "object": "Catalog.Контрагенты", "actions": ["read"] }
]
}
],
"data_restrictions": [
{
"subject_type": "group",
"subject_id": "group.sales",
"dimension": "Организация",
"values": ["Ромашка ООО"]
}
]
}
}
@@ -0,0 +1,60 @@
{
"schema_version": 1,
"source": {
"name": "synthetic-example",
"environment": "example",
"notes": "Synthetic metadata snapshot for tooling checks."
},
"created_at": "2026-06-18",
"objects": [
{
"kind": "catalog",
"name": "Номенклатура",
"synonym": "Номенклатура",
"description": "Синтетический пример справочника.",
"attributes": [
{
"name": "Артикул",
"type": "Строка",
"synonym": "Артикул"
},
{
"name": "ВидНоменклатуры",
"type": "СправочникСсылка.ВидыНоменклатуры",
"synonym": "Вид номенклатуры"
}
],
"tabular_sections": [
{
"name": "Цены",
"synonym": "Цены",
"attributes": [
{
"name": "ТипЦен",
"type": "СправочникСсылка.ТипыЦен"
},
{
"name": "Цена",
"type": "Число"
}
]
}
]
},
{
"kind": "document",
"name": "РеализацияТоваровУслуг",
"synonym": "Реализация товаров и услуг",
"attributes": [
{
"name": "Контрагент",
"type": "СправочникСсылка.Контрагенты"
},
{
"name": "Организация",
"type": "СправочникСсылка.Организации"
}
]
}
]
}
@@ -0,0 +1,278 @@
{
"schema": "codex_1c_moxel_schema_registry.v1",
"generated_at": "2026-06-27T15:19:20Z",
"sources": [
"reports\\1c-template-probes\\upo_test_auto_moxel_schema_discovery.json",
"reports\\1c-template-baselines\\Primer3_moxel_schema_discovery.json",
"reports\\1c-template-baselines\\moxel-named-range-rules.json"
],
"policy": {
"read_use": "Only verified_read rules may be used as decoder behavior without additional diagnostics.",
"write_use": "All MOXCEL write rules are blocked until a disposable-base round-trip proves exact behavior."
},
"rules": [
{
"id": "inline_text_column_from_last_preceding_scalar_plus_one",
"target": "moxel.inline_text_cell.column",
"expression": "one_based_column = int(last_numeric(preceding_scalars)) + 1",
"raw_scalar_indexes": null,
"confidence": "high",
"read_status": "verified_read",
"write_status": "blocked_until_roundtrip",
"evidence": {
"ok": 16,
"total": 16
},
"source_rule": {
"id": "inline_text_column_from_last_preceding_scalar_plus_one",
"target": "moxel.inline_text_cell.column",
"expression": "one_based_column = int(last_numeric(preceding_scalars)) + 1",
"confidence": "high",
"evidence": {
"ok": 16,
"total": 16
},
"samples": [
{
"text": "3-7",
"style_tree_position": "$.20",
"expected_col": 7,
"predicted_col": 7,
"ok": true,
"preceding_last": 6,
"current_decoded_col": 7
},
{
"text": "4-6",
"style_tree_position": "$.27",
"expected_col": 6,
"predicted_col": 6,
"ok": true,
"preceding_last": 5,
"current_decoded_col": 6
},
{
"text": "10-2",
"style_tree_position": "$.60",
"expected_col": 2,
"predicted_col": 2,
"ok": true,
"preceding_last": 1,
"current_decoded_col": 2
},
{
"text": "10-3",
"style_tree_position": "$.62",
"expected_col": 3,
"predicted_col": 3,
"ok": true,
"preceding_last": 2,
"current_decoded_col": 3
},
{
"text": "10-4",
"style_tree_position": "$.64",
"expected_col": 4,
"predicted_col": 4,
"ok": true,
"preceding_last": 3,
"current_decoded_col": 4
},
{
"text": "11-2",
"style_tree_position": "$.69",
"expected_col": 2,
"predicted_col": 2,
"ok": true,
"preceding_last": 1,
"current_decoded_col": 2
},
{
"text": "11-3",
"style_tree_position": "$.71",
"expected_col": 3,
"predicted_col": 3,
"ok": true,
"preceding_last": 2,
"current_decoded_col": 3
},
{
"text": "11-4",
"style_tree_position": "$.73",
"expected_col": 4,
"predicted_col": 4,
"ok": true,
"preceding_last": 3,
"current_decoded_col": 4
},
{
"text": "12-1",
"style_tree_position": "$.78",
"expected_col": 1,
"predicted_col": 1,
"ok": true,
"preceding_last": 0,
"current_decoded_col": 1
},
{
"text": "12-2",
"style_tree_position": "$.80",
"expected_col": 2,
"predicted_col": 2,
"ok": true,
"preceding_last": 1,
"current_decoded_col": 2
},
{
"text": "12-3",
"style_tree_position": "$.82",
"expected_col": 3,
"predicted_col": 3,
"ok": true,
"preceding_last": 2,
"current_decoded_col": 3
},
{
"text": "12-4",
"style_tree_position": "$.84",
"expected_col": 4,
"predicted_col": 4,
"ok": true,
"preceding_last": 3,
"current_decoded_col": 4
},
{
"text": "17-2",
"style_tree_position": "$.89",
"expected_col": 2,
"predicted_col": 2,
"ok": true,
"preceding_last": 1,
"current_decoded_col": 2
},
{
"text": "18-4",
"style_tree_position": "$.94",
"expected_col": 4,
"predicted_col": 4,
"ok": true,
"preceding_last": 3,
"current_decoded_col": 4
},
{
"text": "18-5",
"style_tree_position": "$.96",
"expected_col": 5,
"predicted_col": 5,
"ok": true,
"preceding_last": 4,
"current_decoded_col": 5
},
{
"text": "18-6",
"style_tree_position": "$.98",
"expected_col": 6,
"predicted_col": 6,
"ok": true,
"preceding_last": 5,
"current_decoded_col": 6
}
]
}
},
{
"id": "moxel_rule_2",
"target": "moxel.named_range.left",
"expression": "one_based = int(raw_scalar) + 1",
"raw_scalar_indexes": [
2,
4
],
"confidence": "medium",
"read_status": "candidate_read",
"write_status": "blocked_until_verified_read",
"evidence": {},
"source_rule": {
"target": "moxel.named_range.left",
"raw_scalar_indexes": [
2,
4
],
"expression": "one_based = int(raw_scalar) + 1",
"confidence": "medium"
}
},
{
"id": "moxel_rule_3",
"target": "moxel.named_range.right",
"expression": "one_based = int(raw_scalar) + 1",
"raw_scalar_indexes": [
2,
4
],
"confidence": "medium",
"read_status": "candidate_read",
"write_status": "blocked_until_verified_read",
"evidence": {},
"source_rule": {
"target": "moxel.named_range.right",
"raw_scalar_indexes": [
2,
4
],
"expression": "one_based = int(raw_scalar) + 1",
"confidence": "medium"
}
},
{
"id": "moxel_rule_4",
"target": "moxel.named_range.top",
"expression": "one_based = int(raw_scalar) + 1",
"raw_scalar_indexes": [
3,
5
],
"confidence": "medium",
"read_status": "candidate_read",
"write_status": "blocked_until_verified_read",
"evidence": {},
"source_rule": {
"target": "moxel.named_range.top",
"raw_scalar_indexes": [
3,
5
],
"expression": "one_based = int(raw_scalar) + 1",
"confidence": "medium"
}
},
{
"id": "moxel_rule_5",
"target": "moxel.named_range.bottom",
"expression": "one_based = int(raw_scalar) + 1",
"raw_scalar_indexes": [
3,
5
],
"confidence": "medium",
"read_status": "candidate_read",
"write_status": "blocked_until_verified_read",
"evidence": {},
"source_rule": {
"target": "moxel.named_range.bottom",
"raw_scalar_indexes": [
3,
5
],
"expression": "one_based = int(raw_scalar) + 1",
"confidence": "medium"
}
}
],
"counts": {
"rules": 5,
"verified_read": 1,
"candidate_read": 4,
"write_enabled": 0
}
}
+96
View File
@@ -0,0 +1,96 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://local.llm.platform/schemas/1c-metadata-snapshot.schema.json",
"title": "1C Metadata Snapshot",
"type": "object",
"required": ["schema_version", "source", "created_at", "objects"],
"properties": {
"schema_version": {
"type": "integer",
"const": 1
},
"source": {
"type": "object",
"required": ["name"],
"properties": {
"name": { "type": "string" },
"environment": { "type": "string" },
"notes": { "type": "string" }
},
"additionalProperties": true
},
"created_at": {
"type": "string"
},
"objects": {
"type": "array",
"items": {
"type": "object",
"required": ["kind", "name"],
"properties": {
"kind": {
"type": "string",
"enum": ["catalog", "document", "register", "common_module", "enum", "report", "processing", "other"]
},
"name": { "type": "string" },
"synonym": { "type": "string" },
"description": { "type": "string" },
"attributes": {
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"synonym": { "type": "string" },
"description": { "type": "string" }
},
"additionalProperties": true
}
},
"tabular_sections": {
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"properties": {
"name": { "type": "string" },
"synonym": { "type": "string" },
"attributes": {
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"synonym": { "type": "string" }
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
},
"access": {
"type": "object",
"description": "Optional normalized access-rights snapshot for users, access groups, profiles, roles, permissions, and data restrictions.",
"properties": {
"users": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
"groups": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
"profiles": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
"roles": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
"data_restrictions": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
"assignments": { "type": "array", "items": { "type": "object", "additionalProperties": true } }
},
"additionalProperties": true
}
},
"additionalProperties": true
}
+1
View File
@@ -0,0 +1 @@