Repository navigation
#140 co-core 0.38.0 → 0.51.1; drop the soupsieve override; store_reporting - #149
Open
gregoryfoster wants to merge 12 commits into
Open
gregoryfoster wants to merge 12 commits into
gregoryfoster wants to merge 12 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pin co-core, co-core-aio and co-core-sync ==0.51.1, and re-lock with
--upgrade-package for those three plus soupsieve. Nothing else moved: still 64
packages, every co-core source still the co-pypi index.
- Remove soupsieve's override-dependencies. co-core >=0.46.1 declares
soupsieve>=4.1,<5 itself (cannobserv#667). test_lock_floors holds that floor as
co-core's own (CO_CORE_FLOORED). OVERRIDDEN is empty, and one test holds
override-dependencies to exactly its names.
- soupsieve 4.1.1 → 4.1.3 rides along (upstream's further quadratic-time fixes).
LOCAL_GENERATION stays 4, so processor_version = 0.51.1+4.
- Parity: 7 cases for include_description (cannobserv#559). Goldens regenerated
from co-core. The generator's list is only the added cases, and no existing
digest moved:
co-core 0.51.1: 7 moved
feed_atom_include_description: added
feed_rss_include_description: added
feed_rss_include_description_false: added
refused_include_description_not_bool: added
refused_include_description_on_css: added
refused_include_description_on_html: added
refused_include_description_on_non_feed_xml: added
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
co-core's store_reporting (cannobserv#530, v0.41.0), adopted at this bump as the epic recorded. The handler stores through the twin and takes .uri for the fact. A stored output's outcome record logs output_created. It's a log signal, never a branch: GCS is exact only on True, the filesystem only on False. The field isn't named `created`: that's a LogRecord attribute, so logging it as extra raises KeyError. The scratch-bus consumer tests caught that. A handler test now holds every record field clear of LogRecord's attributes. FlakyStore's output case injects on store_reporting, and a test holds that the handler never calls plain store. Spec Section 4 amended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The spec's 2026-11-23 entry gains the bump: pin 0.51.1, 0.51.1+4, the override removed, soupsieve 4.1.3, and include_description with its new refusals. Changed sections: - D5 and the Dependencies row; - the failure table's refusal list; - §5: the 0.38.0 → 0.51.1 catch-up, and where the override went; - the pin test, the quick reference heading and its Stores row; - open question 2's range. soupsieve 4.1.1 → 4.1.3 on co-core 0.51.1: 311 HTML files × 34 selector configs, 10,574 runs per version, identical run for run. DEPENDENCIES.md: step 1 names CO_CORE_FLOORED, plus a "Since #140" entry. DEPLOYMENT.md § Operate: output_created. AGENTS.md: ==0.51.1, no growth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A refused golden records only the exception type, so each new refusal's reason is pinned here. Also a behaviour test: true appends the description, and false gives the plain feed line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OVERRIDDEN and CO_CORE_FLOORED name floors in FLOORS, and never the same one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As numbers, >=4.1rc1 read as floored at 4.1, <=4.1rc1 as admitting it, and ==4.1.* as admitting it; >=4.1.dev0 raised a bare ValueError. _admits (#138) and _floors now parse each clause with packaging. They read a plain release exactly, ==, === and ~= included, and fail with "read it by hand" on a pre-, dev-, post- or local version or a wildcard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
opentelemetry_api and opentelemetry-api are one package. An entry with no name now fails as an invalid requirement, not with AttributeError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Absent or false, the extracted text is byte-identical, but spec_fingerprint hashes the whole spec. The false golden shows it: same content_fingerprint as feed_rss, different spec_fingerprint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The record carries it (__main__.py), and a co-core bump's live check reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 of 57 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.
Refs #140 (the live checks remain after the merge). Plan:
docs/plans/2026-11-23-140-co-core-0.51.1.md. Brief: comment 7107994788; corrections: comment 7110222346.What changes
0.38.0 → 0.51.1.processor_versionbecomes0.51.1+4.LOCAL_GENERATIONstays 4, because this is a co-core bump.soupsieve>=4.1,<5itself.test_lock_floors:OVERRIDDENis now empty, and one test holdsoverride-dependenciesto exactly its names.CO_CORE_FLOORED), and a test fails if a later co-core lowers it.sourceis the co-pypi index.store_reporting(cannobserv#530):output_created. It's a log signal only: GCS is exact ontrue, the filesystem onfalse.created, which is aLogRecordattribute. The scratch-bus consumer tests failed withKeyErroron that name, and a guard test now covers it.==0.51.1, no growth).Bump note
Contract: unchanged, so Watcher gets notice, not coordination.
ContentProcessCommand,ProcessingComplete{Emit,Event},ProcessingFailed{Emit,Event},ProcessingFailureReasonandContentDerivedEventare AST-identical between v0.38.0 and v0.51.1, docstrings included.canonical_text,spec_fingerprint,dispatch,media_type, the envelope andco_core_aio.busare unchanged in code.streams.pychanges only in its docstring.Goldens (
scripts/gen_parity_goldens.py, from co-core directly). No existing digest moved; only the new cases were added:Real corpus: passes unchanged.
tests/test_child.py's whole-corpus test passes underrequired(Landlock ABI 6, locally).New refusals (cannobserv#559), each a terminal
extraction_error. Each one used to extract silently, as if the key were absent:include_description;trueon any algorithm butfull_page;trueon an HTML, PDF, CSV/Excel or JSON body;trueon a non-feed XML root.No live spec sets the key, because Archiver's schema refuses it until after this deploy.
soupsieve 4.1.1 → 4.1.3, measured as #138 did:
HtmlExtractor, thencanonical_text_fingerprint. Inputs: 311 HTML files (the parity HTML, the 9 real-corpus blobs, every HTML file over 3 KB onco-processor) × 34 selector configs (Lock advisories: soupsieve 4.1 (extraction child, override past co-core 0.38.0's cap; LOCAL_GENERATION +4) and opentelemetry-api 1.45.2 #138's two:has()shapes and the real specs among them), so 10,574 runs per version. The two venvs differ in soupsieve alone, with 30 s per run.:has()refusals (div:has(p a),div:has(div:has(p))), and the same 2 timeouts, both on one 10 MB page (/usr/share/doc/nodejs/api/all.html). Each took 1,161 s.Tests
ruff check,ruff format --checkand shellcheck are clean.pytest -m 'not integration': 1054 passed, 10 skipped (environment-only: the service's credentials,docker.sock, SocratiCode local files).pytest -m integrationagainst the scratch Redis: 60 passed.Review (CR)
include_description, and refused goldens record only the typeCR 1: the refused set, each refusal's reason pinned, and a behaviour testcreatedCR 2OVERRIDDEN/CO_CORE_FLOOREDweren't held toFLOORS, or held apartCR 3mainstays green; the red runs are in the session (#138's precedent)Round 2 (
CR --fix; an independent reviewer read the branch alongside):_admits/_floorsread versions as bare numbers.>=4.1rc1read as floored at 4.1,<=4.1rc1and==4.1.*as admitting it, and>=4.1.dev0raised a bareValueErrorCR 4: parsed withpackaging. A plain release is read exactly (==,===,~=included); anything else fails with "read it by hand"_requirement_namedidn't normalise (opentelemetry_api≠opentelemetry-api), and a nameless entry hitAttributeErrorCR 5:canonicalize_namefalsekey "translates byte-identically". The text does, but an explicitfalsemovesspec_fingerprintCR 6. The Watcher notice draft now says so tooCR 7startingfield list left outprocessor_version, which this deploy's live check readsCR 8For #147
docs/DEPENDENCIES.mdchanged in § Bumping co-core (step 1) and § Extraction dependencies (the "Since #140" entry). Rebase onto those sections.For #84 (coordinator)
test_lock_floorsis ready for the next floor co-core caps.Known limits
output_createdis tested only againstLocalBlobStore. The GCS semantics are co-core's, and tests never touch a real bucket. The first live outcome record is the check.rdf:RDFrefusal has no parity fixture; co-core's own tests cover it.XmlExtractor's "truebeside anxpath" can't be reached from a spec, so it isn't tested here.🤖 Generated with Claude Code