Repository navigation
scratch: measure 8b@acf52151 perf rows on train-10 tip 69f51bcc (do not merge) - #5871
Closed
Daniel Meppiel (danielmeppiel) wants to merge 283 commits into
Closed
Daniel Meppiel (danielmeppiel) wants to merge 283 commits into
Daniel Meppiel (danielmeppiel) wants to merge 283 commits into
Conversation
…_helpers commands/__init__.py no longer imports deps; commands/deps/__init__.py resolves its Click commands lazily (PEP 562), which also breaks the _helpers <-> deps.cli import cycle that the eager init was hiding. apm list -f json: 565 -> 496 modules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…e named once Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…N modes Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…nked home Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ot list shown once each Notices wrap only at a terminal width; piped output keeps each notice on one line. Coverage cells for recorded rows that match no layout or are not confined render one [!] line each, and a not-confined record's raw path is never echoed (text or JSON). Renderer tests move to tests/unit/lens as unit tests; command tests patch the producer at its lookup path. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
HC-MCP-02, HC-INIT-01, HC-INVENTORY-01, HC-LOCK-01 and the marketplace list read now match whole lines on the stream their owner writes to (CRLF-normalized) or a parsed field, never a token that a path, a target list or echoed input also carries. Each oracle goes red when its emit site in src changes one word. HC-UNSUP-01 asserts the exact unsupported-primitive warning through one test constant (UNSUPPORTED_PRIMITIVES_WARNING, TODO #5797). The 8 cells the old oracle receipted on incidental output (a [!] line followed by .agents/skills) are strict known failures citing #5797, per the QL S61 sweep ruling (surprise S137); #5797 returns them to required. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…pt (#5798) A stream-specific oracle that runs after check_obligation cannot keep the step from earning coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
AQ004: the C6 (a) clone proof patched harness_contract.PROMISES. It now asks the real owner (contract.applies) for each LIST promise over a registry holding the clone, and registers the clone's reader record as one data row (setitem), as a new harness would. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reader-record table is a read-only mapping, so an in-process clone cannot join it without patching the owner. Both clone proofs now register the clone as data in a child process: (a) prints the contract's own LIST verdicts for the source and the clone; (b) collects the witness module. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…; Canvases section; exact-line pipe oracle Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ne fails loud - S137 guard: 'line in x.stdout.splitlines()' compares whole lines (S137 item 1), so it is allowed; substring tests on the raw stream stay red. - The clone child registers the reader clone whenever lens/readers/records.py exists, with no ImportError fallback, so the data-only proof cannot pass vacuously once the readers land. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Registry remote headers are stored in the list form at the overlay step, so every writer and the env-reference owner read one shape; the owner also reads both forms directly. --frozen now counts a registry server whose dependency overlay the install refused, matching the install. apm-spec-waiver: MCP owner hardening covered by the #5773 scope record; no OpenAPM requirement changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…of the same name An overlay header now replaces a registry header with the same name (case-insensitive) instead of sitting beside it, so the refusal owner and every writer see the overriding value. An empty override keeps the published header, as before. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
A registry dependency's header overlay applies only to a remote, so its refusal is excused from --frozen claims when the declared transport is remote, never for stdio, and is deferred to the payload check when no transport is declared. An env overlay still decides alone. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The overlay pairs that need the fetched payload are excused from the claim filter and the unclaimed ones seed the existing --frozen deferral; the owner applies each server's targets selection and native runtimes, as the claim filter does. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
QL ruling on S137: 'line in <stream>.splitlines()' is exact only when
splitlines() is called on the stream itself, optionally after
replace('\r\n', '\n'). Case folding, stripping or any other transform
before it stays red; planted cells pin both sides.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…target lists Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- the pi target (registry profile, catalog capability, .pi detection, skills in .agents/skills, commands in .pi/prompts, PI_CODING_AGENT_DIR user root, read verbatim), trust hint, init picker from the registry, unsupported primitive warning once, governance_dirs for unmanaged_files; - project cleanup removes only roots that do not signal their target, and only roots that do are created before a write (materializes_root); an auto_create target's merged hook config is created with its root; - the trust hint also fires for project-only .apm content; - harness conformance: every applicable Pi cell is required, HC-PLUGIN-01 .dryrun cells are required with an exact-line oracle, a known_failing section records non-required cells with a strict KnownFailure witness, PI_CODING_AGENT_DIR is scrubbed in tests/conftest.py, Pi journey variants and Pi receipts; - real-harness Pi 1.6.0 lane with the cross-spawn and minimatch overrides. apm-spec-waiver: adds the pi target as registry data on the shared target layer; no change to an OpenAPM v0.1 requirement apm-spec-waiver: policy default scan dirs now come from registry data; the existing list is byte-identical and pi adds .pi Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… the 'not qualified' label - finalize_native_plugin no longer claims native registration: the Copilot owner reports its own outcome (a refused name or fingerprint says 'not activated'), and this line names only the targets without a native Agent Plugins host. A failing-before test covers a refused plugin with pi,copilot. - The Pi status is qualified against Pi 1.6.0: the real-harness lane loads the deployed skills and prompt templates at both scopes (4/4) and every applicable Pi conformance cell is required (zero baseline), so the 'packed, not qualified' wording goes from the targets matrix and the changelog fragment. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The unsupported-primitive warning used one per-run bool shared by every flagged target, so with copilot-cowork,pi a Cowork warning for one package silenced Pi's warning for a later package. The guard is now a per-target set on InstallContext; cowork_nonsupported_warned keeps its meaning for existing callers. HC-PLUGIN-03.overlap now requires exactly one plugin skill copy, so a cell that drops the skill no longer passes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Return before touching ctx when no target is flagged, and lazily initialise unsupported_warned_targets so partial install contexts (SimpleNamespace stubs) keep working. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…o cells Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…overy (red-first) The calls table now counts discover_primitives at its owner module, so the finalize hint's full discovery of the user apm_modules shows: 15 discoveries for 14 local plugins. Parity cells pin the cheap presence check against discover_global_instructions over global, scoped-only, same-name and unparseable worlds; the hint cells patch the new seam. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…very After install -g, finalize discovered and parsed every primitive of every installed package to print one hint line. It now parses only instruction files, in discovery's order with its first-wins naming, and stops at the first global one. The hint text and trigger are unchanged. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The cell printed ssl.SSLContext's identity after calling configure_process_tls_trust(), so it could not show that importing the CLI had already injected truststore. It now reads it right after the import. Removing the import-time injection turns it red; the old line stayed green. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
apm_cli.integration hand-rolled its PEP 562 __getattr__ and __dir__. It now uses the shared owner, which gains lazy_dir so dir() still lists every export before it loads. The export set is unchanged; a cell pins that dir() names every export without loading an integrator. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Seals exist only after install imports utils.sealed_files, so the manifest and receipt readers ask through yaml_io.sealed_bytes, which returns None when the registry was never loaded, and invocation_scope resets it only when present. Read-only commands such as apm list no longer import the registry (imports.list stays 111 on the train-7 tree). verdict_record stays within its LOC budget once composed. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…it module The parity cells imported the user_root_context owner into a component module that patches that owner's symbols, tripping the AQ003/AQ004 quality ratchets. They now live in their own unit module, which patches nothing. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Re-measured install-g-14-plugins and install-g-23-plugins-repass on the train-7 tip 23a1586 with this change (scratch #5859, Linux Lifecycle Smoke run 47195071297); budget = measured + max(1, 5%). - Re-pass: copytree and normalize 23 -> 0, files_written 602 -> 58, lstat, stat, scandir, realpath and open_reads tightened. - Re-pass hashed_bytes and hash_objects raised for AUD's verification (sealed members + F1 dest digest); the redundant share is removed in slice 5 (c8ec3603 plan section 20). - Fresh lstat_calls raised for the source-tree stamp fingerprint (one lstat per apm_cli file, once per process; frozen and wheel installs stat once). At 97d4782 the same tree measured 183,956,207 / 586,664,850 hashed bytes and 24,100 / 74,006 open reads: red against these rows. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Red until integrate replays verified plugins: - the 23-plugin re-pass plans only what cannot replay (discover_primitives and planned_skill_files 23 -> 0 when unchanged); - small-world cells: an unchanged plugin plans nothing and changes no byte; a deleted or edited deployed file sends only its own package down the full path; a link-rendered member takes the full path. Guards (green today, must stay green): an edit recorded in the lock too is refused as today; a path the lock adds never gets a receipt (removal keeps the user's file); an active policy still refuses a newly denied type; a scanner-critical byte still blocks; a new sibling re-renders like a fresh install; a target change re-plans. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ing it A local skills-only plugin that resolve sealed this run skips link-resolver discovery and skill planning when its deploy is proven current (install/local_plugin_replay.py): - P3/CG1: the deployed path set is derived from the seal by the planner's own mapping (skill_preflight.skill_destinations), under this run's targets and deployment plan. - RP2/CG3: it must equal the lock row's set exactly; anything else takes the full integrate. - RP1/P7: each deployed file is read (regular, unlinked) and must hash to the sealed member digest, so a rendered member, a user edit or a missing file takes the full path. - P4: any policy in effect disables replay for the run; frozen, dry-run, --force and skill selections do too. - P5: a skill directory another package of this run deploys is never replayed. - RP5: the scanner judges the sealed bytes; any finding takes the full path, which reports it as today. - The commit gate keeps every replayed plan in its input. A replayed package records the converged full path's outcome: the same deployed values, completed reintegration and "(files unchanged)" line, and it writes nothing. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- N1 (AUD): a replayed package hands the sealed digests it verified to the lockfile phase (ctx.package_verified_hashes), which records them instead of re-reading the deployed files. That saves one read per file and closes the window between verification and the lock write. Cell: bytes swapped into a deployed file after verification are never recorded (mutant: re-read -> red). - The resolver never widens past the package root. Cell: a link into another plugin's root, which arrives in a later run, keeps the replayed render byte-equal to a fresh install. - template.dependency_deployment_plan is the one plan builder for skill preflight and replay (R0801 on the composed tree). - The changelog line is shortened. Refs #5838 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Collaborator
Author
|
Superseded by D1; re-measuring at the new head (scratch). |
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.
Measure-only scratch for #5838 slice 8b (#5870). Tree: train-10 tip 69f51bc + 8b@acf52151,
_MEASURE = True. Closed after the Lifecycle Smoke run reports. Do not merge. Refs #5838