Repository navigation
fix(1c-metadata-manage): meta-compile modules: false and ScheduledJob schedule, -ExecutionPolicy Bypass in docs and nested runs, two doc gaps - #49
Merged
Conversation
…ty module stubs meta-compile always wrote empty ObjectModule / ManagerModule / ValueManagerModule / RecordSetModule files for the types that have them, so a report on a DCS with no code needed them deleted by hand. The top-level key `modules: false` (default true) skips them without creating Ext/ for them. Module.bsl of CommonModule / HTTPService / WebService and CommandModule.bsl of CommonCommand are unaffected; existing files are never deleted. Documented in meta-dsl-spec.md and meta-manage.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ScheduledJob `schedule` Only the object properties of a ScheduledJob were written, so no tool could set a schedule and agents copied Schedule.xml from a neighbouring job. The new `schedule` key (beginTime, endTime, completionTime, beginDate, endDate, daysRepeatPeriod, weeksPeriod, repeatPeriodInDay, repeatPause, completionInterval, dayInMonth, weekDayInMonth, weekDays, months) writes the file in the Designer shape (UTF-8 BOM, CRLF, version = detected format). Without the key nothing changes. An unknown key or a bad value is refused before anything is written. DetailedDailySchedules is not supported. Regression cases cover the file, the absent key and the refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs told agents to run `powershell.exe -NoProfile -File <script>.ps1`. On a machine
with the default Restricted policy Windows PowerShell 5.1 refuses that ("running scripts
is disabled on this system"), and the only way out found in practice was adding
`-ExecutionPolicy Bypass`. Every run example in the skill docs and in /check-uuid now
carries it, and SKILL.md says why. CHANGELOG history is left as written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c_code truncation meta-compile and meta-edit give a bare `String` (and a bare attribute name) length 10, the Designer default, but meta-manage.md called it "String without qualifiers" and listed `String(100)` as the type, so agents expected an unlimited string. The docs now say String(10), name String(0) as the unlimited form and show the meta-edit modify-attribute fix. Behaviour is unchanged. check_1c_code / review_1c_code silently check only the beginning of a module larger than ONEC_AI_INPUT_MAX_LENGTH and have no line range. 1c-validate now says to run syntaxcheck_file on the whole file and give the AI validators a fragment file, and that "undefined method" findings outside the fragment are artifacts of the cut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Bypass
A child process does not carry the parent's -ExecutionPolicy Bypass, so the nested
validator started by cf-edit, interface-edit, meta-edit, role-edit, subsystem-compile and
subsystem-edit, and the batch child of meta-compile, failed on a machine whose policy
refuses scripts ("running scripts is disabled on this system") although the edit itself
ran. Every nested launch now passes the flag, the form-add / add-template hints printed by
meta-edit (both runtimes) and the validate-rules command of /doctor carry it too. A static
regression case fails on any nested -NoProfile ... -File launch without it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thank you — merged into
Results on the merge: |
comol
added a commit
that referenced
this pull request
Nov 29, 2026
…d the printed dump command; ignore local tool settings Follow-up to PR #49, which left these out ("Not changed"): - 1c-repository-manage SKILL.md and docs/repo-ops.md run examples, and the db-dump-xml command repo-ops prints after `update` receives objects (repo-ops v1.3 -> v1.4). Windows PowerShell 5.1 with the default Restricted policy refuses a plain -File run. - plugins/1c-rules/README.md: the two Windows local-check commands. The pwsh examples for Linux / macOS stay as they are: no execution policy there. .gitignore: /.ai-rules.json, /.codex/, /.cursor/ of this checkout (Cursor MCP, Codex project config, /checkupdates state) are local, not part of the ruleset. Anchored, because content/openspec-bundle/cursor/.cursor/ is tracked. Checked: repo-ops-regression 23/23, marketplace-bootstrap 8/8, validate-rules OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Five independent changes, one commit each, so any of them can be dropped or cherry-picked. Each one comes from a real task where the tool failed or misled the agent and the step had to be done another way; together they were hit 5–12 times across several 1C projects.
meta-compilev1.131ObjectModule.bsl/ManagerModule.bsl(andValueManagerModule/RecordSetModule); a DCS report without code must have none, so agents deleted the stubs by hand"modules": falseskips those stubs (noExt/just for them). Default unchanged.Module.bslof CommonModule / HTTPService / WebService andCommandModule.bslare not affected; existing files are never deletedmeta-compilev1.132ScheduledJobgets noExt/Schedule.xmland no tool can set a schedule; agents copied the file from a neighbouring jobschedulekey (beginTime,endTime,completionTime,beginDate,endDate,daysRepeatPeriod,weeksPeriod,repeatPeriodInDay,repeatPause,completionInterval,dayInMonth,weekDayInMonth,weekDays,months) writes the file in the Designer shape (UTF-8 BOM, CRLF, detected format version). Validated before any write: an unknown key or bad value exits 1 with nothing written;scheduleon another type is refused. No key → no file, as before.DetailedDailySchedulesis out of scope (documented)powershell.exe -NoProfile -File …; with the default Restricted policy of Windows PowerShell 5.1 the script does not start ("running scripts is disabled")-ExecutionPolicy Bypassin all examples ofSKILL.md,docs/*.md, tool.mdfiles andcommands/check-uuid.md; one sentence inSKILL.mdsays whycf-edit,interface-edit,meta-edit(+.pyhints),role-edit,subsystem-compile,subsystem-edit,meta-compilebatchpowershell.exe -NoProfile -File …without the flag. Under pwsh 7 (RemoteSigned by default) the parent runs, but the child Windows PowerShell 5.1 has its own policy (Restricted) and the auto-validation fails after a successful edit-ExecutionPolicy Bypasson every nested-Filelaunch, also in the hint strings andcommands/doctor.md; a static regression case checks that no nested launch undertools/lacks itmeta-manage.mdpromised "String without qualifiers" for a bare attribute, butmeta-compile/meta-editgiveString(10)(like Designer); agents expected an unlimited string.1c-validatedid not say thatcheck_1c_codechecks only the beginning of a module longer than the server input limit (a 5108-line module was checked for lines 1–2398)String=String(10), unlimited =String(0), and how to fix an existing attribute;1c-validate/SKILL.mdsays how to check a large module (syntaxcheck_fileon the whole file,check_1c_code/review_1c_codeon a fragment)Each script change has its
CHANGELOG.mdentry (Local 2026-11-25) and a version bump with aLocalline in the script header.Checked
tools/tests/metadata-tools-regression.ps1: 94/97 on 44c3d6b → 99/102. Five new cases:modules: falsevs default (plus CommonModule and a bad value),Schedule.xmlbytes and attributes, no file withoutschedule, refusal of four invalid schedules with nothing written, nested launches carry-ExecutionPolicy. Four of them fail on the old scripts (the "noschedule→ no file" case guards the old behaviour). The 2 remaining failures (Invoke-1CEdit: -Preview restores the tree byte-for-byte (copy backend),Invoke-1CEdit: a clean preview outside git exits 0…) are the same on 44c3d6b and unrelated.tools/tests/python-ports-regression.py: 69/70 (1 skipped) before and after.tools/validate-rules.ps1,tools/tests/vendored-drift.ps1: OK.db-create→cf-init(2.17) →meta-compileof a CommonModule, a ScheduledJob withschedule(08:15, Mon–Fri, every 600 s) and a Report withmodules: false→meta-validate/cf-validate→db-load-xml→db-update→db-dump-xml. All exit 0; the dumpedSchedule.xmlis byte-identical to the generated one, the dumped report has no module files.pwsh -NoProfile -File meta-edit.ps1 … add-attributewith Windows PowerShell 5.1 policy Undefined (= Restricted) and no inheritedPSExecutionPolicyPreference: exit 1 with "meta-validate.ps1 cannot be loaded because running scripts is disabled" on 44c3d6b, exit 0 with "Validation OK" on this branch.Not changed
1c-repository-managedocs and the repositoryREADME.mdfiles still showpowershell -NoProfile -File.meta-edithas no operation to change the schedule of an existing job;meta-compile -Forcerewrites it.🤖 Generated with Claude Code