Repository navigation
interview: конструктор — алгоритм из блоков с проверкой по эталону - #43
Merged
Merged
Conversation
…ed against the reference without AI - content: optional build: block (kind: sequence) — steps in reference order with nesting, plus distractors; the importer puts shuffled pieces into the question and the solution into the answer after the gist - frontend: SequenceBuilder on dnd-kit (mouse/touch drag, tap to add, row buttons, Alt+arrows, Delete, aria-live announcements), BuildPanel with deterministic LCS score -> passed/partial/failed, first submit locks the grade, peeking before submit fails the question - Bit announces the constructor and reacts to the score; GradeScale shows build hints - two questions: valid parentheses, number of islands
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Новый тип задания в режиме собеседования — конструктор: кандидат собирает алгоритм из блоков (задача Парсонса) вместо текстового ответа. Расставляет порядок и вложенность, отвлекающие блоки оставляет в стороне.
Данные
build:(kind: sequence). Шаги пишутся в правильном порядке сindent0–3, отдельно идутdistractors.constructorс перемешанными кусками. Позиций и вложенности там нет, порядок стабилен между импортами.ContentBlock. Загрузчик и валидатор проверяют формат.docs/content.md.Интерфейс сборки (
SequenceBuilder, @dnd-kit)Проверка и уровень
floor(10 × НОП(сборка, эталон) / n), где НОП — наибольшая общая подпоследовательность. Минус 1 за каждую ошибку вложенности, минус 2 за каждый лишний блок.levelFromScore: 8–10 «Прошёл», 5–7 «Частично», 0–4 «Не прошёл».GradeScale(«Сборка: 9/10») и в прогрессе (mastery).Не вошло (следующие PR на том же формате)
mode: with_text: конструктор рядом с текстовым ответом, итог — среднее балла сборки и балла ИИ.kind: schema: таблицы, поля, связи.kind: graph: архитектурная схема.Скриншоты
Сборка на десктопе: блоки слева, решение справа, Бит объявил формат, шкала с подсказками для сборки:




После сдачи: 9/10 «Прошёл», строка с неверной вложенностью помечена:
Ширина 375px:
Проверки
vitest: 152 теста, из них новые —sequence.test.ts,BuildPanel.test.tsxи дополнения вsession.test.ts.eslint,tsc -b,vite build,size-limit— без ошибок.pytest: 387 тестов, из них новые —tests/test_content_constructor.py.ruffбез замечаний.test_schemathesisлокально не запускал.