Skip to content

feat(authoring) (3/5): fix loop and publish-pipeline integration - #2

Open
zjncs wants to merge 2 commits into
feat/authoring-runtimefrom
feat/authoring-fix-publish
Open

zjncs wants to merge 2 commits into
feat/authoring-runtimefrom
feat/authoring-fix-publish

Conversation

@zjncs

@zjncs zjncs commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Layer (c) of the authoring platform split (iflytek#934 on iflytek/skillhub), stacking on the runtime layer (fork PRs until iflytek#935 lands upstream).

What this layer adds

  • Fix loop: apply a finding's suggested patch to the draft in one call — sha256-guarded old content, revision bump, validation verdict invalidated by the new revision — or dismiss it as not applicable (POST /runs/{id}/findings/{fid}/apply|dismiss)
  • Submission: POST /drafts/{id}/submit hands a validated draft to the existing SkillHub publish pipeline. The gate is strict: the draft's current revision must be bound to a validation run that succeeded with zero errors, so content can never be published without the exact bytes that were validated. Reuses SkillPublishService (package re-validation, security scan, review flow) and records the resulting skill id on the draft.

Verification

AuthoringFlowIntegrationTest (Testcontainers PostgreSQL, mocked publish pipeline): create → edit files → bind runtime → three-layer validation → apply a suggested fix → revision bump + verdict invalidation → re-validate → submit. 9 files, +680 lines — the thinnest layer of the stack.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 06:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zjncs
zjncs force-pushed the feat/authoring-runtime branch from fc75d54 to f1ebf3c Compare October 12, 2026 03:25
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from 73871fd to 6fe094f Compare October 12, 2026 03:27
@zjncs
zjncs force-pushed the feat/authoring-runtime branch from f1ebf3c to d47fa5a Compare October 13, 2026 13:03
@zjncs zjncs closed this Oct 13, 2026
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from 6fe094f to d47fa5a Compare October 13, 2026 13:03
@zjncs zjncs reopened this Oct 13, 2026
@zjncs
zjncs force-pushed the feat/authoring-runtime branch from d47fa5a to 921dc03 Compare October 14, 2026 14:22
@zjncs zjncs closed this Oct 14, 2026
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from 42bfae1 to 921dc03 Compare October 14, 2026 14:22
@zjncs zjncs reopened this Oct 14, 2026
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from 7826966 to 65c048d Compare October 14, 2026 14:45
@zjncs
zjncs force-pushed the feat/authoring-runtime branch from 140f9d9 to b63c92d Compare October 14, 2026 14:55
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch 2 times, most recently from fa41aef to b03d08d Compare October 14, 2026 15:08
@zjncs
zjncs force-pushed the feat/authoring-runtime branch 2 times, most recently from 547cf08 to ca41950 Compare October 15, 2026 06:13
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from b03d08d to cb73e2f Compare October 15, 2026 06:13
@zjncs
zjncs force-pushed the feat/authoring-runtime branch from 6e38cfc to cf50f0f Compare October 15, 2026 16:56
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from cb73e2f to 397b1ff Compare October 15, 2026 16:58
@zjncs
zjncs force-pushed the feat/authoring-runtime branch from cf50f0f to 831e58d Compare October 17, 2026 03:37
zjncs added 2 commits October 17, 2026 11:38
Layer (c) of the authoring platform (iflytek#934), stacking on the runtime
layer:

- **Fix loop**: apply a finding's suggested patch to the draft in one
  call (sha256-guarded old content, revision bump, validation verdict
  invalidated by the new revision) or dismiss it as not applicable
- **Submission**: validated drafts submit into the existing SkillHub
  publish pipeline — the gate is strict (the draft's current revision
  must be bound to a run that succeeded with zero errors), so content
  can never be published without the exact bytes that were validated;
  reuses SkillPublishService (package re-validation, security scan,
  review flow) and records the resulting skill id on the draft

Verified by the full authoring flow integration test: create → edit →
bind runtime → three-layer validation → fix a finding → re-validate →
submit into the (mocked) publish pipeline.

Signed-off-by: zjncs <18910855655@163.com>
Adds the finding apply/dismiss and draft submit endpoints on top of the
runtime-layer schema.

Signed-off-by: zjncs <18910855655@163.com>
@zjncs
zjncs force-pushed the feat/authoring-fix-publish branch from 397b1ff to f646210 Compare October 17, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants