Repository navigation
id(web): keep rebuilt-node checks permissive for out-of-schema base content (#1618 follow-up) - #16818
Merged
Merged
Conversation
…ontent (#1618) A base document the server produced itself can hold nodes outside the active schema (Document::new's raw-mode paragraph is the live example, and the concurrency tests apply steps to it). A child a step could never introduce — check_step refuses out-of-schema slice nodes first — now exempts its parent from the expression match instead of poisoning every step against that base, matching the permissive stance document_content_size has always taken. Schema-known children are still fully checked, marks included.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
3 of 5 tasks
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.
Follow-up to #16787, which merged at c7aaf47 before this fix landed (the branch was recreated by the push that carried it).
#16787's rebuilt-node
validContentchecks held every rebuilt node to the active schema's content expression in full. That is too strict for base documents the server produced itself:Document::newbuilds a raw-mode document holding aparagraph— outside the raw schema — and the #2968 concurrency tests apply steps to it. Holding the document node tocode_block+there refuses every step against that base.This change matches the module's established permissive stance for base content (
document_content_size): a child outside the schema — which a step itself can never introduce, sincecheck_steprefuses out-of-schema slice nodes before application — exempts its parent from the expression match, while schema-known children are still fully checked, marks included. Includes a regression test covering both the permissive base and a fully-checked raw document.Verification: fleet-command run 46271653113 (
cargo test -p id-web) runs against this branch's head, which is #16787's tree plus exactly this diff.Refs #1618
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T14:15:00Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/workspace/github-work/w0647-l03", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/workspace/github-work/w0647-l03", "repo": "developing-today/code", "branch": "xaltha/1618-collab-apply-validation", "sha": "fd12669df4e07c9cb715336e62983b76010c3fd6" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.