Re: [precis] I-D Action: draft-ietf-precis-7564bis-09.txt

Peter Saint-Andre <stpeter@stpeter.im> Tue, 25 July 2017 23:40 UTC

Return-Path: <stpeter@stpeter.im>
X-Original-To: precis@ietfa.amsl.com
Delivered-To: precis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E66C51320C9 for <precis@ietfa.amsl.com>; Tue, 25 Jul 2017 16:40:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.721
X-Spam-Level:
X-Spam-Status: No, score=-2.721 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=stpeter.im header.b=cI5dEdKt; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=pGvHJLVs
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jmZMgRk4utt8 for <precis@ietfa.amsl.com>; Tue, 25 Jul 2017 16:40:50 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D32071320C6 for <precis@ietf.org>; Tue, 25 Jul 2017 16:40:49 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 25719208CE; Tue, 25 Jul 2017 19:40:49 -0400 (EDT)
Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 25 Jul 2017 19:40:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stpeter.im; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=hb2DHlIyOvrtoyoEyu 4rKVGDT7eExfO/Iae23kLXjT4=; b=cI5dEdKtnBVgo1Q8dJRxXbcic5pYsSEDUV oZxOvMT79tOdY0o+/8ijoXHDdzNMMOuqULTdZV6sVRK74BTO+TSODlMFQ8Il8RBy h1mwtFFz8oFW3WkebvZGYDLyHJt0XSl9St/vaSJAhY877Z2h+2O7A+iPbYCDqxfU Y6yMj/JosDnef/eVqFOiDDhyXFn87ay7cy0KiO8uq2Hb4OywQ72K5AMdzcjJOyOt vi55LH2IdskEbmN+iCvSzJc9TfTOo0NcjS5vETv7ASwgY10wsMOVa0EAZEE6D90X 9GhFGZ+4Tq6wSGgAaMIBxTubY9NLDnhI//6kntpZetC9o1u/Io2g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=hb2DHlIyOvrtoyoEyu4rKVGDT7eExfO/Iae23kLXjT4=; b=pGvHJLVs 3sBcZsU62bi/s4Bu8bu66ZjTTfbtGQjKXxvNZyhMVAZrRT2NwPEbo1VdwPjtg/Hi goWg7by8mu+ChOwZlToZO1ncu8k327giV4XxwYxNDT7KrHbn2lvS4XK4LvFcTqbd RIQ3bv+687u5tAT4EmY3c20ICDTUn3RhfFQSpTxXaIe1gZKVni/zH2LcpkEMY/Lj Hr2aHgTwPOsaG1MNovWDsrYNVuIU5an5ENr7wssTWHmINsSyCy/DvsrxgUMAOQZn nBeqWh/J6JlqcP7SaVxs/ihTlixB+dcBp2k17nRnnAkUsIOuvG60bCpsNCyY4kZN VXCLdbhmiCFvEQ==
X-ME-Sender: <xms:Add3WRK0NK8xQBBrr5JL5l9ay8sQztWrkV2chxLwtQHkqx3ufB56Qg>
X-Sasl-enc: Fv5cflIeMSCKMiVjrFhb6ioGl0HbM5ukqfhALhOvXglK 1501026048
Received: from aither.local (unknown [76.25.4.24]) by mail.messagingengine.com (Postfix) with ESMTPA id 97666245BC; Tue, 25 Jul 2017 19:40:48 -0400 (EDT)
To: William Fisher <william.w.fisher@gmail.com>
References: <150024725625.303.17137036571104960991@ietfa.amsl.com> <33f7468c-6742-7cbe-fa6f-70002c35cc62@stpeter.im> <CAHVjMKGcaC80UppnLV07A-GKKo16x5eMQ4BsKF5A2LEcdUm-CQ@mail.gmail.com> <8165b2ce-de2b-2298-c1da-fd0c25f6fd75@stpeter.im>
Cc: precis@ietf.org
From: Peter Saint-Andre <stpeter@stpeter.im>
Message-ID: <6e0d5c5e-bf53-5e22-e401-8108ce8767c1@stpeter.im>
Date: Tue, 25 Jul 2017 17:40:46 -0600
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <8165b2ce-de2b-2298-c1da-fd0c25f6fd75@stpeter.im>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/precis/SdVu_TQfFawR10dUbOTO048QdLs>
Subject: Re: [precis] I-D Action: draft-ietf-precis-7564bis-09.txt
X-BeenThere: precis@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Preparation and Comparison of Internationalized Strings <precis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/precis>, <mailto:precis-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/precis/>
List-Post: <mailto:precis@ietf.org>
List-Help: <mailto:precis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/precis>, <mailto:precis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 25 Jul 2017 23:40:52 -0000

On 7/20/17 9:08 PM, Peter Saint-Andre wrote:
> On 7/19/17 11:30 PM, William Fisher wrote:
>>> What do implementers think is a "reasonable number of iterations"? My
>>> sense is that we're talking about at most 4 or 5, and usually 2 or 3.
>>
>> I interpreted the word "iteration" to mean "reapplication" of the
>> rules; not counting the first application. The Nickname test cases
>> become stable after 2 iterations of the rules.
>>
>>   output1 = precis_encode(input)
>>   output2 = precis_encode(output1)      # iteration 1
>>   output3 = precis_encode(output2)      # iteration 2 confirms that
>> output3 == output2
>>
>> I can't come up with a Nickname test case that requires more than 2
>> iterations to become stable, but that doesn't mean they don't exist.
> 
> As far as I can determine based on reviewing various code points, that's
> right. This _should_ be a function of the code points involved (i.e.,
> how many steps a code point is from something more stable), not the profile.
> 
>> It's possible that a new PRECIS profile could be defined that has
>> stability issues. IMO, if a PRECIS profile isn't stable after 3
>> iterations, it's broken.
> 
> Agreed.
> 
>> The last sentence might read like this:
>>
>>   Therefore, an implementation SHOULD reapply the rules
>>    repeatedly until the output string is stable; if the output string
>>    does not stabilize after three iterations, the
>>    implementation SHOULD reject
>>    the input string as invalid.
>>
>> In the worst case, this means that you are calling precis_encode()
>> four times for an input string.
> 
> That seems reasonable.

All three of the PRECIS I-Ds have identical text on this point. Based on
Bill's message, I propose that we change the sentence as follows:

OLD

   an implementation SHOULD apply the rules
   repeatedly until the output string is stable; if the output string
   does not stabilize within a reasonable number of iterations, the
   implementation SHOULD terminate application of the rules and reject
   the input string as invalid.

NEW

   an implementation SHOULD apply the rules
   repeatedly until the output string is stable; if the output string
   does not stabilize after reapplying the rules three (3) additional
   times, the implementation SHOULD terminate application of the rules
   and reject the input string as invalid.

For the sake of traceability, I'll submit revised versions of all three
I-Ds this evening.

Peter